= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":5239},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5238":{"this":{"__isSmartRef__":true,"id":5212}},"5239":{"timestamp":{"__isSmartRef__":true,"id":5240},"user":"sebastianwoinar","tags":[]},"5240":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"5241":{"varMapping":{"__isSmartRef__":true,"id":5242},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":5243},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5242":{"this":{"__isSmartRef__":true,"id":5212}},"5243":{"timestamp":{"__isSmartRef__":true,"id":5244},"user":"sebastianwoinar","tags":[]},"5244":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"5245":{"varMapping":{"__isSmartRef__":true,"id":5246},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":5247},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5246":{"this":{"__isSmartRef__":true,"id":5212}},"5247":{"timestamp":{"__isSmartRef__":true,"id":5248},"user":"sebastianwoinar","tags":[]},"5248":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"5249":{"varMapping":{"__isSmartRef__":true,"id":5250},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5251},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5250":{"this":{"__isSmartRef__":true,"id":5212}},"5251":{"timestamp":{"__isSmartRef__":true,"id":5252},"user":"sebastianwoinar","tags":[]},"5252":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"5253":{"varMapping":{"__isSmartRef__":true,"id":5254},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":5255},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5254":{"this":{"__isSmartRef__":true,"id":5212}},"5255":{"timestamp":{"__isSmartRef__":true,"id":5256},"user":"sebastianwoinar","tags":[]},"5256":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"5257":{"varMapping":{"__isSmartRef__":true,"id":5258},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":5259},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5258":{"this":{"__isSmartRef__":true,"id":5212}},"5259":{"timestamp":{"__isSmartRef__":true,"id":5260},"user":"sebastianwoinar","tags":[]},"5260":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"5261":{"varMapping":{"__isSmartRef__":true,"id":5262},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":5263},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5262":{"this":{"__isSmartRef__":true,"id":5212}},"5263":{"timestamp":{"__isSmartRef__":true,"id":5264},"user":"sebastianwoinar","tags":[]},"5264":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"5265":{"varMapping":{"__isSmartRef__":true,"id":5266},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":5267},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5266":{"this":{"__isSmartRef__":true,"id":5212}},"5267":{"timestamp":{"__isSmartRef__":true,"id":5268},"user":"sebastianwoinar","tags":[]},"5268":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"5269":{"varMapping":{"__isSmartRef__":true,"id":5270},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":5271},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5270":{"this":{"__isSmartRef__":true,"id":5212}},"5271":{"timestamp":{"__isSmartRef__":true,"id":5272},"user":"sebastianwoinar","tags":[]},"5272":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"5273":{"varMapping":{"__isSmartRef__":true,"id":5274},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":5275},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5274":{"this":{"__isSmartRef__":true,"id":5212}},"5275":{"timestamp":{"__isSmartRef__":true,"id":5276},"user":"sebastianwoinar","tags":[]},"5276":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"5277":{"varMapping":{"__isSmartRef__":true,"id":5278},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":5279},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5278":{"this":{"__isSmartRef__":true,"id":5212}},"5279":{"timestamp":{"__isSmartRef__":true,"id":5280},"user":"sebastianwoinar","tags":[]},"5280":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"5281":{"varMapping":{"__isSmartRef__":true,"id":5282},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":5283},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5282":{"this":{"__isSmartRef__":true,"id":5212}},"5283":{"timestamp":{"__isSmartRef__":true,"id":5284},"user":"sebastianwoinar","tags":[]},"5284":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"5285":{"varMapping":{"__isSmartRef__":true,"id":5286},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":5287},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5286":{"this":{"__isSmartRef__":true,"id":5212}},"5287":{"timestamp":{"__isSmartRef__":true,"id":5288},"user":"sebastianwoinar","tags":[]},"5288":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"5289":{"varMapping":{"__isSmartRef__":true,"id":5290},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":5291},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5290":{"this":{"__isSmartRef__":true,"id":5212}},"5291":{"timestamp":{"__isSmartRef__":true,"id":5292},"user":"sebastianwoinar","tags":[]},"5292":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"5293":{"varMapping":{"__isSmartRef__":true,"id":5294},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":5295},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5294":{"this":{"__isSmartRef__":true,"id":5212}},"5295":{"timestamp":{"__isSmartRef__":true,"id":5296},"user":"sebastianwoinar","tags":[]},"5296":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"5297":{"varMapping":{"__isSmartRef__":true,"id":5298},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":5299},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5298":{"this":{"__isSmartRef__":true,"id":5212}},"5299":{"timestamp":{"__isSmartRef__":true,"id":5300},"user":"sebastianwoinar","tags":[]},"5300":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"5301":{"varMapping":{"__isSmartRef__":true,"id":5302},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":5307},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5302":{"this":{"__isSmartRef__":true,"id":5212},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5303}},"5303":{"$super":{"__isSmartRef__":true,"id":5304}},"5304":{"varMapping":{"__isSmartRef__":true,"id":5305},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5306},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5305":{"obj":{"__isSmartRef__":true,"id":5212},"name":"onMouseDown"},"5306":{},"5307":{"timestamp":{"__isSmartRef__":true,"id":5308},"user":"sebastianwoinar","tags":[]},"5308":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"5309":{"varMapping":{"__isSmartRef__":true,"id":5310},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":5311},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5310":{"this":{"__isSmartRef__":true,"id":5212}},"5311":{"timestamp":{"__isSmartRef__":true,"id":5312},"user":"sebastianwoinar","tags":[]},"5312":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"5313":{"varMapping":{"__isSmartRef__":true,"id":5314},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":5315},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5314":{"this":{"__isSmartRef__":true,"id":5212}},"5315":{"timestamp":{"__isSmartRef__":true,"id":5316},"user":"sebastianwoinar","tags":[]},"5316":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"5317":{"varMapping":{"__isSmartRef__":true,"id":5318},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":5319},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5318":{"this":{"__isSmartRef__":true,"id":5212}},"5319":{"timestamp":{"__isSmartRef__":true,"id":5320},"user":"sebastianwoinar","tags":[]},"5320":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"5321":{"varMapping":{"__isSmartRef__":true,"id":5322},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":5323},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5322":{"this":{"__isSmartRef__":true,"id":5212}},"5323":{"timestamp":{"__isSmartRef__":true,"id":5324},"user":"sebastianwoinar","tags":[]},"5324":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"5325":{"varMapping":{"__isSmartRef__":true,"id":5326},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":5327},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5326":{"this":{"__isSmartRef__":true,"id":5212}},"5327":{"timestamp":{"__isSmartRef__":true,"id":5328},"user":"sebastianwoinar","tags":[]},"5328":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"5329":{"varMapping":{"__isSmartRef__":true,"id":5330},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5331},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5330":{"this":{"__isSmartRef__":true,"id":5212}},"5331":{"timestamp":{"__isSmartRef__":true,"id":5332},"user":"sebastianwoinar","tags":[]},"5332":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"5333":{"varMapping":{"__isSmartRef__":true,"id":5334},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":5335},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5334":{"this":{"__isSmartRef__":true,"id":5212}},"5335":{"timestamp":{"__isSmartRef__":true,"id":5336},"user":"sebastianwoinar","tags":[]},"5336":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"5337":{"varMapping":{"__isSmartRef__":true,"id":5338},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5339},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5338":{"this":{"__isSmartRef__":true,"id":5212}},"5339":{"timestamp":{"__isSmartRef__":true,"id":5340},"user":"sebastianwoinar","tags":[]},"5340":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"5341":{"submorphs":[],"scripts":[],"id":"5CC3357F-7B19-4567-AAFF-0F97EBF55F7C","shape":{"__isSmartRef__":true,"id":5342},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"movesCount1","partsBinMetaInfo":{"__isSmartRef__":true,"id":5343},"textChunks":[{"__isSmartRef__":true,"id":5354}],"charsReplaced":"Select algorithm","lastFindLoc":16,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":5356},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","D211FB30-6129-4381-BEB8-26856DE96463","0CC6589E-629E-4971-A12A-BB9A7D5C5F66"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"#startLetters":"get","owner":{"__isSmartRef__":true,"id":5137},"_Rotation":0,"_Scale":1,"previousSelection":[7,16],"priorSelectionRange":[7,7],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(68.1,-42.6)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(112.2,-5.6)"},"5342":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(160.5,26.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"5343":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":5344},{"__isSmartRef__":true,"id":5346},{"__isSmartRef__":true,"id":5348},{"__isSmartRef__":true,"id":5350},{"__isSmartRef__":true,"id":5352}],"revisionOnLoad":160159,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"5344":{"date":{"__isSmartRef__":true,"id":5345},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"5345":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"5346":{"date":{"__isSmartRef__":true,"id":5347},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"5347":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"5348":{"date":{"__isSmartRef__":true,"id":5349},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"5349":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"5350":{"date":{"__isSmartRef__":true,"id":5351},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"5351":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"5352":{"date":{"__isSmartRef__":true,"id":5353},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"5353":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"5354":{"style":{"__isSmartRef__":true,"id":5355},"morph":{"__isSmartRef__":true,"id":5341},"chunkOwner":{"__isSmartRef__":true,"id":5341},"storedString":"use ABP","_id":"_19524","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5355":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5356":{"morph":{"__isSmartRef__":true,"id":5341},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5357":{"submorphs":[],"scripts":[],"id":"EA61ADA3-9EBE-40C2-AA78-4B012973DB00","shape":{"__isSmartRef__":true,"id":5358},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"movesCount2","partsBinMetaInfo":{"__isSmartRef__":true,"id":5359},"textChunks":[{"__isSmartRef__":true,"id":5370}],"charsReplaced":"Select algorithm","lastFindLoc":16,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":5372},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","D211FB30-6129-4381-BEB8-26856DE96463","0CC6589E-629E-4971-A12A-BB9A7D5C5F66","5CC3357F-7B19-4567-AAFF-0F97EBF55F7C"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"#startLetters":"get","owner":{"__isSmartRef__":true,"id":5137},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(70.1,-17.8)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(111.2,-13.6)"},"5358":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(160.5,26.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"5359":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":5360},{"__isSmartRef__":true,"id":5362},{"__isSmartRef__":true,"id":5364},{"__isSmartRef__":true,"id":5366},{"__isSmartRef__":true,"id":5368}],"revisionOnLoad":160159,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"5360":{"date":{"__isSmartRef__":true,"id":5361},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"5361":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"5362":{"date":{"__isSmartRef__":true,"id":5363},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"5363":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"5364":{"date":{"__isSmartRef__":true,"id":5365},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"5365":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"5366":{"date":{"__isSmartRef__":true,"id":5367},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"5367":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"5368":{"date":{"__isSmartRef__":true,"id":5369},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"5369":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"5370":{"style":{"__isSmartRef__":true,"id":5371},"morph":{"__isSmartRef__":true,"id":5357},"chunkOwner":{"__isSmartRef__":true,"id":5357},"storedString":"Control","_id":"_19524","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5371":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5372":{"morph":{"__isSmartRef__":true,"id":5357},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5373":{"submorphs":[{"__isSmartRef__":true,"id":5374}],"scripts":[],"id":"B5EFC9DC-5E60-4C1B-B452-1BED6BE55E9E","shape":{"__isSmartRef__":true,"id":5379},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":5385},"lighterFill":{"__isSmartRef__":true,"id":5390},"label":{"__isSmartRef__":true,"id":5374},"name":"Button2","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":5395},"attributeConnections":[{"__isSmartRef__":true,"id":5406},{"__isSmartRef__":true,"id":5407}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":40671},"derivationIds":[7251,"3F26258D-0EE1-4A94-8419-5EE2BB6065A6","B624295D-42E3-4E0A-B370-844C2B43F4F0","F5D160C8-1C2F-47D9-9BE1-2FD26C53BFB3","7D4A1972-76E5-4369-9964-2F6ACB87C81F","C95CA3B7-340C-4EA5-BC6C-D0F013C7C7E1"],"_ClipMode":"visible","isPressed":false,"owner":{"__isSmartRef__":true,"id":5137},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":40672},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(220.0,-16.0)","distanceToDragEvent":"lively.pt(48.8,-17.4)"},"5374":{"submorphs":[],"scripts":[],"id":"053C7887-1403-4628-BE8B-266056E62D29","shape":{"__isSmartRef__":true,"id":5375},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":100,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":5373},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":5376}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":5378},"_HandStyle":"default","_PointerEvents":"none","derivationIds":[7252,"4881773E-A824-4992-B814-33C8D37580C6","EE955AA4-D648-4DFC-8E2D-08881D605170","7EC413DD-D34D-449D-B448-2F3904B04FA5","7939AA82-2A96-4559-9090-DD58B7C8868A","7AD8E6A9-40EE-4DFD-B063-EAE2F7B01D73"],"_MinTextWidth":100,"_MinTextHeight":null,"_FontSize":10,"_WordBreak":"break-all","__serializedExpressions__":["_Position","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"5375":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(59.0,21.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"5376":{"style":{"__isSmartRef__":true,"id":5377},"chunkOwner":{"__isSmartRef__":true,"id":5374},"_id":"_20063","storedString":"Step","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5377":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5378":{"morph":{"__isSmartRef__":true,"id":5374},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5379":{"_BorderWidth":1.1840000000000002,"_Fill":{"__isSmartRef__":true,"id":5380},"_BorderRadius":5.2,"_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(59.0,21.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"5380":{"stops":[{"__isSmartRef__":true,"id":5381},{"__isSmartRef__":true,"id":5382},{"__isSmartRef__":true,"id":5383},{"__isSmartRef__":true,"id":5384}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"5381":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"5382":{"offset":0.3,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"5383":{"offset":0.7,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"5384":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(204,204,204)"},"5385":{"stops":[{"__isSmartRef__":true,"id":5386},{"__isSmartRef__":true,"id":5387},{"__isSmartRef__":true,"id":5388},{"__isSmartRef__":true,"id":5389}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"5386":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"5387":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"5388":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"5389":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"5390":{"stops":[{"__isSmartRef__":true,"id":5391},{"__isSmartRef__":true,"id":5392},{"__isSmartRef__":true,"id":5393},{"__isSmartRef__":true,"id":5394}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"5391":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"5392":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"5393":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"5394":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"5395":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","changes":[{"__isSmartRef__":true,"id":5396},{"__isSmartRef__":true,"id":5398},{"__isSmartRef__":true,"id":5400},{"__isSmartRef__":true,"id":5402},{"__isSmartRef__":true,"id":5404}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"5396":{"date":{"__isSmartRef__":true,"id":5397},"author":"undefined","message":"","id":"7074B413-6CF0-4892-9D18-52009A2A2E03"},"5397":{"isSerializedDate":true,"string":"Fri Apr 13 2012 21:04:01 GMT+0200 (CEST)"},"5398":{"date":{"__isSmartRef__":true,"id":5399},"author":"sstamm","message":"reverted button","id":"9B7AA90A-42FC-4DE8-A4DE-51AB903A740E"},"5399":{"isSerializedDate":true,"string":"Mon Apr 16 2012 10:36:21 GMT+0200 (CEST)"},"5400":{"date":{"__isSmartRef__":true,"id":5401},"author":"robertkrahn","message":"no comment","id":"97D17254-EAC6-4494-8330-A347909590D6"},"5401":{"isSerializedDate":true,"string":"Sat Apr 21 2012 14:08:58 GMT+0200 (CEST)"},"5402":{"date":{"__isSmartRef__":true,"id":5403},"author":"robertkrahn","message":"no comment","id":"DDE22D44-9A6D-4485-80F3-262D5DA0CC07"},"5403":{"isSerializedDate":true,"string":"Tue Jun 05 2012 14:03:19 GMT+0200 (CEST)"},"5404":{"date":{"__isSmartRef__":true,"id":5405},"author":"bgnauk","message":"no comment","id":"FA43C1A3-19A9-4ED6-A014-82C74689A5C3"},"5405":{"isSerializedDate":true,"string":"Tue Jun 19 2012 23:39:23 GMT+0200 (CEST)"},"5406":{"sourceObj":{"__isSmartRef__":true,"id":5373},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":5373},"targetMethodName":"doAction","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"5407":{"sourceObj":{"__isSmartRef__":true,"id":5373},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":5408},"targetMethodName":"makeStep","varMapping":{"__isSmartRef__":true,"id":40670},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"5408":{"submorphs":[{"__isSmartRef__":true,"id":5409},{"__isSmartRef__":true,"id":5937},{"__isSmartRef__":true,"id":5961},{"__isSmartRef__":true,"id":5985},{"__isSmartRef__":true,"id":6114},{"__isSmartRef__":true,"id":6243},{"__isSmartRef__":true,"id":6372},{"__isSmartRef__":true,"id":6501},{"__isSmartRef__":true,"id":6630},{"__isSmartRef__":true,"id":6759},{"__isSmartRef__":true,"id":6888},{"__isSmartRef__":true,"id":7122},{"__isSmartRef__":true,"id":7146},{"__isSmartRef__":true,"id":7275},{"__isSmartRef__":true,"id":7404},{"__isSmartRef__":true,"id":7533},{"__isSmartRef__":true,"id":7662},{"__isSmartRef__":true,"id":7896},{"__isSmartRef__":true,"id":7920},{"__isSmartRef__":true,"id":8049},{"__isSmartRef__":true,"id":8178},{"__isSmartRef__":true,"id":8307},{"__isSmartRef__":true,"id":8436},{"__isSmartRef__":true,"id":8565},{"__isSmartRef__":true,"id":8694},{"__isSmartRef__":true,"id":8928},{"__isSmartRef__":true,"id":8952},{"__isSmartRef__":true,"id":9081},{"__isSmartRef__":true,"id":9210},{"__isSmartRef__":true,"id":9339},{"__isSmartRef__":true,"id":9468},{"__isSmartRef__":true,"id":9702},{"__isSmartRef__":true,"id":9726},{"__isSmartRef__":true,"id":9855},{"__isSmartRef__":true,"id":9984},{"__isSmartRef__":true,"id":10113},{"__isSmartRef__":true,"id":10242},{"__isSmartRef__":true,"id":10371},{"__isSmartRef__":true,"id":10605},{"__isSmartRef__":true,"id":10629},{"__isSmartRef__":true,"id":10758},{"__isSmartRef__":true,"id":10887},{"__isSmartRef__":true,"id":11016},{"__isSmartRef__":true,"id":11145},{"__isSmartRef__":true,"id":11274},{"__isSmartRef__":true,"id":11403},{"__isSmartRef__":true,"id":11532},{"__isSmartRef__":true,"id":11661},{"__isSmartRef__":true,"id":11895},{"__isSmartRef__":true,"id":11919},{"__isSmartRef__":true,"id":12048},{"__isSmartRef__":true,"id":12177},{"__isSmartRef__":true,"id":12516},{"__isSmartRef__":true,"id":12540},{"__isSmartRef__":true,"id":12564},{"__isSmartRef__":true,"id":12693},{"__isSmartRef__":true,"id":12822},{"__isSmartRef__":true,"id":12951},{"__isSmartRef__":true,"id":13080},{"__isSmartRef__":true,"id":13209},{"__isSmartRef__":true,"id":13338},{"__isSmartRef__":true,"id":13572},{"__isSmartRef__":true,"id":13596},{"__isSmartRef__":true,"id":13725},{"__isSmartRef__":true,"id":13854},{"__isSmartRef__":true,"id":13983},{"__isSmartRef__":true,"id":14112},{"__isSmartRef__":true,"id":14241},{"__isSmartRef__":true,"id":14370},{"__isSmartRef__":true,"id":14604},{"__isSmartRef__":true,"id":14628},{"__isSmartRef__":true,"id":14757},{"__isSmartRef__":true,"id":14886},{"__isSmartRef__":true,"id":15015},{"__isSmartRef__":true,"id":15144},{"__isSmartRef__":true,"id":15273},{"__isSmartRef__":true,"id":15507},{"__isSmartRef__":true,"id":15531},{"__isSmartRef__":true,"id":15660},{"__isSmartRef__":true,"id":15789},{"__isSmartRef__":true,"id":15918},{"__isSmartRef__":true,"id":16047},{"__isSmartRef__":true,"id":16176},{"__isSmartRef__":true,"id":16305},{"__isSmartRef__":true,"id":16434},{"__isSmartRef__":true,"id":16563},{"__isSmartRef__":true,"id":16797},{"__isSmartRef__":true,"id":16821},{"__isSmartRef__":true,"id":16950},{"__isSmartRef__":true,"id":17079},{"__isSmartRef__":true,"id":17208},{"__isSmartRef__":true,"id":17337},{"__isSmartRef__":true,"id":17466},{"__isSmartRef__":true,"id":17805},{"__isSmartRef__":true,"id":17829},{"__isSmartRef__":true,"id":17853},{"__isSmartRef__":true,"id":17982},{"__isSmartRef__":true,"id":18111},{"__isSmartRef__":true,"id":18240},{"__isSmartRef__":true,"id":18369},{"__isSmartRef__":true,"id":18498},{"__isSmartRef__":true,"id":18627},{"__isSmartRef__":true,"id":18861},{"__isSmartRef__":true,"id":18885},{"__isSmartRef__":true,"id":19014},{"__isSmartRef__":true,"id":19143},{"__isSmartRef__":true,"id":19272},{"__isSmartRef__":true,"id":19401},{"__isSmartRef__":true,"id":19530},{"__isSmartRef__":true,"id":19659},{"__isSmartRef__":true,"id":19788},{"__isSmartRef__":true,"id":20022},{"__isSmartRef__":true,"id":20046},{"__isSmartRef__":true,"id":20175},{"__isSmartRef__":true,"id":20304},{"__isSmartRef__":true,"id":20433},{"__isSmartRef__":true,"id":20562},{"__isSmartRef__":true,"id":20691},{"__isSmartRef__":true,"id":20820},{"__isSmartRef__":true,"id":20949},{"__isSmartRef__":true,"id":21078},{"__isSmartRef__":true,"id":21312},{"__isSmartRef__":true,"id":21336},{"__isSmartRef__":true,"id":21465},{"__isSmartRef__":true,"id":21594},{"__isSmartRef__":true,"id":21723},{"__isSmartRef__":true,"id":21852},{"__isSmartRef__":true,"id":21981},{"__isSmartRef__":true,"id":22110},{"__isSmartRef__":true,"id":22239},{"__isSmartRef__":true,"id":22368},{"__isSmartRef__":true,"id":22602},{"__isSmartRef__":true,"id":22626},{"__isSmartRef__":true,"id":22755},{"__isSmartRef__":true,"id":22884},{"__isSmartRef__":true,"id":23013},{"__isSmartRef__":true,"id":23142},{"__isSmartRef__":true,"id":23271},{"__isSmartRef__":true,"id":23400},{"__isSmartRef__":true,"id":23529},{"__isSmartRef__":true,"id":23658},{"__isSmartRef__":true,"id":23892},{"__isSmartRef__":true,"id":23916},{"__isSmartRef__":true,"id":24045},{"__isSmartRef__":true,"id":24174},{"__isSmartRef__":true,"id":24303},{"__isSmartRef__":true,"id":24432},{"__isSmartRef__":true,"id":24561},{"__isSmartRef__":true,"id":24690},{"__isSmartRef__":true,"id":24819},{"__isSmartRef__":true,"id":24948},{"__isSmartRef__":true,"id":25287},{"__isSmartRef__":true,"id":25311},{"__isSmartRef__":true,"id":25335},{"__isSmartRef__":true,"id":25464},{"__isSmartRef__":true,"id":25593},{"__isSmartRef__":true,"id":25722},{"__isSmartRef__":true,"id":25851},{"__isSmartRef__":true,"id":25980},{"__isSmartRef__":true,"id":26109},{"__isSmartRef__":true,"id":26238},{"__isSmartRef__":true,"id":26367},{"__isSmartRef__":true,"id":26601},{"__isSmartRef__":true,"id":26625},{"__isSmartRef__":true,"id":26754},{"__isSmartRef__":true,"id":26883},{"__isSmartRef__":true,"id":27012},{"__isSmartRef__":true,"id":27141},{"__isSmartRef__":true,"id":27270},{"__isSmartRef__":true,"id":27399},{"__isSmartRef__":true,"id":27528},{"__isSmartRef__":true,"id":27762},{"__isSmartRef__":true,"id":27786},{"__isSmartRef__":true,"id":27915},{"__isSmartRef__":true,"id":28044},{"__isSmartRef__":true,"id":28173},{"__isSmartRef__":true,"id":28302},{"__isSmartRef__":true,"id":28431},{"__isSmartRef__":true,"id":28560},{"__isSmartRef__":true,"id":28689},{"__isSmartRef__":true,"id":28818},{"__isSmartRef__":true,"id":29052},{"__isSmartRef__":true,"id":29076},{"__isSmartRef__":true,"id":29205},{"__isSmartRef__":true,"id":29334},{"__isSmartRef__":true,"id":29463},{"__isSmartRef__":true,"id":29592},{"__isSmartRef__":true,"id":29826},{"__isSmartRef__":true,"id":29850},{"__isSmartRef__":true,"id":29979},{"__isSmartRef__":true,"id":30108},{"__isSmartRef__":true,"id":30237},{"__isSmartRef__":true,"id":30366},{"__isSmartRef__":true,"id":30600},{"__isSmartRef__":true,"id":30624},{"__isSmartRef__":true,"id":30753},{"__isSmartRef__":true,"id":30882},{"__isSmartRef__":true,"id":31011},{"__isSmartRef__":true,"id":31140},{"__isSmartRef__":true,"id":31269},{"__isSmartRef__":true,"id":31398},{"__isSmartRef__":true,"id":31527},{"__isSmartRef__":true,"id":31656},{"__isSmartRef__":true,"id":31890},{"__isSmartRef__":true,"id":31914},{"__isSmartRef__":true,"id":32043},{"__isSmartRef__":true,"id":32172},{"__isSmartRef__":true,"id":32301},{"__isSmartRef__":true,"id":32430},{"__isSmartRef__":true,"id":32559},{"__isSmartRef__":true,"id":32688},{"__isSmartRef__":true,"id":32817},{"__isSmartRef__":true,"id":32946},{"__isSmartRef__":true,"id":33285},{"__isSmartRef__":true,"id":33309},{"__isSmartRef__":true,"id":33333},{"__isSmartRef__":true,"id":33462},{"__isSmartRef__":true,"id":33591},{"__isSmartRef__":true,"id":33720},{"__isSmartRef__":true,"id":33954},{"__isSmartRef__":true,"id":33978},{"__isSmartRef__":true,"id":34107},{"__isSmartRef__":true,"id":34236},{"__isSmartRef__":true,"id":34365},{"__isSmartRef__":true,"id":34494},{"__isSmartRef__":true,"id":34623},{"__isSmartRef__":true,"id":34752},{"__isSmartRef__":true,"id":34986},{"__isSmartRef__":true,"id":35010},{"__isSmartRef__":true,"id":35139},{"__isSmartRef__":true,"id":35268},{"__isSmartRef__":true,"id":35397},{"__isSmartRef__":true,"id":35526},{"__isSmartRef__":true,"id":35655},{"__isSmartRef__":true,"id":35784},{"__isSmartRef__":true,"id":36018},{"__isSmartRef__":true,"id":36042},{"__isSmartRef__":true,"id":36171},{"__isSmartRef__":true,"id":36300},{"__isSmartRef__":true,"id":36429},{"__isSmartRef__":true,"id":36558},{"__isSmartRef__":true,"id":36687},{"__isSmartRef__":true,"id":36816},{"__isSmartRef__":true,"id":36945},{"__isSmartRef__":true,"id":37179},{"__isSmartRef__":true,"id":37203},{"__isSmartRef__":true,"id":37332},{"__isSmartRef__":true,"id":37461},{"__isSmartRef__":true,"id":37590},{"__isSmartRef__":true,"id":37719},{"__isSmartRef__":true,"id":37848},{"__isSmartRef__":true,"id":37977},{"__isSmartRef__":true,"id":38421},{"__isSmartRef__":true,"id":38429},{"__isSmartRef__":true,"id":38437},{"__isSmartRef__":true,"id":38445},{"__isSmartRef__":true,"id":38453},{"__isSmartRef__":true,"id":38461},{"__isSmartRef__":true,"id":38469},{"__isSmartRef__":true,"id":38477},{"__isSmartRef__":true,"id":38485},{"__isSmartRef__":true,"id":38493},{"__isSmartRef__":true,"id":38501},{"__isSmartRef__":true,"id":38509},{"__isSmartRef__":true,"id":38517},{"__isSmartRef__":true,"id":38525},{"__isSmartRef__":true,"id":38533},{"__isSmartRef__":true,"id":38541},{"__isSmartRef__":true,"id":38549},{"__isSmartRef__":true,"id":38557},{"__isSmartRef__":true,"id":38565},{"__isSmartRef__":true,"id":38573},{"__isSmartRef__":true,"id":38581},{"__isSmartRef__":true,"id":38589},{"__isSmartRef__":true,"id":38597},{"__isSmartRef__":true,"id":38605},{"__isSmartRef__":true,"id":38613},{"__isSmartRef__":true,"id":38621},{"__isSmartRef__":true,"id":38629},{"__isSmartRef__":true,"id":38637},{"__isSmartRef__":true,"id":38645},{"__isSmartRef__":true,"id":38653},{"__isSmartRef__":true,"id":38661},{"__isSmartRef__":true,"id":38669},{"__isSmartRef__":true,"id":38677},{"__isSmartRef__":true,"id":38685},{"__isSmartRef__":true,"id":38693},{"__isSmartRef__":true,"id":38701},{"__isSmartRef__":true,"id":38709},{"__isSmartRef__":true,"id":38717},{"__isSmartRef__":true,"id":38725},{"__isSmartRef__":true,"id":38733},{"__isSmartRef__":true,"id":38741},{"__isSmartRef__":true,"id":38749},{"__isSmartRef__":true,"id":38757},{"__isSmartRef__":true,"id":38765},{"__isSmartRef__":true,"id":38773},{"__isSmartRef__":true,"id":38781},{"__isSmartRef__":true,"id":38789},{"__isSmartRef__":true,"id":38797},{"__isSmartRef__":true,"id":38805},{"__isSmartRef__":true,"id":38813},{"__isSmartRef__":true,"id":38821},{"__isSmartRef__":true,"id":38829},{"__isSmartRef__":true,"id":38837},{"__isSmartRef__":true,"id":38845},{"__isSmartRef__":true,"id":38853},{"__isSmartRef__":true,"id":38861},{"__isSmartRef__":true,"id":38869},{"__isSmartRef__":true,"id":38877},{"__isSmartRef__":true,"id":38885},{"__isSmartRef__":true,"id":38893},{"__isSmartRef__":true,"id":38901},{"__isSmartRef__":true,"id":38909},{"__isSmartRef__":true,"id":38917},{"__isSmartRef__":true,"id":38925},{"__isSmartRef__":true,"id":38933},{"__isSmartRef__":true,"id":38941},{"__isSmartRef__":true,"id":38949},{"__isSmartRef__":true,"id":38957},{"__isSmartRef__":true,"id":38965},{"__isSmartRef__":true,"id":38973},{"__isSmartRef__":true,"id":38981},{"__isSmartRef__":true,"id":38989},{"__isSmartRef__":true,"id":38997},{"__isSmartRef__":true,"id":39005},{"__isSmartRef__":true,"id":39013},{"__isSmartRef__":true,"id":39021},{"__isSmartRef__":true,"id":39029},{"__isSmartRef__":true,"id":39037},{"__isSmartRef__":true,"id":39045},{"__isSmartRef__":true,"id":39053},{"__isSmartRef__":true,"id":39061},{"__isSmartRef__":true,"id":39069},{"__isSmartRef__":true,"id":39077},{"__isSmartRef__":true,"id":39085},{"__isSmartRef__":true,"id":39093},{"__isSmartRef__":true,"id":39101},{"__isSmartRef__":true,"id":39109},{"__isSmartRef__":true,"id":39117},{"__isSmartRef__":true,"id":39125},{"__isSmartRef__":true,"id":39133},{"__isSmartRef__":true,"id":39141},{"__isSmartRef__":true,"id":39149},{"__isSmartRef__":true,"id":39157},{"__isSmartRef__":true,"id":39165},{"__isSmartRef__":true,"id":39173},{"__isSmartRef__":true,"id":39181},{"__isSmartRef__":true,"id":39189},{"__isSmartRef__":true,"id":39197},{"__isSmartRef__":true,"id":39205},{"__isSmartRef__":true,"id":39213},{"__isSmartRef__":true,"id":39221},{"__isSmartRef__":true,"id":39229},{"__isSmartRef__":true,"id":39237},{"__isSmartRef__":true,"id":39245},{"__isSmartRef__":true,"id":39253},{"__isSmartRef__":true,"id":39261},{"__isSmartRef__":true,"id":39269},{"__isSmartRef__":true,"id":39277},{"__isSmartRef__":true,"id":39285},{"__isSmartRef__":true,"id":39293},{"__isSmartRef__":true,"id":39301},{"__isSmartRef__":true,"id":39309},{"__isSmartRef__":true,"id":39317},{"__isSmartRef__":true,"id":39325},{"__isSmartRef__":true,"id":39333},{"__isSmartRef__":true,"id":39341},{"__isSmartRef__":true,"id":39349},{"__isSmartRef__":true,"id":39357},{"__isSmartRef__":true,"id":39365},{"__isSmartRef__":true,"id":39373},{"__isSmartRef__":true,"id":39381},{"__isSmartRef__":true,"id":39389},{"__isSmartRef__":true,"id":39397},{"__isSmartRef__":true,"id":39405},{"__isSmartRef__":true,"id":39413},{"__isSmartRef__":true,"id":39421},{"__isSmartRef__":true,"id":39429},{"__isSmartRef__":true,"id":39437},{"__isSmartRef__":true,"id":39445},{"__isSmartRef__":true,"id":39453},{"__isSmartRef__":true,"id":39461},{"__isSmartRef__":true,"id":39469},{"__isSmartRef__":true,"id":39477},{"__isSmartRef__":true,"id":39485},{"__isSmartRef__":true,"id":39493},{"__isSmartRef__":true,"id":39501},{"__isSmartRef__":true,"id":39509},{"__isSmartRef__":true,"id":39517},{"__isSmartRef__":true,"id":39525},{"__isSmartRef__":true,"id":39533},{"__isSmartRef__":true,"id":39541},{"__isSmartRef__":true,"id":39549},{"__isSmartRef__":true,"id":39557},{"__isSmartRef__":true,"id":39565},{"__isSmartRef__":true,"id":39573},{"__isSmartRef__":true,"id":39581},{"__isSmartRef__":true,"id":39589},{"__isSmartRef__":true,"id":39597},{"__isSmartRef__":true,"id":39605},{"__isSmartRef__":true,"id":39613},{"__isSmartRef__":true,"id":39621},{"__isSmartRef__":true,"id":39629},{"__isSmartRef__":true,"id":39637},{"__isSmartRef__":true,"id":39645},{"__isSmartRef__":true,"id":39653},{"__isSmartRef__":true,"id":39661},{"__isSmartRef__":true,"id":39669},{"__isSmartRef__":true,"id":39677},{"__isSmartRef__":true,"id":39685},{"__isSmartRef__":true,"id":39693},{"__isSmartRef__":true,"id":39701},{"__isSmartRef__":true,"id":39709},{"__isSmartRef__":true,"id":39717},{"__isSmartRef__":true,"id":39725},{"__isSmartRef__":true,"id":39733},{"__isSmartRef__":true,"id":39741},{"__isSmartRef__":true,"id":39749},{"__isSmartRef__":true,"id":39757},{"__isSmartRef__":true,"id":39765},{"__isSmartRef__":true,"id":39773},{"__isSmartRef__":true,"id":39781},{"__isSmartRef__":true,"id":39789},{"__isSmartRef__":true,"id":39797},{"__isSmartRef__":true,"id":39805},{"__isSmartRef__":true,"id":39813},{"__isSmartRef__":true,"id":39821},{"__isSmartRef__":true,"id":39829},{"__isSmartRef__":true,"id":39837},{"__isSmartRef__":true,"id":39845},{"__isSmartRef__":true,"id":39853},{"__isSmartRef__":true,"id":39861},{"__isSmartRef__":true,"id":39869},{"__isSmartRef__":true,"id":39877},{"__isSmartRef__":true,"id":39885},{"__isSmartRef__":true,"id":39893},{"__isSmartRef__":true,"id":39901},{"__isSmartRef__":true,"id":39909},{"__isSmartRef__":true,"id":39917},{"__isSmartRef__":true,"id":39925},{"__isSmartRef__":true,"id":39933},{"__isSmartRef__":true,"id":39941},{"__isSmartRef__":true,"id":39949},{"__isSmartRef__":true,"id":39957},{"__isSmartRef__":true,"id":39965},{"__isSmartRef__":true,"id":39973},{"__isSmartRef__":true,"id":39981},{"__isSmartRef__":true,"id":39989},{"__isSmartRef__":true,"id":39997},{"__isSmartRef__":true,"id":40005},{"__isSmartRef__":true,"id":40013},{"__isSmartRef__":true,"id":40021},{"__isSmartRef__":true,"id":40029},{"__isSmartRef__":true,"id":40037},{"__isSmartRef__":true,"id":40045},{"__isSmartRef__":true,"id":40053},{"__isSmartRef__":true,"id":40061},{"__isSmartRef__":true,"id":40069},{"__isSmartRef__":true,"id":40077},{"__isSmartRef__":true,"id":40085},{"__isSmartRef__":true,"id":40093},{"__isSmartRef__":true,"id":40101},{"__isSmartRef__":true,"id":40109},{"__isSmartRef__":true,"id":40117},{"__isSmartRef__":true,"id":40125},{"__isSmartRef__":true,"id":40133},{"__isSmartRef__":true,"id":40141},{"__isSmartRef__":true,"id":40149},{"__isSmartRef__":true,"id":40157},{"__isSmartRef__":true,"id":40165},{"__isSmartRef__":true,"id":40173},{"__isSmartRef__":true,"id":40181},{"__isSmartRef__":true,"id":40189},{"__isSmartRef__":true,"id":40197},{"__isSmartRef__":true,"id":40205},{"__isSmartRef__":true,"id":40213},{"__isSmartRef__":true,"id":40221},{"__isSmartRef__":true,"id":40229},{"__isSmartRef__":true,"id":40237},{"__isSmartRef__":true,"id":40245},{"__isSmartRef__":true,"id":40253},{"__isSmartRef__":true,"id":40261},{"__isSmartRef__":true,"id":40269},{"__isSmartRef__":true,"id":40277},{"__isSmartRef__":true,"id":40285},{"__isSmartRef__":true,"id":40293},{"__isSmartRef__":true,"id":40301},{"__isSmartRef__":true,"id":40309},{"__isSmartRef__":true,"id":40317},{"__isSmartRef__":true,"id":40325},{"__isSmartRef__":true,"id":40333},{"__isSmartRef__":true,"id":40341},{"__isSmartRef__":true,"id":40349},{"__isSmartRef__":true,"id":40357},{"__isSmartRef__":true,"id":40365},{"__isSmartRef__":true,"id":40373},{"__isSmartRef__":true,"id":40381},{"__isSmartRef__":true,"id":40389},{"__isSmartRef__":true,"id":40397},{"__isSmartRef__":true,"id":40405},{"__isSmartRef__":true,"id":40413},{"__isSmartRef__":true,"id":40421}],"scripts":[],"id":"05B4103A-AF57-4D70-B212-9B6F69E70622","shape":{"__isSmartRef__":true,"id":40429},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"gameTree","partsBinMetaInfo":{"__isSmartRef__":true,"id":40430},"eventHandler":{"__isSmartRef__":true,"id":40447},"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","FE91EA31-D8AE-461B-8A49-95DA5FBAE5B4","F38439A3-2F4E-4AC2-BF73-2633C00B1393","6748F5B5-2284-4748-A6EE-F1A261CBAD0B","BBAFB862-93AE-4F89-BCFF-9F1C67B7FE4C","7EC17E78-593A-4CC8-B7E3-859BCBBFE785"],"partTests":{"__isSmartRef__":true,"id":40448},"_ClipMode":"visible","moved":true,"owner":{"__isSmartRef__":true,"id":5137},"#startLetters":"","gameTree":{"__isSmartRef__":true,"id":40453},"rootNode":{"__isSmartRef__":true,"id":5409},"prevScroll":[0,0],"levels":[[{"__isSmartRef__":true,"id":5409}],[{"__isSmartRef__":true,"id":5937},{"__isSmartRef__":true,"id":12516},{"__isSmartRef__":true,"id":17805},{"__isSmartRef__":true,"id":25287},{"__isSmartRef__":true,"id":33285}],[{"__isSmartRef__":true,"id":5961},{"__isSmartRef__":true,"id":7122},{"__isSmartRef__":true,"id":7896},{"__isSmartRef__":true,"id":8928},{"__isSmartRef__":true,"id":9702},{"__isSmartRef__":true,"id":10605},{"__isSmartRef__":true,"id":11895},{"__isSmartRef__":true,"id":12540},{"__isSmartRef__":true,"id":13572},{"__isSmartRef__":true,"id":14604},{"__isSmartRef__":true,"id":15507},{"__isSmartRef__":true,"id":16797},{"__isSmartRef__":true,"id":17829},{"__isSmartRef__":true,"id":18861},{"__isSmartRef__":true,"id":20022},{"__isSmartRef__":true,"id":21312},{"__isSmartRef__":true,"id":22602},{"__isSmartRef__":true,"id":23892},{"__isSmartRef__":true,"id":25311},{"__isSmartRef__":true,"id":26601},{"__isSmartRef__":true,"id":27762},{"__isSmartRef__":true,"id":29052},{"__isSmartRef__":true,"id":29826},{"__isSmartRef__":true,"id":30600},{"__isSmartRef__":true,"id":31890},{"__isSmartRef__":true,"id":33309},{"__isSmartRef__":true,"id":33954},{"__isSmartRef__":true,"id":34986},{"__isSmartRef__":true,"id":36018},{"__isSmartRef__":true,"id":37179}],[{"__isSmartRef__":true,"id":5985},{"__isSmartRef__":true,"id":6114},{"__isSmartRef__":true,"id":6243},{"__isSmartRef__":true,"id":6372},{"__isSmartRef__":true,"id":6501},{"__isSmartRef__":true,"id":6630},{"__isSmartRef__":true,"id":6759},{"__isSmartRef__":true,"id":6888},{"__isSmartRef__":true,"id":7146},{"__isSmartRef__":true,"id":7275},{"__isSmartRef__":true,"id":7404},{"__isSmartRef__":true,"id":7533},{"__isSmartRef__":true,"id":7662},{"__isSmartRef__":true,"id":7920},{"__isSmartRef__":true,"id":8049},{"__isSmartRef__":true,"id":8178},{"__isSmartRef__":true,"id":8307},{"__isSmartRef__":true,"id":8436},{"__isSmartRef__":true,"id":8565},{"__isSmartRef__":true,"id":8694},{"__isSmartRef__":true,"id":8952},{"__isSmartRef__":true,"id":9081},{"__isSmartRef__":true,"id":9210},{"__isSmartRef__":true,"id":9339},{"__isSmartRef__":true,"id":9468},{"__isSmartRef__":true,"id":9726},{"__isSmartRef__":true,"id":9855},{"__isSmartRef__":true,"id":9984},{"__isSmartRef__":true,"id":10113},{"__isSmartRef__":true,"id":10242},{"__isSmartRef__":true,"id":10371},{"__isSmartRef__":true,"id":10629},{"__isSmartRef__":true,"id":10758},{"__isSmartRef__":true,"id":10887},{"__isSmartRef__":true,"id":11016},{"__isSmartRef__":true,"id":11145},{"__isSmartRef__":true,"id":11274},{"__isSmartRef__":true,"id":11403},{"__isSmartRef__":true,"id":11532},{"__isSmartRef__":true,"id":11661},{"__isSmartRef__":true,"id":11919},{"__isSmartRef__":true,"id":12048},{"__isSmartRef__":true,"id":12177},{"__isSmartRef__":true,"id":12564},{"__isSmartRef__":true,"id":12693},{"__isSmartRef__":true,"id":12822},{"__isSmartRef__":true,"id":12951},{"__isSmartRef__":true,"id":13080},{"__isSmartRef__":true,"id":13209},{"__isSmartRef__":true,"id":13338},{"__isSmartRef__":true,"id":13596},{"__isSmartRef__":true,"id":13725},{"__isSmartRef__":true,"id":13854},{"__isSmartRef__":true,"id":13983},{"__isSmartRef__":true,"id":14112},{"__isSmartRef__":true,"id":14241},{"__isSmartRef__":true,"id":14370},{"__isSmartRef__":true,"id":14628},{"__isSmartRef__":true,"id":14757},{"__isSmartRef__":true,"id":14886},{"__isSmartRef__":true,"id":15015},{"__isSmartRef__":true,"id":15144},{"__isSmartRef__":true,"id":15273},{"__isSmartRef__":true,"id":15531},{"__isSmartRef__":true,"id":15660},{"__isSmartRef__":true,"id":15789},{"__isSmartRef__":true,"id":15918},{"__isSmartRef__":true,"id":16047},{"__isSmartRef__":true,"id":16176},{"__isSmartRef__":true,"id":16305},{"__isSmartRef__":true,"id":16434},{"__isSmartRef__":true,"id":16563},{"__isSmartRef__":true,"id":16821},{"__isSmartRef__":true,"id":16950},{"__isSmartRef__":true,"id":17079},{"__isSmartRef__":true,"id":17208},{"__isSmartRef__":true,"id":17337},{"__isSmartRef__":true,"id":17466},{"__isSmartRef__":true,"id":17853},{"__isSmartRef__":true,"id":17982},{"__isSmartRef__":true,"id":18111},{"__isSmartRef__":true,"id":18240},{"__isSmartRef__":true,"id":18369},{"__isSmartRef__":true,"id":18498},{"__isSmartRef__":true,"id":18627},{"__isSmartRef__":true,"id":18885},{"__isSmartRef__":true,"id":19014},{"__isSmartRef__":true,"id":19143},{"__isSmartRef__":true,"id":19272},{"__isSmartRef__":true,"id":19401},{"__isSmartRef__":true,"id":19530},{"__isSmartRef__":true,"id":19659},{"__isSmartRef__":true,"id":19788},{"__isSmartRef__":true,"id":20046},{"__isSmartRef__":true,"id":20175},{"__isSmartRef__":true,"id":20304},{"__isSmartRef__":true,"id":20433},{"__isSmartRef__":true,"id":20562},{"__isSmartRef__":true,"id":20691},{"__isSmartRef__":true,"id":20820},{"__isSmartRef__":true,"id":20949},{"__isSmartRef__":true,"id":21078},{"__isSmartRef__":true,"id":21336},{"__isSmartRef__":true,"id":21465},{"__isSmartRef__":true,"id":21594},{"__isSmartRef__":true,"id":21723},{"__isSmartRef__":true,"id":21852},{"__isSmartRef__":true,"id":21981},{"__isSmartRef__":true,"id":22110},{"__isSmartRef__":true,"id":22239},{"__isSmartRef__":true,"id":22368},{"__isSmartRef__":true,"id":22626},{"__isSmartRef__":true,"id":22755},{"__isSmartRef__":true,"id":22884},{"__isSmartRef__":true,"id":23013},{"__isSmartRef__":true,"id":23142},{"__isSmartRef__":true,"id":23271},{"__isSmartRef__":true,"id":23400},{"__isSmartRef__":true,"id":23529},{"__isSmartRef__":true,"id":23658},{"__isSmartRef__":true,"id":23916},{"__isSmartRef__":true,"id":24045},{"__isSmartRef__":true,"id":24174},{"__isSmartRef__":true,"id":24303},{"__isSmartRef__":true,"id":24432},{"__isSmartRef__":true,"id":24561},{"__isSmartRef__":true,"id":24690},{"__isSmartRef__":true,"id":24819},{"__isSmartRef__":true,"id":24948},{"__isSmartRef__":true,"id":25335},{"__isSmartRef__":true,"id":25464},{"__isSmartRef__":true,"id":25593},{"__isSmartRef__":true,"id":25722},{"__isSmartRef__":true,"id":25851},{"__isSmartRef__":true,"id":25980},{"__isSmartRef__":true,"id":26109},{"__isSmartRef__":true,"id":26238},{"__isSmartRef__":true,"id":26367},{"__isSmartRef__":true,"id":26625},{"__isSmartRef__":true,"id":26754},{"__isSmartRef__":true,"id":26883},{"__isSmartRef__":true,"id":27012},{"__isSmartRef__":true,"id":27141},{"__isSmartRef__":true,"id":27270},{"__isSmartRef__":true,"id":27399},{"__isSmartRef__":true,"id":27528},{"__isSmartRef__":true,"id":27786},{"__isSmartRef__":true,"id":27915},{"__isSmartRef__":true,"id":28044},{"__isSmartRef__":true,"id":28173},{"__isSmartRef__":true,"id":28302},{"__isSmartRef__":true,"id":28431},{"__isSmartRef__":true,"id":28560},{"__isSmartRef__":true,"id":28689},{"__isSmartRef__":true,"id":28818},{"__isSmartRef__":true,"id":29076},{"__isSmartRef__":true,"id":29205},{"__isSmartRef__":true,"id":29334},{"__isSmartRef__":true,"id":29463},{"__isSmartRef__":true,"id":29592},{"__isSmartRef__":true,"id":29850},{"__isSmartRef__":true,"id":29979},{"__isSmartRef__":true,"id":30108},{"__isSmartRef__":true,"id":30237},{"__isSmartRef__":true,"id":30366},{"__isSmartRef__":true,"id":30624},{"__isSmartRef__":true,"id":30753},{"__isSmartRef__":true,"id":30882},{"__isSmartRef__":true,"id":31011},{"__isSmartRef__":true,"id":31140},{"__isSmartRef__":true,"id":31269},{"__isSmartRef__":true,"id":31398},{"__isSmartRef__":true,"id":31527},{"__isSmartRef__":true,"id":31656},{"__isSmartRef__":true,"id":31914},{"__isSmartRef__":true,"id":32043},{"__isSmartRef__":true,"id":32172},{"__isSmartRef__":true,"id":32301},{"__isSmartRef__":true,"id":32430},{"__isSmartRef__":true,"id":32559},{"__isSmartRef__":true,"id":32688},{"__isSmartRef__":true,"id":32817},{"__isSmartRef__":true,"id":32946},{"__isSmartRef__":true,"id":33333},{"__isSmartRef__":true,"id":33462},{"__isSmartRef__":true,"id":33591},{"__isSmartRef__":true,"id":33720},{"__isSmartRef__":true,"id":33978},{"__isSmartRef__":true,"id":34107},{"__isSmartRef__":true,"id":34236},{"__isSmartRef__":true,"id":34365},{"__isSmartRef__":true,"id":34494},{"__isSmartRef__":true,"id":34623},{"__isSmartRef__":true,"id":34752},{"__isSmartRef__":true,"id":35010},{"__isSmartRef__":true,"id":35139},{"__isSmartRef__":true,"id":35268},{"__isSmartRef__":true,"id":35397},{"__isSmartRef__":true,"id":35526},{"__isSmartRef__":true,"id":35655},{"__isSmartRef__":true,"id":35784},{"__isSmartRef__":true,"id":36042},{"__isSmartRef__":true,"id":36171},{"__isSmartRef__":true,"id":36300},{"__isSmartRef__":true,"id":36429},{"__isSmartRef__":true,"id":36558},{"__isSmartRef__":true,"id":36687},{"__isSmartRef__":true,"id":36816},{"__isSmartRef__":true,"id":36945},{"__isSmartRef__":true,"id":37203},{"__isSmartRef__":true,"id":37332},{"__isSmartRef__":true,"id":37461},{"__isSmartRef__":true,"id":37590},{"__isSmartRef__":true,"id":37719},{"__isSmartRef__":true,"id":37848},{"__isSmartRef__":true,"id":37977}]],"isBeingDragged":false,"abp":{"__isSmartRef__":true,"id":40454},"isCopyMorphRef":true,"morphRefId":1,"initNegMax":false,"_Rotation":0,"_Scale":1,"magnets":[{"__isSmartRef__":true,"id":40455},{"__isSmartRef__":true,"id":40456},{"__isSmartRef__":true,"id":40457},{"__isSmartRef__":true,"id":40458},{"__isSmartRef__":true,"id":40459},{"__isSmartRef__":true,"id":40460},{"__isSmartRef__":true,"id":40461},{"__isSmartRef__":true,"id":40462}],"attributeConnections":[{"__isSmartRef__":true,"id":40463},{"__isSmartRef__":true,"id":40555},{"__isSmartRef__":true,"id":40557},{"__isSmartRef__":true,"id":40559},{"__isSmartRef__":true,"id":40561}],"doNotSerialize":["$$_Position","$$_Scale","$$_Rotation","$$owner"],"doNotCopyProperties":["$$_Position","$$_Scale","$$_Rotation","$$owner"],"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":40573},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(-70.0,40.0)","distanceToDragEvent":"lively.pt(753.3,-12.7)"},"5409":{"submorphs":[{"__isSmartRef__":true,"id":5410}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5427},"id":"CCCC9440-E0DF-4F57-A6E4-7B3E043AB8E5","eventHandler":{"__isSmartRef__":true,"id":5428},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":5429},"name":"node1","partsBinMetaInfo":{"__isSmartRef__":true,"id":5430},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5433},"owner":{"__isSmartRef__":true,"id":5408},"childNodes":[{"__isSmartRef__":true,"id":5937},{"__isSmartRef__":true,"id":12516},{"__isSmartRef__":true,"id":17805},{"__isSmartRef__":true,"id":25287},{"__isSmartRef__":true,"id":33285}],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":38316},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(593.4,60.0)"},"5410":{"submorphs":[],"scripts":[],"id":"5B8EF2E1-FD7D-4EE0-A071-B01E89F1633B","shape":{"__isSmartRef__":true,"id":5411},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":5412},"textChunks":[{"__isSmartRef__":true,"id":5424}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":5426},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":5409},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"5411":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"5412":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":5413},{"__isSmartRef__":true,"id":5415},{"__isSmartRef__":true,"id":5417},{"__isSmartRef__":true,"id":5419},{"__isSmartRef__":true,"id":5421}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":5423},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"5413":{"date":{"__isSmartRef__":true,"id":5414},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"5414":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"5415":{"date":{"__isSmartRef__":true,"id":5416},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"5416":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"5417":{"date":{"__isSmartRef__":true,"id":5418},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"5418":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"5419":{"date":{"__isSmartRef__":true,"id":5420},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"5420":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"5421":{"date":{"__isSmartRef__":true,"id":5422},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"5422":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"5423":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"5424":{"style":{"__isSmartRef__":true,"id":5425},"morph":{"__isSmartRef__":true,"id":5410},"chunkOwner":{"__isSmartRef__":true,"id":5410},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5425":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5426":{"morph":{"__isSmartRef__":true,"id":5410},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5427":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"5428":{"morph":{"__isSmartRef__":true,"id":5409},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5429":{},"5430":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":5431}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"5431":{"date":{"__isSmartRef__":true,"id":5432},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"5432":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"5433":{"parent":null,"state":{"__isSmartRef__":true,"id":5434},"level":0,"childs":[{"__isSmartRef__":true,"id":5435},{"__isSmartRef__":true,"id":5537},{"__isSmartRef__":true,"id":5619},{"__isSmartRef__":true,"id":5735},{"__isSmartRef__":true,"id":5859}],"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5434":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","black","black","black","black"],[null,null,null,"black"],[],[]],"player":"white","nextPlayer":"black","valid":false,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5435":{"parent":{"__isSmartRef__":true,"id":5433},"state":{"__isSmartRef__":true,"id":5436},"level":1,"childs":[{"__isSmartRef__":true,"id":5437},{"__isSmartRef__":true,"id":5455},{"__isSmartRef__":true,"id":5467},{"__isSmartRef__":true,"id":5483},{"__isSmartRef__":true,"id":5495},{"__isSmartRef__":true,"id":5509},{"__isSmartRef__":true,"id":5529}],"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5436":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black","white","white","white"],[null,null,"black","black","black","black","black"],[null,null,null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5437":{"parent":{"__isSmartRef__":true,"id":5435},"state":{"__isSmartRef__":true,"id":5438},"level":2,"childs":[{"__isSmartRef__":true,"id":5439},{"__isSmartRef__":true,"id":5441},{"__isSmartRef__":true,"id":5443},{"__isSmartRef__":true,"id":5445},{"__isSmartRef__":true,"id":5447},{"__isSmartRef__":true,"id":5449},{"__isSmartRef__":true,"id":5451},{"__isSmartRef__":true,"id":5453}],"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5438":{"gameboard":[[null,null,null,null,"black"],[null,null,null,null,"black"],[null,null,null,null,"black"],[null,"black","white","white","black"],[null,null,"black","black","black","black","black"],[null,null,null,"black"],[],[]],"player":"white","nextPlayer":"black","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5439":{"parent":{"__isSmartRef__":true,"id":5437},"state":{"__isSmartRef__":true,"id":5440},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5440":{"gameboard":[[null,null,null,null,"black"],[null,null,null,null,"black","white"],[null,null,null,null,"white"],[null,"black","white","white","black"],[null,null,"black","black","black","black","black"],[null,null,null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5441":{"parent":{"__isSmartRef__":true,"id":5437},"state":{"__isSmartRef__":true,"id":5442},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5442":{"gameboard":[[null,null,null,null,"black"],[null,null,null,null,"black"],[null,null,null,null,"black"],["white","white","white","white","black"],[null,null,"black","black","black","black","black"],[null,null,null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5443":{"parent":{"__isSmartRef__":true,"id":5437},"state":{"__isSmartRef__":true,"id":5444},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5444":{"gameboard":[[null,null,null,null,"black"],[null,null,null,null,"black"],[null,null,null,null,"black"],[null,"black","white","white","white","white"],[null,null,"black","black","black","black","black"],[null,null,null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5445":{"parent":{"__isSmartRef__":true,"id":5437},"state":{"__isSmartRef__":true,"id":5446},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5446":{"gameboard":[[null,null,null,null,"black"],[null,null,null,null,"black"],[null,null,null,null,"black"],[null,"black","white","white","black"],[null,null,"white","black","black","black","black"],[null,"white",null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5447":{"parent":{"__isSmartRef__":true,"id":5437},"state":{"__isSmartRef__":true,"id":5448},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5448":{"gameboard":[[null,null,null,null,"black"],[null,null,null,null,"black"],[null,null,null,null,"black"],[null,"black","white","white","black"],[null,null,"white","black","black","black","black"],[null,null,"white","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5449":{"parent":{"__isSmartRef__":true,"id":5437},"state":{"__isSmartRef__":true,"id":5450},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5450":{"gameboard":[[null,null,null,null,"black"],[null,null,null,null,"black"],[null,null,null,null,"black"],[null,"black","white","white","black"],[null,null,"black","white","black","black","black"],[null,null,null,"black","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5451":{"parent":{"__isSmartRef__":true,"id":5437},"state":{"__isSmartRef__":true,"id":5452},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5452":{"gameboard":[[null,null,null,null,"black"],[null,null,null,null,"black"],[null,null,null,null,"black"],[null,"black","white","white","black"],[null,null,"black","black","white","black","black"],[null,null,null,"black",null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5453":{"parent":{"__isSmartRef__":true,"id":5437},"state":{"__isSmartRef__":true,"id":5454},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5454":{"gameboard":[[null,null,null,null,"black"],[null,null,null,null,"black"],[null,null,null,null,"black"],[null,"black","white","white","black"],[null,null,"black","white","black","black","black"],[null,null,null,"white"],[null,null,null,"white"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5455":{"parent":{"__isSmartRef__":true,"id":5435},"state":{"__isSmartRef__":true,"id":5456},"level":2,"childs":[{"__isSmartRef__":true,"id":5457},{"__isSmartRef__":true,"id":5459},{"__isSmartRef__":true,"id":5461},{"__isSmartRef__":true,"id":5463},{"__isSmartRef__":true,"id":5465}],"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5456":{"gameboard":[[],[null,null,null,null,"white","black"],[null,null,null,null,"black"],[null,"black","white","black","white"],[null,null,"black","black","black","black","black"],[null,null,null,"black"],[],[]],"player":"white","nextPlayer":"black","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5457":{"parent":{"__isSmartRef__":true,"id":5455},"state":{"__isSmartRef__":true,"id":5458},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5458":{"gameboard":[[],[null,null,null,null,"white","white","white"],[null,null,null,null,"black"],[null,"black","white","black","white"],[null,null,"black","black","black","black","black"],[null,null,null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5459":{"parent":{"__isSmartRef__":true,"id":5455},"state":{"__isSmartRef__":true,"id":5460},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5460":{"gameboard":[[],[null,null,null,null,"white","black"],[null,null,null,null,"black"],["white","white","white","black","white"],[null,null,"black","black","black","black","black"],[null,null,null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5461":{"parent":{"__isSmartRef__":true,"id":5455},"state":{"__isSmartRef__":true,"id":5462},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5462":{"gameboard":[[],[null,null,null,null,"white","black"],[null,null,null,null,"black"],[null,"black","white","black","white"],[null,null,"white","white","black","black","black"],[null,null,"white","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5463":{"parent":{"__isSmartRef__":true,"id":5455},"state":{"__isSmartRef__":true,"id":5464},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5464":{"gameboard":[[],[null,null,null,null,"white","black"],[null,null,null,null,"black"],[null,"black","white","black","white"],[null,null,"black","white","white","black","black"],[null,null,null,"black","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5465":{"parent":{"__isSmartRef__":true,"id":5455},"state":{"__isSmartRef__":true,"id":5466},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5466":{"gameboard":[[],[null,null,null,null,"white","black"],[null,null,null,null,"black"],[null,"black","white","black","white"],[null,null,"black","black","black","white","black"],[null,null,null,"black",null,null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5467":{"parent":{"__isSmartRef__":true,"id":5435},"state":{"__isSmartRef__":true,"id":5468},"level":2,"childs":[{"__isSmartRef__":true,"id":5469},{"__isSmartRef__":true,"id":5471},{"__isSmartRef__":true,"id":5473},{"__isSmartRef__":true,"id":5475},{"__isSmartRef__":true,"id":5477},{"__isSmartRef__":true,"id":5479},{"__isSmartRef__":true,"id":5481}],"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5468":{"gameboard":[[],[null,null,null,null,"white"],[null,"black",null,null,"white"],[null,"black","black","white","white"],[null,null,"black","black","black","black","black"],[null,null,null,"black"],[],[]],"player":"white","nextPlayer":"black","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5469":{"parent":{"__isSmartRef__":true,"id":5467},"state":{"__isSmartRef__":true,"id":5470},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5470":{"gameboard":[[],[null,null,null,null,"white"],[null,"black",null,null,"white"],["white","white","white","white","white"],[null,null,"black","black","black","black","black"],[null,null,null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5471":{"parent":{"__isSmartRef__":true,"id":5467},"state":{"__isSmartRef__":true,"id":5472},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5472":{"gameboard":[[],[null,null,null,null,"white"],[null,"black",null,null,"white"],[null,"black","black","white","white"],[null,null,"white","black","black","black","black"],[null,"white",null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5473":{"parent":{"__isSmartRef__":true,"id":5467},"state":{"__isSmartRef__":true,"id":5474},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5474":{"gameboard":[[],[null,null,null,null,"white"],[null,"black",null,null,"white"],[null,"black","black","white","white"],[null,null,"black","white","black","black","black"],[null,null,"white","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5475":{"parent":{"__isSmartRef__":true,"id":5467},"state":{"__isSmartRef__":true,"id":5476},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5476":{"gameboard":[[],[null,null,null,null,"white"],[null,"black",null,null,"white"],[null,"black","black","white","white"],[null,null,"black","black","white","black","black"],[null,null,null,"black","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5477":{"parent":{"__isSmartRef__":true,"id":5467},"state":{"__isSmartRef__":true,"id":5478},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5478":{"gameboard":[[],[null,null,null,null,"white"],[null,"black",null,null,"white"],[null,"black","black","white","white"],[null,null,"black","black","white","black","black"],[null,null,null,"black",null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5479":{"parent":{"__isSmartRef__":true,"id":5467},"state":{"__isSmartRef__":true,"id":5480},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5480":{"gameboard":[[],[null,null,null,null,"white"],[null,"black",null,null,"white"],[null,"black","black","white","white"],[null,null,"black","black","black","white","black"],[null,null,null,"black",null,null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5481":{"parent":{"__isSmartRef__":true,"id":5467},"state":{"__isSmartRef__":true,"id":5482},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5482":{"gameboard":[[],[null,null,null,null,"white"],[null,"black",null,null,"white"],[null,"black","black","white","white"],[null,null,"black","white","black","black","black"],[null,null,null,"white"],[null,null,null,"white"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5483":{"parent":{"__isSmartRef__":true,"id":5435},"state":{"__isSmartRef__":true,"id":5484},"level":2,"childs":[{"__isSmartRef__":true,"id":5485},{"__isSmartRef__":true,"id":5487},{"__isSmartRef__":true,"id":5489},{"__isSmartRef__":true,"id":5491},{"__isSmartRef__":true,"id":5493}],"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5484":{"gameboard":[[],[null,null,null,null,"white"],[null,null,"black",null,"white"],[null,"black","black","black","white"],[null,null,"black","black","black","black","black"],[null,null,null,"black"],[],[]],"player":"white","nextPlayer":"black","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5485":{"parent":{"__isSmartRef__":true,"id":5483},"state":{"__isSmartRef__":true,"id":5486},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5486":{"gameboard":[[],[null,null,null,null,"white"],[null,null,"black",null,"white"],["white","white","white","white","white"],[null,null,"black","black","black","black","black"],[null,null,null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5487":{"parent":{"__isSmartRef__":true,"id":5483},"state":{"__isSmartRef__":true,"id":5488},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5488":{"gameboard":[[],[null,null,null,null,"white"],[null,null,"black",null,"white"],[null,"black","black","white","white"],[null,null,"white","black","black","black","black"],[null,"white",null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5489":{"parent":{"__isSmartRef__":true,"id":5483},"state":{"__isSmartRef__":true,"id":5490},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5490":{"gameboard":[[],[null,null,null,null,"white"],[null,null,"black",null,"white"],[null,"black","black","black","white"],[null,null,"black","white","black","black","black"],[null,null,"white","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5491":{"parent":{"__isSmartRef__":true,"id":5483},"state":{"__isSmartRef__":true,"id":5492},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5492":{"gameboard":[[],[null,null,null,null,"white"],[null,null,"black",null,"white"],[null,"black","black","black","white"],[null,null,"black","black","white","black","black"],[null,null,null,"black","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5493":{"parent":{"__isSmartRef__":true,"id":5483},"state":{"__isSmartRef__":true,"id":5494},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5494":{"gameboard":[[],[null,null,null,null,"white"],[null,null,"black",null,"white"],[null,"black","black","black","white"],[null,null,"black","black","black","white","black"],[null,null,null,"black",null,null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5495":{"parent":{"__isSmartRef__":true,"id":5435},"state":{"__isSmartRef__":true,"id":5496},"level":2,"childs":[{"__isSmartRef__":true,"id":5497},{"__isSmartRef__":true,"id":5499},{"__isSmartRef__":true,"id":5501},{"__isSmartRef__":true,"id":5503},{"__isSmartRef__":true,"id":5505},{"__isSmartRef__":true,"id":5507}],"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5496":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,"black","white"],[null,"black","white","black","black"],[null,null,"black","black","black","black","black"],[null,null,null,"black"],[],[]],"player":"white","nextPlayer":"black","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5497":{"parent":{"__isSmartRef__":true,"id":5495},"state":{"__isSmartRef__":true,"id":5498},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5498":{"gameboard":[[],[null,null,null,null,"white"],[null,null,"white","white","white"],[null,"black","white","black","black"],[null,null,"black","black","black","black","black"],[null,null,null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5499":{"parent":{"__isSmartRef__":true,"id":5495},"state":{"__isSmartRef__":true,"id":5500},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5500":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,"black","white"],["white","white","white","black","black"],[null,null,"black","black","black","black","black"],[null,null,null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5501":{"parent":{"__isSmartRef__":true,"id":5495},"state":{"__isSmartRef__":true,"id":5502},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5502":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,"black","white"],[null,"black","white","white","white","white"],[null,null,"black","black","black","black","black"],[null,null,null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5503":{"parent":{"__isSmartRef__":true,"id":5495},"state":{"__isSmartRef__":true,"id":5504},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5504":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,"black","white"],[null,"black","white","white","black"],[null,null,"white","black","black","black","black"],[null,"white",null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5505":{"parent":{"__isSmartRef__":true,"id":5495},"state":{"__isSmartRef__":true,"id":5506},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5506":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,"black","white"],[null,"black","white","black","black"],[null,null,"white","black","black","black","black"],[null,null,"white","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5507":{"parent":{"__isSmartRef__":true,"id":5495},"state":{"__isSmartRef__":true,"id":5508},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5508":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,"black","white"],[null,"black","white","black","white"],[null,null,"black","white","white","black","black"],[null,null,null,"black","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5509":{"parent":{"__isSmartRef__":true,"id":5435},"state":{"__isSmartRef__":true,"id":5510},"level":2,"childs":[{"__isSmartRef__":true,"id":5511},{"__isSmartRef__":true,"id":5513},{"__isSmartRef__":true,"id":5515},{"__isSmartRef__":true,"id":5517},{"__isSmartRef__":true,"id":5519},{"__isSmartRef__":true,"id":5521},{"__isSmartRef__":true,"id":5523},{"__isSmartRef__":true,"id":5525},{"__isSmartRef__":true,"id":5527}],"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5510":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white","black"],[null,"black","white","white","black"],[null,null,"black","black","black","black","black"],[null,null,null,"black"],[],[]],"player":"white","nextPlayer":"black","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5511":{"parent":{"__isSmartRef__":true,"id":5509},"state":{"__isSmartRef__":true,"id":5512},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5512":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white","white","white"],[null,"black","white","white","black"],[null,null,"black","black","black","black","black"],[null,null,null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5513":{"parent":{"__isSmartRef__":true,"id":5509},"state":{"__isSmartRef__":true,"id":5514},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5514":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white","black"],["white","white","white","white","black"],[null,null,"black","black","black","black","black"],[null,null,null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5515":{"parent":{"__isSmartRef__":true,"id":5509},"state":{"__isSmartRef__":true,"id":5516},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5516":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white","black"],[null,"black","white","white","white","white"],[null,null,"black","black","black","black","black"],[null,null,null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5517":{"parent":{"__isSmartRef__":true,"id":5509},"state":{"__isSmartRef__":true,"id":5518},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5518":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white","white"],[null,"black","white","white","black",null,"white"],[null,null,"black","black","black","black","black"],[null,null,null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5519":{"parent":{"__isSmartRef__":true,"id":5509},"state":{"__isSmartRef__":true,"id":5520},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5520":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white","black"],[null,"black","white","white","black"],[null,null,"white","black","black","black","black"],[null,"white",null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5521":{"parent":{"__isSmartRef__":true,"id":5509},"state":{"__isSmartRef__":true,"id":5522},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5522":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white","black"],[null,"black","white","white","black"],[null,null,"white","black","black","black","black"],[null,null,"white","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5523":{"parent":{"__isSmartRef__":true,"id":5509},"state":{"__isSmartRef__":true,"id":5524},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5524":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white","black"],[null,"black","white","white","white"],[null,null,"black","white","white","black","black"],[null,null,null,"black","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5525":{"parent":{"__isSmartRef__":true,"id":5509},"state":{"__isSmartRef__":true,"id":5526},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5526":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white","black"],[null,"black","white","white","black"],[null,null,"black","black","white","black","black"],[null,null,null,"black",null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5527":{"parent":{"__isSmartRef__":true,"id":5509},"state":{"__isSmartRef__":true,"id":5528},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5528":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white","black"],[null,"black","white","white","black"],[null,null,"black","white","black","black","black"],[null,null,null,"white"],[null,null,null,"white"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5529":{"parent":{"__isSmartRef__":true,"id":5435},"state":{"__isSmartRef__":true,"id":5530},"level":2,"childs":[{"__isSmartRef__":true,"id":5531},{"__isSmartRef__":true,"id":5533},{"__isSmartRef__":true,"id":5535}],"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5530":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black","black","black","black","black"],[null,null,"black","black","black","black","black"],[null,null,null,"black"],[],[]],"player":"white","nextPlayer":"black","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5531":{"parent":{"__isSmartRef__":true,"id":5529},"state":{"__isSmartRef__":true,"id":5532},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5532":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black","black","white","black","black"],[null,null,"white","black","black","black","black"],[null,"white",null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5533":{"parent":{"__isSmartRef__":true,"id":5529},"state":{"__isSmartRef__":true,"id":5534},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5534":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black","black","black","white","black"],[null,null,"black","black","white","black","black"],[null,null,null,"black","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5535":{"parent":{"__isSmartRef__":true,"id":5529},"state":{"__isSmartRef__":true,"id":5536},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5536":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black","black","black","black","white"],[null,null,"black","black","black","black","white"],[null,null,null,"black",null,null,null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5537":{"parent":{"__isSmartRef__":true,"id":5433},"state":{"__isSmartRef__":true,"id":5538},"level":1,"childs":[{"__isSmartRef__":true,"id":5539},{"__isSmartRef__":true,"id":5555},{"__isSmartRef__":true,"id":5571},{"__isSmartRef__":true,"id":5585},{"__isSmartRef__":true,"id":5605}],"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5538":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"white","white"],[null,null,"white","black","black","black","black"],[null,"white",null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5539":{"parent":{"__isSmartRef__":true,"id":5537},"state":{"__isSmartRef__":true,"id":5540},"level":2,"childs":[{"__isSmartRef__":true,"id":5541},{"__isSmartRef__":true,"id":5543},{"__isSmartRef__":true,"id":5545},{"__isSmartRef__":true,"id":5547},{"__isSmartRef__":true,"id":5549},{"__isSmartRef__":true,"id":5551},{"__isSmartRef__":true,"id":5553}],"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5540":{"gameboard":[[null,null,null,null,"black"],[null,null,null,null,"black"],[null,null,null,null,"black"],[null,"black",null,"white","black"],[null,null,"white","black","black","black","black"],[null,"white",null,"black"],[],[]],"player":"white","nextPlayer":"black","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5541":{"parent":{"__isSmartRef__":true,"id":5539},"state":{"__isSmartRef__":true,"id":5542},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5542":{"gameboard":[[null,null,null,null,"black"],[null,null,null,null,"black","white"],[null,null,null,null,"white"],[null,"black",null,"white","black"],[null,null,"white","black","black","black","black"],[null,"white",null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5543":{"parent":{"__isSmartRef__":true,"id":5539},"state":{"__isSmartRef__":true,"id":5544},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5544":{"gameboard":[[null,null,null,null,"black"],[null,null,null,null,"black"],["white",null,null,null,"black"],[null,"white",null,"white","black"],[null,null,"white","black","black","black","black"],[null,"white",null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5545":{"parent":{"__isSmartRef__":true,"id":5539},"state":{"__isSmartRef__":true,"id":5546},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5546":{"gameboard":[[null,null,null,null,"black"],[null,null,null,null,"black"],[null,null,null,null,"black"],[null,"black",null,"white","white","white"],[null,null,"white","black","black","black","black"],[null,"white",null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5547":{"parent":{"__isSmartRef__":true,"id":5539},"state":{"__isSmartRef__":true,"id":5548},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5548":{"gameboard":[[null,null,null,null,"black"],[null,null,null,null,"black"],[null,null,null,null,"black"],[null,"black",null,"white","black"],[null,null,"white","white","white","white","white","white"],[null,"white",null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5549":{"parent":{"__isSmartRef__":true,"id":5539},"state":{"__isSmartRef__":true,"id":5550},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5550":{"gameboard":[[null,null,null,null,"black"],[null,null,null,null,"black"],[null,null,null,null,"black"],[null,"black",null,"white","black"],[null,null,"white","black","white","black","black"],[null,"white",null,"black",null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5551":{"parent":{"__isSmartRef__":true,"id":5539},"state":{"__isSmartRef__":true,"id":5552},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5552":{"gameboard":[[null,null,null,null,"black"],[null,null,null,null,"black"],[null,null,null,null,"black"],[null,"black",null,"white","black"],[null,null,"white","white","black","black","black"],[null,"white",null,"white"],[null,null,null,"white"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5553":{"parent":{"__isSmartRef__":true,"id":5539},"state":{"__isSmartRef__":true,"id":5554},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5554":{"gameboard":[[null,null,null,null,"black"],[null,null,null,null,"black"],[null,null,null,null,"black"],[null,"black",null,"white","black"],[null,null,"white","black","black","black","black"],[null,"white",null,"white"],[null,null,null,null,"white"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5555":{"parent":{"__isSmartRef__":true,"id":5537},"state":{"__isSmartRef__":true,"id":5556},"level":2,"childs":[{"__isSmartRef__":true,"id":5557},{"__isSmartRef__":true,"id":5559},{"__isSmartRef__":true,"id":5561},{"__isSmartRef__":true,"id":5563},{"__isSmartRef__":true,"id":5565},{"__isSmartRef__":true,"id":5567},{"__isSmartRef__":true,"id":5569}],"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5556":{"gameboard":[[],[null,null,null,null,"white"],[null,null,"black",null,"white"],[null,"black",null,"black","white"],[null,null,"white","black","black","black","black"],[null,"white",null,"black"],[],[]],"player":"white","nextPlayer":"black","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5557":{"parent":{"__isSmartRef__":true,"id":5555},"state":{"__isSmartRef__":true,"id":5558},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5558":{"gameboard":[[],[null,null,null,null,"white"],["white",null,"black",null,"white"],[null,"white",null,"black","white"],[null,null,"white","black","black","black","black"],[null,"white",null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5559":{"parent":{"__isSmartRef__":true,"id":5555},"state":{"__isSmartRef__":true,"id":5560},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5560":{"gameboard":[[],[null,null,null,null,"white"],[null,null,"black",null,"white"],[null,"black","white","white","white"],[null,null,"white","black","black","black","black"],[null,"white",null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5561":{"parent":{"__isSmartRef__":true,"id":5555},"state":{"__isSmartRef__":true,"id":5562},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5562":{"gameboard":[[],[null,null,null,null,"white"],[null,null,"black",null,"white"],[null,"black",null,"black","white"],[null,null,"white","white","white","white","white","white"],[null,"white",null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5563":{"parent":{"__isSmartRef__":true,"id":5555},"state":{"__isSmartRef__":true,"id":5564},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5564":{"gameboard":[[],[null,null,null,null,"white"],[null,null,"black",null,"white"],[null,"black",null,"black","white"],[null,null,"white","white","black","black","black"],[null,"white","white","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5565":{"parent":{"__isSmartRef__":true,"id":5555},"state":{"__isSmartRef__":true,"id":5566},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5566":{"gameboard":[[],[null,null,null,null,"white"],[null,null,"black",null,"white"],[null,"black",null,"black","white"],[null,null,"white","black","white","black","black"],[null,"white",null,"black","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5567":{"parent":{"__isSmartRef__":true,"id":5555},"state":{"__isSmartRef__":true,"id":5568},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5568":{"gameboard":[[],[null,null,null,null,"white"],[null,null,"black",null,"white"],[null,"black",null,"black","white"],[null,null,"white","black","black","white","black"],[null,"white",null,"black",null,null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5569":{"parent":{"__isSmartRef__":true,"id":5555},"state":{"__isSmartRef__":true,"id":5570},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5570":{"gameboard":[[],[null,null,null,null,"white"],[null,null,"black",null,"white"],[null,"black",null,"black","white"],[null,null,"white","black","black","black","black"],[null,"white",null,"white"],[null,null,null,null,"white"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5571":{"parent":{"__isSmartRef__":true,"id":5537},"state":{"__isSmartRef__":true,"id":5572},"level":2,"childs":[{"__isSmartRef__":true,"id":5573},{"__isSmartRef__":true,"id":5575},{"__isSmartRef__":true,"id":5577},{"__isSmartRef__":true,"id":5579},{"__isSmartRef__":true,"id":5581},{"__isSmartRef__":true,"id":5583}],"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5572":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,"black","white"],[null,"black",null,"black","black"],[null,null,"white","black","black","black","black"],[null,"white",null,"black"],[],[]],"player":"white","nextPlayer":"black","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5573":{"parent":{"__isSmartRef__":true,"id":5571},"state":{"__isSmartRef__":true,"id":5574},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5574":{"gameboard":[[],[null,null,null,null,"white"],["white",null,null,"black","white"],[null,"white",null,"black","black"],[null,null,"white","black","black","black","black"],[null,"white",null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5575":{"parent":{"__isSmartRef__":true,"id":5571},"state":{"__isSmartRef__":true,"id":5576},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5576":{"gameboard":[[],[null,null,null,null,"white"],[null,null,"white","white","white"],[null,"black",null,"black","black"],[null,null,"white","black","black","black","black"],[null,"white",null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5577":{"parent":{"__isSmartRef__":true,"id":5571},"state":{"__isSmartRef__":true,"id":5578},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5578":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,"white","white"],[null,"black","white","black","black"],[null,null,"white","black","black","black","black"],[null,"white",null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5579":{"parent":{"__isSmartRef__":true,"id":5571},"state":{"__isSmartRef__":true,"id":5580},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5580":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,"black","white"],[null,"black",null,"black","black"],[null,null,"white","white","white","white","white","white"],[null,"white",null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5581":{"parent":{"__isSmartRef__":true,"id":5571},"state":{"__isSmartRef__":true,"id":5582},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5582":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,"black","white"],[null,"black",null,"black","white"],[null,null,"white","black","white","black","black"],[null,"white",null,"black","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5583":{"parent":{"__isSmartRef__":true,"id":5571},"state":{"__isSmartRef__":true,"id":5584},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5584":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,"black","white"],[null,"black",null,"black","black"],[null,null,"white","black","black","black","black"],[null,"white",null,"white"],[null,null,null,null,"white"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5585":{"parent":{"__isSmartRef__":true,"id":5537},"state":{"__isSmartRef__":true,"id":5586},"level":2,"childs":[{"__isSmartRef__":true,"id":5587},{"__isSmartRef__":true,"id":5589},{"__isSmartRef__":true,"id":5591},{"__isSmartRef__":true,"id":5593},{"__isSmartRef__":true,"id":5595},{"__isSmartRef__":true,"id":5597},{"__isSmartRef__":true,"id":5599},{"__isSmartRef__":true,"id":5601},{"__isSmartRef__":true,"id":5603}],"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5586":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white","black"],[null,"black",null,"white","black"],[null,null,"white","black","black","black","black"],[null,"white",null,"black"],[],[]],"player":"white","nextPlayer":"black","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5587":{"parent":{"__isSmartRef__":true,"id":5585},"state":{"__isSmartRef__":true,"id":5588},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5588":{"gameboard":[[],[null,null,null,null,"white"],["white",null,null,null,"white","black"],[null,"white",null,"white","black"],[null,null,"white","black","black","black","black"],[null,"white",null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5589":{"parent":{"__isSmartRef__":true,"id":5585},"state":{"__isSmartRef__":true,"id":5590},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5590":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white","white","white"],[null,"black",null,"white","black"],[null,null,"white","black","black","black","black"],[null,"white",null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5591":{"parent":{"__isSmartRef__":true,"id":5585},"state":{"__isSmartRef__":true,"id":5592},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5592":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white","black"],[null,"black",null,"white","white","white"],[null,null,"white","black","black","black","black"],[null,"white",null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5593":{"parent":{"__isSmartRef__":true,"id":5585},"state":{"__isSmartRef__":true,"id":5594},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5594":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white","white"],[null,"black",null,"white","black",null,"white"],[null,null,"white","black","black","black","black"],[null,"white",null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5595":{"parent":{"__isSmartRef__":true,"id":5585},"state":{"__isSmartRef__":true,"id":5596},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5596":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white","black"],[null,"black",null,"white","black"],[null,null,"white","white","white","white","white","white"],[null,"white",null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5597":{"parent":{"__isSmartRef__":true,"id":5585},"state":{"__isSmartRef__":true,"id":5598},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5598":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white","black"],[null,"black",null,"white","white"],[null,null,"white","black","white","black","black"],[null,"white",null,"black","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5599":{"parent":{"__isSmartRef__":true,"id":5585},"state":{"__isSmartRef__":true,"id":5600},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5600":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white","black"],[null,"black",null,"white","black"],[null,null,"white","black","white","black","black"],[null,"white",null,"black",null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5601":{"parent":{"__isSmartRef__":true,"id":5585},"state":{"__isSmartRef__":true,"id":5602},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5602":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white","black"],[null,"black",null,"white","black"],[null,null,"white","white","black","black","black"],[null,"white",null,"white"],[null,null,null,"white"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5603":{"parent":{"__isSmartRef__":true,"id":5585},"state":{"__isSmartRef__":true,"id":5604},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5604":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white","black"],[null,"black",null,"white","black"],[null,null,"white","black","black","black","black"],[null,"white",null,"white"],[null,null,null,null,"white"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5605":{"parent":{"__isSmartRef__":true,"id":5537},"state":{"__isSmartRef__":true,"id":5606},"level":2,"childs":[{"__isSmartRef__":true,"id":5607},{"__isSmartRef__":true,"id":5609},{"__isSmartRef__":true,"id":5611},{"__isSmartRef__":true,"id":5613},{"__isSmartRef__":true,"id":5615},{"__isSmartRef__":true,"id":5617}],"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5606":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"white","white"],[null,"black","black","black","black","black","black"],[null,"white",null,"black"],[],[]],"player":"white","nextPlayer":"black","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5607":{"parent":{"__isSmartRef__":true,"id":5605},"state":{"__isSmartRef__":true,"id":5608},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5608":{"gameboard":[[],[null,null,null,null,"white"],[null,"white",null,null,"white"],[null,"white",null,"white","white"],[null,"white","black","black","black","black","black"],[null,"white",null,"black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5609":{"parent":{"__isSmartRef__":true,"id":5605},"state":{"__isSmartRef__":true,"id":5610},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5610":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"white","white"],[null,"black","black","white","black","black","black"],[null,"white","white","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5611":{"parent":{"__isSmartRef__":true,"id":5605},"state":{"__isSmartRef__":true,"id":5612},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5612":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"white","white"],[null,"black","black","black","white","black","black"],[null,"white",null,"black","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5613":{"parent":{"__isSmartRef__":true,"id":5605},"state":{"__isSmartRef__":true,"id":5614},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5614":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"white","white"],[null,"black","black","black","white","black","black"],[null,"white",null,"black",null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5615":{"parent":{"__isSmartRef__":true,"id":5605},"state":{"__isSmartRef__":true,"id":5616},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5616":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"white","white"],[null,"black","black","black","black","white","black"],[null,"white",null,"black",null,null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5617":{"parent":{"__isSmartRef__":true,"id":5605},"state":{"__isSmartRef__":true,"id":5618},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5618":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"white","white"],[null,"black","black","white","black","black","black"],[null,"white",null,"white"],[null,null,null,"white"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5619":{"parent":{"__isSmartRef__":true,"id":5433},"state":{"__isSmartRef__":true,"id":5620},"level":1,"childs":[{"__isSmartRef__":true,"id":5621},{"__isSmartRef__":true,"id":5637},{"__isSmartRef__":true,"id":5655},{"__isSmartRef__":true,"id":5675},{"__isSmartRef__":true,"id":5695},{"__isSmartRef__":true,"id":5715}],"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5620":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","white","black","black","black"],[null,null,"white","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5621":{"parent":{"__isSmartRef__":true,"id":5619},"state":{"__isSmartRef__":true,"id":5622},"level":2,"childs":[{"__isSmartRef__":true,"id":5623},{"__isSmartRef__":true,"id":5625},{"__isSmartRef__":true,"id":5627},{"__isSmartRef__":true,"id":5629},{"__isSmartRef__":true,"id":5631},{"__isSmartRef__":true,"id":5633},{"__isSmartRef__":true,"id":5635}],"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5622":{"gameboard":[[null,null,null,null,"black"],[null,null,null,null,"black"],[null,null,null,null,"black"],[null,"black",null,"black","black"],[null,null,"black","white","black","black","black"],[null,null,"white","black"],[],[]],"player":"white","nextPlayer":"black","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5623":{"parent":{"__isSmartRef__":true,"id":5621},"state":{"__isSmartRef__":true,"id":5624},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5624":{"gameboard":[[null,null,null,null,"black"],[null,null,null,null,"black"],[null,null,null,"white","black"],[null,"black",null,"white","black"],[null,null,"black","white","black","black","black"],[null,null,"white","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5625":{"parent":{"__isSmartRef__":true,"id":5621},"state":{"__isSmartRef__":true,"id":5626},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5626":{"gameboard":[[null,null,null,null,"black"],[null,null,null,null,"black"],[null,null,null,null,"black","white"],[null,"black",null,"black","white"],[null,null,"black","white","black","black","black"],[null,null,"white","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5627":{"parent":{"__isSmartRef__":true,"id":5621},"state":{"__isSmartRef__":true,"id":5628},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5628":{"gameboard":[[null,null,null,null,"black"],[null,null,null,null,"black"],[null,null,null,null,"black"],[null,"black","white","black","black"],[null,null,"white","white","black","black","black"],[null,null,"white","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5629":{"parent":{"__isSmartRef__":true,"id":5621},"state":{"__isSmartRef__":true,"id":5630},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5630":{"gameboard":[[null,null,null,null,"black"],[null,null,null,null,"black"],[null,null,null,null,"black"],[null,"black",null,"black","black"],[null,"white","white","white","black","black","black"],[null,null,"white","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5631":{"parent":{"__isSmartRef__":true,"id":5621},"state":{"__isSmartRef__":true,"id":5632},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5632":{"gameboard":[[null,null,null,null,"black"],[null,null,null,null,"black"],[null,null,null,null,"black"],[null,"black",null,"black","black"],[null,null,"black","white","white","white","white","white"],[null,null,"white","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5633":{"parent":{"__isSmartRef__":true,"id":5621},"state":{"__isSmartRef__":true,"id":5634},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5634":{"gameboard":[[null,null,null,null,"black"],[null,null,null,null,"black"],[null,null,null,null,"black"],[null,"black",null,"black","black"],[null,null,"black","white","black","black","black"],[null,null,"white","white","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5635":{"parent":{"__isSmartRef__":true,"id":5621},"state":{"__isSmartRef__":true,"id":5636},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5636":{"gameboard":[[null,null,null,null,"black"],[null,null,null,null,"black"],[null,null,null,null,"black"],[null,"black",null,"black","black"],[null,null,"black","white","black","black","black"],[null,null,"white","white"],[null,null,null,"white"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5637":{"parent":{"__isSmartRef__":true,"id":5619},"state":{"__isSmartRef__":true,"id":5638},"level":2,"childs":[{"__isSmartRef__":true,"id":5639},{"__isSmartRef__":true,"id":5641},{"__isSmartRef__":true,"id":5643},{"__isSmartRef__":true,"id":5645},{"__isSmartRef__":true,"id":5647},{"__isSmartRef__":true,"id":5649},{"__isSmartRef__":true,"id":5651},{"__isSmartRef__":true,"id":5653}],"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5638":{"gameboard":[[],[null,null,null,null,"white","black"],[null,null,null,null,"black"],[null,"black",null,"black","white"],[null,null,"black","white","black","black","black"],[null,null,"white","black"],[],[]],"player":"white","nextPlayer":"black","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5639":{"parent":{"__isSmartRef__":true,"id":5637},"state":{"__isSmartRef__":true,"id":5640},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5640":{"gameboard":[[],[null,null,null,null,"white","white","white"],[null,null,null,null,"black"],[null,"black",null,"black","white"],[null,null,"black","white","black","black","black"],[null,null,"white","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5641":{"parent":{"__isSmartRef__":true,"id":5637},"state":{"__isSmartRef__":true,"id":5642},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5642":{"gameboard":[[],[null,null,null,null,"white","black"],[null,null,null,"white","black"],[null,"black",null,"white","white"],[null,null,"black","white","black","black","black"],[null,null,"white","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5643":{"parent":{"__isSmartRef__":true,"id":5637},"state":{"__isSmartRef__":true,"id":5644},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5644":{"gameboard":[[],[null,null,null,null,"white","black"],[null,null,null,null,"black"],[null,"black","white","white","white"],[null,null,"white","white","black","black","black"],[null,null,"white","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5645":{"parent":{"__isSmartRef__":true,"id":5637},"state":{"__isSmartRef__":true,"id":5646},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5646":{"gameboard":[[],[null,null,null,null,"white","black"],[null,null,null,null,"black"],[null,"black",null,"black","white"],[null,"white","white","white","black","black","black"],[null,null,"white","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5647":{"parent":{"__isSmartRef__":true,"id":5637},"state":{"__isSmartRef__":true,"id":5648},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5648":{"gameboard":[[],[null,null,null,null,"white","black"],[null,null,null,null,"black"],[null,"black",null,"black","white"],[null,null,"black","white","white","white","white","white"],[null,null,"white","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5649":{"parent":{"__isSmartRef__":true,"id":5637},"state":{"__isSmartRef__":true,"id":5650},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5650":{"gameboard":[[],[null,null,null,null,"white","black"],[null,null,null,null,"black"],[null,"black",null,"black","white"],[null,null,"black","white","white","black","black"],[null,null,"white","white","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5651":{"parent":{"__isSmartRef__":true,"id":5637},"state":{"__isSmartRef__":true,"id":5652},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5652":{"gameboard":[[],[null,null,null,null,"white","black"],[null,null,null,null,"black"],[null,"black",null,"black","white"],[null,null,"black","white","black","white","black"],[null,null,"white","black",null,null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5653":{"parent":{"__isSmartRef__":true,"id":5637},"state":{"__isSmartRef__":true,"id":5654},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5654":{"gameboard":[[],[null,null,null,null,"white","black"],[null,null,null,null,"black"],[null,"black",null,"black","white"],[null,null,"black","white","black","black","black"],[null,null,"white","white"],[null,null,null,"white"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5655":{"parent":{"__isSmartRef__":true,"id":5619},"state":{"__isSmartRef__":true,"id":5656},"level":2,"childs":[{"__isSmartRef__":true,"id":5657},{"__isSmartRef__":true,"id":5659},{"__isSmartRef__":true,"id":5661},{"__isSmartRef__":true,"id":5663},{"__isSmartRef__":true,"id":5665},{"__isSmartRef__":true,"id":5667},{"__isSmartRef__":true,"id":5669},{"__isSmartRef__":true,"id":5671},{"__isSmartRef__":true,"id":5673}],"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5656":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,"black","white"],[null,"black",null,"black","black"],[null,null,"black","white","black","black","black"],[null,null,"white","black"],[],[]],"player":"white","nextPlayer":"black","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5657":{"parent":{"__isSmartRef__":true,"id":5655},"state":{"__isSmartRef__":true,"id":5658},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5658":{"gameboard":[[],[null,null,null,"white","white"],[null,null,null,"white","white"],[null,"black",null,"white","black"],[null,null,"black","white","black","black","black"],[null,null,"white","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5659":{"parent":{"__isSmartRef__":true,"id":5655},"state":{"__isSmartRef__":true,"id":5660},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5660":{"gameboard":[[],[null,null,null,null,"white"],[null,null,"white","white","white"],[null,"black",null,"black","black"],[null,null,"black","white","black","black","black"],[null,null,"white","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5661":{"parent":{"__isSmartRef__":true,"id":5655},"state":{"__isSmartRef__":true,"id":5662},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5662":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,"black","white","white"],[null,"black",null,"black","white"],[null,null,"black","white","black","black","black"],[null,null,"white","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5663":{"parent":{"__isSmartRef__":true,"id":5655},"state":{"__isSmartRef__":true,"id":5664},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5664":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,"white","white"],[null,"black","white","black","black"],[null,null,"white","white","black","black","black"],[null,null,"white","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5665":{"parent":{"__isSmartRef__":true,"id":5655},"state":{"__isSmartRef__":true,"id":5666},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5666":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,"black","white"],[null,"black",null,"black","black"],[null,"white","white","white","black","black","black"],[null,null,"white","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5667":{"parent":{"__isSmartRef__":true,"id":5655},"state":{"__isSmartRef__":true,"id":5668},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5668":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,"black","white"],[null,"black",null,"black","black"],[null,null,"black","white","white","white","white","white"],[null,null,"white","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5669":{"parent":{"__isSmartRef__":true,"id":5655},"state":{"__isSmartRef__":true,"id":5670},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5670":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,"black","white"],[null,"black",null,"white","black"],[null,null,"white","white","black","black","black"],[null,"white","white","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5671":{"parent":{"__isSmartRef__":true,"id":5655},"state":{"__isSmartRef__":true,"id":5672},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5672":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,"black","white"],[null,"black",null,"black","white"],[null,null,"black","white","white","black","black"],[null,null,"white","white","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5673":{"parent":{"__isSmartRef__":true,"id":5655},"state":{"__isSmartRef__":true,"id":5674},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5674":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,"black","white"],[null,"black",null,"black","black"],[null,null,"black","white","black","black","black"],[null,null,"white","white"],[null,null,null,"white"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5675":{"parent":{"__isSmartRef__":true,"id":5619},"state":{"__isSmartRef__":true,"id":5676},"level":2,"childs":[{"__isSmartRef__":true,"id":5677},{"__isSmartRef__":true,"id":5679},{"__isSmartRef__":true,"id":5681},{"__isSmartRef__":true,"id":5683},{"__isSmartRef__":true,"id":5685},{"__isSmartRef__":true,"id":5687},{"__isSmartRef__":true,"id":5689},{"__isSmartRef__":true,"id":5691},{"__isSmartRef__":true,"id":5693}],"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5676":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","black","black"],[null,null,"black","white","black","black","black"],[null,null,"white","black"],[],[]],"player":"white","nextPlayer":"black","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5677":{"parent":{"__isSmartRef__":true,"id":5675},"state":{"__isSmartRef__":true,"id":5678},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5678":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,"white","white"],[null,"black",null,"white","black","black"],[null,null,"black","white","black","black","black"],[null,null,"white","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5679":{"parent":{"__isSmartRef__":true,"id":5675},"state":{"__isSmartRef__":true,"id":5680},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5680":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white","white"],[null,"black",null,"black","white","black"],[null,null,"black","white","black","black","black"],[null,null,"white","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5681":{"parent":{"__isSmartRef__":true,"id":5675},"state":{"__isSmartRef__":true,"id":5682},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5682":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black","white","black","black","black"],[null,null,"white","white","black","black","black"],[null,null,"white","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5683":{"parent":{"__isSmartRef__":true,"id":5675},"state":{"__isSmartRef__":true,"id":5684},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5684":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","black","black"],[null,"white","white","white","black","black","black"],[null,null,"white","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5685":{"parent":{"__isSmartRef__":true,"id":5675},"state":{"__isSmartRef__":true,"id":5686},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5686":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","black","black"],[null,null,"black","white","white","white","white","white"],[null,null,"white","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5687":{"parent":{"__isSmartRef__":true,"id":5675},"state":{"__isSmartRef__":true,"id":5688},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5688":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"white","black","black"],[null,null,"white","white","black","black","black"],[null,"white","white","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5689":{"parent":{"__isSmartRef__":true,"id":5675},"state":{"__isSmartRef__":true,"id":5690},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5690":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white","black"],[null,null,"black","white","white","black","black"],[null,null,"white","white","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5691":{"parent":{"__isSmartRef__":true,"id":5675},"state":{"__isSmartRef__":true,"id":5692},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5692":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","black","white"],[null,null,"black","white","black","black","white"],[null,null,"white","black",null,null,null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5693":{"parent":{"__isSmartRef__":true,"id":5675},"state":{"__isSmartRef__":true,"id":5694},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5694":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","black","black"],[null,null,"black","white","black","black","black"],[null,null,"white","white"],[null,null,null,"white"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5695":{"parent":{"__isSmartRef__":true,"id":5619},"state":{"__isSmartRef__":true,"id":5696},"level":2,"childs":[{"__isSmartRef__":true,"id":5697},{"__isSmartRef__":true,"id":5699},{"__isSmartRef__":true,"id":5701},{"__isSmartRef__":true,"id":5703},{"__isSmartRef__":true,"id":5705},{"__isSmartRef__":true,"id":5707},{"__isSmartRef__":true,"id":5709},{"__isSmartRef__":true,"id":5711},{"__isSmartRef__":true,"id":5713}],"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5696":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","white","black","black","black"],[null,"black","black","black"],[],[]],"player":"white","nextPlayer":"black","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5697":{"parent":{"__isSmartRef__":true,"id":5695},"state":{"__isSmartRef__":true,"id":5698},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5698":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,"white","white"],[null,"black",null,"white","white"],[null,null,"black","white","black","black","black"],[null,"black","black","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5699":{"parent":{"__isSmartRef__":true,"id":5695},"state":{"__isSmartRef__":true,"id":5700},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5700":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black","white","white","white"],[null,null,"black","white","black","black","black"],[null,"black","black","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5701":{"parent":{"__isSmartRef__":true,"id":5695},"state":{"__isSmartRef__":true,"id":5702},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5702":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,"white","white","white","black","black","black"],[null,"black","black","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5703":{"parent":{"__isSmartRef__":true,"id":5695},"state":{"__isSmartRef__":true,"id":5704},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5704":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","white","white","white","white","white"],[null,"black","black","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5705":{"parent":{"__isSmartRef__":true,"id":5695},"state":{"__isSmartRef__":true,"id":5706},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5706":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","white","white","black","black"],[null,"black","black","black","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5707":{"parent":{"__isSmartRef__":true,"id":5695},"state":{"__isSmartRef__":true,"id":5708},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5708":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","white","black","white","black"],[null,"black","black","black",null,null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5709":{"parent":{"__isSmartRef__":true,"id":5695},"state":{"__isSmartRef__":true,"id":5710},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5710":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"white","white"],[null,null,"white","white","black","black","black"],[null,"white","black","black"],["white"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5711":{"parent":{"__isSmartRef__":true,"id":5695},"state":{"__isSmartRef__":true,"id":5712},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5712":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","white","black","black","black"],[null,"black","white","black"],[null,"white"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5713":{"parent":{"__isSmartRef__":true,"id":5695},"state":{"__isSmartRef__":true,"id":5714},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5714":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","white","black","black","black"],[null,"black","black","white"],[null,null,null,"white"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5715":{"parent":{"__isSmartRef__":true,"id":5619},"state":{"__isSmartRef__":true,"id":5716},"level":2,"childs":[{"__isSmartRef__":true,"id":5717},{"__isSmartRef__":true,"id":5719},{"__isSmartRef__":true,"id":5721},{"__isSmartRef__":true,"id":5723},{"__isSmartRef__":true,"id":5725},{"__isSmartRef__":true,"id":5727},{"__isSmartRef__":true,"id":5729},{"__isSmartRef__":true,"id":5731},{"__isSmartRef__":true,"id":5733}],"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5716":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","white","black","black","black"],[null,null,"black","black"],[null,null,"black"],[]],"player":"white","nextPlayer":"black","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5717":{"parent":{"__isSmartRef__":true,"id":5715},"state":{"__isSmartRef__":true,"id":5718},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5718":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,"white","white"],[null,"black",null,"white","white"],[null,null,"black","white","black","black","black"],[null,null,"black","black"],[null,null,"black"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5719":{"parent":{"__isSmartRef__":true,"id":5715},"state":{"__isSmartRef__":true,"id":5720},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5720":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black","white","white","white"],[null,null,"black","white","black","black","black"],[null,null,"black","black"],[null,null,"black"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5721":{"parent":{"__isSmartRef__":true,"id":5715},"state":{"__isSmartRef__":true,"id":5722},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5722":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,"white","white","white","black","black","black"],[null,null,"black","black"],[null,null,"black"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5723":{"parent":{"__isSmartRef__":true,"id":5715},"state":{"__isSmartRef__":true,"id":5724},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5724":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","white","white","white","white","white"],[null,null,"black","black"],[null,null,"black"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5725":{"parent":{"__isSmartRef__":true,"id":5715},"state":{"__isSmartRef__":true,"id":5726},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5726":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"white","white"],[null,null,"white","white","black","black","black"],[null,"white","black","black"],[null,null,"black"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5727":{"parent":{"__isSmartRef__":true,"id":5715},"state":{"__isSmartRef__":true,"id":5728},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5728":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","white","white","black","black"],[null,null,"black","black","white"],[null,null,"black"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5729":{"parent":{"__isSmartRef__":true,"id":5715},"state":{"__isSmartRef__":true,"id":5730},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5730":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","white","black","white","black"],[null,null,"black","black",null,null,"white"],[null,null,"black"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5731":{"parent":{"__isSmartRef__":true,"id":5715},"state":{"__isSmartRef__":true,"id":5732},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5732":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","white","black","black","black"],[null,null,"white","black"],[null,"white","black"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5733":{"parent":{"__isSmartRef__":true,"id":5715},"state":{"__isSmartRef__":true,"id":5734},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5734":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","white","black","black","black"],[null,null,"black","white"],[null,null,"black","white"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5735":{"parent":{"__isSmartRef__":true,"id":5433},"state":{"__isSmartRef__":true,"id":5736},"level":1,"childs":[{"__isSmartRef__":true,"id":5737},{"__isSmartRef__":true,"id":5757},{"__isSmartRef__":true,"id":5775},{"__isSmartRef__":true,"id":5795},{"__isSmartRef__":true,"id":5807},{"__isSmartRef__":true,"id":5819},{"__isSmartRef__":true,"id":5839}],"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5736":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","black","white","black","black"],[null,null,null,"black","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5737":{"parent":{"__isSmartRef__":true,"id":5735},"state":{"__isSmartRef__":true,"id":5738},"level":2,"childs":[{"__isSmartRef__":true,"id":5739},{"__isSmartRef__":true,"id":5741},{"__isSmartRef__":true,"id":5743},{"__isSmartRef__":true,"id":5745},{"__isSmartRef__":true,"id":5747},{"__isSmartRef__":true,"id":5749},{"__isSmartRef__":true,"id":5751},{"__isSmartRef__":true,"id":5753},{"__isSmartRef__":true,"id":5755}],"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5738":{"gameboard":[[],[null,null,null,null,"white","black"],[null,null,null,null,"black"],[null,"black",null,"black","white"],[null,null,"black","black","white","black","black"],[null,null,null,"black","white"],[],[]],"player":"white","nextPlayer":"black","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5739":{"parent":{"__isSmartRef__":true,"id":5737},"state":{"__isSmartRef__":true,"id":5740},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5740":{"gameboard":[[],[null,null,null,null,"white","white","white"],[null,null,null,null,"black"],[null,"black",null,"black","white"],[null,null,"black","black","white","black","black"],[null,null,null,"black","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5741":{"parent":{"__isSmartRef__":true,"id":5737},"state":{"__isSmartRef__":true,"id":5742},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5742":{"gameboard":[[],[null,null,null,null,"white","black"],[null,null,"white",null,"black"],[null,"black",null,"white","white"],[null,null,"black","black","white","black","black"],[null,null,null,"black","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5743":{"parent":{"__isSmartRef__":true,"id":5737},"state":{"__isSmartRef__":true,"id":5744},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5744":{"gameboard":[[],[null,null,null,null,"white","black"],[null,null,null,null,"black"],[null,"black","white","white","white"],[null,null,"black","white","white","black","black"],[null,null,null,"black","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5745":{"parent":{"__isSmartRef__":true,"id":5737},"state":{"__isSmartRef__":true,"id":5746},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5746":{"gameboard":[[],[null,null,null,null,"white","black"],[null,null,null,null,"black"],[null,"black",null,"black","white",null,"white"],[null,null,"black","black","white","white","black"],[null,null,null,"black","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5747":{"parent":{"__isSmartRef__":true,"id":5737},"state":{"__isSmartRef__":true,"id":5748},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5748":{"gameboard":[[],[null,null,null,null,"white","black"],[null,null,null,null,"black"],[null,"black",null,"black","white"],[null,"white","white","white","white","black","black"],[null,null,null,"black","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5749":{"parent":{"__isSmartRef__":true,"id":5737},"state":{"__isSmartRef__":true,"id":5750},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5750":{"gameboard":[[],[null,null,null,null,"white","black"],[null,null,null,null,"black"],[null,"black",null,"black","white"],[null,null,"black","black","white","white","white","white"],[null,null,null,"black","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5751":{"parent":{"__isSmartRef__":true,"id":5737},"state":{"__isSmartRef__":true,"id":5752},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5752":{"gameboard":[[],[null,null,null,null,"white","black"],[null,null,null,null,"black"],[null,"black",null,"black","white"],[null,null,"black","white","white","black","black"],[null,null,"white","white","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5753":{"parent":{"__isSmartRef__":true,"id":5737},"state":{"__isSmartRef__":true,"id":5754},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5754":{"gameboard":[[],[null,null,null,null,"white","black"],[null,null,null,null,"black"],[null,"black",null,"black","white"],[null,null,"black","black","white","white","black"],[null,null,null,"black","white",null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5755":{"parent":{"__isSmartRef__":true,"id":5737},"state":{"__isSmartRef__":true,"id":5756},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5756":{"gameboard":[[],[null,null,null,null,"white","black"],[null,null,null,null,"black"],[null,"black",null,"black","white"],[null,null,"black","black","white","black","black"],[null,null,null,"white","white"],[null,null,"white"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5757":{"parent":{"__isSmartRef__":true,"id":5735},"state":{"__isSmartRef__":true,"id":5758},"level":2,"childs":[{"__isSmartRef__":true,"id":5759},{"__isSmartRef__":true,"id":5761},{"__isSmartRef__":true,"id":5763},{"__isSmartRef__":true,"id":5765},{"__isSmartRef__":true,"id":5767},{"__isSmartRef__":true,"id":5769},{"__isSmartRef__":true,"id":5771},{"__isSmartRef__":true,"id":5773}],"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5758":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,"black","white"],[null,"black",null,"black","black"],[null,null,"black","black","white","black","black"],[null,null,null,"black","white"],[],[]],"player":"white","nextPlayer":"black","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5759":{"parent":{"__isSmartRef__":true,"id":5757},"state":{"__isSmartRef__":true,"id":5760},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5760":{"gameboard":[[],[null,null,null,null,"white"],[null,null,"white","white","white"],[null,"black",null,"white","black"],[null,null,"black","black","white","black","black"],[null,null,null,"black","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5761":{"parent":{"__isSmartRef__":true,"id":5757},"state":{"__isSmartRef__":true,"id":5762},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5762":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,"white","white"],[null,"black","white","black","black"],[null,null,"black","white","white","black","black"],[null,null,null,"black","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5763":{"parent":{"__isSmartRef__":true,"id":5757},"state":{"__isSmartRef__":true,"id":5764},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5764":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,"black","white"],[null,"black",null,"black","black",null,"white"],[null,null,"black","black","white","white","black"],[null,null,null,"black","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5765":{"parent":{"__isSmartRef__":true,"id":5757},"state":{"__isSmartRef__":true,"id":5766},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5766":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,"black","white"],[null,"black",null,"black","black"],[null,"white","white","white","white","black","black"],[null,null,null,"black","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5767":{"parent":{"__isSmartRef__":true,"id":5757},"state":{"__isSmartRef__":true,"id":5768},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5768":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,"black","white"],[null,"black",null,"black","black"],[null,null,"black","black","white","white","white","white"],[null,null,null,"black","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5769":{"parent":{"__isSmartRef__":true,"id":5757},"state":{"__isSmartRef__":true,"id":5770},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5770":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,"black","white"],[null,"black",null,"white","black"],[null,null,"white","black","white","black","black"],[null,"white",null,"black","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5771":{"parent":{"__isSmartRef__":true,"id":5757},"state":{"__isSmartRef__":true,"id":5772},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5772":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,"black","white"],[null,"black",null,"black","black"],[null,null,"black","black","white","black","black"],[null,null,"white","white","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5773":{"parent":{"__isSmartRef__":true,"id":5757},"state":{"__isSmartRef__":true,"id":5774},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5774":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,"black","white"],[null,"black",null,"black","black"],[null,null,"black","black","white","black","black"],[null,null,null,"white","white"],[null,null,"white"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5775":{"parent":{"__isSmartRef__":true,"id":5735},"state":{"__isSmartRef__":true,"id":5776},"level":2,"childs":[{"__isSmartRef__":true,"id":5777},{"__isSmartRef__":true,"id":5779},{"__isSmartRef__":true,"id":5781},{"__isSmartRef__":true,"id":5783},{"__isSmartRef__":true,"id":5785},{"__isSmartRef__":true,"id":5787},{"__isSmartRef__":true,"id":5789},{"__isSmartRef__":true,"id":5791},{"__isSmartRef__":true,"id":5793}],"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5776":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white","black"],[null,"black",null,"black","black"],[null,null,"black","black","white","black","black"],[null,null,null,"black","white"],[],[]],"player":"white","nextPlayer":"black","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5777":{"parent":{"__isSmartRef__":true,"id":5775},"state":{"__isSmartRef__":true,"id":5778},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5778":{"gameboard":[[],[null,null,null,null,"white"],[null,null,"white",null,"white","black"],[null,"black",null,"white","black"],[null,null,"black","black","white","black","black"],[null,null,null,"black","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5779":{"parent":{"__isSmartRef__":true,"id":5775},"state":{"__isSmartRef__":true,"id":5780},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5780":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white","white","white"],[null,"black",null,"black","black"],[null,null,"black","black","white","black","black"],[null,null,null,"black","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5781":{"parent":{"__isSmartRef__":true,"id":5775},"state":{"__isSmartRef__":true,"id":5782},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5782":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white","black"],[null,"black","white","black","black"],[null,null,"black","white","white","black","black"],[null,null,null,"black","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5783":{"parent":{"__isSmartRef__":true,"id":5775},"state":{"__isSmartRef__":true,"id":5784},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5784":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white","white"],[null,"black",null,"black","black",null,"white"],[null,null,"black","black","white","white","black"],[null,null,null,"black","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5785":{"parent":{"__isSmartRef__":true,"id":5775},"state":{"__isSmartRef__":true,"id":5786},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5786":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white","black"],[null,"black",null,"black","black"],[null,"white","white","white","white","black","black"],[null,null,null,"black","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5787":{"parent":{"__isSmartRef__":true,"id":5775},"state":{"__isSmartRef__":true,"id":5788},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5788":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white","black"],[null,"black",null,"black","black"],[null,null,"black","black","white","white","white","white"],[null,null,null,"black","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5789":{"parent":{"__isSmartRef__":true,"id":5775},"state":{"__isSmartRef__":true,"id":5790},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5790":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white","black"],[null,"black",null,"white","black"],[null,null,"white","black","white","black","black"],[null,"white",null,"black","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5791":{"parent":{"__isSmartRef__":true,"id":5775},"state":{"__isSmartRef__":true,"id":5792},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5792":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white","black"],[null,"black",null,"black","black"],[null,null,"black","black","white","black","black"],[null,null,"white","white","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5793":{"parent":{"__isSmartRef__":true,"id":5775},"state":{"__isSmartRef__":true,"id":5794},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5794":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white","black"],[null,"black",null,"black","black"],[null,null,"black","black","white","black","black"],[null,null,null,"white","white"],[null,null,"white"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5795":{"parent":{"__isSmartRef__":true,"id":5735},"state":{"__isSmartRef__":true,"id":5796},"level":2,"childs":[{"__isSmartRef__":true,"id":5797},{"__isSmartRef__":true,"id":5799},{"__isSmartRef__":true,"id":5801},{"__isSmartRef__":true,"id":5803},{"__isSmartRef__":true,"id":5805}],"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5796":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","black","black"],[null,null,"black","black","black","black","black"],[null,null,null,"black","white"],[],[]],"player":"white","nextPlayer":"black","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5797":{"parent":{"__isSmartRef__":true,"id":5795},"state":{"__isSmartRef__":true,"id":5798},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5798":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black","white","black","black","black"],[null,null,"black","white","black","black","black"],[null,null,null,"black","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5799":{"parent":{"__isSmartRef__":true,"id":5795},"state":{"__isSmartRef__":true,"id":5800},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5800":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","black","black","white"],[null,null,"black","black","black","white","black"],[null,null,null,"black","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5801":{"parent":{"__isSmartRef__":true,"id":5795},"state":{"__isSmartRef__":true,"id":5802},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5802":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"white","black","black"],[null,null,"white","black","black","black","black"],[null,"white",null,"black","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5803":{"parent":{"__isSmartRef__":true,"id":5795},"state":{"__isSmartRef__":true,"id":5804},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5804":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","black","black"],[null,null,"black","black","black","black","black"],[null,null,"white","white","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5805":{"parent":{"__isSmartRef__":true,"id":5795},"state":{"__isSmartRef__":true,"id":5806},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5806":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","black","white"],[null,null,"black","black","black","black","white"],[null,null,null,"black","white",null,null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5807":{"parent":{"__isSmartRef__":true,"id":5735},"state":{"__isSmartRef__":true,"id":5808},"level":2,"childs":[{"__isSmartRef__":true,"id":5809},{"__isSmartRef__":true,"id":5811},{"__isSmartRef__":true,"id":5813},{"__isSmartRef__":true,"id":5815},{"__isSmartRef__":true,"id":5817}],"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5808":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","black","black","black","black"],[null,null,null,"black","black","black"],[],[]],"player":"white","nextPlayer":"black","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5809":{"parent":{"__isSmartRef__":true,"id":5807},"state":{"__isSmartRef__":true,"id":5810},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5810":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black","white","white","white"],[null,null,"black","black","black","black","black"],[null,null,null,"black","black","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5811":{"parent":{"__isSmartRef__":true,"id":5807},"state":{"__isSmartRef__":true,"id":5812},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5812":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"white","white"],[null,null,"white","black","black","black","black"],[null,"white",null,"black","black","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5813":{"parent":{"__isSmartRef__":true,"id":5807},"state":{"__isSmartRef__":true,"id":5814},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5814":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","white","black","black","black"],[null,null,"white","black","black","black"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5815":{"parent":{"__isSmartRef__":true,"id":5807},"state":{"__isSmartRef__":true,"id":5816},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5816":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","black","black","white","black"],[null,null,null,"black","black","black","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5817":{"parent":{"__isSmartRef__":true,"id":5807},"state":{"__isSmartRef__":true,"id":5818},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5818":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","black","white","black","black"],[null,null,null,"black","white","black"],[null,null,null,null,"white"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5819":{"parent":{"__isSmartRef__":true,"id":5735},"state":{"__isSmartRef__":true,"id":5820},"level":2,"childs":[{"__isSmartRef__":true,"id":5821},{"__isSmartRef__":true,"id":5823},{"__isSmartRef__":true,"id":5825},{"__isSmartRef__":true,"id":5827},{"__isSmartRef__":true,"id":5829},{"__isSmartRef__":true,"id":5831},{"__isSmartRef__":true,"id":5833},{"__isSmartRef__":true,"id":5835},{"__isSmartRef__":true,"id":5837}],"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5820":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","black","white","black","black"],[null,null,null,"black","black"],[null,null,null,"black"],[]],"player":"white","nextPlayer":"black","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5821":{"parent":{"__isSmartRef__":true,"id":5819},"state":{"__isSmartRef__":true,"id":5822},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5822":{"gameboard":[[],[null,null,null,null,"white"],[null,null,"white",null,"white"],[null,"black",null,"white","white"],[null,null,"black","black","white","black","black"],[null,null,null,"black","black"],[null,null,null,"black"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5823":{"parent":{"__isSmartRef__":true,"id":5819},"state":{"__isSmartRef__":true,"id":5824},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5824":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black","white","white","white"],[null,null,"black","black","white","black","black"],[null,null,null,"black","black"],[null,null,null,"black"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5825":{"parent":{"__isSmartRef__":true,"id":5819},"state":{"__isSmartRef__":true,"id":5826},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5826":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,"white","white","white","white","black","black"],[null,null,null,"black","black"],[null,null,null,"black"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5827":{"parent":{"__isSmartRef__":true,"id":5819},"state":{"__isSmartRef__":true,"id":5828},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5828":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","black","white","white","white","white"],[null,null,null,"black","black"],[null,null,null,"black"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5829":{"parent":{"__isSmartRef__":true,"id":5819},"state":{"__isSmartRef__":true,"id":5830},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5830":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"white","white"],[null,null,"white","black","white","black","black"],[null,"white",null,"black","black"],[null,null,null,"black"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5831":{"parent":{"__isSmartRef__":true,"id":5819},"state":{"__isSmartRef__":true,"id":5832},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5832":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","white","white","black","black"],[null,null,"white","black","black"],[null,null,null,"black"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5833":{"parent":{"__isSmartRef__":true,"id":5819},"state":{"__isSmartRef__":true,"id":5834},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5834":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","black","white","white","black"],[null,null,null,"black","black",null,"white"],[null,null,null,"black"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5835":{"parent":{"__isSmartRef__":true,"id":5819},"state":{"__isSmartRef__":true,"id":5836},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5836":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","black","white","black","black"],[null,null,null,"white","black"],[null,null,"white","black"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5837":{"parent":{"__isSmartRef__":true,"id":5819},"state":{"__isSmartRef__":true,"id":5838},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5838":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","black","white","black","black"],[null,null,null,"black","white"],[null,null,null,"black","white"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5839":{"parent":{"__isSmartRef__":true,"id":5735},"state":{"__isSmartRef__":true,"id":5840},"level":2,"childs":[{"__isSmartRef__":true,"id":5841},{"__isSmartRef__":true,"id":5843},{"__isSmartRef__":true,"id":5845},{"__isSmartRef__":true,"id":5847},{"__isSmartRef__":true,"id":5849},{"__isSmartRef__":true,"id":5851},{"__isSmartRef__":true,"id":5853},{"__isSmartRef__":true,"id":5855},{"__isSmartRef__":true,"id":5857}],"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5840":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","black","white","black","black"],[null,null,null,"black","black"],[null,null,null,null,null,"black"],[]],"player":"white","nextPlayer":"black","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5841":{"parent":{"__isSmartRef__":true,"id":5839},"state":{"__isSmartRef__":true,"id":5842},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5842":{"gameboard":[[],[null,null,null,null,"white"],[null,null,"white",null,"white"],[null,"black",null,"white","white"],[null,null,"black","black","white","black","black"],[null,null,null,"black","black"],[null,null,null,null,null,"black"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5843":{"parent":{"__isSmartRef__":true,"id":5839},"state":{"__isSmartRef__":true,"id":5844},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5844":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black","white","white","white"],[null,null,"black","black","white","black","black"],[null,null,null,"black","black"],[null,null,null,null,null,"black"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5845":{"parent":{"__isSmartRef__":true,"id":5839},"state":{"__isSmartRef__":true,"id":5846},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5846":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,"white","white","white","white","black","black"],[null,null,null,"black","black"],[null,null,null,null,null,"black"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5847":{"parent":{"__isSmartRef__":true,"id":5839},"state":{"__isSmartRef__":true,"id":5848},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5848":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","black","white","white","white","white"],[null,null,null,"black","black"],[null,null,null,null,null,"black"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5849":{"parent":{"__isSmartRef__":true,"id":5839},"state":{"__isSmartRef__":true,"id":5850},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5850":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"white","white"],[null,null,"white","black","white","black","black"],[null,"white",null,"black","black"],[null,null,null,null,null,"black"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5851":{"parent":{"__isSmartRef__":true,"id":5839},"state":{"__isSmartRef__":true,"id":5852},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5852":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","white","white","black","black"],[null,null,"white","black","black"],[null,null,null,null,null,"black"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5853":{"parent":{"__isSmartRef__":true,"id":5839},"state":{"__isSmartRef__":true,"id":5854},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5854":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","black","white","white","black"],[null,null,null,"black","black",null,"white"],[null,null,null,null,null,"black"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5855":{"parent":{"__isSmartRef__":true,"id":5839},"state":{"__isSmartRef__":true,"id":5856},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5856":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","black","white","black","black"],[null,null,null,"white","black"],[null,null,"white",null,null,"black"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5857":{"parent":{"__isSmartRef__":true,"id":5839},"state":{"__isSmartRef__":true,"id":5858},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5858":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","black","white","black","black"],[null,null,null,"black","white"],[null,null,null,null,"white","black"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5859":{"parent":{"__isSmartRef__":true,"id":5433},"state":{"__isSmartRef__":true,"id":5860},"level":1,"childs":[{"__isSmartRef__":true,"id":5861},{"__isSmartRef__":true,"id":5871},{"__isSmartRef__":true,"id":5887},{"__isSmartRef__":true,"id":5903},{"__isSmartRef__":true,"id":5921}],"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5860":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","black","black","white","black"],[null,null,null,"black",null,null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5861":{"parent":{"__isSmartRef__":true,"id":5859},"state":{"__isSmartRef__":true,"id":5862},"level":2,"childs":[{"__isSmartRef__":true,"id":5863},{"__isSmartRef__":true,"id":5865},{"__isSmartRef__":true,"id":5867},{"__isSmartRef__":true,"id":5869}],"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5862":{"gameboard":[[null,null,null,null,"black"],[null,null,null,null,"black"],[null,null,null,null,"black"],[null,"black",null,"black","black"],[null,null,"black","black","black","white","black"],[null,null,null,"black",null,null,"white"],[],[]],"player":"white","nextPlayer":"black","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5863":{"parent":{"__isSmartRef__":true,"id":5861},"state":{"__isSmartRef__":true,"id":5864},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5864":{"gameboard":[[null,null,null,null,"black"],[null,null,null,null,"black"],[null,null,null,"white","black"],[null,"black",null,"black","white"],[null,null,"black","black","black","white","black"],[null,null,null,"black",null,null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5865":{"parent":{"__isSmartRef__":true,"id":5861},"state":{"__isSmartRef__":true,"id":5866},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5866":{"gameboard":[[null,null,null,null,"black"],[null,null,null,null,"black"],[null,null,null,null,"black"],[null,"black",null,"black","black",null,"white"],[null,null,"black","black","black","white","white"],[null,null,null,"black",null,null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5867":{"parent":{"__isSmartRef__":true,"id":5861},"state":{"__isSmartRef__":true,"id":5868},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5868":{"gameboard":[[null,null,null,null,"black"],[null,null,null,null,"black"],[null,null,null,null,"black"],[null,"black",null,"black","black"],[null,"white","white","white","white","white","black"],[null,null,null,"black",null,null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5869":{"parent":{"__isSmartRef__":true,"id":5861},"state":{"__isSmartRef__":true,"id":5870},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5870":{"gameboard":[[null,null,null,null,"black"],[null,null,null,null,"black"],[null,null,null,null,"black"],[null,"black",null,"black","black"],[null,null,"black","black","black","white","white","white"],[null,null,null,"black",null,null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5871":{"parent":{"__isSmartRef__":true,"id":5859},"state":{"__isSmartRef__":true,"id":5872},"level":2,"childs":[{"__isSmartRef__":true,"id":5873},{"__isSmartRef__":true,"id":5875},{"__isSmartRef__":true,"id":5877},{"__isSmartRef__":true,"id":5879},{"__isSmartRef__":true,"id":5881},{"__isSmartRef__":true,"id":5883},{"__isSmartRef__":true,"id":5885}],"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5872":{"gameboard":[[],[null,null,null,null,"white","black"],[null,null,null,null,"black"],[null,"black",null,"black","white"],[null,null,"black","black","black","white","black"],[null,null,null,"black",null,null,"white"],[],[]],"player":"white","nextPlayer":"black","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5873":{"parent":{"__isSmartRef__":true,"id":5871},"state":{"__isSmartRef__":true,"id":5874},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5874":{"gameboard":[[],[null,null,null,null,"white","white","white"],[null,null,null,null,"black"],[null,"black",null,"black","white"],[null,null,"black","black","black","white","black"],[null,null,null,"black",null,null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5875":{"parent":{"__isSmartRef__":true,"id":5871},"state":{"__isSmartRef__":true,"id":5876},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5876":{"gameboard":[[],[null,null,null,null,"white","black"],[null,null,null,null,"black"],[null,"black","white","white","white"],[null,null,"black","black","black","white","black"],[null,null,null,"black",null,null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5877":{"parent":{"__isSmartRef__":true,"id":5871},"state":{"__isSmartRef__":true,"id":5878},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5878":{"gameboard":[[],[null,null,null,null,"white","black"],[null,null,null,null,"black"],[null,"black",null,"black","white",null,"white"],[null,null,"black","black","black","white","white"],[null,null,null,"black",null,null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5879":{"parent":{"__isSmartRef__":true,"id":5871},"state":{"__isSmartRef__":true,"id":5880},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5880":{"gameboard":[[],[null,null,null,null,"white","black"],[null,null,null,null,"black"],[null,"black",null,"black","white"],[null,"white","white","white","white","white","black"],[null,null,null,"black",null,null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5881":{"parent":{"__isSmartRef__":true,"id":5871},"state":{"__isSmartRef__":true,"id":5882},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5882":{"gameboard":[[],[null,null,null,null,"white","black"],[null,null,null,null,"black"],[null,"black",null,"black","white"],[null,null,"black","black","black","white","white","white"],[null,null,null,"black",null,null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5883":{"parent":{"__isSmartRef__":true,"id":5871},"state":{"__isSmartRef__":true,"id":5884},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5884":{"gameboard":[[],[null,null,null,null,"white","black"],[null,null,null,null,"black"],[null,"black",null,"black","white"],[null,null,"black","white","black","white","black"],[null,null,"white","black",null,null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5885":{"parent":{"__isSmartRef__":true,"id":5871},"state":{"__isSmartRef__":true,"id":5886},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5886":{"gameboard":[[],[null,null,null,null,"white","black"],[null,null,null,null,"black"],[null,"black",null,"black","white"],[null,null,"black","black","white","white","black"],[null,null,null,"black","white",null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5887":{"parent":{"__isSmartRef__":true,"id":5859},"state":{"__isSmartRef__":true,"id":5888},"level":2,"childs":[{"__isSmartRef__":true,"id":5889},{"__isSmartRef__":true,"id":5891},{"__isSmartRef__":true,"id":5893},{"__isSmartRef__":true,"id":5895},{"__isSmartRef__":true,"id":5897},{"__isSmartRef__":true,"id":5899},{"__isSmartRef__":true,"id":5901}],"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5888":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white","black"],[null,"black",null,"black","black"],[null,null,"black","black","black","white","black"],[null,null,null,"black",null,null,"white"],[],[]],"player":"white","nextPlayer":"black","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5889":{"parent":{"__isSmartRef__":true,"id":5887},"state":{"__isSmartRef__":true,"id":5890},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5890":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,"white","white","black"],[null,"black",null,"black","white"],[null,null,"black","black","black","white","black"],[null,null,null,"black",null,null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5891":{"parent":{"__isSmartRef__":true,"id":5887},"state":{"__isSmartRef__":true,"id":5892},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5892":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white","white","white"],[null,"black",null,"black","black"],[null,null,"black","black","black","white","black"],[null,null,null,"black",null,null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5893":{"parent":{"__isSmartRef__":true,"id":5887},"state":{"__isSmartRef__":true,"id":5894},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5894":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white","white"],[null,"black",null,"black","black",null,"white"],[null,null,"black","black","black","white","white"],[null,null,null,"black",null,null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5895":{"parent":{"__isSmartRef__":true,"id":5887},"state":{"__isSmartRef__":true,"id":5896},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5896":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white","black"],[null,"black",null,"black","black"],[null,"white","white","white","white","white","black"],[null,null,null,"black",null,null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5897":{"parent":{"__isSmartRef__":true,"id":5887},"state":{"__isSmartRef__":true,"id":5898},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5898":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white","black"],[null,"black",null,"black","black"],[null,null,"black","black","black","white","white","white"],[null,null,null,"black",null,null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5899":{"parent":{"__isSmartRef__":true,"id":5887},"state":{"__isSmartRef__":true,"id":5900},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5900":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white","black"],[null,"black",null,"white","black"],[null,null,"white","black","black","white","black"],[null,"white",null,"black",null,null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5901":{"parent":{"__isSmartRef__":true,"id":5887},"state":{"__isSmartRef__":true,"id":5902},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5902":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white","black"],[null,"black",null,"black","white"],[null,null,"black","black","white","white","black"],[null,null,null,"black","white",null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5903":{"parent":{"__isSmartRef__":true,"id":5859},"state":{"__isSmartRef__":true,"id":5904},"level":2,"childs":[{"__isSmartRef__":true,"id":5905},{"__isSmartRef__":true,"id":5907},{"__isSmartRef__":true,"id":5909},{"__isSmartRef__":true,"id":5911},{"__isSmartRef__":true,"id":5913},{"__isSmartRef__":true,"id":5915},{"__isSmartRef__":true,"id":5917},{"__isSmartRef__":true,"id":5919}],"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5904":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","black","black"],[null,null,"black","black","black","white","black"],[null,null,null,"black",null,null,"white"],[],[]],"player":"white","nextPlayer":"black","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5905":{"parent":{"__isSmartRef__":true,"id":5903},"state":{"__isSmartRef__":true,"id":5906},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5906":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,"white","white"],[null,"black",null,"black","white","black"],[null,null,"black","black","black","white","black"],[null,null,null,"black",null,null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5907":{"parent":{"__isSmartRef__":true,"id":5903},"state":{"__isSmartRef__":true,"id":5908},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5908":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white","white"],[null,"black",null,"black","black","white"],[null,null,"black","black","black","white","black"],[null,null,null,"black",null,null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5909":{"parent":{"__isSmartRef__":true,"id":5903},"state":{"__isSmartRef__":true,"id":5910},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5910":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","black","black","white"],[null,null,"black","black","black","white","white"],[null,null,null,"black",null,null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5911":{"parent":{"__isSmartRef__":true,"id":5903},"state":{"__isSmartRef__":true,"id":5912},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5912":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","black","black"],[null,"white","white","white","white","white","black"],[null,null,null,"black",null,null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5913":{"parent":{"__isSmartRef__":true,"id":5903},"state":{"__isSmartRef__":true,"id":5914},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5914":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","black","black"],[null,null,"black","black","black","white","white","white"],[null,null,null,"black",null,null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5915":{"parent":{"__isSmartRef__":true,"id":5903},"state":{"__isSmartRef__":true,"id":5916},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5916":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"white","black","black"],[null,null,"white","black","black","white","black"],[null,"white",null,"black",null,null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5917":{"parent":{"__isSmartRef__":true,"id":5903},"state":{"__isSmartRef__":true,"id":5918},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5918":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white","black"],[null,null,"black","black","white","white","black"],[null,null,null,"black","white",null,"white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5919":{"parent":{"__isSmartRef__":true,"id":5903},"state":{"__isSmartRef__":true,"id":5920},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5920":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","black","white"],[null,null,"black","black","black","white","white"],[null,null,null,"black",null,null,"white","white"],[],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5921":{"parent":{"__isSmartRef__":true,"id":5859},"state":{"__isSmartRef__":true,"id":5922},"level":2,"childs":[{"__isSmartRef__":true,"id":5923},{"__isSmartRef__":true,"id":5925},{"__isSmartRef__":true,"id":5927},{"__isSmartRef__":true,"id":5929},{"__isSmartRef__":true,"id":5931},{"__isSmartRef__":true,"id":5933},{"__isSmartRef__":true,"id":5935}],"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5922":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","black","black","white","black"],[null,null,null,"black",null,null,"black"],[null,null,null,null,null,null,"black"],[]],"player":"white","nextPlayer":"black","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5923":{"parent":{"__isSmartRef__":true,"id":5921},"state":{"__isSmartRef__":true,"id":5924},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5924":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black","white","white","white"],[null,null,"black","black","black","white","black"],[null,null,null,"black",null,null,"black"],[null,null,null,null,null,null,"black"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5925":{"parent":{"__isSmartRef__":true,"id":5921},"state":{"__isSmartRef__":true,"id":5926},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5926":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,"white","white","white","white","white","black"],[null,null,null,"black",null,null,"black"],[null,null,null,null,null,null,"black"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5927":{"parent":{"__isSmartRef__":true,"id":5921},"state":{"__isSmartRef__":true,"id":5928},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5928":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","black","black","white","white","white"],[null,null,null,"black",null,null,"black"],[null,null,null,null,null,null,"black"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5929":{"parent":{"__isSmartRef__":true,"id":5921},"state":{"__isSmartRef__":true,"id":5930},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5930":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"white","white"],[null,null,"white","black","black","white","black"],[null,"white",null,"black",null,null,"black"],[null,null,null,null,null,null,"black"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5931":{"parent":{"__isSmartRef__":true,"id":5921},"state":{"__isSmartRef__":true,"id":5932},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5932":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","white","black","white","black"],[null,null,"white","black",null,null,"black"],[null,null,null,null,null,null,"black"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5933":{"parent":{"__isSmartRef__":true,"id":5921},"state":{"__isSmartRef__":true,"id":5934},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5934":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","black","white","white","black"],[null,null,null,"black","white",null,"black"],[null,null,null,null,null,null,"black"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5935":{"parent":{"__isSmartRef__":true,"id":5921},"state":{"__isSmartRef__":true,"id":5936},"level":3,"__LivelyClassName__":"ABPGameTreeNode","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5936":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","black","black","white","black"],[null,null,null,"black",null,null,"white"],[null,null,null,null,null,null,"black","white"],[]],"player":"black","nextPlayer":"white","valid":true,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"5937":{"submorphs":[{"__isSmartRef__":true,"id":5938}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5955},"id":"C636B2C4-7C2C-438B-B15C-E25FFF2C9D08","eventHandler":{"__isSmartRef__":true,"id":5956},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":5957},"name":"node3","partsBinMetaInfo":{"__isSmartRef__":true,"id":5958},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5435},"owner":{"__isSmartRef__":true,"id":5408},"childNodes":[{"__isSmartRef__":true,"id":5961},{"__isSmartRef__":true,"id":7122},{"__isSmartRef__":true,"id":7896},{"__isSmartRef__":true,"id":8928},{"__isSmartRef__":true,"id":9702},{"__isSmartRef__":true,"id":10605},{"__isSmartRef__":true,"id":11895}],"parent":{"__isSmartRef__":true,"id":5409},"level":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12411},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(218.8,110.0)"},"5938":{"submorphs":[],"scripts":[],"id":"0102D7A4-C4DC-44F1-AAC9-83C25DA6676A","shape":{"__isSmartRef__":true,"id":5939},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":5940},"textChunks":[{"__isSmartRef__":true,"id":5952}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":5954},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":5937},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"5939":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"5940":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":5941},{"__isSmartRef__":true,"id":5943},{"__isSmartRef__":true,"id":5945},{"__isSmartRef__":true,"id":5947},{"__isSmartRef__":true,"id":5949}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":5951},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"5941":{"date":{"__isSmartRef__":true,"id":5942},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"5942":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"5943":{"date":{"__isSmartRef__":true,"id":5944},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"5944":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"5945":{"date":{"__isSmartRef__":true,"id":5946},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"5946":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"5947":{"date":{"__isSmartRef__":true,"id":5948},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"5948":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"5949":{"date":{"__isSmartRef__":true,"id":5950},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"5950":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"5951":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"5952":{"style":{"__isSmartRef__":true,"id":5953},"morph":{"__isSmartRef__":true,"id":5938},"chunkOwner":{"__isSmartRef__":true,"id":5938},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5953":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5954":{"morph":{"__isSmartRef__":true,"id":5938},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5955":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"5956":{"morph":{"__isSmartRef__":true,"id":5937},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5957":{},"5958":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":5959}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"5959":{"date":{"__isSmartRef__":true,"id":5960},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"5960":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"5961":{"submorphs":[{"__isSmartRef__":true,"id":5962}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5979},"id":"41F1261C-B048-4E15-AF7C-474718A05E0C","eventHandler":{"__isSmartRef__":true,"id":5980},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":5981},"name":"node4","partsBinMetaInfo":{"__isSmartRef__":true,"id":5982},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5437},"owner":{"__isSmartRef__":true,"id":5408},"childNodes":[{"__isSmartRef__":true,"id":5985},{"__isSmartRef__":true,"id":6114},{"__isSmartRef__":true,"id":6243},{"__isSmartRef__":true,"id":6372},{"__isSmartRef__":true,"id":6501},{"__isSmartRef__":true,"id":6630},{"__isSmartRef__":true,"id":6759},{"__isSmartRef__":true,"id":6888}],"parent":{"__isSmartRef__":true,"id":5937},"level":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7017},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(67.7,160.0)"},"5962":{"submorphs":[],"scripts":[],"id":"BD710E1C-C3DF-4CB4-95D0-36CAA7B48C4B","shape":{"__isSmartRef__":true,"id":5963},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":5964},"textChunks":[{"__isSmartRef__":true,"id":5976}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":5978},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":5961},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"5963":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"5964":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":5965},{"__isSmartRef__":true,"id":5967},{"__isSmartRef__":true,"id":5969},{"__isSmartRef__":true,"id":5971},{"__isSmartRef__":true,"id":5973}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":5975},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"5965":{"date":{"__isSmartRef__":true,"id":5966},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"5966":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"5967":{"date":{"__isSmartRef__":true,"id":5968},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"5968":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"5969":{"date":{"__isSmartRef__":true,"id":5970},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"5970":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"5971":{"date":{"__isSmartRef__":true,"id":5972},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"5972":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"5973":{"date":{"__isSmartRef__":true,"id":5974},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"5974":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"5975":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"5976":{"style":{"__isSmartRef__":true,"id":5977},"morph":{"__isSmartRef__":true,"id":5962},"chunkOwner":{"__isSmartRef__":true,"id":5962},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5977":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5978":{"morph":{"__isSmartRef__":true,"id":5962},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5979":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"5980":{"morph":{"__isSmartRef__":true,"id":5961},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5981":{},"5982":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":5983}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"5983":{"date":{"__isSmartRef__":true,"id":5984},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"5984":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"5985":{"submorphs":[{"__isSmartRef__":true,"id":5986}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6003},"id":"46E4E9C5-B8EB-4CEC-A198-75F6A715517E","eventHandler":{"__isSmartRef__":true,"id":6004},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":6005},"name":"node5","partsBinMetaInfo":{"__isSmartRef__":true,"id":6006},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5439},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":5961},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6009},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(36.7,210.0)"},"5986":{"submorphs":[],"scripts":[],"id":"119B8168-DBF7-4D05-A3C5-0A7B11E073DE","shape":{"__isSmartRef__":true,"id":5987},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":5988},"textChunks":[{"__isSmartRef__":true,"id":6000}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":6002},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":5985},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"5987":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"5988":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":5989},{"__isSmartRef__":true,"id":5991},{"__isSmartRef__":true,"id":5993},{"__isSmartRef__":true,"id":5995},{"__isSmartRef__":true,"id":5997}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":5999},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"5989":{"date":{"__isSmartRef__":true,"id":5990},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"5990":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"5991":{"date":{"__isSmartRef__":true,"id":5992},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"5992":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"5993":{"date":{"__isSmartRef__":true,"id":5994},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"5994":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"5995":{"date":{"__isSmartRef__":true,"id":5996},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"5996":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"5997":{"date":{"__isSmartRef__":true,"id":5998},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"5998":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"5999":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"6000":{"style":{"__isSmartRef__":true,"id":6001},"morph":{"__isSmartRef__":true,"id":5986},"chunkOwner":{"__isSmartRef__":true,"id":5986},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6001":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6002":{"morph":{"__isSmartRef__":true,"id":5986},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6003":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"6004":{"morph":{"__isSmartRef__":true,"id":5985},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6005":{},"6006":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":6007}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"6007":{"date":{"__isSmartRef__":true,"id":6008},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"6008":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"6009":{"buildChildNodes":{"__isSmartRef__":true,"id":6010},"getGameTree":{"__isSmartRef__":true,"id":6014},"getLevel":{"__isSmartRef__":true,"id":6018},"getLevelWeight":{"__isSmartRef__":true,"id":6022},"getWeight":{"__isSmartRef__":true,"id":6026},"setNode":{"__isSmartRef__":true,"id":6030},"setParent":{"__isSmartRef__":true,"id":6034},"getParent":{"__isSmartRef__":true,"id":6038},"deactivate":{"__isSmartRef__":true,"id":6042},"blink":{"__isSmartRef__":true,"id":6046},"ABPreturn":{"__isSmartRef__":true,"id":6050},"ABPstart":{"__isSmartRef__":true,"id":6054},"ABPcontinue":{"__isSmartRef__":true,"id":6058},"ABPshowValue":{"__isSmartRef__":true,"id":6062},"ABPgetValue":{"__isSmartRef__":true,"id":6066},"ABPhasChildNodes":{"__isSmartRef__":true,"id":6070},"onMouseDown":{"__isSmartRef__":true,"id":6074},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":6082},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":6086},"ABPmarkAsDone":{"__isSmartRef__":true,"id":6090},"ABPmarkAsActive":{"__isSmartRef__":true,"id":6094},"getStateMorph":{"__isSmartRef__":true,"id":6098},"showState":{"__isSmartRef__":true,"id":6102},"ABPfailHard":{"__isSmartRef__":true,"id":6106},"markFinalDrawWith":{"__isSmartRef__":true,"id":6110}},"6010":{"varMapping":{"__isSmartRef__":true,"id":6011},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":6012},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6011":{"this":{"__isSmartRef__":true,"id":5985}},"6012":{"timestamp":{"__isSmartRef__":true,"id":6013},"user":"sebastianwoinar","tags":[]},"6013":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"6014":{"varMapping":{"__isSmartRef__":true,"id":6015},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":6016},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6015":{"this":{"__isSmartRef__":true,"id":5985}},"6016":{"timestamp":{"__isSmartRef__":true,"id":6017},"user":"sebastianwoinar","tags":[]},"6017":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6018":{"varMapping":{"__isSmartRef__":true,"id":6019},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":6020},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6019":{"this":{"__isSmartRef__":true,"id":5985}},"6020":{"timestamp":{"__isSmartRef__":true,"id":6021},"user":"sebastianwoinar","tags":[]},"6021":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6022":{"varMapping":{"__isSmartRef__":true,"id":6023},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6024},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6023":{"this":{"__isSmartRef__":true,"id":5985}},"6024":{"timestamp":{"__isSmartRef__":true,"id":6025},"user":"sebastianwoinar","tags":[]},"6025":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6026":{"varMapping":{"__isSmartRef__":true,"id":6027},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":6028},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6027":{"this":{"__isSmartRef__":true,"id":5985}},"6028":{"timestamp":{"__isSmartRef__":true,"id":6029},"user":"sebastianwoinar","tags":[]},"6029":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6030":{"varMapping":{"__isSmartRef__":true,"id":6031},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":6032},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6031":{"this":{"__isSmartRef__":true,"id":5985}},"6032":{"timestamp":{"__isSmartRef__":true,"id":6033},"user":"sebastianwoinar","tags":[]},"6033":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6034":{"varMapping":{"__isSmartRef__":true,"id":6035},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":6036},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6035":{"this":{"__isSmartRef__":true,"id":5985}},"6036":{"timestamp":{"__isSmartRef__":true,"id":6037},"user":"sebastianwoinar","tags":[]},"6037":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6038":{"varMapping":{"__isSmartRef__":true,"id":6039},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":6040},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6039":{"this":{"__isSmartRef__":true,"id":5985}},"6040":{"timestamp":{"__isSmartRef__":true,"id":6041},"user":"sebastianwoinar","tags":[]},"6041":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"6042":{"varMapping":{"__isSmartRef__":true,"id":6043},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":6044},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6043":{"this":{"__isSmartRef__":true,"id":5985}},"6044":{"timestamp":{"__isSmartRef__":true,"id":6045},"user":"sebastianwoinar","tags":[]},"6045":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"6046":{"varMapping":{"__isSmartRef__":true,"id":6047},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":6048},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6047":{"this":{"__isSmartRef__":true,"id":5985}},"6048":{"timestamp":{"__isSmartRef__":true,"id":6049},"user":"sebastianwoinar","tags":[]},"6049":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"6050":{"varMapping":{"__isSmartRef__":true,"id":6051},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":6052},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6051":{"this":{"__isSmartRef__":true,"id":5985}},"6052":{"timestamp":{"__isSmartRef__":true,"id":6053},"user":"sebastianwoinar","tags":[]},"6053":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"6054":{"varMapping":{"__isSmartRef__":true,"id":6055},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":6056},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6055":{"this":{"__isSmartRef__":true,"id":5985}},"6056":{"timestamp":{"__isSmartRef__":true,"id":6057},"user":"sebastianwoinar","tags":[]},"6057":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"6058":{"varMapping":{"__isSmartRef__":true,"id":6059},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":6060},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6059":{"this":{"__isSmartRef__":true,"id":5985}},"6060":{"timestamp":{"__isSmartRef__":true,"id":6061},"user":"sebastianwoinar","tags":[]},"6061":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"6062":{"varMapping":{"__isSmartRef__":true,"id":6063},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":6064},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6063":{"this":{"__isSmartRef__":true,"id":5985}},"6064":{"timestamp":{"__isSmartRef__":true,"id":6065},"user":"sebastianwoinar","tags":[]},"6065":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"6066":{"varMapping":{"__isSmartRef__":true,"id":6067},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":6068},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6067":{"this":{"__isSmartRef__":true,"id":5985}},"6068":{"timestamp":{"__isSmartRef__":true,"id":6069},"user":"sebastianwoinar","tags":[]},"6069":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"6070":{"varMapping":{"__isSmartRef__":true,"id":6071},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":6072},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6071":{"this":{"__isSmartRef__":true,"id":5985}},"6072":{"timestamp":{"__isSmartRef__":true,"id":6073},"user":"sebastianwoinar","tags":[]},"6073":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"6074":{"varMapping":{"__isSmartRef__":true,"id":6075},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":6080},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6075":{"this":{"__isSmartRef__":true,"id":5985},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6076}},"6076":{"$super":{"__isSmartRef__":true,"id":6077}},"6077":{"varMapping":{"__isSmartRef__":true,"id":6078},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6079},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6078":{"obj":{"__isSmartRef__":true,"id":5985},"name":"onMouseDown"},"6079":{},"6080":{"timestamp":{"__isSmartRef__":true,"id":6081},"user":"sebastianwoinar","tags":[]},"6081":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"6082":{"varMapping":{"__isSmartRef__":true,"id":6083},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":6084},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6083":{"this":{"__isSmartRef__":true,"id":5985}},"6084":{"timestamp":{"__isSmartRef__":true,"id":6085},"user":"sebastianwoinar","tags":[]},"6085":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"6086":{"varMapping":{"__isSmartRef__":true,"id":6087},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":6088},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6087":{"this":{"__isSmartRef__":true,"id":5985}},"6088":{"timestamp":{"__isSmartRef__":true,"id":6089},"user":"sebastianwoinar","tags":[]},"6089":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"6090":{"varMapping":{"__isSmartRef__":true,"id":6091},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":6092},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6091":{"this":{"__isSmartRef__":true,"id":5985}},"6092":{"timestamp":{"__isSmartRef__":true,"id":6093},"user":"sebastianwoinar","tags":[]},"6093":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"6094":{"varMapping":{"__isSmartRef__":true,"id":6095},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":6096},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6095":{"this":{"__isSmartRef__":true,"id":5985}},"6096":{"timestamp":{"__isSmartRef__":true,"id":6097},"user":"sebastianwoinar","tags":[]},"6097":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"6098":{"varMapping":{"__isSmartRef__":true,"id":6099},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":6100},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6099":{"this":{"__isSmartRef__":true,"id":5985}},"6100":{"timestamp":{"__isSmartRef__":true,"id":6101},"user":"sebastianwoinar","tags":[]},"6101":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"6102":{"varMapping":{"__isSmartRef__":true,"id":6103},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6104},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6103":{"this":{"__isSmartRef__":true,"id":5985}},"6104":{"timestamp":{"__isSmartRef__":true,"id":6105},"user":"sebastianwoinar","tags":[]},"6105":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"6106":{"varMapping":{"__isSmartRef__":true,"id":6107},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":6108},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6107":{"this":{"__isSmartRef__":true,"id":5985}},"6108":{"timestamp":{"__isSmartRef__":true,"id":6109},"user":"sebastianwoinar","tags":[]},"6109":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"6110":{"varMapping":{"__isSmartRef__":true,"id":6111},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6112},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6111":{"this":{"__isSmartRef__":true,"id":5985}},"6112":{"timestamp":{"__isSmartRef__":true,"id":6113},"user":"sebastianwoinar","tags":[]},"6113":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"6114":{"submorphs":[{"__isSmartRef__":true,"id":6115}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6132},"id":"68FA3A48-E266-45F4-80C4-146EE4E98040","eventHandler":{"__isSmartRef__":true,"id":6133},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":6134},"name":"node6","partsBinMetaInfo":{"__isSmartRef__":true,"id":6135},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5441},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":5961},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6138},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(41.9,210.0)"},"6115":{"submorphs":[],"scripts":[],"id":"9EF3050F-81FC-4954-943A-2A0E275B8EC2","shape":{"__isSmartRef__":true,"id":6116},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":6117},"textChunks":[{"__isSmartRef__":true,"id":6129}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":6131},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":6114},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"6116":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"6117":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":6118},{"__isSmartRef__":true,"id":6120},{"__isSmartRef__":true,"id":6122},{"__isSmartRef__":true,"id":6124},{"__isSmartRef__":true,"id":6126}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":6128},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"6118":{"date":{"__isSmartRef__":true,"id":6119},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"6119":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"6120":{"date":{"__isSmartRef__":true,"id":6121},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"6121":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"6122":{"date":{"__isSmartRef__":true,"id":6123},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"6123":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"6124":{"date":{"__isSmartRef__":true,"id":6125},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"6125":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"6126":{"date":{"__isSmartRef__":true,"id":6127},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"6127":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"6128":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"6129":{"style":{"__isSmartRef__":true,"id":6130},"morph":{"__isSmartRef__":true,"id":6115},"chunkOwner":{"__isSmartRef__":true,"id":6115},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6130":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6131":{"morph":{"__isSmartRef__":true,"id":6115},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6132":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"6133":{"morph":{"__isSmartRef__":true,"id":6114},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6134":{},"6135":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":6136}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"6136":{"date":{"__isSmartRef__":true,"id":6137},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"6137":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"6138":{"buildChildNodes":{"__isSmartRef__":true,"id":6139},"getGameTree":{"__isSmartRef__":true,"id":6143},"getLevel":{"__isSmartRef__":true,"id":6147},"getLevelWeight":{"__isSmartRef__":true,"id":6151},"getWeight":{"__isSmartRef__":true,"id":6155},"setNode":{"__isSmartRef__":true,"id":6159},"setParent":{"__isSmartRef__":true,"id":6163},"getParent":{"__isSmartRef__":true,"id":6167},"deactivate":{"__isSmartRef__":true,"id":6171},"blink":{"__isSmartRef__":true,"id":6175},"ABPreturn":{"__isSmartRef__":true,"id":6179},"ABPstart":{"__isSmartRef__":true,"id":6183},"ABPcontinue":{"__isSmartRef__":true,"id":6187},"ABPshowValue":{"__isSmartRef__":true,"id":6191},"ABPgetValue":{"__isSmartRef__":true,"id":6195},"ABPhasChildNodes":{"__isSmartRef__":true,"id":6199},"onMouseDown":{"__isSmartRef__":true,"id":6203},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":6211},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":6215},"ABPmarkAsDone":{"__isSmartRef__":true,"id":6219},"ABPmarkAsActive":{"__isSmartRef__":true,"id":6223},"getStateMorph":{"__isSmartRef__":true,"id":6227},"showState":{"__isSmartRef__":true,"id":6231},"ABPfailHard":{"__isSmartRef__":true,"id":6235},"markFinalDrawWith":{"__isSmartRef__":true,"id":6239}},"6139":{"varMapping":{"__isSmartRef__":true,"id":6140},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":6141},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6140":{"this":{"__isSmartRef__":true,"id":6114}},"6141":{"timestamp":{"__isSmartRef__":true,"id":6142},"user":"sebastianwoinar","tags":[]},"6142":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"6143":{"varMapping":{"__isSmartRef__":true,"id":6144},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":6145},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6144":{"this":{"__isSmartRef__":true,"id":6114}},"6145":{"timestamp":{"__isSmartRef__":true,"id":6146},"user":"sebastianwoinar","tags":[]},"6146":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6147":{"varMapping":{"__isSmartRef__":true,"id":6148},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":6149},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6148":{"this":{"__isSmartRef__":true,"id":6114}},"6149":{"timestamp":{"__isSmartRef__":true,"id":6150},"user":"sebastianwoinar","tags":[]},"6150":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6151":{"varMapping":{"__isSmartRef__":true,"id":6152},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6153},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6152":{"this":{"__isSmartRef__":true,"id":6114}},"6153":{"timestamp":{"__isSmartRef__":true,"id":6154},"user":"sebastianwoinar","tags":[]},"6154":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6155":{"varMapping":{"__isSmartRef__":true,"id":6156},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":6157},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6156":{"this":{"__isSmartRef__":true,"id":6114}},"6157":{"timestamp":{"__isSmartRef__":true,"id":6158},"user":"sebastianwoinar","tags":[]},"6158":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6159":{"varMapping":{"__isSmartRef__":true,"id":6160},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":6161},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6160":{"this":{"__isSmartRef__":true,"id":6114}},"6161":{"timestamp":{"__isSmartRef__":true,"id":6162},"user":"sebastianwoinar","tags":[]},"6162":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6163":{"varMapping":{"__isSmartRef__":true,"id":6164},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":6165},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6164":{"this":{"__isSmartRef__":true,"id":6114}},"6165":{"timestamp":{"__isSmartRef__":true,"id":6166},"user":"sebastianwoinar","tags":[]},"6166":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6167":{"varMapping":{"__isSmartRef__":true,"id":6168},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":6169},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6168":{"this":{"__isSmartRef__":true,"id":6114}},"6169":{"timestamp":{"__isSmartRef__":true,"id":6170},"user":"sebastianwoinar","tags":[]},"6170":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"6171":{"varMapping":{"__isSmartRef__":true,"id":6172},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":6173},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6172":{"this":{"__isSmartRef__":true,"id":6114}},"6173":{"timestamp":{"__isSmartRef__":true,"id":6174},"user":"sebastianwoinar","tags":[]},"6174":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"6175":{"varMapping":{"__isSmartRef__":true,"id":6176},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":6177},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6176":{"this":{"__isSmartRef__":true,"id":6114}},"6177":{"timestamp":{"__isSmartRef__":true,"id":6178},"user":"sebastianwoinar","tags":[]},"6178":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"6179":{"varMapping":{"__isSmartRef__":true,"id":6180},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":6181},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6180":{"this":{"__isSmartRef__":true,"id":6114}},"6181":{"timestamp":{"__isSmartRef__":true,"id":6182},"user":"sebastianwoinar","tags":[]},"6182":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"6183":{"varMapping":{"__isSmartRef__":true,"id":6184},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":6185},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6184":{"this":{"__isSmartRef__":true,"id":6114}},"6185":{"timestamp":{"__isSmartRef__":true,"id":6186},"user":"sebastianwoinar","tags":[]},"6186":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"6187":{"varMapping":{"__isSmartRef__":true,"id":6188},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":6189},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6188":{"this":{"__isSmartRef__":true,"id":6114}},"6189":{"timestamp":{"__isSmartRef__":true,"id":6190},"user":"sebastianwoinar","tags":[]},"6190":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"6191":{"varMapping":{"__isSmartRef__":true,"id":6192},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":6193},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6192":{"this":{"__isSmartRef__":true,"id":6114}},"6193":{"timestamp":{"__isSmartRef__":true,"id":6194},"user":"sebastianwoinar","tags":[]},"6194":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"6195":{"varMapping":{"__isSmartRef__":true,"id":6196},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":6197},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6196":{"this":{"__isSmartRef__":true,"id":6114}},"6197":{"timestamp":{"__isSmartRef__":true,"id":6198},"user":"sebastianwoinar","tags":[]},"6198":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"6199":{"varMapping":{"__isSmartRef__":true,"id":6200},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":6201},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6200":{"this":{"__isSmartRef__":true,"id":6114}},"6201":{"timestamp":{"__isSmartRef__":true,"id":6202},"user":"sebastianwoinar","tags":[]},"6202":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"6203":{"varMapping":{"__isSmartRef__":true,"id":6204},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":6209},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6204":{"this":{"__isSmartRef__":true,"id":6114},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6205}},"6205":{"$super":{"__isSmartRef__":true,"id":6206}},"6206":{"varMapping":{"__isSmartRef__":true,"id":6207},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6208},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6207":{"obj":{"__isSmartRef__":true,"id":6114},"name":"onMouseDown"},"6208":{},"6209":{"timestamp":{"__isSmartRef__":true,"id":6210},"user":"sebastianwoinar","tags":[]},"6210":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"6211":{"varMapping":{"__isSmartRef__":true,"id":6212},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":6213},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6212":{"this":{"__isSmartRef__":true,"id":6114}},"6213":{"timestamp":{"__isSmartRef__":true,"id":6214},"user":"sebastianwoinar","tags":[]},"6214":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"6215":{"varMapping":{"__isSmartRef__":true,"id":6216},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":6217},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6216":{"this":{"__isSmartRef__":true,"id":6114}},"6217":{"timestamp":{"__isSmartRef__":true,"id":6218},"user":"sebastianwoinar","tags":[]},"6218":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"6219":{"varMapping":{"__isSmartRef__":true,"id":6220},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":6221},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6220":{"this":{"__isSmartRef__":true,"id":6114}},"6221":{"timestamp":{"__isSmartRef__":true,"id":6222},"user":"sebastianwoinar","tags":[]},"6222":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"6223":{"varMapping":{"__isSmartRef__":true,"id":6224},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":6225},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6224":{"this":{"__isSmartRef__":true,"id":6114}},"6225":{"timestamp":{"__isSmartRef__":true,"id":6226},"user":"sebastianwoinar","tags":[]},"6226":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"6227":{"varMapping":{"__isSmartRef__":true,"id":6228},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":6229},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6228":{"this":{"__isSmartRef__":true,"id":6114}},"6229":{"timestamp":{"__isSmartRef__":true,"id":6230},"user":"sebastianwoinar","tags":[]},"6230":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"6231":{"varMapping":{"__isSmartRef__":true,"id":6232},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6233},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6232":{"this":{"__isSmartRef__":true,"id":6114}},"6233":{"timestamp":{"__isSmartRef__":true,"id":6234},"user":"sebastianwoinar","tags":[]},"6234":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"6235":{"varMapping":{"__isSmartRef__":true,"id":6236},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":6237},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6236":{"this":{"__isSmartRef__":true,"id":6114}},"6237":{"timestamp":{"__isSmartRef__":true,"id":6238},"user":"sebastianwoinar","tags":[]},"6238":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"6239":{"varMapping":{"__isSmartRef__":true,"id":6240},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6241},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6240":{"this":{"__isSmartRef__":true,"id":6114}},"6241":{"timestamp":{"__isSmartRef__":true,"id":6242},"user":"sebastianwoinar","tags":[]},"6242":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"6243":{"submorphs":[{"__isSmartRef__":true,"id":6244}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6261},"id":"B5FB4539-6ED6-40FB-9E29-485697607D51","eventHandler":{"__isSmartRef__":true,"id":6262},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":6263},"name":"node7","partsBinMetaInfo":{"__isSmartRef__":true,"id":6264},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5443},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":5961},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6267},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(47.0,210.0)"},"6244":{"submorphs":[],"scripts":[],"id":"093CCA22-0C2D-4B57-98B6-F4D106B00E8B","shape":{"__isSmartRef__":true,"id":6245},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":6246},"textChunks":[{"__isSmartRef__":true,"id":6258}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":6260},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":6243},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"6245":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"6246":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":6247},{"__isSmartRef__":true,"id":6249},{"__isSmartRef__":true,"id":6251},{"__isSmartRef__":true,"id":6253},{"__isSmartRef__":true,"id":6255}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":6257},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"6247":{"date":{"__isSmartRef__":true,"id":6248},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"6248":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"6249":{"date":{"__isSmartRef__":true,"id":6250},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"6250":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"6251":{"date":{"__isSmartRef__":true,"id":6252},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"6252":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"6253":{"date":{"__isSmartRef__":true,"id":6254},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"6254":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"6255":{"date":{"__isSmartRef__":true,"id":6256},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"6256":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"6257":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"6258":{"style":{"__isSmartRef__":true,"id":6259},"morph":{"__isSmartRef__":true,"id":6244},"chunkOwner":{"__isSmartRef__":true,"id":6244},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6259":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6260":{"morph":{"__isSmartRef__":true,"id":6244},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6261":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"6262":{"morph":{"__isSmartRef__":true,"id":6243},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6263":{},"6264":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":6265}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"6265":{"date":{"__isSmartRef__":true,"id":6266},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"6266":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"6267":{"buildChildNodes":{"__isSmartRef__":true,"id":6268},"getGameTree":{"__isSmartRef__":true,"id":6272},"getLevel":{"__isSmartRef__":true,"id":6276},"getLevelWeight":{"__isSmartRef__":true,"id":6280},"getWeight":{"__isSmartRef__":true,"id":6284},"setNode":{"__isSmartRef__":true,"id":6288},"setParent":{"__isSmartRef__":true,"id":6292},"getParent":{"__isSmartRef__":true,"id":6296},"deactivate":{"__isSmartRef__":true,"id":6300},"blink":{"__isSmartRef__":true,"id":6304},"ABPreturn":{"__isSmartRef__":true,"id":6308},"ABPstart":{"__isSmartRef__":true,"id":6312},"ABPcontinue":{"__isSmartRef__":true,"id":6316},"ABPshowValue":{"__isSmartRef__":true,"id":6320},"ABPgetValue":{"__isSmartRef__":true,"id":6324},"ABPhasChildNodes":{"__isSmartRef__":true,"id":6328},"onMouseDown":{"__isSmartRef__":true,"id":6332},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":6340},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":6344},"ABPmarkAsDone":{"__isSmartRef__":true,"id":6348},"ABPmarkAsActive":{"__isSmartRef__":true,"id":6352},"getStateMorph":{"__isSmartRef__":true,"id":6356},"showState":{"__isSmartRef__":true,"id":6360},"ABPfailHard":{"__isSmartRef__":true,"id":6364},"markFinalDrawWith":{"__isSmartRef__":true,"id":6368}},"6268":{"varMapping":{"__isSmartRef__":true,"id":6269},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":6270},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6269":{"this":{"__isSmartRef__":true,"id":6243}},"6270":{"timestamp":{"__isSmartRef__":true,"id":6271},"user":"sebastianwoinar","tags":[]},"6271":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"6272":{"varMapping":{"__isSmartRef__":true,"id":6273},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":6274},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6273":{"this":{"__isSmartRef__":true,"id":6243}},"6274":{"timestamp":{"__isSmartRef__":true,"id":6275},"user":"sebastianwoinar","tags":[]},"6275":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6276":{"varMapping":{"__isSmartRef__":true,"id":6277},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":6278},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6277":{"this":{"__isSmartRef__":true,"id":6243}},"6278":{"timestamp":{"__isSmartRef__":true,"id":6279},"user":"sebastianwoinar","tags":[]},"6279":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6280":{"varMapping":{"__isSmartRef__":true,"id":6281},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6282},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6281":{"this":{"__isSmartRef__":true,"id":6243}},"6282":{"timestamp":{"__isSmartRef__":true,"id":6283},"user":"sebastianwoinar","tags":[]},"6283":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6284":{"varMapping":{"__isSmartRef__":true,"id":6285},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":6286},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6285":{"this":{"__isSmartRef__":true,"id":6243}},"6286":{"timestamp":{"__isSmartRef__":true,"id":6287},"user":"sebastianwoinar","tags":[]},"6287":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6288":{"varMapping":{"__isSmartRef__":true,"id":6289},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":6290},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6289":{"this":{"__isSmartRef__":true,"id":6243}},"6290":{"timestamp":{"__isSmartRef__":true,"id":6291},"user":"sebastianwoinar","tags":[]},"6291":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6292":{"varMapping":{"__isSmartRef__":true,"id":6293},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":6294},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6293":{"this":{"__isSmartRef__":true,"id":6243}},"6294":{"timestamp":{"__isSmartRef__":true,"id":6295},"user":"sebastianwoinar","tags":[]},"6295":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6296":{"varMapping":{"__isSmartRef__":true,"id":6297},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":6298},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6297":{"this":{"__isSmartRef__":true,"id":6243}},"6298":{"timestamp":{"__isSmartRef__":true,"id":6299},"user":"sebastianwoinar","tags":[]},"6299":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"6300":{"varMapping":{"__isSmartRef__":true,"id":6301},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":6302},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6301":{"this":{"__isSmartRef__":true,"id":6243}},"6302":{"timestamp":{"__isSmartRef__":true,"id":6303},"user":"sebastianwoinar","tags":[]},"6303":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"6304":{"varMapping":{"__isSmartRef__":true,"id":6305},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":6306},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6305":{"this":{"__isSmartRef__":true,"id":6243}},"6306":{"timestamp":{"__isSmartRef__":true,"id":6307},"user":"sebastianwoinar","tags":[]},"6307":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"6308":{"varMapping":{"__isSmartRef__":true,"id":6309},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":6310},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6309":{"this":{"__isSmartRef__":true,"id":6243}},"6310":{"timestamp":{"__isSmartRef__":true,"id":6311},"user":"sebastianwoinar","tags":[]},"6311":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"6312":{"varMapping":{"__isSmartRef__":true,"id":6313},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":6314},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6313":{"this":{"__isSmartRef__":true,"id":6243}},"6314":{"timestamp":{"__isSmartRef__":true,"id":6315},"user":"sebastianwoinar","tags":[]},"6315":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"6316":{"varMapping":{"__isSmartRef__":true,"id":6317},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":6318},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6317":{"this":{"__isSmartRef__":true,"id":6243}},"6318":{"timestamp":{"__isSmartRef__":true,"id":6319},"user":"sebastianwoinar","tags":[]},"6319":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"6320":{"varMapping":{"__isSmartRef__":true,"id":6321},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":6322},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6321":{"this":{"__isSmartRef__":true,"id":6243}},"6322":{"timestamp":{"__isSmartRef__":true,"id":6323},"user":"sebastianwoinar","tags":[]},"6323":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"6324":{"varMapping":{"__isSmartRef__":true,"id":6325},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":6326},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6325":{"this":{"__isSmartRef__":true,"id":6243}},"6326":{"timestamp":{"__isSmartRef__":true,"id":6327},"user":"sebastianwoinar","tags":[]},"6327":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"6328":{"varMapping":{"__isSmartRef__":true,"id":6329},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":6330},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6329":{"this":{"__isSmartRef__":true,"id":6243}},"6330":{"timestamp":{"__isSmartRef__":true,"id":6331},"user":"sebastianwoinar","tags":[]},"6331":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"6332":{"varMapping":{"__isSmartRef__":true,"id":6333},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":6338},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6333":{"this":{"__isSmartRef__":true,"id":6243},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6334}},"6334":{"$super":{"__isSmartRef__":true,"id":6335}},"6335":{"varMapping":{"__isSmartRef__":true,"id":6336},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6337},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6336":{"obj":{"__isSmartRef__":true,"id":6243},"name":"onMouseDown"},"6337":{},"6338":{"timestamp":{"__isSmartRef__":true,"id":6339},"user":"sebastianwoinar","tags":[]},"6339":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"6340":{"varMapping":{"__isSmartRef__":true,"id":6341},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":6342},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6341":{"this":{"__isSmartRef__":true,"id":6243}},"6342":{"timestamp":{"__isSmartRef__":true,"id":6343},"user":"sebastianwoinar","tags":[]},"6343":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"6344":{"varMapping":{"__isSmartRef__":true,"id":6345},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":6346},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6345":{"this":{"__isSmartRef__":true,"id":6243}},"6346":{"timestamp":{"__isSmartRef__":true,"id":6347},"user":"sebastianwoinar","tags":[]},"6347":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"6348":{"varMapping":{"__isSmartRef__":true,"id":6349},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":6350},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6349":{"this":{"__isSmartRef__":true,"id":6243}},"6350":{"timestamp":{"__isSmartRef__":true,"id":6351},"user":"sebastianwoinar","tags":[]},"6351":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"6352":{"varMapping":{"__isSmartRef__":true,"id":6353},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":6354},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6353":{"this":{"__isSmartRef__":true,"id":6243}},"6354":{"timestamp":{"__isSmartRef__":true,"id":6355},"user":"sebastianwoinar","tags":[]},"6355":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"6356":{"varMapping":{"__isSmartRef__":true,"id":6357},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":6358},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6357":{"this":{"__isSmartRef__":true,"id":6243}},"6358":{"timestamp":{"__isSmartRef__":true,"id":6359},"user":"sebastianwoinar","tags":[]},"6359":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"6360":{"varMapping":{"__isSmartRef__":true,"id":6361},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6362},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6361":{"this":{"__isSmartRef__":true,"id":6243}},"6362":{"timestamp":{"__isSmartRef__":true,"id":6363},"user":"sebastianwoinar","tags":[]},"6363":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"6364":{"varMapping":{"__isSmartRef__":true,"id":6365},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":6366},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6365":{"this":{"__isSmartRef__":true,"id":6243}},"6366":{"timestamp":{"__isSmartRef__":true,"id":6367},"user":"sebastianwoinar","tags":[]},"6367":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"6368":{"varMapping":{"__isSmartRef__":true,"id":6369},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6370},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6369":{"this":{"__isSmartRef__":true,"id":6243}},"6370":{"timestamp":{"__isSmartRef__":true,"id":6371},"user":"sebastianwoinar","tags":[]},"6371":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"6372":{"submorphs":[{"__isSmartRef__":true,"id":6373}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6390},"id":"964B0A72-4A6D-4B78-B368-51EDF630E004","eventHandler":{"__isSmartRef__":true,"id":6391},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":6392},"name":"node8","partsBinMetaInfo":{"__isSmartRef__":true,"id":6393},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5445},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":5961},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6396},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(52.2,210.0)"},"6373":{"submorphs":[],"scripts":[],"id":"84F025E3-AECA-42F3-8B88-6083C3703D4A","shape":{"__isSmartRef__":true,"id":6374},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":6375},"textChunks":[{"__isSmartRef__":true,"id":6387}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":6389},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":6372},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"6374":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"6375":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":6376},{"__isSmartRef__":true,"id":6378},{"__isSmartRef__":true,"id":6380},{"__isSmartRef__":true,"id":6382},{"__isSmartRef__":true,"id":6384}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":6386},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"6376":{"date":{"__isSmartRef__":true,"id":6377},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"6377":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"6378":{"date":{"__isSmartRef__":true,"id":6379},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"6379":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"6380":{"date":{"__isSmartRef__":true,"id":6381},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"6381":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"6382":{"date":{"__isSmartRef__":true,"id":6383},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"6383":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"6384":{"date":{"__isSmartRef__":true,"id":6385},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"6385":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"6386":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"6387":{"style":{"__isSmartRef__":true,"id":6388},"morph":{"__isSmartRef__":true,"id":6373},"chunkOwner":{"__isSmartRef__":true,"id":6373},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6388":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6389":{"morph":{"__isSmartRef__":true,"id":6373},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6390":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"6391":{"morph":{"__isSmartRef__":true,"id":6372},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6392":{},"6393":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":6394}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"6394":{"date":{"__isSmartRef__":true,"id":6395},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"6395":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"6396":{"buildChildNodes":{"__isSmartRef__":true,"id":6397},"getGameTree":{"__isSmartRef__":true,"id":6401},"getLevel":{"__isSmartRef__":true,"id":6405},"getLevelWeight":{"__isSmartRef__":true,"id":6409},"getWeight":{"__isSmartRef__":true,"id":6413},"setNode":{"__isSmartRef__":true,"id":6417},"setParent":{"__isSmartRef__":true,"id":6421},"getParent":{"__isSmartRef__":true,"id":6425},"deactivate":{"__isSmartRef__":true,"id":6429},"blink":{"__isSmartRef__":true,"id":6433},"ABPreturn":{"__isSmartRef__":true,"id":6437},"ABPstart":{"__isSmartRef__":true,"id":6441},"ABPcontinue":{"__isSmartRef__":true,"id":6445},"ABPshowValue":{"__isSmartRef__":true,"id":6449},"ABPgetValue":{"__isSmartRef__":true,"id":6453},"ABPhasChildNodes":{"__isSmartRef__":true,"id":6457},"onMouseDown":{"__isSmartRef__":true,"id":6461},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":6469},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":6473},"ABPmarkAsDone":{"__isSmartRef__":true,"id":6477},"ABPmarkAsActive":{"__isSmartRef__":true,"id":6481},"getStateMorph":{"__isSmartRef__":true,"id":6485},"showState":{"__isSmartRef__":true,"id":6489},"ABPfailHard":{"__isSmartRef__":true,"id":6493},"markFinalDrawWith":{"__isSmartRef__":true,"id":6497}},"6397":{"varMapping":{"__isSmartRef__":true,"id":6398},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":6399},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6398":{"this":{"__isSmartRef__":true,"id":6372}},"6399":{"timestamp":{"__isSmartRef__":true,"id":6400},"user":"sebastianwoinar","tags":[]},"6400":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"6401":{"varMapping":{"__isSmartRef__":true,"id":6402},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":6403},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6402":{"this":{"__isSmartRef__":true,"id":6372}},"6403":{"timestamp":{"__isSmartRef__":true,"id":6404},"user":"sebastianwoinar","tags":[]},"6404":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6405":{"varMapping":{"__isSmartRef__":true,"id":6406},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":6407},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6406":{"this":{"__isSmartRef__":true,"id":6372}},"6407":{"timestamp":{"__isSmartRef__":true,"id":6408},"user":"sebastianwoinar","tags":[]},"6408":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6409":{"varMapping":{"__isSmartRef__":true,"id":6410},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6411},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6410":{"this":{"__isSmartRef__":true,"id":6372}},"6411":{"timestamp":{"__isSmartRef__":true,"id":6412},"user":"sebastianwoinar","tags":[]},"6412":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6413":{"varMapping":{"__isSmartRef__":true,"id":6414},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":6415},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6414":{"this":{"__isSmartRef__":true,"id":6372}},"6415":{"timestamp":{"__isSmartRef__":true,"id":6416},"user":"sebastianwoinar","tags":[]},"6416":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6417":{"varMapping":{"__isSmartRef__":true,"id":6418},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":6419},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6418":{"this":{"__isSmartRef__":true,"id":6372}},"6419":{"timestamp":{"__isSmartRef__":true,"id":6420},"user":"sebastianwoinar","tags":[]},"6420":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6421":{"varMapping":{"__isSmartRef__":true,"id":6422},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":6423},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6422":{"this":{"__isSmartRef__":true,"id":6372}},"6423":{"timestamp":{"__isSmartRef__":true,"id":6424},"user":"sebastianwoinar","tags":[]},"6424":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6425":{"varMapping":{"__isSmartRef__":true,"id":6426},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":6427},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6426":{"this":{"__isSmartRef__":true,"id":6372}},"6427":{"timestamp":{"__isSmartRef__":true,"id":6428},"user":"sebastianwoinar","tags":[]},"6428":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"6429":{"varMapping":{"__isSmartRef__":true,"id":6430},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":6431},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6430":{"this":{"__isSmartRef__":true,"id":6372}},"6431":{"timestamp":{"__isSmartRef__":true,"id":6432},"user":"sebastianwoinar","tags":[]},"6432":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"6433":{"varMapping":{"__isSmartRef__":true,"id":6434},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":6435},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6434":{"this":{"__isSmartRef__":true,"id":6372}},"6435":{"timestamp":{"__isSmartRef__":true,"id":6436},"user":"sebastianwoinar","tags":[]},"6436":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"6437":{"varMapping":{"__isSmartRef__":true,"id":6438},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":6439},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6438":{"this":{"__isSmartRef__":true,"id":6372}},"6439":{"timestamp":{"__isSmartRef__":true,"id":6440},"user":"sebastianwoinar","tags":[]},"6440":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"6441":{"varMapping":{"__isSmartRef__":true,"id":6442},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":6443},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6442":{"this":{"__isSmartRef__":true,"id":6372}},"6443":{"timestamp":{"__isSmartRef__":true,"id":6444},"user":"sebastianwoinar","tags":[]},"6444":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"6445":{"varMapping":{"__isSmartRef__":true,"id":6446},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":6447},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6446":{"this":{"__isSmartRef__":true,"id":6372}},"6447":{"timestamp":{"__isSmartRef__":true,"id":6448},"user":"sebastianwoinar","tags":[]},"6448":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"6449":{"varMapping":{"__isSmartRef__":true,"id":6450},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":6451},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6450":{"this":{"__isSmartRef__":true,"id":6372}},"6451":{"timestamp":{"__isSmartRef__":true,"id":6452},"user":"sebastianwoinar","tags":[]},"6452":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"6453":{"varMapping":{"__isSmartRef__":true,"id":6454},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":6455},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6454":{"this":{"__isSmartRef__":true,"id":6372}},"6455":{"timestamp":{"__isSmartRef__":true,"id":6456},"user":"sebastianwoinar","tags":[]},"6456":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"6457":{"varMapping":{"__isSmartRef__":true,"id":6458},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":6459},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6458":{"this":{"__isSmartRef__":true,"id":6372}},"6459":{"timestamp":{"__isSmartRef__":true,"id":6460},"user":"sebastianwoinar","tags":[]},"6460":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"6461":{"varMapping":{"__isSmartRef__":true,"id":6462},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":6467},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6462":{"this":{"__isSmartRef__":true,"id":6372},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6463}},"6463":{"$super":{"__isSmartRef__":true,"id":6464}},"6464":{"varMapping":{"__isSmartRef__":true,"id":6465},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6466},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6465":{"obj":{"__isSmartRef__":true,"id":6372},"name":"onMouseDown"},"6466":{},"6467":{"timestamp":{"__isSmartRef__":true,"id":6468},"user":"sebastianwoinar","tags":[]},"6468":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"6469":{"varMapping":{"__isSmartRef__":true,"id":6470},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":6471},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6470":{"this":{"__isSmartRef__":true,"id":6372}},"6471":{"timestamp":{"__isSmartRef__":true,"id":6472},"user":"sebastianwoinar","tags":[]},"6472":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"6473":{"varMapping":{"__isSmartRef__":true,"id":6474},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":6475},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6474":{"this":{"__isSmartRef__":true,"id":6372}},"6475":{"timestamp":{"__isSmartRef__":true,"id":6476},"user":"sebastianwoinar","tags":[]},"6476":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"6477":{"varMapping":{"__isSmartRef__":true,"id":6478},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":6479},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6478":{"this":{"__isSmartRef__":true,"id":6372}},"6479":{"timestamp":{"__isSmartRef__":true,"id":6480},"user":"sebastianwoinar","tags":[]},"6480":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"6481":{"varMapping":{"__isSmartRef__":true,"id":6482},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":6483},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6482":{"this":{"__isSmartRef__":true,"id":6372}},"6483":{"timestamp":{"__isSmartRef__":true,"id":6484},"user":"sebastianwoinar","tags":[]},"6484":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"6485":{"varMapping":{"__isSmartRef__":true,"id":6486},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":6487},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6486":{"this":{"__isSmartRef__":true,"id":6372}},"6487":{"timestamp":{"__isSmartRef__":true,"id":6488},"user":"sebastianwoinar","tags":[]},"6488":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"6489":{"varMapping":{"__isSmartRef__":true,"id":6490},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6491},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6490":{"this":{"__isSmartRef__":true,"id":6372}},"6491":{"timestamp":{"__isSmartRef__":true,"id":6492},"user":"sebastianwoinar","tags":[]},"6492":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"6493":{"varMapping":{"__isSmartRef__":true,"id":6494},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":6495},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6494":{"this":{"__isSmartRef__":true,"id":6372}},"6495":{"timestamp":{"__isSmartRef__":true,"id":6496},"user":"sebastianwoinar","tags":[]},"6496":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"6497":{"varMapping":{"__isSmartRef__":true,"id":6498},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6499},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6498":{"this":{"__isSmartRef__":true,"id":6372}},"6499":{"timestamp":{"__isSmartRef__":true,"id":6500},"user":"sebastianwoinar","tags":[]},"6500":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"6501":{"submorphs":[{"__isSmartRef__":true,"id":6502}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6519},"id":"E07B5290-A277-4C23-BFA4-4F4AD52ECCB9","eventHandler":{"__isSmartRef__":true,"id":6520},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":6521},"name":"node9","partsBinMetaInfo":{"__isSmartRef__":true,"id":6522},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5447},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":5961},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6525},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(57.4,210.0)"},"6502":{"submorphs":[],"scripts":[],"id":"B3E1F5A0-8301-42DD-86E5-2693323CE0EE","shape":{"__isSmartRef__":true,"id":6503},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":6504},"textChunks":[{"__isSmartRef__":true,"id":6516}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":6518},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":6501},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"6503":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"6504":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":6505},{"__isSmartRef__":true,"id":6507},{"__isSmartRef__":true,"id":6509},{"__isSmartRef__":true,"id":6511},{"__isSmartRef__":true,"id":6513}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":6515},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"6505":{"date":{"__isSmartRef__":true,"id":6506},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"6506":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"6507":{"date":{"__isSmartRef__":true,"id":6508},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"6508":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"6509":{"date":{"__isSmartRef__":true,"id":6510},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"6510":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"6511":{"date":{"__isSmartRef__":true,"id":6512},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"6512":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"6513":{"date":{"__isSmartRef__":true,"id":6514},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"6514":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"6515":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"6516":{"style":{"__isSmartRef__":true,"id":6517},"morph":{"__isSmartRef__":true,"id":6502},"chunkOwner":{"__isSmartRef__":true,"id":6502},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6517":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6518":{"morph":{"__isSmartRef__":true,"id":6502},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6519":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"6520":{"morph":{"__isSmartRef__":true,"id":6501},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6521":{},"6522":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":6523}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"6523":{"date":{"__isSmartRef__":true,"id":6524},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"6524":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"6525":{"buildChildNodes":{"__isSmartRef__":true,"id":6526},"getGameTree":{"__isSmartRef__":true,"id":6530},"getLevel":{"__isSmartRef__":true,"id":6534},"getLevelWeight":{"__isSmartRef__":true,"id":6538},"getWeight":{"__isSmartRef__":true,"id":6542},"setNode":{"__isSmartRef__":true,"id":6546},"setParent":{"__isSmartRef__":true,"id":6550},"getParent":{"__isSmartRef__":true,"id":6554},"deactivate":{"__isSmartRef__":true,"id":6558},"blink":{"__isSmartRef__":true,"id":6562},"ABPreturn":{"__isSmartRef__":true,"id":6566},"ABPstart":{"__isSmartRef__":true,"id":6570},"ABPcontinue":{"__isSmartRef__":true,"id":6574},"ABPshowValue":{"__isSmartRef__":true,"id":6578},"ABPgetValue":{"__isSmartRef__":true,"id":6582},"ABPhasChildNodes":{"__isSmartRef__":true,"id":6586},"onMouseDown":{"__isSmartRef__":true,"id":6590},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":6598},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":6602},"ABPmarkAsDone":{"__isSmartRef__":true,"id":6606},"ABPmarkAsActive":{"__isSmartRef__":true,"id":6610},"getStateMorph":{"__isSmartRef__":true,"id":6614},"showState":{"__isSmartRef__":true,"id":6618},"ABPfailHard":{"__isSmartRef__":true,"id":6622},"markFinalDrawWith":{"__isSmartRef__":true,"id":6626}},"6526":{"varMapping":{"__isSmartRef__":true,"id":6527},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":6528},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6527":{"this":{"__isSmartRef__":true,"id":6501}},"6528":{"timestamp":{"__isSmartRef__":true,"id":6529},"user":"sebastianwoinar","tags":[]},"6529":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"6530":{"varMapping":{"__isSmartRef__":true,"id":6531},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":6532},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6531":{"this":{"__isSmartRef__":true,"id":6501}},"6532":{"timestamp":{"__isSmartRef__":true,"id":6533},"user":"sebastianwoinar","tags":[]},"6533":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6534":{"varMapping":{"__isSmartRef__":true,"id":6535},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":6536},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6535":{"this":{"__isSmartRef__":true,"id":6501}},"6536":{"timestamp":{"__isSmartRef__":true,"id":6537},"user":"sebastianwoinar","tags":[]},"6537":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6538":{"varMapping":{"__isSmartRef__":true,"id":6539},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6540},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6539":{"this":{"__isSmartRef__":true,"id":6501}},"6540":{"timestamp":{"__isSmartRef__":true,"id":6541},"user":"sebastianwoinar","tags":[]},"6541":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6542":{"varMapping":{"__isSmartRef__":true,"id":6543},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":6544},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6543":{"this":{"__isSmartRef__":true,"id":6501}},"6544":{"timestamp":{"__isSmartRef__":true,"id":6545},"user":"sebastianwoinar","tags":[]},"6545":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6546":{"varMapping":{"__isSmartRef__":true,"id":6547},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":6548},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6547":{"this":{"__isSmartRef__":true,"id":6501}},"6548":{"timestamp":{"__isSmartRef__":true,"id":6549},"user":"sebastianwoinar","tags":[]},"6549":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6550":{"varMapping":{"__isSmartRef__":true,"id":6551},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":6552},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6551":{"this":{"__isSmartRef__":true,"id":6501}},"6552":{"timestamp":{"__isSmartRef__":true,"id":6553},"user":"sebastianwoinar","tags":[]},"6553":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6554":{"varMapping":{"__isSmartRef__":true,"id":6555},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":6556},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6555":{"this":{"__isSmartRef__":true,"id":6501}},"6556":{"timestamp":{"__isSmartRef__":true,"id":6557},"user":"sebastianwoinar","tags":[]},"6557":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"6558":{"varMapping":{"__isSmartRef__":true,"id":6559},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":6560},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6559":{"this":{"__isSmartRef__":true,"id":6501}},"6560":{"timestamp":{"__isSmartRef__":true,"id":6561},"user":"sebastianwoinar","tags":[]},"6561":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"6562":{"varMapping":{"__isSmartRef__":true,"id":6563},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":6564},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6563":{"this":{"__isSmartRef__":true,"id":6501}},"6564":{"timestamp":{"__isSmartRef__":true,"id":6565},"user":"sebastianwoinar","tags":[]},"6565":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"6566":{"varMapping":{"__isSmartRef__":true,"id":6567},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":6568},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6567":{"this":{"__isSmartRef__":true,"id":6501}},"6568":{"timestamp":{"__isSmartRef__":true,"id":6569},"user":"sebastianwoinar","tags":[]},"6569":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"6570":{"varMapping":{"__isSmartRef__":true,"id":6571},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":6572},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6571":{"this":{"__isSmartRef__":true,"id":6501}},"6572":{"timestamp":{"__isSmartRef__":true,"id":6573},"user":"sebastianwoinar","tags":[]},"6573":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"6574":{"varMapping":{"__isSmartRef__":true,"id":6575},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":6576},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6575":{"this":{"__isSmartRef__":true,"id":6501}},"6576":{"timestamp":{"__isSmartRef__":true,"id":6577},"user":"sebastianwoinar","tags":[]},"6577":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"6578":{"varMapping":{"__isSmartRef__":true,"id":6579},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":6580},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6579":{"this":{"__isSmartRef__":true,"id":6501}},"6580":{"timestamp":{"__isSmartRef__":true,"id":6581},"user":"sebastianwoinar","tags":[]},"6581":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"6582":{"varMapping":{"__isSmartRef__":true,"id":6583},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":6584},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6583":{"this":{"__isSmartRef__":true,"id":6501}},"6584":{"timestamp":{"__isSmartRef__":true,"id":6585},"user":"sebastianwoinar","tags":[]},"6585":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"6586":{"varMapping":{"__isSmartRef__":true,"id":6587},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":6588},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6587":{"this":{"__isSmartRef__":true,"id":6501}},"6588":{"timestamp":{"__isSmartRef__":true,"id":6589},"user":"sebastianwoinar","tags":[]},"6589":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"6590":{"varMapping":{"__isSmartRef__":true,"id":6591},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":6596},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6591":{"this":{"__isSmartRef__":true,"id":6501},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6592}},"6592":{"$super":{"__isSmartRef__":true,"id":6593}},"6593":{"varMapping":{"__isSmartRef__":true,"id":6594},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6595},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6594":{"obj":{"__isSmartRef__":true,"id":6501},"name":"onMouseDown"},"6595":{},"6596":{"timestamp":{"__isSmartRef__":true,"id":6597},"user":"sebastianwoinar","tags":[]},"6597":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"6598":{"varMapping":{"__isSmartRef__":true,"id":6599},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":6600},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6599":{"this":{"__isSmartRef__":true,"id":6501}},"6600":{"timestamp":{"__isSmartRef__":true,"id":6601},"user":"sebastianwoinar","tags":[]},"6601":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"6602":{"varMapping":{"__isSmartRef__":true,"id":6603},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":6604},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6603":{"this":{"__isSmartRef__":true,"id":6501}},"6604":{"timestamp":{"__isSmartRef__":true,"id":6605},"user":"sebastianwoinar","tags":[]},"6605":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"6606":{"varMapping":{"__isSmartRef__":true,"id":6607},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":6608},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6607":{"this":{"__isSmartRef__":true,"id":6501}},"6608":{"timestamp":{"__isSmartRef__":true,"id":6609},"user":"sebastianwoinar","tags":[]},"6609":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"6610":{"varMapping":{"__isSmartRef__":true,"id":6611},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":6612},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6611":{"this":{"__isSmartRef__":true,"id":6501}},"6612":{"timestamp":{"__isSmartRef__":true,"id":6613},"user":"sebastianwoinar","tags":[]},"6613":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"6614":{"varMapping":{"__isSmartRef__":true,"id":6615},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":6616},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6615":{"this":{"__isSmartRef__":true,"id":6501}},"6616":{"timestamp":{"__isSmartRef__":true,"id":6617},"user":"sebastianwoinar","tags":[]},"6617":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"6618":{"varMapping":{"__isSmartRef__":true,"id":6619},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6620},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6619":{"this":{"__isSmartRef__":true,"id":6501}},"6620":{"timestamp":{"__isSmartRef__":true,"id":6621},"user":"sebastianwoinar","tags":[]},"6621":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"6622":{"varMapping":{"__isSmartRef__":true,"id":6623},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":6624},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6623":{"this":{"__isSmartRef__":true,"id":6501}},"6624":{"timestamp":{"__isSmartRef__":true,"id":6625},"user":"sebastianwoinar","tags":[]},"6625":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"6626":{"varMapping":{"__isSmartRef__":true,"id":6627},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6628},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6627":{"this":{"__isSmartRef__":true,"id":6501}},"6628":{"timestamp":{"__isSmartRef__":true,"id":6629},"user":"sebastianwoinar","tags":[]},"6629":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"6630":{"submorphs":[{"__isSmartRef__":true,"id":6631}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6648},"id":"FF5335BC-5579-41E2-A3CA-56C63403EDA7","eventHandler":{"__isSmartRef__":true,"id":6649},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":6650},"name":"node10","partsBinMetaInfo":{"__isSmartRef__":true,"id":6651},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5449},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":5961},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6654},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(62.6,210.0)"},"6631":{"submorphs":[],"scripts":[],"id":"156968B2-9F18-4EDD-B2FB-6A60503A7C89","shape":{"__isSmartRef__":true,"id":6632},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":6633},"textChunks":[{"__isSmartRef__":true,"id":6645}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":6647},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":6630},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"6632":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"6633":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":6634},{"__isSmartRef__":true,"id":6636},{"__isSmartRef__":true,"id":6638},{"__isSmartRef__":true,"id":6640},{"__isSmartRef__":true,"id":6642}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":6644},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"6634":{"date":{"__isSmartRef__":true,"id":6635},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"6635":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"6636":{"date":{"__isSmartRef__":true,"id":6637},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"6637":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"6638":{"date":{"__isSmartRef__":true,"id":6639},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"6639":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"6640":{"date":{"__isSmartRef__":true,"id":6641},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"6641":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"6642":{"date":{"__isSmartRef__":true,"id":6643},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"6643":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"6644":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"6645":{"style":{"__isSmartRef__":true,"id":6646},"morph":{"__isSmartRef__":true,"id":6631},"chunkOwner":{"__isSmartRef__":true,"id":6631},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6646":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6647":{"morph":{"__isSmartRef__":true,"id":6631},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6648":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"6649":{"morph":{"__isSmartRef__":true,"id":6630},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6650":{},"6651":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":6652}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"6652":{"date":{"__isSmartRef__":true,"id":6653},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"6653":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"6654":{"buildChildNodes":{"__isSmartRef__":true,"id":6655},"getGameTree":{"__isSmartRef__":true,"id":6659},"getLevel":{"__isSmartRef__":true,"id":6663},"getLevelWeight":{"__isSmartRef__":true,"id":6667},"getWeight":{"__isSmartRef__":true,"id":6671},"setNode":{"__isSmartRef__":true,"id":6675},"setParent":{"__isSmartRef__":true,"id":6679},"getParent":{"__isSmartRef__":true,"id":6683},"deactivate":{"__isSmartRef__":true,"id":6687},"blink":{"__isSmartRef__":true,"id":6691},"ABPreturn":{"__isSmartRef__":true,"id":6695},"ABPstart":{"__isSmartRef__":true,"id":6699},"ABPcontinue":{"__isSmartRef__":true,"id":6703},"ABPshowValue":{"__isSmartRef__":true,"id":6707},"ABPgetValue":{"__isSmartRef__":true,"id":6711},"ABPhasChildNodes":{"__isSmartRef__":true,"id":6715},"onMouseDown":{"__isSmartRef__":true,"id":6719},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":6727},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":6731},"ABPmarkAsDone":{"__isSmartRef__":true,"id":6735},"ABPmarkAsActive":{"__isSmartRef__":true,"id":6739},"getStateMorph":{"__isSmartRef__":true,"id":6743},"showState":{"__isSmartRef__":true,"id":6747},"ABPfailHard":{"__isSmartRef__":true,"id":6751},"markFinalDrawWith":{"__isSmartRef__":true,"id":6755}},"6655":{"varMapping":{"__isSmartRef__":true,"id":6656},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":6657},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6656":{"this":{"__isSmartRef__":true,"id":6630}},"6657":{"timestamp":{"__isSmartRef__":true,"id":6658},"user":"sebastianwoinar","tags":[]},"6658":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"6659":{"varMapping":{"__isSmartRef__":true,"id":6660},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":6661},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6660":{"this":{"__isSmartRef__":true,"id":6630}},"6661":{"timestamp":{"__isSmartRef__":true,"id":6662},"user":"sebastianwoinar","tags":[]},"6662":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6663":{"varMapping":{"__isSmartRef__":true,"id":6664},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":6665},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6664":{"this":{"__isSmartRef__":true,"id":6630}},"6665":{"timestamp":{"__isSmartRef__":true,"id":6666},"user":"sebastianwoinar","tags":[]},"6666":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6667":{"varMapping":{"__isSmartRef__":true,"id":6668},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6669},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6668":{"this":{"__isSmartRef__":true,"id":6630}},"6669":{"timestamp":{"__isSmartRef__":true,"id":6670},"user":"sebastianwoinar","tags":[]},"6670":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6671":{"varMapping":{"__isSmartRef__":true,"id":6672},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":6673},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6672":{"this":{"__isSmartRef__":true,"id":6630}},"6673":{"timestamp":{"__isSmartRef__":true,"id":6674},"user":"sebastianwoinar","tags":[]},"6674":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6675":{"varMapping":{"__isSmartRef__":true,"id":6676},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":6677},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6676":{"this":{"__isSmartRef__":true,"id":6630}},"6677":{"timestamp":{"__isSmartRef__":true,"id":6678},"user":"sebastianwoinar","tags":[]},"6678":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6679":{"varMapping":{"__isSmartRef__":true,"id":6680},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":6681},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6680":{"this":{"__isSmartRef__":true,"id":6630}},"6681":{"timestamp":{"__isSmartRef__":true,"id":6682},"user":"sebastianwoinar","tags":[]},"6682":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6683":{"varMapping":{"__isSmartRef__":true,"id":6684},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":6685},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6684":{"this":{"__isSmartRef__":true,"id":6630}},"6685":{"timestamp":{"__isSmartRef__":true,"id":6686},"user":"sebastianwoinar","tags":[]},"6686":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"6687":{"varMapping":{"__isSmartRef__":true,"id":6688},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":6689},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6688":{"this":{"__isSmartRef__":true,"id":6630}},"6689":{"timestamp":{"__isSmartRef__":true,"id":6690},"user":"sebastianwoinar","tags":[]},"6690":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"6691":{"varMapping":{"__isSmartRef__":true,"id":6692},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":6693},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6692":{"this":{"__isSmartRef__":true,"id":6630}},"6693":{"timestamp":{"__isSmartRef__":true,"id":6694},"user":"sebastianwoinar","tags":[]},"6694":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"6695":{"varMapping":{"__isSmartRef__":true,"id":6696},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":6697},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6696":{"this":{"__isSmartRef__":true,"id":6630}},"6697":{"timestamp":{"__isSmartRef__":true,"id":6698},"user":"sebastianwoinar","tags":[]},"6698":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"6699":{"varMapping":{"__isSmartRef__":true,"id":6700},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":6701},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6700":{"this":{"__isSmartRef__":true,"id":6630}},"6701":{"timestamp":{"__isSmartRef__":true,"id":6702},"user":"sebastianwoinar","tags":[]},"6702":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"6703":{"varMapping":{"__isSmartRef__":true,"id":6704},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":6705},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6704":{"this":{"__isSmartRef__":true,"id":6630}},"6705":{"timestamp":{"__isSmartRef__":true,"id":6706},"user":"sebastianwoinar","tags":[]},"6706":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"6707":{"varMapping":{"__isSmartRef__":true,"id":6708},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":6709},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6708":{"this":{"__isSmartRef__":true,"id":6630}},"6709":{"timestamp":{"__isSmartRef__":true,"id":6710},"user":"sebastianwoinar","tags":[]},"6710":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"6711":{"varMapping":{"__isSmartRef__":true,"id":6712},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":6713},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6712":{"this":{"__isSmartRef__":true,"id":6630}},"6713":{"timestamp":{"__isSmartRef__":true,"id":6714},"user":"sebastianwoinar","tags":[]},"6714":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"6715":{"varMapping":{"__isSmartRef__":true,"id":6716},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":6717},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6716":{"this":{"__isSmartRef__":true,"id":6630}},"6717":{"timestamp":{"__isSmartRef__":true,"id":6718},"user":"sebastianwoinar","tags":[]},"6718":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"6719":{"varMapping":{"__isSmartRef__":true,"id":6720},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":6725},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6720":{"this":{"__isSmartRef__":true,"id":6630},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6721}},"6721":{"$super":{"__isSmartRef__":true,"id":6722}},"6722":{"varMapping":{"__isSmartRef__":true,"id":6723},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6724},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6723":{"obj":{"__isSmartRef__":true,"id":6630},"name":"onMouseDown"},"6724":{},"6725":{"timestamp":{"__isSmartRef__":true,"id":6726},"user":"sebastianwoinar","tags":[]},"6726":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"6727":{"varMapping":{"__isSmartRef__":true,"id":6728},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":6729},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6728":{"this":{"__isSmartRef__":true,"id":6630}},"6729":{"timestamp":{"__isSmartRef__":true,"id":6730},"user":"sebastianwoinar","tags":[]},"6730":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"6731":{"varMapping":{"__isSmartRef__":true,"id":6732},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":6733},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6732":{"this":{"__isSmartRef__":true,"id":6630}},"6733":{"timestamp":{"__isSmartRef__":true,"id":6734},"user":"sebastianwoinar","tags":[]},"6734":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"6735":{"varMapping":{"__isSmartRef__":true,"id":6736},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":6737},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6736":{"this":{"__isSmartRef__":true,"id":6630}},"6737":{"timestamp":{"__isSmartRef__":true,"id":6738},"user":"sebastianwoinar","tags":[]},"6738":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"6739":{"varMapping":{"__isSmartRef__":true,"id":6740},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":6741},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6740":{"this":{"__isSmartRef__":true,"id":6630}},"6741":{"timestamp":{"__isSmartRef__":true,"id":6742},"user":"sebastianwoinar","tags":[]},"6742":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"6743":{"varMapping":{"__isSmartRef__":true,"id":6744},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":6745},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6744":{"this":{"__isSmartRef__":true,"id":6630}},"6745":{"timestamp":{"__isSmartRef__":true,"id":6746},"user":"sebastianwoinar","tags":[]},"6746":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"6747":{"varMapping":{"__isSmartRef__":true,"id":6748},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6749},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6748":{"this":{"__isSmartRef__":true,"id":6630}},"6749":{"timestamp":{"__isSmartRef__":true,"id":6750},"user":"sebastianwoinar","tags":[]},"6750":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"6751":{"varMapping":{"__isSmartRef__":true,"id":6752},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":6753},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6752":{"this":{"__isSmartRef__":true,"id":6630}},"6753":{"timestamp":{"__isSmartRef__":true,"id":6754},"user":"sebastianwoinar","tags":[]},"6754":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"6755":{"varMapping":{"__isSmartRef__":true,"id":6756},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6757},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6756":{"this":{"__isSmartRef__":true,"id":6630}},"6757":{"timestamp":{"__isSmartRef__":true,"id":6758},"user":"sebastianwoinar","tags":[]},"6758":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"6759":{"submorphs":[{"__isSmartRef__":true,"id":6760}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6777},"id":"3B22F9C8-FDD9-4511-BD25-22EF52C4561C","eventHandler":{"__isSmartRef__":true,"id":6778},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":6779},"name":"node11","partsBinMetaInfo":{"__isSmartRef__":true,"id":6780},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5451},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":5961},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6783},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(67.7,210.0)"},"6760":{"submorphs":[],"scripts":[],"id":"9E566BCF-4DE1-4370-9398-F8FBF59CB6E8","shape":{"__isSmartRef__":true,"id":6761},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":6762},"textChunks":[{"__isSmartRef__":true,"id":6774}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":6776},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":6759},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"6761":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"6762":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":6763},{"__isSmartRef__":true,"id":6765},{"__isSmartRef__":true,"id":6767},{"__isSmartRef__":true,"id":6769},{"__isSmartRef__":true,"id":6771}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":6773},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"6763":{"date":{"__isSmartRef__":true,"id":6764},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"6764":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"6765":{"date":{"__isSmartRef__":true,"id":6766},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"6766":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"6767":{"date":{"__isSmartRef__":true,"id":6768},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"6768":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"6769":{"date":{"__isSmartRef__":true,"id":6770},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"6770":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"6771":{"date":{"__isSmartRef__":true,"id":6772},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"6772":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"6773":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"6774":{"style":{"__isSmartRef__":true,"id":6775},"morph":{"__isSmartRef__":true,"id":6760},"chunkOwner":{"__isSmartRef__":true,"id":6760},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6775":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6776":{"morph":{"__isSmartRef__":true,"id":6760},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6777":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"6778":{"morph":{"__isSmartRef__":true,"id":6759},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6779":{},"6780":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":6781}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"6781":{"date":{"__isSmartRef__":true,"id":6782},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"6782":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"6783":{"buildChildNodes":{"__isSmartRef__":true,"id":6784},"getGameTree":{"__isSmartRef__":true,"id":6788},"getLevel":{"__isSmartRef__":true,"id":6792},"getLevelWeight":{"__isSmartRef__":true,"id":6796},"getWeight":{"__isSmartRef__":true,"id":6800},"setNode":{"__isSmartRef__":true,"id":6804},"setParent":{"__isSmartRef__":true,"id":6808},"getParent":{"__isSmartRef__":true,"id":6812},"deactivate":{"__isSmartRef__":true,"id":6816},"blink":{"__isSmartRef__":true,"id":6820},"ABPreturn":{"__isSmartRef__":true,"id":6824},"ABPstart":{"__isSmartRef__":true,"id":6828},"ABPcontinue":{"__isSmartRef__":true,"id":6832},"ABPshowValue":{"__isSmartRef__":true,"id":6836},"ABPgetValue":{"__isSmartRef__":true,"id":6840},"ABPhasChildNodes":{"__isSmartRef__":true,"id":6844},"onMouseDown":{"__isSmartRef__":true,"id":6848},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":6856},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":6860},"ABPmarkAsDone":{"__isSmartRef__":true,"id":6864},"ABPmarkAsActive":{"__isSmartRef__":true,"id":6868},"getStateMorph":{"__isSmartRef__":true,"id":6872},"showState":{"__isSmartRef__":true,"id":6876},"ABPfailHard":{"__isSmartRef__":true,"id":6880},"markFinalDrawWith":{"__isSmartRef__":true,"id":6884}},"6784":{"varMapping":{"__isSmartRef__":true,"id":6785},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":6786},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6785":{"this":{"__isSmartRef__":true,"id":6759}},"6786":{"timestamp":{"__isSmartRef__":true,"id":6787},"user":"sebastianwoinar","tags":[]},"6787":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"6788":{"varMapping":{"__isSmartRef__":true,"id":6789},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":6790},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6789":{"this":{"__isSmartRef__":true,"id":6759}},"6790":{"timestamp":{"__isSmartRef__":true,"id":6791},"user":"sebastianwoinar","tags":[]},"6791":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6792":{"varMapping":{"__isSmartRef__":true,"id":6793},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":6794},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6793":{"this":{"__isSmartRef__":true,"id":6759}},"6794":{"timestamp":{"__isSmartRef__":true,"id":6795},"user":"sebastianwoinar","tags":[]},"6795":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6796":{"varMapping":{"__isSmartRef__":true,"id":6797},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6798},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6797":{"this":{"__isSmartRef__":true,"id":6759}},"6798":{"timestamp":{"__isSmartRef__":true,"id":6799},"user":"sebastianwoinar","tags":[]},"6799":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6800":{"varMapping":{"__isSmartRef__":true,"id":6801},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":6802},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6801":{"this":{"__isSmartRef__":true,"id":6759}},"6802":{"timestamp":{"__isSmartRef__":true,"id":6803},"user":"sebastianwoinar","tags":[]},"6803":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6804":{"varMapping":{"__isSmartRef__":true,"id":6805},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":6806},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6805":{"this":{"__isSmartRef__":true,"id":6759}},"6806":{"timestamp":{"__isSmartRef__":true,"id":6807},"user":"sebastianwoinar","tags":[]},"6807":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6808":{"varMapping":{"__isSmartRef__":true,"id":6809},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":6810},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6809":{"this":{"__isSmartRef__":true,"id":6759}},"6810":{"timestamp":{"__isSmartRef__":true,"id":6811},"user":"sebastianwoinar","tags":[]},"6811":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6812":{"varMapping":{"__isSmartRef__":true,"id":6813},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":6814},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6813":{"this":{"__isSmartRef__":true,"id":6759}},"6814":{"timestamp":{"__isSmartRef__":true,"id":6815},"user":"sebastianwoinar","tags":[]},"6815":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"6816":{"varMapping":{"__isSmartRef__":true,"id":6817},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":6818},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6817":{"this":{"__isSmartRef__":true,"id":6759}},"6818":{"timestamp":{"__isSmartRef__":true,"id":6819},"user":"sebastianwoinar","tags":[]},"6819":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"6820":{"varMapping":{"__isSmartRef__":true,"id":6821},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":6822},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6821":{"this":{"__isSmartRef__":true,"id":6759}},"6822":{"timestamp":{"__isSmartRef__":true,"id":6823},"user":"sebastianwoinar","tags":[]},"6823":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"6824":{"varMapping":{"__isSmartRef__":true,"id":6825},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":6826},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6825":{"this":{"__isSmartRef__":true,"id":6759}},"6826":{"timestamp":{"__isSmartRef__":true,"id":6827},"user":"sebastianwoinar","tags":[]},"6827":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"6828":{"varMapping":{"__isSmartRef__":true,"id":6829},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":6830},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6829":{"this":{"__isSmartRef__":true,"id":6759}},"6830":{"timestamp":{"__isSmartRef__":true,"id":6831},"user":"sebastianwoinar","tags":[]},"6831":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"6832":{"varMapping":{"__isSmartRef__":true,"id":6833},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":6834},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6833":{"this":{"__isSmartRef__":true,"id":6759}},"6834":{"timestamp":{"__isSmartRef__":true,"id":6835},"user":"sebastianwoinar","tags":[]},"6835":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"6836":{"varMapping":{"__isSmartRef__":true,"id":6837},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":6838},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6837":{"this":{"__isSmartRef__":true,"id":6759}},"6838":{"timestamp":{"__isSmartRef__":true,"id":6839},"user":"sebastianwoinar","tags":[]},"6839":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"6840":{"varMapping":{"__isSmartRef__":true,"id":6841},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":6842},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6841":{"this":{"__isSmartRef__":true,"id":6759}},"6842":{"timestamp":{"__isSmartRef__":true,"id":6843},"user":"sebastianwoinar","tags":[]},"6843":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"6844":{"varMapping":{"__isSmartRef__":true,"id":6845},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":6846},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6845":{"this":{"__isSmartRef__":true,"id":6759}},"6846":{"timestamp":{"__isSmartRef__":true,"id":6847},"user":"sebastianwoinar","tags":[]},"6847":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"6848":{"varMapping":{"__isSmartRef__":true,"id":6849},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":6854},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6849":{"this":{"__isSmartRef__":true,"id":6759},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6850}},"6850":{"$super":{"__isSmartRef__":true,"id":6851}},"6851":{"varMapping":{"__isSmartRef__":true,"id":6852},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6853},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6852":{"obj":{"__isSmartRef__":true,"id":6759},"name":"onMouseDown"},"6853":{},"6854":{"timestamp":{"__isSmartRef__":true,"id":6855},"user":"sebastianwoinar","tags":[]},"6855":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"6856":{"varMapping":{"__isSmartRef__":true,"id":6857},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":6858},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6857":{"this":{"__isSmartRef__":true,"id":6759}},"6858":{"timestamp":{"__isSmartRef__":true,"id":6859},"user":"sebastianwoinar","tags":[]},"6859":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"6860":{"varMapping":{"__isSmartRef__":true,"id":6861},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":6862},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6861":{"this":{"__isSmartRef__":true,"id":6759}},"6862":{"timestamp":{"__isSmartRef__":true,"id":6863},"user":"sebastianwoinar","tags":[]},"6863":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"6864":{"varMapping":{"__isSmartRef__":true,"id":6865},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":6866},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6865":{"this":{"__isSmartRef__":true,"id":6759}},"6866":{"timestamp":{"__isSmartRef__":true,"id":6867},"user":"sebastianwoinar","tags":[]},"6867":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"6868":{"varMapping":{"__isSmartRef__":true,"id":6869},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":6870},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6869":{"this":{"__isSmartRef__":true,"id":6759}},"6870":{"timestamp":{"__isSmartRef__":true,"id":6871},"user":"sebastianwoinar","tags":[]},"6871":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"6872":{"varMapping":{"__isSmartRef__":true,"id":6873},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":6874},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6873":{"this":{"__isSmartRef__":true,"id":6759}},"6874":{"timestamp":{"__isSmartRef__":true,"id":6875},"user":"sebastianwoinar","tags":[]},"6875":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"6876":{"varMapping":{"__isSmartRef__":true,"id":6877},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6878},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6877":{"this":{"__isSmartRef__":true,"id":6759}},"6878":{"timestamp":{"__isSmartRef__":true,"id":6879},"user":"sebastianwoinar","tags":[]},"6879":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"6880":{"varMapping":{"__isSmartRef__":true,"id":6881},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":6882},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6881":{"this":{"__isSmartRef__":true,"id":6759}},"6882":{"timestamp":{"__isSmartRef__":true,"id":6883},"user":"sebastianwoinar","tags":[]},"6883":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"6884":{"varMapping":{"__isSmartRef__":true,"id":6885},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6886},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6885":{"this":{"__isSmartRef__":true,"id":6759}},"6886":{"timestamp":{"__isSmartRef__":true,"id":6887},"user":"sebastianwoinar","tags":[]},"6887":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"6888":{"submorphs":[{"__isSmartRef__":true,"id":6889}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6906},"id":"B66C2A89-BF4C-4BF5-BA89-3CAA95F6959E","eventHandler":{"__isSmartRef__":true,"id":6907},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":6908},"name":"node12","partsBinMetaInfo":{"__isSmartRef__":true,"id":6909},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5453},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":5961},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6912},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(72.9,210.0)"},"6889":{"submorphs":[],"scripts":[],"id":"88E3C949-A9E1-4AB1-90EC-945233EDF432","shape":{"__isSmartRef__":true,"id":6890},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":6891},"textChunks":[{"__isSmartRef__":true,"id":6903}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":6905},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":6888},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"6890":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"6891":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":6892},{"__isSmartRef__":true,"id":6894},{"__isSmartRef__":true,"id":6896},{"__isSmartRef__":true,"id":6898},{"__isSmartRef__":true,"id":6900}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":6902},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"6892":{"date":{"__isSmartRef__":true,"id":6893},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"6893":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"6894":{"date":{"__isSmartRef__":true,"id":6895},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"6895":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"6896":{"date":{"__isSmartRef__":true,"id":6897},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"6897":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"6898":{"date":{"__isSmartRef__":true,"id":6899},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"6899":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"6900":{"date":{"__isSmartRef__":true,"id":6901},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"6901":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"6902":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"6903":{"style":{"__isSmartRef__":true,"id":6904},"morph":{"__isSmartRef__":true,"id":6889},"chunkOwner":{"__isSmartRef__":true,"id":6889},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6904":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6905":{"morph":{"__isSmartRef__":true,"id":6889},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6906":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"6907":{"morph":{"__isSmartRef__":true,"id":6888},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6908":{},"6909":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":6910}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"6910":{"date":{"__isSmartRef__":true,"id":6911},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"6911":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"6912":{"buildChildNodes":{"__isSmartRef__":true,"id":6913},"getGameTree":{"__isSmartRef__":true,"id":6917},"getLevel":{"__isSmartRef__":true,"id":6921},"getLevelWeight":{"__isSmartRef__":true,"id":6925},"getWeight":{"__isSmartRef__":true,"id":6929},"setNode":{"__isSmartRef__":true,"id":6933},"setParent":{"__isSmartRef__":true,"id":6937},"getParent":{"__isSmartRef__":true,"id":6941},"deactivate":{"__isSmartRef__":true,"id":6945},"blink":{"__isSmartRef__":true,"id":6949},"ABPreturn":{"__isSmartRef__":true,"id":6953},"ABPstart":{"__isSmartRef__":true,"id":6957},"ABPcontinue":{"__isSmartRef__":true,"id":6961},"ABPshowValue":{"__isSmartRef__":true,"id":6965},"ABPgetValue":{"__isSmartRef__":true,"id":6969},"ABPhasChildNodes":{"__isSmartRef__":true,"id":6973},"onMouseDown":{"__isSmartRef__":true,"id":6977},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":6985},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":6989},"ABPmarkAsDone":{"__isSmartRef__":true,"id":6993},"ABPmarkAsActive":{"__isSmartRef__":true,"id":6997},"getStateMorph":{"__isSmartRef__":true,"id":7001},"showState":{"__isSmartRef__":true,"id":7005},"ABPfailHard":{"__isSmartRef__":true,"id":7009},"markFinalDrawWith":{"__isSmartRef__":true,"id":7013}},"6913":{"varMapping":{"__isSmartRef__":true,"id":6914},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":6915},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6914":{"this":{"__isSmartRef__":true,"id":6888}},"6915":{"timestamp":{"__isSmartRef__":true,"id":6916},"user":"sebastianwoinar","tags":[]},"6916":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"6917":{"varMapping":{"__isSmartRef__":true,"id":6918},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":6919},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6918":{"this":{"__isSmartRef__":true,"id":6888}},"6919":{"timestamp":{"__isSmartRef__":true,"id":6920},"user":"sebastianwoinar","tags":[]},"6920":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6921":{"varMapping":{"__isSmartRef__":true,"id":6922},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":6923},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6922":{"this":{"__isSmartRef__":true,"id":6888}},"6923":{"timestamp":{"__isSmartRef__":true,"id":6924},"user":"sebastianwoinar","tags":[]},"6924":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6925":{"varMapping":{"__isSmartRef__":true,"id":6926},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6927},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6926":{"this":{"__isSmartRef__":true,"id":6888}},"6927":{"timestamp":{"__isSmartRef__":true,"id":6928},"user":"sebastianwoinar","tags":[]},"6928":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6929":{"varMapping":{"__isSmartRef__":true,"id":6930},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":6931},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6930":{"this":{"__isSmartRef__":true,"id":6888}},"6931":{"timestamp":{"__isSmartRef__":true,"id":6932},"user":"sebastianwoinar","tags":[]},"6932":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6933":{"varMapping":{"__isSmartRef__":true,"id":6934},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":6935},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6934":{"this":{"__isSmartRef__":true,"id":6888}},"6935":{"timestamp":{"__isSmartRef__":true,"id":6936},"user":"sebastianwoinar","tags":[]},"6936":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6937":{"varMapping":{"__isSmartRef__":true,"id":6938},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":6939},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6938":{"this":{"__isSmartRef__":true,"id":6888}},"6939":{"timestamp":{"__isSmartRef__":true,"id":6940},"user":"sebastianwoinar","tags":[]},"6940":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"6941":{"varMapping":{"__isSmartRef__":true,"id":6942},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":6943},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6942":{"this":{"__isSmartRef__":true,"id":6888}},"6943":{"timestamp":{"__isSmartRef__":true,"id":6944},"user":"sebastianwoinar","tags":[]},"6944":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"6945":{"varMapping":{"__isSmartRef__":true,"id":6946},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":6947},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6946":{"this":{"__isSmartRef__":true,"id":6888}},"6947":{"timestamp":{"__isSmartRef__":true,"id":6948},"user":"sebastianwoinar","tags":[]},"6948":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"6949":{"varMapping":{"__isSmartRef__":true,"id":6950},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":6951},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6950":{"this":{"__isSmartRef__":true,"id":6888}},"6951":{"timestamp":{"__isSmartRef__":true,"id":6952},"user":"sebastianwoinar","tags":[]},"6952":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"6953":{"varMapping":{"__isSmartRef__":true,"id":6954},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":6955},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6954":{"this":{"__isSmartRef__":true,"id":6888}},"6955":{"timestamp":{"__isSmartRef__":true,"id":6956},"user":"sebastianwoinar","tags":[]},"6956":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"6957":{"varMapping":{"__isSmartRef__":true,"id":6958},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":6959},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6958":{"this":{"__isSmartRef__":true,"id":6888}},"6959":{"timestamp":{"__isSmartRef__":true,"id":6960},"user":"sebastianwoinar","tags":[]},"6960":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"6961":{"varMapping":{"__isSmartRef__":true,"id":6962},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":6963},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6962":{"this":{"__isSmartRef__":true,"id":6888}},"6963":{"timestamp":{"__isSmartRef__":true,"id":6964},"user":"sebastianwoinar","tags":[]},"6964":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"6965":{"varMapping":{"__isSmartRef__":true,"id":6966},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":6967},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6966":{"this":{"__isSmartRef__":true,"id":6888}},"6967":{"timestamp":{"__isSmartRef__":true,"id":6968},"user":"sebastianwoinar","tags":[]},"6968":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"6969":{"varMapping":{"__isSmartRef__":true,"id":6970},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":6971},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6970":{"this":{"__isSmartRef__":true,"id":6888}},"6971":{"timestamp":{"__isSmartRef__":true,"id":6972},"user":"sebastianwoinar","tags":[]},"6972":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"6973":{"varMapping":{"__isSmartRef__":true,"id":6974},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":6975},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6974":{"this":{"__isSmartRef__":true,"id":6888}},"6975":{"timestamp":{"__isSmartRef__":true,"id":6976},"user":"sebastianwoinar","tags":[]},"6976":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"6977":{"varMapping":{"__isSmartRef__":true,"id":6978},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":6983},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6978":{"this":{"__isSmartRef__":true,"id":6888},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6979}},"6979":{"$super":{"__isSmartRef__":true,"id":6980}},"6980":{"varMapping":{"__isSmartRef__":true,"id":6981},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6982},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6981":{"obj":{"__isSmartRef__":true,"id":6888},"name":"onMouseDown"},"6982":{},"6983":{"timestamp":{"__isSmartRef__":true,"id":6984},"user":"sebastianwoinar","tags":[]},"6984":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"6985":{"varMapping":{"__isSmartRef__":true,"id":6986},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":6987},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6986":{"this":{"__isSmartRef__":true,"id":6888}},"6987":{"timestamp":{"__isSmartRef__":true,"id":6988},"user":"sebastianwoinar","tags":[]},"6988":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"6989":{"varMapping":{"__isSmartRef__":true,"id":6990},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":6991},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6990":{"this":{"__isSmartRef__":true,"id":6888}},"6991":{"timestamp":{"__isSmartRef__":true,"id":6992},"user":"sebastianwoinar","tags":[]},"6992":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"6993":{"varMapping":{"__isSmartRef__":true,"id":6994},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":6995},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6994":{"this":{"__isSmartRef__":true,"id":6888}},"6995":{"timestamp":{"__isSmartRef__":true,"id":6996},"user":"sebastianwoinar","tags":[]},"6996":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"6997":{"varMapping":{"__isSmartRef__":true,"id":6998},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":6999},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6998":{"this":{"__isSmartRef__":true,"id":6888}},"6999":{"timestamp":{"__isSmartRef__":true,"id":7000},"user":"sebastianwoinar","tags":[]},"7000":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"7001":{"varMapping":{"__isSmartRef__":true,"id":7002},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":7003},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7002":{"this":{"__isSmartRef__":true,"id":6888}},"7003":{"timestamp":{"__isSmartRef__":true,"id":7004},"user":"sebastianwoinar","tags":[]},"7004":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"7005":{"varMapping":{"__isSmartRef__":true,"id":7006},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7007},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7006":{"this":{"__isSmartRef__":true,"id":6888}},"7007":{"timestamp":{"__isSmartRef__":true,"id":7008},"user":"sebastianwoinar","tags":[]},"7008":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"7009":{"varMapping":{"__isSmartRef__":true,"id":7010},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":7011},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7010":{"this":{"__isSmartRef__":true,"id":6888}},"7011":{"timestamp":{"__isSmartRef__":true,"id":7012},"user":"sebastianwoinar","tags":[]},"7012":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"7013":{"varMapping":{"__isSmartRef__":true,"id":7014},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7015},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7014":{"this":{"__isSmartRef__":true,"id":6888}},"7015":{"timestamp":{"__isSmartRef__":true,"id":7016},"user":"sebastianwoinar","tags":[]},"7016":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"7017":{"buildChildNodes":{"__isSmartRef__":true,"id":7018},"getGameTree":{"__isSmartRef__":true,"id":7022},"getLevel":{"__isSmartRef__":true,"id":7026},"getLevelWeight":{"__isSmartRef__":true,"id":7030},"getWeight":{"__isSmartRef__":true,"id":7034},"setNode":{"__isSmartRef__":true,"id":7038},"setParent":{"__isSmartRef__":true,"id":7042},"getParent":{"__isSmartRef__":true,"id":7046},"deactivate":{"__isSmartRef__":true,"id":7050},"blink":{"__isSmartRef__":true,"id":7054},"ABPreturn":{"__isSmartRef__":true,"id":7058},"ABPstart":{"__isSmartRef__":true,"id":7062},"ABPcontinue":{"__isSmartRef__":true,"id":7066},"ABPshowValue":{"__isSmartRef__":true,"id":7070},"ABPgetValue":{"__isSmartRef__":true,"id":7074},"ABPhasChildNodes":{"__isSmartRef__":true,"id":7078},"onMouseDown":{"__isSmartRef__":true,"id":7082},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":7090},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":7094},"ABPmarkAsDone":{"__isSmartRef__":true,"id":7098},"ABPmarkAsActive":{"__isSmartRef__":true,"id":7102},"getStateMorph":{"__isSmartRef__":true,"id":7106},"showState":{"__isSmartRef__":true,"id":7110},"ABPfailHard":{"__isSmartRef__":true,"id":7114},"markFinalDrawWith":{"__isSmartRef__":true,"id":7118}},"7018":{"varMapping":{"__isSmartRef__":true,"id":7019},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":7020},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7019":{"this":{"__isSmartRef__":true,"id":5961}},"7020":{"timestamp":{"__isSmartRef__":true,"id":7021},"user":"sebastianwoinar","tags":[]},"7021":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"7022":{"varMapping":{"__isSmartRef__":true,"id":7023},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":7024},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7023":{"this":{"__isSmartRef__":true,"id":5961}},"7024":{"timestamp":{"__isSmartRef__":true,"id":7025},"user":"sebastianwoinar","tags":[]},"7025":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7026":{"varMapping":{"__isSmartRef__":true,"id":7027},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":7028},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7027":{"this":{"__isSmartRef__":true,"id":5961}},"7028":{"timestamp":{"__isSmartRef__":true,"id":7029},"user":"sebastianwoinar","tags":[]},"7029":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7030":{"varMapping":{"__isSmartRef__":true,"id":7031},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7032},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7031":{"this":{"__isSmartRef__":true,"id":5961}},"7032":{"timestamp":{"__isSmartRef__":true,"id":7033},"user":"sebastianwoinar","tags":[]},"7033":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7034":{"varMapping":{"__isSmartRef__":true,"id":7035},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":7036},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7035":{"this":{"__isSmartRef__":true,"id":5961}},"7036":{"timestamp":{"__isSmartRef__":true,"id":7037},"user":"sebastianwoinar","tags":[]},"7037":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7038":{"varMapping":{"__isSmartRef__":true,"id":7039},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":7040},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7039":{"this":{"__isSmartRef__":true,"id":5961}},"7040":{"timestamp":{"__isSmartRef__":true,"id":7041},"user":"sebastianwoinar","tags":[]},"7041":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7042":{"varMapping":{"__isSmartRef__":true,"id":7043},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":7044},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7043":{"this":{"__isSmartRef__":true,"id":5961}},"7044":{"timestamp":{"__isSmartRef__":true,"id":7045},"user":"sebastianwoinar","tags":[]},"7045":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7046":{"varMapping":{"__isSmartRef__":true,"id":7047},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":7048},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7047":{"this":{"__isSmartRef__":true,"id":5961}},"7048":{"timestamp":{"__isSmartRef__":true,"id":7049},"user":"sebastianwoinar","tags":[]},"7049":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"7050":{"varMapping":{"__isSmartRef__":true,"id":7051},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":7052},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7051":{"this":{"__isSmartRef__":true,"id":5961}},"7052":{"timestamp":{"__isSmartRef__":true,"id":7053},"user":"sebastianwoinar","tags":[]},"7053":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"7054":{"varMapping":{"__isSmartRef__":true,"id":7055},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":7056},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7055":{"this":{"__isSmartRef__":true,"id":5961}},"7056":{"timestamp":{"__isSmartRef__":true,"id":7057},"user":"sebastianwoinar","tags":[]},"7057":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"7058":{"varMapping":{"__isSmartRef__":true,"id":7059},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":7060},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7059":{"this":{"__isSmartRef__":true,"id":5961}},"7060":{"timestamp":{"__isSmartRef__":true,"id":7061},"user":"sebastianwoinar","tags":[]},"7061":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"7062":{"varMapping":{"__isSmartRef__":true,"id":7063},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":7064},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7063":{"this":{"__isSmartRef__":true,"id":5961}},"7064":{"timestamp":{"__isSmartRef__":true,"id":7065},"user":"sebastianwoinar","tags":[]},"7065":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"7066":{"varMapping":{"__isSmartRef__":true,"id":7067},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":7068},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7067":{"this":{"__isSmartRef__":true,"id":5961}},"7068":{"timestamp":{"__isSmartRef__":true,"id":7069},"user":"sebastianwoinar","tags":[]},"7069":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"7070":{"varMapping":{"__isSmartRef__":true,"id":7071},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":7072},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7071":{"this":{"__isSmartRef__":true,"id":5961}},"7072":{"timestamp":{"__isSmartRef__":true,"id":7073},"user":"sebastianwoinar","tags":[]},"7073":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"7074":{"varMapping":{"__isSmartRef__":true,"id":7075},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":7076},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7075":{"this":{"__isSmartRef__":true,"id":5961}},"7076":{"timestamp":{"__isSmartRef__":true,"id":7077},"user":"sebastianwoinar","tags":[]},"7077":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"7078":{"varMapping":{"__isSmartRef__":true,"id":7079},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":7080},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7079":{"this":{"__isSmartRef__":true,"id":5961}},"7080":{"timestamp":{"__isSmartRef__":true,"id":7081},"user":"sebastianwoinar","tags":[]},"7081":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"7082":{"varMapping":{"__isSmartRef__":true,"id":7083},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":7088},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7083":{"this":{"__isSmartRef__":true,"id":5961},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7084}},"7084":{"$super":{"__isSmartRef__":true,"id":7085}},"7085":{"varMapping":{"__isSmartRef__":true,"id":7086},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7087},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7086":{"obj":{"__isSmartRef__":true,"id":5961},"name":"onMouseDown"},"7087":{},"7088":{"timestamp":{"__isSmartRef__":true,"id":7089},"user":"sebastianwoinar","tags":[]},"7089":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"7090":{"varMapping":{"__isSmartRef__":true,"id":7091},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":7092},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7091":{"this":{"__isSmartRef__":true,"id":5961}},"7092":{"timestamp":{"__isSmartRef__":true,"id":7093},"user":"sebastianwoinar","tags":[]},"7093":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"7094":{"varMapping":{"__isSmartRef__":true,"id":7095},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":7096},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7095":{"this":{"__isSmartRef__":true,"id":5961}},"7096":{"timestamp":{"__isSmartRef__":true,"id":7097},"user":"sebastianwoinar","tags":[]},"7097":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"7098":{"varMapping":{"__isSmartRef__":true,"id":7099},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":7100},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7099":{"this":{"__isSmartRef__":true,"id":5961}},"7100":{"timestamp":{"__isSmartRef__":true,"id":7101},"user":"sebastianwoinar","tags":[]},"7101":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"7102":{"varMapping":{"__isSmartRef__":true,"id":7103},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":7104},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7103":{"this":{"__isSmartRef__":true,"id":5961}},"7104":{"timestamp":{"__isSmartRef__":true,"id":7105},"user":"sebastianwoinar","tags":[]},"7105":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"7106":{"varMapping":{"__isSmartRef__":true,"id":7107},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":7108},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7107":{"this":{"__isSmartRef__":true,"id":5961}},"7108":{"timestamp":{"__isSmartRef__":true,"id":7109},"user":"sebastianwoinar","tags":[]},"7109":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"7110":{"varMapping":{"__isSmartRef__":true,"id":7111},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7112},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7111":{"this":{"__isSmartRef__":true,"id":5961}},"7112":{"timestamp":{"__isSmartRef__":true,"id":7113},"user":"sebastianwoinar","tags":[]},"7113":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"7114":{"varMapping":{"__isSmartRef__":true,"id":7115},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":7116},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7115":{"this":{"__isSmartRef__":true,"id":5961}},"7116":{"timestamp":{"__isSmartRef__":true,"id":7117},"user":"sebastianwoinar","tags":[]},"7117":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"7118":{"varMapping":{"__isSmartRef__":true,"id":7119},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7120},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7119":{"this":{"__isSmartRef__":true,"id":5961}},"7120":{"timestamp":{"__isSmartRef__":true,"id":7121},"user":"sebastianwoinar","tags":[]},"7121":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"7122":{"submorphs":[{"__isSmartRef__":true,"id":7123}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7140},"id":"4FBDD2B9-E428-4E2E-A15B-C0C7BABF9A13","eventHandler":{"__isSmartRef__":true,"id":7141},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":7142},"name":"node13","partsBinMetaInfo":{"__isSmartRef__":true,"id":7143},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5455},"owner":{"__isSmartRef__":true,"id":5408},"childNodes":[{"__isSmartRef__":true,"id":7146},{"__isSmartRef__":true,"id":7275},{"__isSmartRef__":true,"id":7404},{"__isSmartRef__":true,"id":7533},{"__isSmartRef__":true,"id":7662}],"parent":{"__isSmartRef__":true,"id":5937},"level":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7791},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(104.0,160.0)"},"7123":{"submorphs":[],"scripts":[],"id":"825D2403-81EB-48E0-86F7-415901A7AF52","shape":{"__isSmartRef__":true,"id":7124},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":7125},"textChunks":[{"__isSmartRef__":true,"id":7137}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":7139},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":7122},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"7124":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"7125":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":7126},{"__isSmartRef__":true,"id":7128},{"__isSmartRef__":true,"id":7130},{"__isSmartRef__":true,"id":7132},{"__isSmartRef__":true,"id":7134}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":7136},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"7126":{"date":{"__isSmartRef__":true,"id":7127},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"7127":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"7128":{"date":{"__isSmartRef__":true,"id":7129},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"7129":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"7130":{"date":{"__isSmartRef__":true,"id":7131},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"7131":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"7132":{"date":{"__isSmartRef__":true,"id":7133},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"7133":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"7134":{"date":{"__isSmartRef__":true,"id":7135},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"7135":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"7136":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"7137":{"style":{"__isSmartRef__":true,"id":7138},"morph":{"__isSmartRef__":true,"id":7123},"chunkOwner":{"__isSmartRef__":true,"id":7123},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7138":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7139":{"morph":{"__isSmartRef__":true,"id":7123},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7140":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"7141":{"morph":{"__isSmartRef__":true,"id":7122},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7142":{},"7143":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":7144}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"7144":{"date":{"__isSmartRef__":true,"id":7145},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"7145":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"7146":{"submorphs":[{"__isSmartRef__":true,"id":7147}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7164},"id":"FE497B48-8331-4267-97BA-7A9A875389F5","eventHandler":{"__isSmartRef__":true,"id":7165},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":7166},"name":"node14","partsBinMetaInfo":{"__isSmartRef__":true,"id":7167},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5457},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":7122},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7170},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(78.1,210.0)"},"7147":{"submorphs":[],"scripts":[],"id":"EF6598DD-9629-4CEB-81DD-8FEA0F1E2CE4","shape":{"__isSmartRef__":true,"id":7148},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":7149},"textChunks":[{"__isSmartRef__":true,"id":7161}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":7163},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":7146},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"7148":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"7149":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":7150},{"__isSmartRef__":true,"id":7152},{"__isSmartRef__":true,"id":7154},{"__isSmartRef__":true,"id":7156},{"__isSmartRef__":true,"id":7158}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":7160},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"7150":{"date":{"__isSmartRef__":true,"id":7151},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"7151":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"7152":{"date":{"__isSmartRef__":true,"id":7153},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"7153":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"7154":{"date":{"__isSmartRef__":true,"id":7155},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"7155":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"7156":{"date":{"__isSmartRef__":true,"id":7157},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"7157":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"7158":{"date":{"__isSmartRef__":true,"id":7159},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"7159":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"7160":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"7161":{"style":{"__isSmartRef__":true,"id":7162},"morph":{"__isSmartRef__":true,"id":7147},"chunkOwner":{"__isSmartRef__":true,"id":7147},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7162":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7163":{"morph":{"__isSmartRef__":true,"id":7147},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7164":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"7165":{"morph":{"__isSmartRef__":true,"id":7146},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7166":{},"7167":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":7168}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"7168":{"date":{"__isSmartRef__":true,"id":7169},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"7169":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"7170":{"buildChildNodes":{"__isSmartRef__":true,"id":7171},"getGameTree":{"__isSmartRef__":true,"id":7175},"getLevel":{"__isSmartRef__":true,"id":7179},"getLevelWeight":{"__isSmartRef__":true,"id":7183},"getWeight":{"__isSmartRef__":true,"id":7187},"setNode":{"__isSmartRef__":true,"id":7191},"setParent":{"__isSmartRef__":true,"id":7195},"getParent":{"__isSmartRef__":true,"id":7199},"deactivate":{"__isSmartRef__":true,"id":7203},"blink":{"__isSmartRef__":true,"id":7207},"ABPreturn":{"__isSmartRef__":true,"id":7211},"ABPstart":{"__isSmartRef__":true,"id":7215},"ABPcontinue":{"__isSmartRef__":true,"id":7219},"ABPshowValue":{"__isSmartRef__":true,"id":7223},"ABPgetValue":{"__isSmartRef__":true,"id":7227},"ABPhasChildNodes":{"__isSmartRef__":true,"id":7231},"onMouseDown":{"__isSmartRef__":true,"id":7235},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":7243},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":7247},"ABPmarkAsDone":{"__isSmartRef__":true,"id":7251},"ABPmarkAsActive":{"__isSmartRef__":true,"id":7255},"getStateMorph":{"__isSmartRef__":true,"id":7259},"showState":{"__isSmartRef__":true,"id":7263},"ABPfailHard":{"__isSmartRef__":true,"id":7267},"markFinalDrawWith":{"__isSmartRef__":true,"id":7271}},"7171":{"varMapping":{"__isSmartRef__":true,"id":7172},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":7173},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7172":{"this":{"__isSmartRef__":true,"id":7146}},"7173":{"timestamp":{"__isSmartRef__":true,"id":7174},"user":"sebastianwoinar","tags":[]},"7174":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"7175":{"varMapping":{"__isSmartRef__":true,"id":7176},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":7177},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7176":{"this":{"__isSmartRef__":true,"id":7146}},"7177":{"timestamp":{"__isSmartRef__":true,"id":7178},"user":"sebastianwoinar","tags":[]},"7178":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7179":{"varMapping":{"__isSmartRef__":true,"id":7180},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":7181},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7180":{"this":{"__isSmartRef__":true,"id":7146}},"7181":{"timestamp":{"__isSmartRef__":true,"id":7182},"user":"sebastianwoinar","tags":[]},"7182":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7183":{"varMapping":{"__isSmartRef__":true,"id":7184},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7185},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7184":{"this":{"__isSmartRef__":true,"id":7146}},"7185":{"timestamp":{"__isSmartRef__":true,"id":7186},"user":"sebastianwoinar","tags":[]},"7186":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7187":{"varMapping":{"__isSmartRef__":true,"id":7188},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":7189},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7188":{"this":{"__isSmartRef__":true,"id":7146}},"7189":{"timestamp":{"__isSmartRef__":true,"id":7190},"user":"sebastianwoinar","tags":[]},"7190":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7191":{"varMapping":{"__isSmartRef__":true,"id":7192},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":7193},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7192":{"this":{"__isSmartRef__":true,"id":7146}},"7193":{"timestamp":{"__isSmartRef__":true,"id":7194},"user":"sebastianwoinar","tags":[]},"7194":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7195":{"varMapping":{"__isSmartRef__":true,"id":7196},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":7197},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7196":{"this":{"__isSmartRef__":true,"id":7146}},"7197":{"timestamp":{"__isSmartRef__":true,"id":7198},"user":"sebastianwoinar","tags":[]},"7198":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7199":{"varMapping":{"__isSmartRef__":true,"id":7200},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":7201},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7200":{"this":{"__isSmartRef__":true,"id":7146}},"7201":{"timestamp":{"__isSmartRef__":true,"id":7202},"user":"sebastianwoinar","tags":[]},"7202":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"7203":{"varMapping":{"__isSmartRef__":true,"id":7204},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":7205},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7204":{"this":{"__isSmartRef__":true,"id":7146}},"7205":{"timestamp":{"__isSmartRef__":true,"id":7206},"user":"sebastianwoinar","tags":[]},"7206":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"7207":{"varMapping":{"__isSmartRef__":true,"id":7208},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":7209},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7208":{"this":{"__isSmartRef__":true,"id":7146}},"7209":{"timestamp":{"__isSmartRef__":true,"id":7210},"user":"sebastianwoinar","tags":[]},"7210":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"7211":{"varMapping":{"__isSmartRef__":true,"id":7212},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":7213},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7212":{"this":{"__isSmartRef__":true,"id":7146}},"7213":{"timestamp":{"__isSmartRef__":true,"id":7214},"user":"sebastianwoinar","tags":[]},"7214":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"7215":{"varMapping":{"__isSmartRef__":true,"id":7216},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":7217},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7216":{"this":{"__isSmartRef__":true,"id":7146}},"7217":{"timestamp":{"__isSmartRef__":true,"id":7218},"user":"sebastianwoinar","tags":[]},"7218":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"7219":{"varMapping":{"__isSmartRef__":true,"id":7220},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":7221},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7220":{"this":{"__isSmartRef__":true,"id":7146}},"7221":{"timestamp":{"__isSmartRef__":true,"id":7222},"user":"sebastianwoinar","tags":[]},"7222":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"7223":{"varMapping":{"__isSmartRef__":true,"id":7224},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":7225},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7224":{"this":{"__isSmartRef__":true,"id":7146}},"7225":{"timestamp":{"__isSmartRef__":true,"id":7226},"user":"sebastianwoinar","tags":[]},"7226":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"7227":{"varMapping":{"__isSmartRef__":true,"id":7228},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":7229},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7228":{"this":{"__isSmartRef__":true,"id":7146}},"7229":{"timestamp":{"__isSmartRef__":true,"id":7230},"user":"sebastianwoinar","tags":[]},"7230":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"7231":{"varMapping":{"__isSmartRef__":true,"id":7232},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":7233},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7232":{"this":{"__isSmartRef__":true,"id":7146}},"7233":{"timestamp":{"__isSmartRef__":true,"id":7234},"user":"sebastianwoinar","tags":[]},"7234":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"7235":{"varMapping":{"__isSmartRef__":true,"id":7236},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":7241},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7236":{"this":{"__isSmartRef__":true,"id":7146},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7237}},"7237":{"$super":{"__isSmartRef__":true,"id":7238}},"7238":{"varMapping":{"__isSmartRef__":true,"id":7239},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7240},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7239":{"obj":{"__isSmartRef__":true,"id":7146},"name":"onMouseDown"},"7240":{},"7241":{"timestamp":{"__isSmartRef__":true,"id":7242},"user":"sebastianwoinar","tags":[]},"7242":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"7243":{"varMapping":{"__isSmartRef__":true,"id":7244},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":7245},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7244":{"this":{"__isSmartRef__":true,"id":7146}},"7245":{"timestamp":{"__isSmartRef__":true,"id":7246},"user":"sebastianwoinar","tags":[]},"7246":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"7247":{"varMapping":{"__isSmartRef__":true,"id":7248},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":7249},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7248":{"this":{"__isSmartRef__":true,"id":7146}},"7249":{"timestamp":{"__isSmartRef__":true,"id":7250},"user":"sebastianwoinar","tags":[]},"7250":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"7251":{"varMapping":{"__isSmartRef__":true,"id":7252},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":7253},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7252":{"this":{"__isSmartRef__":true,"id":7146}},"7253":{"timestamp":{"__isSmartRef__":true,"id":7254},"user":"sebastianwoinar","tags":[]},"7254":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"7255":{"varMapping":{"__isSmartRef__":true,"id":7256},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":7257},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7256":{"this":{"__isSmartRef__":true,"id":7146}},"7257":{"timestamp":{"__isSmartRef__":true,"id":7258},"user":"sebastianwoinar","tags":[]},"7258":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"7259":{"varMapping":{"__isSmartRef__":true,"id":7260},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":7261},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7260":{"this":{"__isSmartRef__":true,"id":7146}},"7261":{"timestamp":{"__isSmartRef__":true,"id":7262},"user":"sebastianwoinar","tags":[]},"7262":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"7263":{"varMapping":{"__isSmartRef__":true,"id":7264},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7265},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7264":{"this":{"__isSmartRef__":true,"id":7146}},"7265":{"timestamp":{"__isSmartRef__":true,"id":7266},"user":"sebastianwoinar","tags":[]},"7266":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"7267":{"varMapping":{"__isSmartRef__":true,"id":7268},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":7269},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7268":{"this":{"__isSmartRef__":true,"id":7146}},"7269":{"timestamp":{"__isSmartRef__":true,"id":7270},"user":"sebastianwoinar","tags":[]},"7270":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"7271":{"varMapping":{"__isSmartRef__":true,"id":7272},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7273},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7272":{"this":{"__isSmartRef__":true,"id":7146}},"7273":{"timestamp":{"__isSmartRef__":true,"id":7274},"user":"sebastianwoinar","tags":[]},"7274":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"7275":{"submorphs":[{"__isSmartRef__":true,"id":7276}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7293},"id":"F211C7EA-B63A-45A4-971E-0855FA9F5551","eventHandler":{"__isSmartRef__":true,"id":7294},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":7295},"name":"node15","partsBinMetaInfo":{"__isSmartRef__":true,"id":7296},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5459},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":7122},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7299},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(83.3,210.0)"},"7276":{"submorphs":[],"scripts":[],"id":"E1482A0C-FE39-460F-8796-D64B63974F0D","shape":{"__isSmartRef__":true,"id":7277},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":7278},"textChunks":[{"__isSmartRef__":true,"id":7290}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":7292},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":7275},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"7277":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"7278":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":7279},{"__isSmartRef__":true,"id":7281},{"__isSmartRef__":true,"id":7283},{"__isSmartRef__":true,"id":7285},{"__isSmartRef__":true,"id":7287}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":7289},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"7279":{"date":{"__isSmartRef__":true,"id":7280},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"7280":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"7281":{"date":{"__isSmartRef__":true,"id":7282},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"7282":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"7283":{"date":{"__isSmartRef__":true,"id":7284},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"7284":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"7285":{"date":{"__isSmartRef__":true,"id":7286},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"7286":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"7287":{"date":{"__isSmartRef__":true,"id":7288},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"7288":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"7289":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"7290":{"style":{"__isSmartRef__":true,"id":7291},"morph":{"__isSmartRef__":true,"id":7276},"chunkOwner":{"__isSmartRef__":true,"id":7276},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7291":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7292":{"morph":{"__isSmartRef__":true,"id":7276},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7293":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"7294":{"morph":{"__isSmartRef__":true,"id":7275},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7295":{},"7296":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":7297}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"7297":{"date":{"__isSmartRef__":true,"id":7298},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"7298":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"7299":{"buildChildNodes":{"__isSmartRef__":true,"id":7300},"getGameTree":{"__isSmartRef__":true,"id":7304},"getLevel":{"__isSmartRef__":true,"id":7308},"getLevelWeight":{"__isSmartRef__":true,"id":7312},"getWeight":{"__isSmartRef__":true,"id":7316},"setNode":{"__isSmartRef__":true,"id":7320},"setParent":{"__isSmartRef__":true,"id":7324},"getParent":{"__isSmartRef__":true,"id":7328},"deactivate":{"__isSmartRef__":true,"id":7332},"blink":{"__isSmartRef__":true,"id":7336},"ABPreturn":{"__isSmartRef__":true,"id":7340},"ABPstart":{"__isSmartRef__":true,"id":7344},"ABPcontinue":{"__isSmartRef__":true,"id":7348},"ABPshowValue":{"__isSmartRef__":true,"id":7352},"ABPgetValue":{"__isSmartRef__":true,"id":7356},"ABPhasChildNodes":{"__isSmartRef__":true,"id":7360},"onMouseDown":{"__isSmartRef__":true,"id":7364},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":7372},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":7376},"ABPmarkAsDone":{"__isSmartRef__":true,"id":7380},"ABPmarkAsActive":{"__isSmartRef__":true,"id":7384},"getStateMorph":{"__isSmartRef__":true,"id":7388},"showState":{"__isSmartRef__":true,"id":7392},"ABPfailHard":{"__isSmartRef__":true,"id":7396},"markFinalDrawWith":{"__isSmartRef__":true,"id":7400}},"7300":{"varMapping":{"__isSmartRef__":true,"id":7301},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":7302},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7301":{"this":{"__isSmartRef__":true,"id":7275}},"7302":{"timestamp":{"__isSmartRef__":true,"id":7303},"user":"sebastianwoinar","tags":[]},"7303":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"7304":{"varMapping":{"__isSmartRef__":true,"id":7305},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":7306},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7305":{"this":{"__isSmartRef__":true,"id":7275}},"7306":{"timestamp":{"__isSmartRef__":true,"id":7307},"user":"sebastianwoinar","tags":[]},"7307":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7308":{"varMapping":{"__isSmartRef__":true,"id":7309},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":7310},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7309":{"this":{"__isSmartRef__":true,"id":7275}},"7310":{"timestamp":{"__isSmartRef__":true,"id":7311},"user":"sebastianwoinar","tags":[]},"7311":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7312":{"varMapping":{"__isSmartRef__":true,"id":7313},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7314},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7313":{"this":{"__isSmartRef__":true,"id":7275}},"7314":{"timestamp":{"__isSmartRef__":true,"id":7315},"user":"sebastianwoinar","tags":[]},"7315":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7316":{"varMapping":{"__isSmartRef__":true,"id":7317},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":7318},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7317":{"this":{"__isSmartRef__":true,"id":7275}},"7318":{"timestamp":{"__isSmartRef__":true,"id":7319},"user":"sebastianwoinar","tags":[]},"7319":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7320":{"varMapping":{"__isSmartRef__":true,"id":7321},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":7322},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7321":{"this":{"__isSmartRef__":true,"id":7275}},"7322":{"timestamp":{"__isSmartRef__":true,"id":7323},"user":"sebastianwoinar","tags":[]},"7323":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7324":{"varMapping":{"__isSmartRef__":true,"id":7325},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":7326},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7325":{"this":{"__isSmartRef__":true,"id":7275}},"7326":{"timestamp":{"__isSmartRef__":true,"id":7327},"user":"sebastianwoinar","tags":[]},"7327":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7328":{"varMapping":{"__isSmartRef__":true,"id":7329},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":7330},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7329":{"this":{"__isSmartRef__":true,"id":7275}},"7330":{"timestamp":{"__isSmartRef__":true,"id":7331},"user":"sebastianwoinar","tags":[]},"7331":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"7332":{"varMapping":{"__isSmartRef__":true,"id":7333},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":7334},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7333":{"this":{"__isSmartRef__":true,"id":7275}},"7334":{"timestamp":{"__isSmartRef__":true,"id":7335},"user":"sebastianwoinar","tags":[]},"7335":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"7336":{"varMapping":{"__isSmartRef__":true,"id":7337},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":7338},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7337":{"this":{"__isSmartRef__":true,"id":7275}},"7338":{"timestamp":{"__isSmartRef__":true,"id":7339},"user":"sebastianwoinar","tags":[]},"7339":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"7340":{"varMapping":{"__isSmartRef__":true,"id":7341},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":7342},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7341":{"this":{"__isSmartRef__":true,"id":7275}},"7342":{"timestamp":{"__isSmartRef__":true,"id":7343},"user":"sebastianwoinar","tags":[]},"7343":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"7344":{"varMapping":{"__isSmartRef__":true,"id":7345},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":7346},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7345":{"this":{"__isSmartRef__":true,"id":7275}},"7346":{"timestamp":{"__isSmartRef__":true,"id":7347},"user":"sebastianwoinar","tags":[]},"7347":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"7348":{"varMapping":{"__isSmartRef__":true,"id":7349},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":7350},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7349":{"this":{"__isSmartRef__":true,"id":7275}},"7350":{"timestamp":{"__isSmartRef__":true,"id":7351},"user":"sebastianwoinar","tags":[]},"7351":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"7352":{"varMapping":{"__isSmartRef__":true,"id":7353},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":7354},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7353":{"this":{"__isSmartRef__":true,"id":7275}},"7354":{"timestamp":{"__isSmartRef__":true,"id":7355},"user":"sebastianwoinar","tags":[]},"7355":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"7356":{"varMapping":{"__isSmartRef__":true,"id":7357},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":7358},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7357":{"this":{"__isSmartRef__":true,"id":7275}},"7358":{"timestamp":{"__isSmartRef__":true,"id":7359},"user":"sebastianwoinar","tags":[]},"7359":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"7360":{"varMapping":{"__isSmartRef__":true,"id":7361},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":7362},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7361":{"this":{"__isSmartRef__":true,"id":7275}},"7362":{"timestamp":{"__isSmartRef__":true,"id":7363},"user":"sebastianwoinar","tags":[]},"7363":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"7364":{"varMapping":{"__isSmartRef__":true,"id":7365},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":7370},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7365":{"this":{"__isSmartRef__":true,"id":7275},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7366}},"7366":{"$super":{"__isSmartRef__":true,"id":7367}},"7367":{"varMapping":{"__isSmartRef__":true,"id":7368},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7369},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7368":{"obj":{"__isSmartRef__":true,"id":7275},"name":"onMouseDown"},"7369":{},"7370":{"timestamp":{"__isSmartRef__":true,"id":7371},"user":"sebastianwoinar","tags":[]},"7371":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"7372":{"varMapping":{"__isSmartRef__":true,"id":7373},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":7374},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7373":{"this":{"__isSmartRef__":true,"id":7275}},"7374":{"timestamp":{"__isSmartRef__":true,"id":7375},"user":"sebastianwoinar","tags":[]},"7375":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"7376":{"varMapping":{"__isSmartRef__":true,"id":7377},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":7378},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7377":{"this":{"__isSmartRef__":true,"id":7275}},"7378":{"timestamp":{"__isSmartRef__":true,"id":7379},"user":"sebastianwoinar","tags":[]},"7379":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"7380":{"varMapping":{"__isSmartRef__":true,"id":7381},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":7382},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7381":{"this":{"__isSmartRef__":true,"id":7275}},"7382":{"timestamp":{"__isSmartRef__":true,"id":7383},"user":"sebastianwoinar","tags":[]},"7383":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"7384":{"varMapping":{"__isSmartRef__":true,"id":7385},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":7386},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7385":{"this":{"__isSmartRef__":true,"id":7275}},"7386":{"timestamp":{"__isSmartRef__":true,"id":7387},"user":"sebastianwoinar","tags":[]},"7387":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"7388":{"varMapping":{"__isSmartRef__":true,"id":7389},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":7390},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7389":{"this":{"__isSmartRef__":true,"id":7275}},"7390":{"timestamp":{"__isSmartRef__":true,"id":7391},"user":"sebastianwoinar","tags":[]},"7391":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"7392":{"varMapping":{"__isSmartRef__":true,"id":7393},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7394},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7393":{"this":{"__isSmartRef__":true,"id":7275}},"7394":{"timestamp":{"__isSmartRef__":true,"id":7395},"user":"sebastianwoinar","tags":[]},"7395":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"7396":{"varMapping":{"__isSmartRef__":true,"id":7397},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":7398},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7397":{"this":{"__isSmartRef__":true,"id":7275}},"7398":{"timestamp":{"__isSmartRef__":true,"id":7399},"user":"sebastianwoinar","tags":[]},"7399":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"7400":{"varMapping":{"__isSmartRef__":true,"id":7401},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7402},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7401":{"this":{"__isSmartRef__":true,"id":7275}},"7402":{"timestamp":{"__isSmartRef__":true,"id":7403},"user":"sebastianwoinar","tags":[]},"7403":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"7404":{"submorphs":[{"__isSmartRef__":true,"id":7405}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7422},"id":"1808F1AB-BB5F-46F9-BCDA-3E4C2FA1983C","eventHandler":{"__isSmartRef__":true,"id":7423},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":7424},"name":"node16","partsBinMetaInfo":{"__isSmartRef__":true,"id":7425},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5461},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":7122},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7428},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(88.5,210.0)"},"7405":{"submorphs":[],"scripts":[],"id":"D0C8FDE1-F4D3-43F2-A0D3-F8C12E73F77D","shape":{"__isSmartRef__":true,"id":7406},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":7407},"textChunks":[{"__isSmartRef__":true,"id":7419}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":7421},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":7404},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"7406":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"7407":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":7408},{"__isSmartRef__":true,"id":7410},{"__isSmartRef__":true,"id":7412},{"__isSmartRef__":true,"id":7414},{"__isSmartRef__":true,"id":7416}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":7418},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"7408":{"date":{"__isSmartRef__":true,"id":7409},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"7409":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"7410":{"date":{"__isSmartRef__":true,"id":7411},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"7411":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"7412":{"date":{"__isSmartRef__":true,"id":7413},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"7413":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"7414":{"date":{"__isSmartRef__":true,"id":7415},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"7415":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"7416":{"date":{"__isSmartRef__":true,"id":7417},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"7417":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"7418":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"7419":{"style":{"__isSmartRef__":true,"id":7420},"morph":{"__isSmartRef__":true,"id":7405},"chunkOwner":{"__isSmartRef__":true,"id":7405},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7420":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7421":{"morph":{"__isSmartRef__":true,"id":7405},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7422":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"7423":{"morph":{"__isSmartRef__":true,"id":7404},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7424":{},"7425":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":7426}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"7426":{"date":{"__isSmartRef__":true,"id":7427},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"7427":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"7428":{"buildChildNodes":{"__isSmartRef__":true,"id":7429},"getGameTree":{"__isSmartRef__":true,"id":7433},"getLevel":{"__isSmartRef__":true,"id":7437},"getLevelWeight":{"__isSmartRef__":true,"id":7441},"getWeight":{"__isSmartRef__":true,"id":7445},"setNode":{"__isSmartRef__":true,"id":7449},"setParent":{"__isSmartRef__":true,"id":7453},"getParent":{"__isSmartRef__":true,"id":7457},"deactivate":{"__isSmartRef__":true,"id":7461},"blink":{"__isSmartRef__":true,"id":7465},"ABPreturn":{"__isSmartRef__":true,"id":7469},"ABPstart":{"__isSmartRef__":true,"id":7473},"ABPcontinue":{"__isSmartRef__":true,"id":7477},"ABPshowValue":{"__isSmartRef__":true,"id":7481},"ABPgetValue":{"__isSmartRef__":true,"id":7485},"ABPhasChildNodes":{"__isSmartRef__":true,"id":7489},"onMouseDown":{"__isSmartRef__":true,"id":7493},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":7501},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":7505},"ABPmarkAsDone":{"__isSmartRef__":true,"id":7509},"ABPmarkAsActive":{"__isSmartRef__":true,"id":7513},"getStateMorph":{"__isSmartRef__":true,"id":7517},"showState":{"__isSmartRef__":true,"id":7521},"ABPfailHard":{"__isSmartRef__":true,"id":7525},"markFinalDrawWith":{"__isSmartRef__":true,"id":7529}},"7429":{"varMapping":{"__isSmartRef__":true,"id":7430},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":7431},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7430":{"this":{"__isSmartRef__":true,"id":7404}},"7431":{"timestamp":{"__isSmartRef__":true,"id":7432},"user":"sebastianwoinar","tags":[]},"7432":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"7433":{"varMapping":{"__isSmartRef__":true,"id":7434},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":7435},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7434":{"this":{"__isSmartRef__":true,"id":7404}},"7435":{"timestamp":{"__isSmartRef__":true,"id":7436},"user":"sebastianwoinar","tags":[]},"7436":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7437":{"varMapping":{"__isSmartRef__":true,"id":7438},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":7439},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7438":{"this":{"__isSmartRef__":true,"id":7404}},"7439":{"timestamp":{"__isSmartRef__":true,"id":7440},"user":"sebastianwoinar","tags":[]},"7440":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7441":{"varMapping":{"__isSmartRef__":true,"id":7442},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7443},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7442":{"this":{"__isSmartRef__":true,"id":7404}},"7443":{"timestamp":{"__isSmartRef__":true,"id":7444},"user":"sebastianwoinar","tags":[]},"7444":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7445":{"varMapping":{"__isSmartRef__":true,"id":7446},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":7447},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7446":{"this":{"__isSmartRef__":true,"id":7404}},"7447":{"timestamp":{"__isSmartRef__":true,"id":7448},"user":"sebastianwoinar","tags":[]},"7448":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7449":{"varMapping":{"__isSmartRef__":true,"id":7450},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":7451},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7450":{"this":{"__isSmartRef__":true,"id":7404}},"7451":{"timestamp":{"__isSmartRef__":true,"id":7452},"user":"sebastianwoinar","tags":[]},"7452":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7453":{"varMapping":{"__isSmartRef__":true,"id":7454},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":7455},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7454":{"this":{"__isSmartRef__":true,"id":7404}},"7455":{"timestamp":{"__isSmartRef__":true,"id":7456},"user":"sebastianwoinar","tags":[]},"7456":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7457":{"varMapping":{"__isSmartRef__":true,"id":7458},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":7459},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7458":{"this":{"__isSmartRef__":true,"id":7404}},"7459":{"timestamp":{"__isSmartRef__":true,"id":7460},"user":"sebastianwoinar","tags":[]},"7460":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"7461":{"varMapping":{"__isSmartRef__":true,"id":7462},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":7463},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7462":{"this":{"__isSmartRef__":true,"id":7404}},"7463":{"timestamp":{"__isSmartRef__":true,"id":7464},"user":"sebastianwoinar","tags":[]},"7464":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"7465":{"varMapping":{"__isSmartRef__":true,"id":7466},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":7467},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7466":{"this":{"__isSmartRef__":true,"id":7404}},"7467":{"timestamp":{"__isSmartRef__":true,"id":7468},"user":"sebastianwoinar","tags":[]},"7468":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"7469":{"varMapping":{"__isSmartRef__":true,"id":7470},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":7471},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7470":{"this":{"__isSmartRef__":true,"id":7404}},"7471":{"timestamp":{"__isSmartRef__":true,"id":7472},"user":"sebastianwoinar","tags":[]},"7472":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"7473":{"varMapping":{"__isSmartRef__":true,"id":7474},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":7475},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7474":{"this":{"__isSmartRef__":true,"id":7404}},"7475":{"timestamp":{"__isSmartRef__":true,"id":7476},"user":"sebastianwoinar","tags":[]},"7476":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"7477":{"varMapping":{"__isSmartRef__":true,"id":7478},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":7479},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7478":{"this":{"__isSmartRef__":true,"id":7404}},"7479":{"timestamp":{"__isSmartRef__":true,"id":7480},"user":"sebastianwoinar","tags":[]},"7480":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"7481":{"varMapping":{"__isSmartRef__":true,"id":7482},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":7483},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7482":{"this":{"__isSmartRef__":true,"id":7404}},"7483":{"timestamp":{"__isSmartRef__":true,"id":7484},"user":"sebastianwoinar","tags":[]},"7484":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"7485":{"varMapping":{"__isSmartRef__":true,"id":7486},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":7487},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7486":{"this":{"__isSmartRef__":true,"id":7404}},"7487":{"timestamp":{"__isSmartRef__":true,"id":7488},"user":"sebastianwoinar","tags":[]},"7488":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"7489":{"varMapping":{"__isSmartRef__":true,"id":7490},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":7491},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7490":{"this":{"__isSmartRef__":true,"id":7404}},"7491":{"timestamp":{"__isSmartRef__":true,"id":7492},"user":"sebastianwoinar","tags":[]},"7492":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"7493":{"varMapping":{"__isSmartRef__":true,"id":7494},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":7499},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7494":{"this":{"__isSmartRef__":true,"id":7404},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7495}},"7495":{"$super":{"__isSmartRef__":true,"id":7496}},"7496":{"varMapping":{"__isSmartRef__":true,"id":7497},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7498},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7497":{"obj":{"__isSmartRef__":true,"id":7404},"name":"onMouseDown"},"7498":{},"7499":{"timestamp":{"__isSmartRef__":true,"id":7500},"user":"sebastianwoinar","tags":[]},"7500":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"7501":{"varMapping":{"__isSmartRef__":true,"id":7502},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":7503},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7502":{"this":{"__isSmartRef__":true,"id":7404}},"7503":{"timestamp":{"__isSmartRef__":true,"id":7504},"user":"sebastianwoinar","tags":[]},"7504":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"7505":{"varMapping":{"__isSmartRef__":true,"id":7506},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":7507},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7506":{"this":{"__isSmartRef__":true,"id":7404}},"7507":{"timestamp":{"__isSmartRef__":true,"id":7508},"user":"sebastianwoinar","tags":[]},"7508":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"7509":{"varMapping":{"__isSmartRef__":true,"id":7510},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":7511},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7510":{"this":{"__isSmartRef__":true,"id":7404}},"7511":{"timestamp":{"__isSmartRef__":true,"id":7512},"user":"sebastianwoinar","tags":[]},"7512":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"7513":{"varMapping":{"__isSmartRef__":true,"id":7514},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":7515},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7514":{"this":{"__isSmartRef__":true,"id":7404}},"7515":{"timestamp":{"__isSmartRef__":true,"id":7516},"user":"sebastianwoinar","tags":[]},"7516":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"7517":{"varMapping":{"__isSmartRef__":true,"id":7518},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":7519},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7518":{"this":{"__isSmartRef__":true,"id":7404}},"7519":{"timestamp":{"__isSmartRef__":true,"id":7520},"user":"sebastianwoinar","tags":[]},"7520":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"7521":{"varMapping":{"__isSmartRef__":true,"id":7522},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7523},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7522":{"this":{"__isSmartRef__":true,"id":7404}},"7523":{"timestamp":{"__isSmartRef__":true,"id":7524},"user":"sebastianwoinar","tags":[]},"7524":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"7525":{"varMapping":{"__isSmartRef__":true,"id":7526},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":7527},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7526":{"this":{"__isSmartRef__":true,"id":7404}},"7527":{"timestamp":{"__isSmartRef__":true,"id":7528},"user":"sebastianwoinar","tags":[]},"7528":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"7529":{"varMapping":{"__isSmartRef__":true,"id":7530},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7531},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7530":{"this":{"__isSmartRef__":true,"id":7404}},"7531":{"timestamp":{"__isSmartRef__":true,"id":7532},"user":"sebastianwoinar","tags":[]},"7532":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"7533":{"submorphs":[{"__isSmartRef__":true,"id":7534}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7551},"id":"64350A13-B947-49A3-B53F-1F6ED0C2ABFF","eventHandler":{"__isSmartRef__":true,"id":7552},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":7553},"name":"node17","partsBinMetaInfo":{"__isSmartRef__":true,"id":7554},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5463},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":7122},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7557},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(93.6,210.0)"},"7534":{"submorphs":[],"scripts":[],"id":"34C7CD19-83AA-487B-B082-7375F070BABF","shape":{"__isSmartRef__":true,"id":7535},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":7536},"textChunks":[{"__isSmartRef__":true,"id":7548}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":7550},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":7533},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"7535":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"7536":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":7537},{"__isSmartRef__":true,"id":7539},{"__isSmartRef__":true,"id":7541},{"__isSmartRef__":true,"id":7543},{"__isSmartRef__":true,"id":7545}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":7547},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"7537":{"date":{"__isSmartRef__":true,"id":7538},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"7538":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"7539":{"date":{"__isSmartRef__":true,"id":7540},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"7540":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"7541":{"date":{"__isSmartRef__":true,"id":7542},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"7542":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"7543":{"date":{"__isSmartRef__":true,"id":7544},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"7544":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"7545":{"date":{"__isSmartRef__":true,"id":7546},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"7546":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"7547":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"7548":{"style":{"__isSmartRef__":true,"id":7549},"morph":{"__isSmartRef__":true,"id":7534},"chunkOwner":{"__isSmartRef__":true,"id":7534},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7549":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7550":{"morph":{"__isSmartRef__":true,"id":7534},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7551":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"7552":{"morph":{"__isSmartRef__":true,"id":7533},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7553":{},"7554":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":7555}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"7555":{"date":{"__isSmartRef__":true,"id":7556},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"7556":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"7557":{"buildChildNodes":{"__isSmartRef__":true,"id":7558},"getGameTree":{"__isSmartRef__":true,"id":7562},"getLevel":{"__isSmartRef__":true,"id":7566},"getLevelWeight":{"__isSmartRef__":true,"id":7570},"getWeight":{"__isSmartRef__":true,"id":7574},"setNode":{"__isSmartRef__":true,"id":7578},"setParent":{"__isSmartRef__":true,"id":7582},"getParent":{"__isSmartRef__":true,"id":7586},"deactivate":{"__isSmartRef__":true,"id":7590},"blink":{"__isSmartRef__":true,"id":7594},"ABPreturn":{"__isSmartRef__":true,"id":7598},"ABPstart":{"__isSmartRef__":true,"id":7602},"ABPcontinue":{"__isSmartRef__":true,"id":7606},"ABPshowValue":{"__isSmartRef__":true,"id":7610},"ABPgetValue":{"__isSmartRef__":true,"id":7614},"ABPhasChildNodes":{"__isSmartRef__":true,"id":7618},"onMouseDown":{"__isSmartRef__":true,"id":7622},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":7630},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":7634},"ABPmarkAsDone":{"__isSmartRef__":true,"id":7638},"ABPmarkAsActive":{"__isSmartRef__":true,"id":7642},"getStateMorph":{"__isSmartRef__":true,"id":7646},"showState":{"__isSmartRef__":true,"id":7650},"ABPfailHard":{"__isSmartRef__":true,"id":7654},"markFinalDrawWith":{"__isSmartRef__":true,"id":7658}},"7558":{"varMapping":{"__isSmartRef__":true,"id":7559},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":7560},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7559":{"this":{"__isSmartRef__":true,"id":7533}},"7560":{"timestamp":{"__isSmartRef__":true,"id":7561},"user":"sebastianwoinar","tags":[]},"7561":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"7562":{"varMapping":{"__isSmartRef__":true,"id":7563},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":7564},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7563":{"this":{"__isSmartRef__":true,"id":7533}},"7564":{"timestamp":{"__isSmartRef__":true,"id":7565},"user":"sebastianwoinar","tags":[]},"7565":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7566":{"varMapping":{"__isSmartRef__":true,"id":7567},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":7568},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7567":{"this":{"__isSmartRef__":true,"id":7533}},"7568":{"timestamp":{"__isSmartRef__":true,"id":7569},"user":"sebastianwoinar","tags":[]},"7569":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7570":{"varMapping":{"__isSmartRef__":true,"id":7571},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7572},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7571":{"this":{"__isSmartRef__":true,"id":7533}},"7572":{"timestamp":{"__isSmartRef__":true,"id":7573},"user":"sebastianwoinar","tags":[]},"7573":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7574":{"varMapping":{"__isSmartRef__":true,"id":7575},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":7576},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7575":{"this":{"__isSmartRef__":true,"id":7533}},"7576":{"timestamp":{"__isSmartRef__":true,"id":7577},"user":"sebastianwoinar","tags":[]},"7577":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7578":{"varMapping":{"__isSmartRef__":true,"id":7579},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":7580},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7579":{"this":{"__isSmartRef__":true,"id":7533}},"7580":{"timestamp":{"__isSmartRef__":true,"id":7581},"user":"sebastianwoinar","tags":[]},"7581":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7582":{"varMapping":{"__isSmartRef__":true,"id":7583},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":7584},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7583":{"this":{"__isSmartRef__":true,"id":7533}},"7584":{"timestamp":{"__isSmartRef__":true,"id":7585},"user":"sebastianwoinar","tags":[]},"7585":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7586":{"varMapping":{"__isSmartRef__":true,"id":7587},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":7588},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7587":{"this":{"__isSmartRef__":true,"id":7533}},"7588":{"timestamp":{"__isSmartRef__":true,"id":7589},"user":"sebastianwoinar","tags":[]},"7589":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"7590":{"varMapping":{"__isSmartRef__":true,"id":7591},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":7592},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7591":{"this":{"__isSmartRef__":true,"id":7533}},"7592":{"timestamp":{"__isSmartRef__":true,"id":7593},"user":"sebastianwoinar","tags":[]},"7593":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"7594":{"varMapping":{"__isSmartRef__":true,"id":7595},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":7596},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7595":{"this":{"__isSmartRef__":true,"id":7533}},"7596":{"timestamp":{"__isSmartRef__":true,"id":7597},"user":"sebastianwoinar","tags":[]},"7597":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"7598":{"varMapping":{"__isSmartRef__":true,"id":7599},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":7600},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7599":{"this":{"__isSmartRef__":true,"id":7533}},"7600":{"timestamp":{"__isSmartRef__":true,"id":7601},"user":"sebastianwoinar","tags":[]},"7601":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"7602":{"varMapping":{"__isSmartRef__":true,"id":7603},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":7604},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7603":{"this":{"__isSmartRef__":true,"id":7533}},"7604":{"timestamp":{"__isSmartRef__":true,"id":7605},"user":"sebastianwoinar","tags":[]},"7605":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"7606":{"varMapping":{"__isSmartRef__":true,"id":7607},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":7608},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7607":{"this":{"__isSmartRef__":true,"id":7533}},"7608":{"timestamp":{"__isSmartRef__":true,"id":7609},"user":"sebastianwoinar","tags":[]},"7609":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"7610":{"varMapping":{"__isSmartRef__":true,"id":7611},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":7612},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7611":{"this":{"__isSmartRef__":true,"id":7533}},"7612":{"timestamp":{"__isSmartRef__":true,"id":7613},"user":"sebastianwoinar","tags":[]},"7613":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"7614":{"varMapping":{"__isSmartRef__":true,"id":7615},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":7616},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7615":{"this":{"__isSmartRef__":true,"id":7533}},"7616":{"timestamp":{"__isSmartRef__":true,"id":7617},"user":"sebastianwoinar","tags":[]},"7617":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"7618":{"varMapping":{"__isSmartRef__":true,"id":7619},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":7620},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7619":{"this":{"__isSmartRef__":true,"id":7533}},"7620":{"timestamp":{"__isSmartRef__":true,"id":7621},"user":"sebastianwoinar","tags":[]},"7621":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"7622":{"varMapping":{"__isSmartRef__":true,"id":7623},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":7628},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7623":{"this":{"__isSmartRef__":true,"id":7533},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7624}},"7624":{"$super":{"__isSmartRef__":true,"id":7625}},"7625":{"varMapping":{"__isSmartRef__":true,"id":7626},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7627},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7626":{"obj":{"__isSmartRef__":true,"id":7533},"name":"onMouseDown"},"7627":{},"7628":{"timestamp":{"__isSmartRef__":true,"id":7629},"user":"sebastianwoinar","tags":[]},"7629":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"7630":{"varMapping":{"__isSmartRef__":true,"id":7631},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":7632},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7631":{"this":{"__isSmartRef__":true,"id":7533}},"7632":{"timestamp":{"__isSmartRef__":true,"id":7633},"user":"sebastianwoinar","tags":[]},"7633":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"7634":{"varMapping":{"__isSmartRef__":true,"id":7635},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":7636},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7635":{"this":{"__isSmartRef__":true,"id":7533}},"7636":{"timestamp":{"__isSmartRef__":true,"id":7637},"user":"sebastianwoinar","tags":[]},"7637":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"7638":{"varMapping":{"__isSmartRef__":true,"id":7639},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":7640},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7639":{"this":{"__isSmartRef__":true,"id":7533}},"7640":{"timestamp":{"__isSmartRef__":true,"id":7641},"user":"sebastianwoinar","tags":[]},"7641":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"7642":{"varMapping":{"__isSmartRef__":true,"id":7643},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":7644},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7643":{"this":{"__isSmartRef__":true,"id":7533}},"7644":{"timestamp":{"__isSmartRef__":true,"id":7645},"user":"sebastianwoinar","tags":[]},"7645":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"7646":{"varMapping":{"__isSmartRef__":true,"id":7647},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":7648},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7647":{"this":{"__isSmartRef__":true,"id":7533}},"7648":{"timestamp":{"__isSmartRef__":true,"id":7649},"user":"sebastianwoinar","tags":[]},"7649":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"7650":{"varMapping":{"__isSmartRef__":true,"id":7651},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7652},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7651":{"this":{"__isSmartRef__":true,"id":7533}},"7652":{"timestamp":{"__isSmartRef__":true,"id":7653},"user":"sebastianwoinar","tags":[]},"7653":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"7654":{"varMapping":{"__isSmartRef__":true,"id":7655},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":7656},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7655":{"this":{"__isSmartRef__":true,"id":7533}},"7656":{"timestamp":{"__isSmartRef__":true,"id":7657},"user":"sebastianwoinar","tags":[]},"7657":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"7658":{"varMapping":{"__isSmartRef__":true,"id":7659},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7660},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7659":{"this":{"__isSmartRef__":true,"id":7533}},"7660":{"timestamp":{"__isSmartRef__":true,"id":7661},"user":"sebastianwoinar","tags":[]},"7661":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"7662":{"submorphs":[{"__isSmartRef__":true,"id":7663}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7680},"id":"1C242A8B-B59F-4B74-AAA8-892585A1DA95","eventHandler":{"__isSmartRef__":true,"id":7681},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":7682},"name":"node18","partsBinMetaInfo":{"__isSmartRef__":true,"id":7683},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5465},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":7122},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7686},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(98.8,210.0)"},"7663":{"submorphs":[],"scripts":[],"id":"E7772D7A-35DF-4C79-B7B3-095CFAC8EDB6","shape":{"__isSmartRef__":true,"id":7664},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":7665},"textChunks":[{"__isSmartRef__":true,"id":7677}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":7679},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":7662},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"7664":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"7665":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":7666},{"__isSmartRef__":true,"id":7668},{"__isSmartRef__":true,"id":7670},{"__isSmartRef__":true,"id":7672},{"__isSmartRef__":true,"id":7674}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":7676},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"7666":{"date":{"__isSmartRef__":true,"id":7667},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"7667":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"7668":{"date":{"__isSmartRef__":true,"id":7669},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"7669":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"7670":{"date":{"__isSmartRef__":true,"id":7671},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"7671":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"7672":{"date":{"__isSmartRef__":true,"id":7673},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"7673":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"7674":{"date":{"__isSmartRef__":true,"id":7675},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"7675":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"7676":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"7677":{"style":{"__isSmartRef__":true,"id":7678},"morph":{"__isSmartRef__":true,"id":7663},"chunkOwner":{"__isSmartRef__":true,"id":7663},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7678":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7679":{"morph":{"__isSmartRef__":true,"id":7663},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7680":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"7681":{"morph":{"__isSmartRef__":true,"id":7662},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7682":{},"7683":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":7684}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"7684":{"date":{"__isSmartRef__":true,"id":7685},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"7685":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"7686":{"buildChildNodes":{"__isSmartRef__":true,"id":7687},"getGameTree":{"__isSmartRef__":true,"id":7691},"getLevel":{"__isSmartRef__":true,"id":7695},"getLevelWeight":{"__isSmartRef__":true,"id":7699},"getWeight":{"__isSmartRef__":true,"id":7703},"setNode":{"__isSmartRef__":true,"id":7707},"setParent":{"__isSmartRef__":true,"id":7711},"getParent":{"__isSmartRef__":true,"id":7715},"deactivate":{"__isSmartRef__":true,"id":7719},"blink":{"__isSmartRef__":true,"id":7723},"ABPreturn":{"__isSmartRef__":true,"id":7727},"ABPstart":{"__isSmartRef__":true,"id":7731},"ABPcontinue":{"__isSmartRef__":true,"id":7735},"ABPshowValue":{"__isSmartRef__":true,"id":7739},"ABPgetValue":{"__isSmartRef__":true,"id":7743},"ABPhasChildNodes":{"__isSmartRef__":true,"id":7747},"onMouseDown":{"__isSmartRef__":true,"id":7751},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":7759},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":7763},"ABPmarkAsDone":{"__isSmartRef__":true,"id":7767},"ABPmarkAsActive":{"__isSmartRef__":true,"id":7771},"getStateMorph":{"__isSmartRef__":true,"id":7775},"showState":{"__isSmartRef__":true,"id":7779},"ABPfailHard":{"__isSmartRef__":true,"id":7783},"markFinalDrawWith":{"__isSmartRef__":true,"id":7787}},"7687":{"varMapping":{"__isSmartRef__":true,"id":7688},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":7689},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7688":{"this":{"__isSmartRef__":true,"id":7662}},"7689":{"timestamp":{"__isSmartRef__":true,"id":7690},"user":"sebastianwoinar","tags":[]},"7690":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"7691":{"varMapping":{"__isSmartRef__":true,"id":7692},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":7693},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7692":{"this":{"__isSmartRef__":true,"id":7662}},"7693":{"timestamp":{"__isSmartRef__":true,"id":7694},"user":"sebastianwoinar","tags":[]},"7694":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7695":{"varMapping":{"__isSmartRef__":true,"id":7696},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":7697},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7696":{"this":{"__isSmartRef__":true,"id":7662}},"7697":{"timestamp":{"__isSmartRef__":true,"id":7698},"user":"sebastianwoinar","tags":[]},"7698":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7699":{"varMapping":{"__isSmartRef__":true,"id":7700},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7701},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7700":{"this":{"__isSmartRef__":true,"id":7662}},"7701":{"timestamp":{"__isSmartRef__":true,"id":7702},"user":"sebastianwoinar","tags":[]},"7702":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7703":{"varMapping":{"__isSmartRef__":true,"id":7704},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":7705},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7704":{"this":{"__isSmartRef__":true,"id":7662}},"7705":{"timestamp":{"__isSmartRef__":true,"id":7706},"user":"sebastianwoinar","tags":[]},"7706":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7707":{"varMapping":{"__isSmartRef__":true,"id":7708},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":7709},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7708":{"this":{"__isSmartRef__":true,"id":7662}},"7709":{"timestamp":{"__isSmartRef__":true,"id":7710},"user":"sebastianwoinar","tags":[]},"7710":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7711":{"varMapping":{"__isSmartRef__":true,"id":7712},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":7713},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7712":{"this":{"__isSmartRef__":true,"id":7662}},"7713":{"timestamp":{"__isSmartRef__":true,"id":7714},"user":"sebastianwoinar","tags":[]},"7714":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7715":{"varMapping":{"__isSmartRef__":true,"id":7716},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":7717},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7716":{"this":{"__isSmartRef__":true,"id":7662}},"7717":{"timestamp":{"__isSmartRef__":true,"id":7718},"user":"sebastianwoinar","tags":[]},"7718":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"7719":{"varMapping":{"__isSmartRef__":true,"id":7720},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":7721},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7720":{"this":{"__isSmartRef__":true,"id":7662}},"7721":{"timestamp":{"__isSmartRef__":true,"id":7722},"user":"sebastianwoinar","tags":[]},"7722":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"7723":{"varMapping":{"__isSmartRef__":true,"id":7724},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":7725},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7724":{"this":{"__isSmartRef__":true,"id":7662}},"7725":{"timestamp":{"__isSmartRef__":true,"id":7726},"user":"sebastianwoinar","tags":[]},"7726":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"7727":{"varMapping":{"__isSmartRef__":true,"id":7728},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":7729},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7728":{"this":{"__isSmartRef__":true,"id":7662}},"7729":{"timestamp":{"__isSmartRef__":true,"id":7730},"user":"sebastianwoinar","tags":[]},"7730":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"7731":{"varMapping":{"__isSmartRef__":true,"id":7732},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":7733},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7732":{"this":{"__isSmartRef__":true,"id":7662}},"7733":{"timestamp":{"__isSmartRef__":true,"id":7734},"user":"sebastianwoinar","tags":[]},"7734":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"7735":{"varMapping":{"__isSmartRef__":true,"id":7736},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":7737},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7736":{"this":{"__isSmartRef__":true,"id":7662}},"7737":{"timestamp":{"__isSmartRef__":true,"id":7738},"user":"sebastianwoinar","tags":[]},"7738":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"7739":{"varMapping":{"__isSmartRef__":true,"id":7740},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":7741},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7740":{"this":{"__isSmartRef__":true,"id":7662}},"7741":{"timestamp":{"__isSmartRef__":true,"id":7742},"user":"sebastianwoinar","tags":[]},"7742":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"7743":{"varMapping":{"__isSmartRef__":true,"id":7744},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":7745},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7744":{"this":{"__isSmartRef__":true,"id":7662}},"7745":{"timestamp":{"__isSmartRef__":true,"id":7746},"user":"sebastianwoinar","tags":[]},"7746":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"7747":{"varMapping":{"__isSmartRef__":true,"id":7748},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":7749},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7748":{"this":{"__isSmartRef__":true,"id":7662}},"7749":{"timestamp":{"__isSmartRef__":true,"id":7750},"user":"sebastianwoinar","tags":[]},"7750":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"7751":{"varMapping":{"__isSmartRef__":true,"id":7752},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":7757},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7752":{"this":{"__isSmartRef__":true,"id":7662},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7753}},"7753":{"$super":{"__isSmartRef__":true,"id":7754}},"7754":{"varMapping":{"__isSmartRef__":true,"id":7755},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7756},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7755":{"obj":{"__isSmartRef__":true,"id":7662},"name":"onMouseDown"},"7756":{},"7757":{"timestamp":{"__isSmartRef__":true,"id":7758},"user":"sebastianwoinar","tags":[]},"7758":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"7759":{"varMapping":{"__isSmartRef__":true,"id":7760},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":7761},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7760":{"this":{"__isSmartRef__":true,"id":7662}},"7761":{"timestamp":{"__isSmartRef__":true,"id":7762},"user":"sebastianwoinar","tags":[]},"7762":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"7763":{"varMapping":{"__isSmartRef__":true,"id":7764},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":7765},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7764":{"this":{"__isSmartRef__":true,"id":7662}},"7765":{"timestamp":{"__isSmartRef__":true,"id":7766},"user":"sebastianwoinar","tags":[]},"7766":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"7767":{"varMapping":{"__isSmartRef__":true,"id":7768},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":7769},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7768":{"this":{"__isSmartRef__":true,"id":7662}},"7769":{"timestamp":{"__isSmartRef__":true,"id":7770},"user":"sebastianwoinar","tags":[]},"7770":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"7771":{"varMapping":{"__isSmartRef__":true,"id":7772},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":7773},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7772":{"this":{"__isSmartRef__":true,"id":7662}},"7773":{"timestamp":{"__isSmartRef__":true,"id":7774},"user":"sebastianwoinar","tags":[]},"7774":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"7775":{"varMapping":{"__isSmartRef__":true,"id":7776},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":7777},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7776":{"this":{"__isSmartRef__":true,"id":7662}},"7777":{"timestamp":{"__isSmartRef__":true,"id":7778},"user":"sebastianwoinar","tags":[]},"7778":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"7779":{"varMapping":{"__isSmartRef__":true,"id":7780},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7781},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7780":{"this":{"__isSmartRef__":true,"id":7662}},"7781":{"timestamp":{"__isSmartRef__":true,"id":7782},"user":"sebastianwoinar","tags":[]},"7782":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"7783":{"varMapping":{"__isSmartRef__":true,"id":7784},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":7785},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7784":{"this":{"__isSmartRef__":true,"id":7662}},"7785":{"timestamp":{"__isSmartRef__":true,"id":7786},"user":"sebastianwoinar","tags":[]},"7786":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"7787":{"varMapping":{"__isSmartRef__":true,"id":7788},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7789},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7788":{"this":{"__isSmartRef__":true,"id":7662}},"7789":{"timestamp":{"__isSmartRef__":true,"id":7790},"user":"sebastianwoinar","tags":[]},"7790":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"7791":{"buildChildNodes":{"__isSmartRef__":true,"id":7792},"getGameTree":{"__isSmartRef__":true,"id":7796},"getLevel":{"__isSmartRef__":true,"id":7800},"getLevelWeight":{"__isSmartRef__":true,"id":7804},"getWeight":{"__isSmartRef__":true,"id":7808},"setNode":{"__isSmartRef__":true,"id":7812},"setParent":{"__isSmartRef__":true,"id":7816},"getParent":{"__isSmartRef__":true,"id":7820},"deactivate":{"__isSmartRef__":true,"id":7824},"blink":{"__isSmartRef__":true,"id":7828},"ABPreturn":{"__isSmartRef__":true,"id":7832},"ABPstart":{"__isSmartRef__":true,"id":7836},"ABPcontinue":{"__isSmartRef__":true,"id":7840},"ABPshowValue":{"__isSmartRef__":true,"id":7844},"ABPgetValue":{"__isSmartRef__":true,"id":7848},"ABPhasChildNodes":{"__isSmartRef__":true,"id":7852},"onMouseDown":{"__isSmartRef__":true,"id":7856},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":7864},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":7868},"ABPmarkAsDone":{"__isSmartRef__":true,"id":7872},"ABPmarkAsActive":{"__isSmartRef__":true,"id":7876},"getStateMorph":{"__isSmartRef__":true,"id":7880},"showState":{"__isSmartRef__":true,"id":7884},"ABPfailHard":{"__isSmartRef__":true,"id":7888},"markFinalDrawWith":{"__isSmartRef__":true,"id":7892}},"7792":{"varMapping":{"__isSmartRef__":true,"id":7793},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":7794},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7793":{"this":{"__isSmartRef__":true,"id":7122}},"7794":{"timestamp":{"__isSmartRef__":true,"id":7795},"user":"sebastianwoinar","tags":[]},"7795":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"7796":{"varMapping":{"__isSmartRef__":true,"id":7797},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":7798},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7797":{"this":{"__isSmartRef__":true,"id":7122}},"7798":{"timestamp":{"__isSmartRef__":true,"id":7799},"user":"sebastianwoinar","tags":[]},"7799":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7800":{"varMapping":{"__isSmartRef__":true,"id":7801},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":7802},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7801":{"this":{"__isSmartRef__":true,"id":7122}},"7802":{"timestamp":{"__isSmartRef__":true,"id":7803},"user":"sebastianwoinar","tags":[]},"7803":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7804":{"varMapping":{"__isSmartRef__":true,"id":7805},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7806},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7805":{"this":{"__isSmartRef__":true,"id":7122}},"7806":{"timestamp":{"__isSmartRef__":true,"id":7807},"user":"sebastianwoinar","tags":[]},"7807":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7808":{"varMapping":{"__isSmartRef__":true,"id":7809},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":7810},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7809":{"this":{"__isSmartRef__":true,"id":7122}},"7810":{"timestamp":{"__isSmartRef__":true,"id":7811},"user":"sebastianwoinar","tags":[]},"7811":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7812":{"varMapping":{"__isSmartRef__":true,"id":7813},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":7814},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7813":{"this":{"__isSmartRef__":true,"id":7122}},"7814":{"timestamp":{"__isSmartRef__":true,"id":7815},"user":"sebastianwoinar","tags":[]},"7815":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7816":{"varMapping":{"__isSmartRef__":true,"id":7817},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":7818},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7817":{"this":{"__isSmartRef__":true,"id":7122}},"7818":{"timestamp":{"__isSmartRef__":true,"id":7819},"user":"sebastianwoinar","tags":[]},"7819":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7820":{"varMapping":{"__isSmartRef__":true,"id":7821},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":7822},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7821":{"this":{"__isSmartRef__":true,"id":7122}},"7822":{"timestamp":{"__isSmartRef__":true,"id":7823},"user":"sebastianwoinar","tags":[]},"7823":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"7824":{"varMapping":{"__isSmartRef__":true,"id":7825},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":7826},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7825":{"this":{"__isSmartRef__":true,"id":7122}},"7826":{"timestamp":{"__isSmartRef__":true,"id":7827},"user":"sebastianwoinar","tags":[]},"7827":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"7828":{"varMapping":{"__isSmartRef__":true,"id":7829},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":7830},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7829":{"this":{"__isSmartRef__":true,"id":7122}},"7830":{"timestamp":{"__isSmartRef__":true,"id":7831},"user":"sebastianwoinar","tags":[]},"7831":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"7832":{"varMapping":{"__isSmartRef__":true,"id":7833},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":7834},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7833":{"this":{"__isSmartRef__":true,"id":7122}},"7834":{"timestamp":{"__isSmartRef__":true,"id":7835},"user":"sebastianwoinar","tags":[]},"7835":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"7836":{"varMapping":{"__isSmartRef__":true,"id":7837},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":7838},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7837":{"this":{"__isSmartRef__":true,"id":7122}},"7838":{"timestamp":{"__isSmartRef__":true,"id":7839},"user":"sebastianwoinar","tags":[]},"7839":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"7840":{"varMapping":{"__isSmartRef__":true,"id":7841},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":7842},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7841":{"this":{"__isSmartRef__":true,"id":7122}},"7842":{"timestamp":{"__isSmartRef__":true,"id":7843},"user":"sebastianwoinar","tags":[]},"7843":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"7844":{"varMapping":{"__isSmartRef__":true,"id":7845},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":7846},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7845":{"this":{"__isSmartRef__":true,"id":7122}},"7846":{"timestamp":{"__isSmartRef__":true,"id":7847},"user":"sebastianwoinar","tags":[]},"7847":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"7848":{"varMapping":{"__isSmartRef__":true,"id":7849},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":7850},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7849":{"this":{"__isSmartRef__":true,"id":7122}},"7850":{"timestamp":{"__isSmartRef__":true,"id":7851},"user":"sebastianwoinar","tags":[]},"7851":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"7852":{"varMapping":{"__isSmartRef__":true,"id":7853},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":7854},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7853":{"this":{"__isSmartRef__":true,"id":7122}},"7854":{"timestamp":{"__isSmartRef__":true,"id":7855},"user":"sebastianwoinar","tags":[]},"7855":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"7856":{"varMapping":{"__isSmartRef__":true,"id":7857},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":7862},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7857":{"this":{"__isSmartRef__":true,"id":7122},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7858}},"7858":{"$super":{"__isSmartRef__":true,"id":7859}},"7859":{"varMapping":{"__isSmartRef__":true,"id":7860},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7861},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7860":{"obj":{"__isSmartRef__":true,"id":7122},"name":"onMouseDown"},"7861":{},"7862":{"timestamp":{"__isSmartRef__":true,"id":7863},"user":"sebastianwoinar","tags":[]},"7863":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"7864":{"varMapping":{"__isSmartRef__":true,"id":7865},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":7866},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7865":{"this":{"__isSmartRef__":true,"id":7122}},"7866":{"timestamp":{"__isSmartRef__":true,"id":7867},"user":"sebastianwoinar","tags":[]},"7867":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"7868":{"varMapping":{"__isSmartRef__":true,"id":7869},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":7870},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7869":{"this":{"__isSmartRef__":true,"id":7122}},"7870":{"timestamp":{"__isSmartRef__":true,"id":7871},"user":"sebastianwoinar","tags":[]},"7871":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"7872":{"varMapping":{"__isSmartRef__":true,"id":7873},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":7874},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7873":{"this":{"__isSmartRef__":true,"id":7122}},"7874":{"timestamp":{"__isSmartRef__":true,"id":7875},"user":"sebastianwoinar","tags":[]},"7875":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"7876":{"varMapping":{"__isSmartRef__":true,"id":7877},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":7878},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7877":{"this":{"__isSmartRef__":true,"id":7122}},"7878":{"timestamp":{"__isSmartRef__":true,"id":7879},"user":"sebastianwoinar","tags":[]},"7879":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"7880":{"varMapping":{"__isSmartRef__":true,"id":7881},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":7882},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7881":{"this":{"__isSmartRef__":true,"id":7122}},"7882":{"timestamp":{"__isSmartRef__":true,"id":7883},"user":"sebastianwoinar","tags":[]},"7883":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"7884":{"varMapping":{"__isSmartRef__":true,"id":7885},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7886},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7885":{"this":{"__isSmartRef__":true,"id":7122}},"7886":{"timestamp":{"__isSmartRef__":true,"id":7887},"user":"sebastianwoinar","tags":[]},"7887":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"7888":{"varMapping":{"__isSmartRef__":true,"id":7889},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":7890},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7889":{"this":{"__isSmartRef__":true,"id":7122}},"7890":{"timestamp":{"__isSmartRef__":true,"id":7891},"user":"sebastianwoinar","tags":[]},"7891":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"7892":{"varMapping":{"__isSmartRef__":true,"id":7893},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7894},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7893":{"this":{"__isSmartRef__":true,"id":7122}},"7894":{"timestamp":{"__isSmartRef__":true,"id":7895},"user":"sebastianwoinar","tags":[]},"7895":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"7896":{"submorphs":[{"__isSmartRef__":true,"id":7897}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7914},"id":"D3E64A78-611F-4B7E-A6F7-089B1CD16F38","eventHandler":{"__isSmartRef__":true,"id":7915},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":7916},"name":"node19","partsBinMetaInfo":{"__isSmartRef__":true,"id":7917},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5467},"owner":{"__isSmartRef__":true,"id":5408},"childNodes":[{"__isSmartRef__":true,"id":7920},{"__isSmartRef__":true,"id":8049},{"__isSmartRef__":true,"id":8178},{"__isSmartRef__":true,"id":8307},{"__isSmartRef__":true,"id":8436},{"__isSmartRef__":true,"id":8565},{"__isSmartRef__":true,"id":8694}],"parent":{"__isSmartRef__":true,"id":5937},"level":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8823},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(140.2,160.0)"},"7897":{"submorphs":[],"scripts":[],"id":"7C58948B-9337-4A76-9B52-F427E9F14055","shape":{"__isSmartRef__":true,"id":7898},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":7899},"textChunks":[{"__isSmartRef__":true,"id":7911}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":7913},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":7896},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"7898":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"7899":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":7900},{"__isSmartRef__":true,"id":7902},{"__isSmartRef__":true,"id":7904},{"__isSmartRef__":true,"id":7906},{"__isSmartRef__":true,"id":7908}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":7910},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"7900":{"date":{"__isSmartRef__":true,"id":7901},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"7901":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"7902":{"date":{"__isSmartRef__":true,"id":7903},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"7903":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"7904":{"date":{"__isSmartRef__":true,"id":7905},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"7905":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"7906":{"date":{"__isSmartRef__":true,"id":7907},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"7907":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"7908":{"date":{"__isSmartRef__":true,"id":7909},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"7909":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"7910":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"7911":{"style":{"__isSmartRef__":true,"id":7912},"morph":{"__isSmartRef__":true,"id":7897},"chunkOwner":{"__isSmartRef__":true,"id":7897},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7912":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7913":{"morph":{"__isSmartRef__":true,"id":7897},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7914":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"7915":{"morph":{"__isSmartRef__":true,"id":7896},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7916":{},"7917":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":7918}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"7918":{"date":{"__isSmartRef__":true,"id":7919},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"7919":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"7920":{"submorphs":[{"__isSmartRef__":true,"id":7921}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7938},"id":"043F99D2-7FFD-48F5-A2AD-B186FB032521","eventHandler":{"__isSmartRef__":true,"id":7939},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":7940},"name":"node20","partsBinMetaInfo":{"__isSmartRef__":true,"id":7941},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5469},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":7896},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7944},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(104.0,210.0)"},"7921":{"submorphs":[],"scripts":[],"id":"1922EE0B-13CA-489A-A790-FE8205A499CF","shape":{"__isSmartRef__":true,"id":7922},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":7923},"textChunks":[{"__isSmartRef__":true,"id":7935}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":7937},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":7920},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"7922":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"7923":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":7924},{"__isSmartRef__":true,"id":7926},{"__isSmartRef__":true,"id":7928},{"__isSmartRef__":true,"id":7930},{"__isSmartRef__":true,"id":7932}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":7934},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"7924":{"date":{"__isSmartRef__":true,"id":7925},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"7925":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"7926":{"date":{"__isSmartRef__":true,"id":7927},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"7927":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"7928":{"date":{"__isSmartRef__":true,"id":7929},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"7929":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"7930":{"date":{"__isSmartRef__":true,"id":7931},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"7931":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"7932":{"date":{"__isSmartRef__":true,"id":7933},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"7933":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"7934":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"7935":{"style":{"__isSmartRef__":true,"id":7936},"morph":{"__isSmartRef__":true,"id":7921},"chunkOwner":{"__isSmartRef__":true,"id":7921},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7936":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7937":{"morph":{"__isSmartRef__":true,"id":7921},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7938":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"7939":{"morph":{"__isSmartRef__":true,"id":7920},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7940":{},"7941":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":7942}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"7942":{"date":{"__isSmartRef__":true,"id":7943},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"7943":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"7944":{"buildChildNodes":{"__isSmartRef__":true,"id":7945},"getGameTree":{"__isSmartRef__":true,"id":7949},"getLevel":{"__isSmartRef__":true,"id":7953},"getLevelWeight":{"__isSmartRef__":true,"id":7957},"getWeight":{"__isSmartRef__":true,"id":7961},"setNode":{"__isSmartRef__":true,"id":7965},"setParent":{"__isSmartRef__":true,"id":7969},"getParent":{"__isSmartRef__":true,"id":7973},"deactivate":{"__isSmartRef__":true,"id":7977},"blink":{"__isSmartRef__":true,"id":7981},"ABPreturn":{"__isSmartRef__":true,"id":7985},"ABPstart":{"__isSmartRef__":true,"id":7989},"ABPcontinue":{"__isSmartRef__":true,"id":7993},"ABPshowValue":{"__isSmartRef__":true,"id":7997},"ABPgetValue":{"__isSmartRef__":true,"id":8001},"ABPhasChildNodes":{"__isSmartRef__":true,"id":8005},"onMouseDown":{"__isSmartRef__":true,"id":8009},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":8017},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":8021},"ABPmarkAsDone":{"__isSmartRef__":true,"id":8025},"ABPmarkAsActive":{"__isSmartRef__":true,"id":8029},"getStateMorph":{"__isSmartRef__":true,"id":8033},"showState":{"__isSmartRef__":true,"id":8037},"ABPfailHard":{"__isSmartRef__":true,"id":8041},"markFinalDrawWith":{"__isSmartRef__":true,"id":8045}},"7945":{"varMapping":{"__isSmartRef__":true,"id":7946},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":7947},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7946":{"this":{"__isSmartRef__":true,"id":7920}},"7947":{"timestamp":{"__isSmartRef__":true,"id":7948},"user":"sebastianwoinar","tags":[]},"7948":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"7949":{"varMapping":{"__isSmartRef__":true,"id":7950},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":7951},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7950":{"this":{"__isSmartRef__":true,"id":7920}},"7951":{"timestamp":{"__isSmartRef__":true,"id":7952},"user":"sebastianwoinar","tags":[]},"7952":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7953":{"varMapping":{"__isSmartRef__":true,"id":7954},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":7955},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7954":{"this":{"__isSmartRef__":true,"id":7920}},"7955":{"timestamp":{"__isSmartRef__":true,"id":7956},"user":"sebastianwoinar","tags":[]},"7956":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7957":{"varMapping":{"__isSmartRef__":true,"id":7958},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7959},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7958":{"this":{"__isSmartRef__":true,"id":7920}},"7959":{"timestamp":{"__isSmartRef__":true,"id":7960},"user":"sebastianwoinar","tags":[]},"7960":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7961":{"varMapping":{"__isSmartRef__":true,"id":7962},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":7963},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7962":{"this":{"__isSmartRef__":true,"id":7920}},"7963":{"timestamp":{"__isSmartRef__":true,"id":7964},"user":"sebastianwoinar","tags":[]},"7964":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7965":{"varMapping":{"__isSmartRef__":true,"id":7966},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":7967},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7966":{"this":{"__isSmartRef__":true,"id":7920}},"7967":{"timestamp":{"__isSmartRef__":true,"id":7968},"user":"sebastianwoinar","tags":[]},"7968":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7969":{"varMapping":{"__isSmartRef__":true,"id":7970},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":7971},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7970":{"this":{"__isSmartRef__":true,"id":7920}},"7971":{"timestamp":{"__isSmartRef__":true,"id":7972},"user":"sebastianwoinar","tags":[]},"7972":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"7973":{"varMapping":{"__isSmartRef__":true,"id":7974},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":7975},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7974":{"this":{"__isSmartRef__":true,"id":7920}},"7975":{"timestamp":{"__isSmartRef__":true,"id":7976},"user":"sebastianwoinar","tags":[]},"7976":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"7977":{"varMapping":{"__isSmartRef__":true,"id":7978},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":7979},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7978":{"this":{"__isSmartRef__":true,"id":7920}},"7979":{"timestamp":{"__isSmartRef__":true,"id":7980},"user":"sebastianwoinar","tags":[]},"7980":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"7981":{"varMapping":{"__isSmartRef__":true,"id":7982},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":7983},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7982":{"this":{"__isSmartRef__":true,"id":7920}},"7983":{"timestamp":{"__isSmartRef__":true,"id":7984},"user":"sebastianwoinar","tags":[]},"7984":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"7985":{"varMapping":{"__isSmartRef__":true,"id":7986},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":7987},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7986":{"this":{"__isSmartRef__":true,"id":7920}},"7987":{"timestamp":{"__isSmartRef__":true,"id":7988},"user":"sebastianwoinar","tags":[]},"7988":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"7989":{"varMapping":{"__isSmartRef__":true,"id":7990},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":7991},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7990":{"this":{"__isSmartRef__":true,"id":7920}},"7991":{"timestamp":{"__isSmartRef__":true,"id":7992},"user":"sebastianwoinar","tags":[]},"7992":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"7993":{"varMapping":{"__isSmartRef__":true,"id":7994},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":7995},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7994":{"this":{"__isSmartRef__":true,"id":7920}},"7995":{"timestamp":{"__isSmartRef__":true,"id":7996},"user":"sebastianwoinar","tags":[]},"7996":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"7997":{"varMapping":{"__isSmartRef__":true,"id":7998},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":7999},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7998":{"this":{"__isSmartRef__":true,"id":7920}},"7999":{"timestamp":{"__isSmartRef__":true,"id":8000},"user":"sebastianwoinar","tags":[]},"8000":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"8001":{"varMapping":{"__isSmartRef__":true,"id":8002},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":8003},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8002":{"this":{"__isSmartRef__":true,"id":7920}},"8003":{"timestamp":{"__isSmartRef__":true,"id":8004},"user":"sebastianwoinar","tags":[]},"8004":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"8005":{"varMapping":{"__isSmartRef__":true,"id":8006},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":8007},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8006":{"this":{"__isSmartRef__":true,"id":7920}},"8007":{"timestamp":{"__isSmartRef__":true,"id":8008},"user":"sebastianwoinar","tags":[]},"8008":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"8009":{"varMapping":{"__isSmartRef__":true,"id":8010},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":8015},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8010":{"this":{"__isSmartRef__":true,"id":7920},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8011}},"8011":{"$super":{"__isSmartRef__":true,"id":8012}},"8012":{"varMapping":{"__isSmartRef__":true,"id":8013},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8014},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8013":{"obj":{"__isSmartRef__":true,"id":7920},"name":"onMouseDown"},"8014":{},"8015":{"timestamp":{"__isSmartRef__":true,"id":8016},"user":"sebastianwoinar","tags":[]},"8016":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"8017":{"varMapping":{"__isSmartRef__":true,"id":8018},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":8019},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8018":{"this":{"__isSmartRef__":true,"id":7920}},"8019":{"timestamp":{"__isSmartRef__":true,"id":8020},"user":"sebastianwoinar","tags":[]},"8020":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"8021":{"varMapping":{"__isSmartRef__":true,"id":8022},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":8023},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8022":{"this":{"__isSmartRef__":true,"id":7920}},"8023":{"timestamp":{"__isSmartRef__":true,"id":8024},"user":"sebastianwoinar","tags":[]},"8024":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"8025":{"varMapping":{"__isSmartRef__":true,"id":8026},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":8027},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8026":{"this":{"__isSmartRef__":true,"id":7920}},"8027":{"timestamp":{"__isSmartRef__":true,"id":8028},"user":"sebastianwoinar","tags":[]},"8028":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"8029":{"varMapping":{"__isSmartRef__":true,"id":8030},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":8031},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8030":{"this":{"__isSmartRef__":true,"id":7920}},"8031":{"timestamp":{"__isSmartRef__":true,"id":8032},"user":"sebastianwoinar","tags":[]},"8032":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"8033":{"varMapping":{"__isSmartRef__":true,"id":8034},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":8035},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8034":{"this":{"__isSmartRef__":true,"id":7920}},"8035":{"timestamp":{"__isSmartRef__":true,"id":8036},"user":"sebastianwoinar","tags":[]},"8036":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"8037":{"varMapping":{"__isSmartRef__":true,"id":8038},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8039},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8038":{"this":{"__isSmartRef__":true,"id":7920}},"8039":{"timestamp":{"__isSmartRef__":true,"id":8040},"user":"sebastianwoinar","tags":[]},"8040":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"8041":{"varMapping":{"__isSmartRef__":true,"id":8042},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":8043},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8042":{"this":{"__isSmartRef__":true,"id":7920}},"8043":{"timestamp":{"__isSmartRef__":true,"id":8044},"user":"sebastianwoinar","tags":[]},"8044":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"8045":{"varMapping":{"__isSmartRef__":true,"id":8046},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8047},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8046":{"this":{"__isSmartRef__":true,"id":7920}},"8047":{"timestamp":{"__isSmartRef__":true,"id":8048},"user":"sebastianwoinar","tags":[]},"8048":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"8049":{"submorphs":[{"__isSmartRef__":true,"id":8050}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8067},"id":"2BE998B1-F2D7-4041-A25D-CCD68F071578","eventHandler":{"__isSmartRef__":true,"id":8068},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":8069},"name":"node21","partsBinMetaInfo":{"__isSmartRef__":true,"id":8070},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5471},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":7896},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8073},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(109.2,210.0)"},"8050":{"submorphs":[],"scripts":[],"id":"BDA02175-1697-4ADA-93E7-7CD094B9615C","shape":{"__isSmartRef__":true,"id":8051},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":8052},"textChunks":[{"__isSmartRef__":true,"id":8064}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":8066},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":8049},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"8051":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"8052":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":8053},{"__isSmartRef__":true,"id":8055},{"__isSmartRef__":true,"id":8057},{"__isSmartRef__":true,"id":8059},{"__isSmartRef__":true,"id":8061}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":8063},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"8053":{"date":{"__isSmartRef__":true,"id":8054},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"8054":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"8055":{"date":{"__isSmartRef__":true,"id":8056},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"8056":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"8057":{"date":{"__isSmartRef__":true,"id":8058},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"8058":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"8059":{"date":{"__isSmartRef__":true,"id":8060},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"8060":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"8061":{"date":{"__isSmartRef__":true,"id":8062},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"8062":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"8063":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"8064":{"style":{"__isSmartRef__":true,"id":8065},"morph":{"__isSmartRef__":true,"id":8050},"chunkOwner":{"__isSmartRef__":true,"id":8050},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8065":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8066":{"morph":{"__isSmartRef__":true,"id":8050},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8067":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"8068":{"morph":{"__isSmartRef__":true,"id":8049},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8069":{},"8070":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":8071}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"8071":{"date":{"__isSmartRef__":true,"id":8072},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"8072":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"8073":{"buildChildNodes":{"__isSmartRef__":true,"id":8074},"getGameTree":{"__isSmartRef__":true,"id":8078},"getLevel":{"__isSmartRef__":true,"id":8082},"getLevelWeight":{"__isSmartRef__":true,"id":8086},"getWeight":{"__isSmartRef__":true,"id":8090},"setNode":{"__isSmartRef__":true,"id":8094},"setParent":{"__isSmartRef__":true,"id":8098},"getParent":{"__isSmartRef__":true,"id":8102},"deactivate":{"__isSmartRef__":true,"id":8106},"blink":{"__isSmartRef__":true,"id":8110},"ABPreturn":{"__isSmartRef__":true,"id":8114},"ABPstart":{"__isSmartRef__":true,"id":8118},"ABPcontinue":{"__isSmartRef__":true,"id":8122},"ABPshowValue":{"__isSmartRef__":true,"id":8126},"ABPgetValue":{"__isSmartRef__":true,"id":8130},"ABPhasChildNodes":{"__isSmartRef__":true,"id":8134},"onMouseDown":{"__isSmartRef__":true,"id":8138},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":8146},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":8150},"ABPmarkAsDone":{"__isSmartRef__":true,"id":8154},"ABPmarkAsActive":{"__isSmartRef__":true,"id":8158},"getStateMorph":{"__isSmartRef__":true,"id":8162},"showState":{"__isSmartRef__":true,"id":8166},"ABPfailHard":{"__isSmartRef__":true,"id":8170},"markFinalDrawWith":{"__isSmartRef__":true,"id":8174}},"8074":{"varMapping":{"__isSmartRef__":true,"id":8075},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":8076},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8075":{"this":{"__isSmartRef__":true,"id":8049}},"8076":{"timestamp":{"__isSmartRef__":true,"id":8077},"user":"sebastianwoinar","tags":[]},"8077":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"8078":{"varMapping":{"__isSmartRef__":true,"id":8079},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":8080},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8079":{"this":{"__isSmartRef__":true,"id":8049}},"8080":{"timestamp":{"__isSmartRef__":true,"id":8081},"user":"sebastianwoinar","tags":[]},"8081":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8082":{"varMapping":{"__isSmartRef__":true,"id":8083},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":8084},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8083":{"this":{"__isSmartRef__":true,"id":8049}},"8084":{"timestamp":{"__isSmartRef__":true,"id":8085},"user":"sebastianwoinar","tags":[]},"8085":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8086":{"varMapping":{"__isSmartRef__":true,"id":8087},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8088},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8087":{"this":{"__isSmartRef__":true,"id":8049}},"8088":{"timestamp":{"__isSmartRef__":true,"id":8089},"user":"sebastianwoinar","tags":[]},"8089":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8090":{"varMapping":{"__isSmartRef__":true,"id":8091},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":8092},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8091":{"this":{"__isSmartRef__":true,"id":8049}},"8092":{"timestamp":{"__isSmartRef__":true,"id":8093},"user":"sebastianwoinar","tags":[]},"8093":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8094":{"varMapping":{"__isSmartRef__":true,"id":8095},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":8096},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8095":{"this":{"__isSmartRef__":true,"id":8049}},"8096":{"timestamp":{"__isSmartRef__":true,"id":8097},"user":"sebastianwoinar","tags":[]},"8097":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8098":{"varMapping":{"__isSmartRef__":true,"id":8099},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":8100},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8099":{"this":{"__isSmartRef__":true,"id":8049}},"8100":{"timestamp":{"__isSmartRef__":true,"id":8101},"user":"sebastianwoinar","tags":[]},"8101":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8102":{"varMapping":{"__isSmartRef__":true,"id":8103},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":8104},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8103":{"this":{"__isSmartRef__":true,"id":8049}},"8104":{"timestamp":{"__isSmartRef__":true,"id":8105},"user":"sebastianwoinar","tags":[]},"8105":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"8106":{"varMapping":{"__isSmartRef__":true,"id":8107},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":8108},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8107":{"this":{"__isSmartRef__":true,"id":8049}},"8108":{"timestamp":{"__isSmartRef__":true,"id":8109},"user":"sebastianwoinar","tags":[]},"8109":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"8110":{"varMapping":{"__isSmartRef__":true,"id":8111},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":8112},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8111":{"this":{"__isSmartRef__":true,"id":8049}},"8112":{"timestamp":{"__isSmartRef__":true,"id":8113},"user":"sebastianwoinar","tags":[]},"8113":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"8114":{"varMapping":{"__isSmartRef__":true,"id":8115},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":8116},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8115":{"this":{"__isSmartRef__":true,"id":8049}},"8116":{"timestamp":{"__isSmartRef__":true,"id":8117},"user":"sebastianwoinar","tags":[]},"8117":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"8118":{"varMapping":{"__isSmartRef__":true,"id":8119},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":8120},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8119":{"this":{"__isSmartRef__":true,"id":8049}},"8120":{"timestamp":{"__isSmartRef__":true,"id":8121},"user":"sebastianwoinar","tags":[]},"8121":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"8122":{"varMapping":{"__isSmartRef__":true,"id":8123},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":8124},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8123":{"this":{"__isSmartRef__":true,"id":8049}},"8124":{"timestamp":{"__isSmartRef__":true,"id":8125},"user":"sebastianwoinar","tags":[]},"8125":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"8126":{"varMapping":{"__isSmartRef__":true,"id":8127},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":8128},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8127":{"this":{"__isSmartRef__":true,"id":8049}},"8128":{"timestamp":{"__isSmartRef__":true,"id":8129},"user":"sebastianwoinar","tags":[]},"8129":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"8130":{"varMapping":{"__isSmartRef__":true,"id":8131},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":8132},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8131":{"this":{"__isSmartRef__":true,"id":8049}},"8132":{"timestamp":{"__isSmartRef__":true,"id":8133},"user":"sebastianwoinar","tags":[]},"8133":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"8134":{"varMapping":{"__isSmartRef__":true,"id":8135},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":8136},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8135":{"this":{"__isSmartRef__":true,"id":8049}},"8136":{"timestamp":{"__isSmartRef__":true,"id":8137},"user":"sebastianwoinar","tags":[]},"8137":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"8138":{"varMapping":{"__isSmartRef__":true,"id":8139},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":8144},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8139":{"this":{"__isSmartRef__":true,"id":8049},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8140}},"8140":{"$super":{"__isSmartRef__":true,"id":8141}},"8141":{"varMapping":{"__isSmartRef__":true,"id":8142},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8143},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8142":{"obj":{"__isSmartRef__":true,"id":8049},"name":"onMouseDown"},"8143":{},"8144":{"timestamp":{"__isSmartRef__":true,"id":8145},"user":"sebastianwoinar","tags":[]},"8145":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"8146":{"varMapping":{"__isSmartRef__":true,"id":8147},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":8148},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8147":{"this":{"__isSmartRef__":true,"id":8049}},"8148":{"timestamp":{"__isSmartRef__":true,"id":8149},"user":"sebastianwoinar","tags":[]},"8149":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"8150":{"varMapping":{"__isSmartRef__":true,"id":8151},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":8152},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8151":{"this":{"__isSmartRef__":true,"id":8049}},"8152":{"timestamp":{"__isSmartRef__":true,"id":8153},"user":"sebastianwoinar","tags":[]},"8153":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"8154":{"varMapping":{"__isSmartRef__":true,"id":8155},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":8156},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8155":{"this":{"__isSmartRef__":true,"id":8049}},"8156":{"timestamp":{"__isSmartRef__":true,"id":8157},"user":"sebastianwoinar","tags":[]},"8157":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"8158":{"varMapping":{"__isSmartRef__":true,"id":8159},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":8160},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8159":{"this":{"__isSmartRef__":true,"id":8049}},"8160":{"timestamp":{"__isSmartRef__":true,"id":8161},"user":"sebastianwoinar","tags":[]},"8161":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"8162":{"varMapping":{"__isSmartRef__":true,"id":8163},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":8164},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8163":{"this":{"__isSmartRef__":true,"id":8049}},"8164":{"timestamp":{"__isSmartRef__":true,"id":8165},"user":"sebastianwoinar","tags":[]},"8165":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"8166":{"varMapping":{"__isSmartRef__":true,"id":8167},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8168},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8167":{"this":{"__isSmartRef__":true,"id":8049}},"8168":{"timestamp":{"__isSmartRef__":true,"id":8169},"user":"sebastianwoinar","tags":[]},"8169":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"8170":{"varMapping":{"__isSmartRef__":true,"id":8171},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":8172},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8171":{"this":{"__isSmartRef__":true,"id":8049}},"8172":{"timestamp":{"__isSmartRef__":true,"id":8173},"user":"sebastianwoinar","tags":[]},"8173":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"8174":{"varMapping":{"__isSmartRef__":true,"id":8175},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8176},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8175":{"this":{"__isSmartRef__":true,"id":8049}},"8176":{"timestamp":{"__isSmartRef__":true,"id":8177},"user":"sebastianwoinar","tags":[]},"8177":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"8178":{"submorphs":[{"__isSmartRef__":true,"id":8179}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8196},"id":"CD0E1B79-3B70-44FB-B343-2AB7D2726002","eventHandler":{"__isSmartRef__":true,"id":8197},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":8198},"name":"node22","partsBinMetaInfo":{"__isSmartRef__":true,"id":8199},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5473},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":7896},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8202},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(114.4,210.0)"},"8179":{"submorphs":[],"scripts":[],"id":"0D2FF3FF-BA5B-4A90-9665-76EEA94FF9D2","shape":{"__isSmartRef__":true,"id":8180},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":8181},"textChunks":[{"__isSmartRef__":true,"id":8193}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":8195},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":8178},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"8180":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"8181":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":8182},{"__isSmartRef__":true,"id":8184},{"__isSmartRef__":true,"id":8186},{"__isSmartRef__":true,"id":8188},{"__isSmartRef__":true,"id":8190}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":8192},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"8182":{"date":{"__isSmartRef__":true,"id":8183},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"8183":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"8184":{"date":{"__isSmartRef__":true,"id":8185},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"8185":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"8186":{"date":{"__isSmartRef__":true,"id":8187},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"8187":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"8188":{"date":{"__isSmartRef__":true,"id":8189},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"8189":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"8190":{"date":{"__isSmartRef__":true,"id":8191},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"8191":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"8192":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"8193":{"style":{"__isSmartRef__":true,"id":8194},"morph":{"__isSmartRef__":true,"id":8179},"chunkOwner":{"__isSmartRef__":true,"id":8179},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8194":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8195":{"morph":{"__isSmartRef__":true,"id":8179},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8196":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"8197":{"morph":{"__isSmartRef__":true,"id":8178},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8198":{},"8199":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":8200}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"8200":{"date":{"__isSmartRef__":true,"id":8201},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"8201":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"8202":{"buildChildNodes":{"__isSmartRef__":true,"id":8203},"getGameTree":{"__isSmartRef__":true,"id":8207},"getLevel":{"__isSmartRef__":true,"id":8211},"getLevelWeight":{"__isSmartRef__":true,"id":8215},"getWeight":{"__isSmartRef__":true,"id":8219},"setNode":{"__isSmartRef__":true,"id":8223},"setParent":{"__isSmartRef__":true,"id":8227},"getParent":{"__isSmartRef__":true,"id":8231},"deactivate":{"__isSmartRef__":true,"id":8235},"blink":{"__isSmartRef__":true,"id":8239},"ABPreturn":{"__isSmartRef__":true,"id":8243},"ABPstart":{"__isSmartRef__":true,"id":8247},"ABPcontinue":{"__isSmartRef__":true,"id":8251},"ABPshowValue":{"__isSmartRef__":true,"id":8255},"ABPgetValue":{"__isSmartRef__":true,"id":8259},"ABPhasChildNodes":{"__isSmartRef__":true,"id":8263},"onMouseDown":{"__isSmartRef__":true,"id":8267},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":8275},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":8279},"ABPmarkAsDone":{"__isSmartRef__":true,"id":8283},"ABPmarkAsActive":{"__isSmartRef__":true,"id":8287},"getStateMorph":{"__isSmartRef__":true,"id":8291},"showState":{"__isSmartRef__":true,"id":8295},"ABPfailHard":{"__isSmartRef__":true,"id":8299},"markFinalDrawWith":{"__isSmartRef__":true,"id":8303}},"8203":{"varMapping":{"__isSmartRef__":true,"id":8204},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":8205},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8204":{"this":{"__isSmartRef__":true,"id":8178}},"8205":{"timestamp":{"__isSmartRef__":true,"id":8206},"user":"sebastianwoinar","tags":[]},"8206":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"8207":{"varMapping":{"__isSmartRef__":true,"id":8208},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":8209},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8208":{"this":{"__isSmartRef__":true,"id":8178}},"8209":{"timestamp":{"__isSmartRef__":true,"id":8210},"user":"sebastianwoinar","tags":[]},"8210":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8211":{"varMapping":{"__isSmartRef__":true,"id":8212},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":8213},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8212":{"this":{"__isSmartRef__":true,"id":8178}},"8213":{"timestamp":{"__isSmartRef__":true,"id":8214},"user":"sebastianwoinar","tags":[]},"8214":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8215":{"varMapping":{"__isSmartRef__":true,"id":8216},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8217},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8216":{"this":{"__isSmartRef__":true,"id":8178}},"8217":{"timestamp":{"__isSmartRef__":true,"id":8218},"user":"sebastianwoinar","tags":[]},"8218":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8219":{"varMapping":{"__isSmartRef__":true,"id":8220},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":8221},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8220":{"this":{"__isSmartRef__":true,"id":8178}},"8221":{"timestamp":{"__isSmartRef__":true,"id":8222},"user":"sebastianwoinar","tags":[]},"8222":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8223":{"varMapping":{"__isSmartRef__":true,"id":8224},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":8225},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8224":{"this":{"__isSmartRef__":true,"id":8178}},"8225":{"timestamp":{"__isSmartRef__":true,"id":8226},"user":"sebastianwoinar","tags":[]},"8226":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8227":{"varMapping":{"__isSmartRef__":true,"id":8228},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":8229},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8228":{"this":{"__isSmartRef__":true,"id":8178}},"8229":{"timestamp":{"__isSmartRef__":true,"id":8230},"user":"sebastianwoinar","tags":[]},"8230":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8231":{"varMapping":{"__isSmartRef__":true,"id":8232},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":8233},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8232":{"this":{"__isSmartRef__":true,"id":8178}},"8233":{"timestamp":{"__isSmartRef__":true,"id":8234},"user":"sebastianwoinar","tags":[]},"8234":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"8235":{"varMapping":{"__isSmartRef__":true,"id":8236},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":8237},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8236":{"this":{"__isSmartRef__":true,"id":8178}},"8237":{"timestamp":{"__isSmartRef__":true,"id":8238},"user":"sebastianwoinar","tags":[]},"8238":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"8239":{"varMapping":{"__isSmartRef__":true,"id":8240},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":8241},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8240":{"this":{"__isSmartRef__":true,"id":8178}},"8241":{"timestamp":{"__isSmartRef__":true,"id":8242},"user":"sebastianwoinar","tags":[]},"8242":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"8243":{"varMapping":{"__isSmartRef__":true,"id":8244},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":8245},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8244":{"this":{"__isSmartRef__":true,"id":8178}},"8245":{"timestamp":{"__isSmartRef__":true,"id":8246},"user":"sebastianwoinar","tags":[]},"8246":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"8247":{"varMapping":{"__isSmartRef__":true,"id":8248},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":8249},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8248":{"this":{"__isSmartRef__":true,"id":8178}},"8249":{"timestamp":{"__isSmartRef__":true,"id":8250},"user":"sebastianwoinar","tags":[]},"8250":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"8251":{"varMapping":{"__isSmartRef__":true,"id":8252},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":8253},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8252":{"this":{"__isSmartRef__":true,"id":8178}},"8253":{"timestamp":{"__isSmartRef__":true,"id":8254},"user":"sebastianwoinar","tags":[]},"8254":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"8255":{"varMapping":{"__isSmartRef__":true,"id":8256},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":8257},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8256":{"this":{"__isSmartRef__":true,"id":8178}},"8257":{"timestamp":{"__isSmartRef__":true,"id":8258},"user":"sebastianwoinar","tags":[]},"8258":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"8259":{"varMapping":{"__isSmartRef__":true,"id":8260},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":8261},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8260":{"this":{"__isSmartRef__":true,"id":8178}},"8261":{"timestamp":{"__isSmartRef__":true,"id":8262},"user":"sebastianwoinar","tags":[]},"8262":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"8263":{"varMapping":{"__isSmartRef__":true,"id":8264},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":8265},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8264":{"this":{"__isSmartRef__":true,"id":8178}},"8265":{"timestamp":{"__isSmartRef__":true,"id":8266},"user":"sebastianwoinar","tags":[]},"8266":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"8267":{"varMapping":{"__isSmartRef__":true,"id":8268},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":8273},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8268":{"this":{"__isSmartRef__":true,"id":8178},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8269}},"8269":{"$super":{"__isSmartRef__":true,"id":8270}},"8270":{"varMapping":{"__isSmartRef__":true,"id":8271},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8272},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8271":{"obj":{"__isSmartRef__":true,"id":8178},"name":"onMouseDown"},"8272":{},"8273":{"timestamp":{"__isSmartRef__":true,"id":8274},"user":"sebastianwoinar","tags":[]},"8274":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"8275":{"varMapping":{"__isSmartRef__":true,"id":8276},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":8277},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8276":{"this":{"__isSmartRef__":true,"id":8178}},"8277":{"timestamp":{"__isSmartRef__":true,"id":8278},"user":"sebastianwoinar","tags":[]},"8278":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"8279":{"varMapping":{"__isSmartRef__":true,"id":8280},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":8281},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8280":{"this":{"__isSmartRef__":true,"id":8178}},"8281":{"timestamp":{"__isSmartRef__":true,"id":8282},"user":"sebastianwoinar","tags":[]},"8282":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"8283":{"varMapping":{"__isSmartRef__":true,"id":8284},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":8285},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8284":{"this":{"__isSmartRef__":true,"id":8178}},"8285":{"timestamp":{"__isSmartRef__":true,"id":8286},"user":"sebastianwoinar","tags":[]},"8286":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"8287":{"varMapping":{"__isSmartRef__":true,"id":8288},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":8289},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8288":{"this":{"__isSmartRef__":true,"id":8178}},"8289":{"timestamp":{"__isSmartRef__":true,"id":8290},"user":"sebastianwoinar","tags":[]},"8290":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"8291":{"varMapping":{"__isSmartRef__":true,"id":8292},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":8293},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8292":{"this":{"__isSmartRef__":true,"id":8178}},"8293":{"timestamp":{"__isSmartRef__":true,"id":8294},"user":"sebastianwoinar","tags":[]},"8294":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"8295":{"varMapping":{"__isSmartRef__":true,"id":8296},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8297},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8296":{"this":{"__isSmartRef__":true,"id":8178}},"8297":{"timestamp":{"__isSmartRef__":true,"id":8298},"user":"sebastianwoinar","tags":[]},"8298":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"8299":{"varMapping":{"__isSmartRef__":true,"id":8300},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":8301},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8300":{"this":{"__isSmartRef__":true,"id":8178}},"8301":{"timestamp":{"__isSmartRef__":true,"id":8302},"user":"sebastianwoinar","tags":[]},"8302":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"8303":{"varMapping":{"__isSmartRef__":true,"id":8304},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8305},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8304":{"this":{"__isSmartRef__":true,"id":8178}},"8305":{"timestamp":{"__isSmartRef__":true,"id":8306},"user":"sebastianwoinar","tags":[]},"8306":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"8307":{"submorphs":[{"__isSmartRef__":true,"id":8308}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8325},"id":"370F6D3D-A092-49DA-AA73-FAECA7F599D7","eventHandler":{"__isSmartRef__":true,"id":8326},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":8327},"name":"node23","partsBinMetaInfo":{"__isSmartRef__":true,"id":8328},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5475},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":7896},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8331},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(119.5,210.0)"},"8308":{"submorphs":[],"scripts":[],"id":"59174AA3-1520-44BD-A558-08F767AC4A78","shape":{"__isSmartRef__":true,"id":8309},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":8310},"textChunks":[{"__isSmartRef__":true,"id":8322}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":8324},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":8307},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"8309":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"8310":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":8311},{"__isSmartRef__":true,"id":8313},{"__isSmartRef__":true,"id":8315},{"__isSmartRef__":true,"id":8317},{"__isSmartRef__":true,"id":8319}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":8321},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"8311":{"date":{"__isSmartRef__":true,"id":8312},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"8312":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"8313":{"date":{"__isSmartRef__":true,"id":8314},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"8314":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"8315":{"date":{"__isSmartRef__":true,"id":8316},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"8316":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"8317":{"date":{"__isSmartRef__":true,"id":8318},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"8318":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"8319":{"date":{"__isSmartRef__":true,"id":8320},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"8320":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"8321":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"8322":{"style":{"__isSmartRef__":true,"id":8323},"morph":{"__isSmartRef__":true,"id":8308},"chunkOwner":{"__isSmartRef__":true,"id":8308},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8323":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8324":{"morph":{"__isSmartRef__":true,"id":8308},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8325":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"8326":{"morph":{"__isSmartRef__":true,"id":8307},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8327":{},"8328":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":8329}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"8329":{"date":{"__isSmartRef__":true,"id":8330},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"8330":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"8331":{"buildChildNodes":{"__isSmartRef__":true,"id":8332},"getGameTree":{"__isSmartRef__":true,"id":8336},"getLevel":{"__isSmartRef__":true,"id":8340},"getLevelWeight":{"__isSmartRef__":true,"id":8344},"getWeight":{"__isSmartRef__":true,"id":8348},"setNode":{"__isSmartRef__":true,"id":8352},"setParent":{"__isSmartRef__":true,"id":8356},"getParent":{"__isSmartRef__":true,"id":8360},"deactivate":{"__isSmartRef__":true,"id":8364},"blink":{"__isSmartRef__":true,"id":8368},"ABPreturn":{"__isSmartRef__":true,"id":8372},"ABPstart":{"__isSmartRef__":true,"id":8376},"ABPcontinue":{"__isSmartRef__":true,"id":8380},"ABPshowValue":{"__isSmartRef__":true,"id":8384},"ABPgetValue":{"__isSmartRef__":true,"id":8388},"ABPhasChildNodes":{"__isSmartRef__":true,"id":8392},"onMouseDown":{"__isSmartRef__":true,"id":8396},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":8404},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":8408},"ABPmarkAsDone":{"__isSmartRef__":true,"id":8412},"ABPmarkAsActive":{"__isSmartRef__":true,"id":8416},"getStateMorph":{"__isSmartRef__":true,"id":8420},"showState":{"__isSmartRef__":true,"id":8424},"ABPfailHard":{"__isSmartRef__":true,"id":8428},"markFinalDrawWith":{"__isSmartRef__":true,"id":8432}},"8332":{"varMapping":{"__isSmartRef__":true,"id":8333},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":8334},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8333":{"this":{"__isSmartRef__":true,"id":8307}},"8334":{"timestamp":{"__isSmartRef__":true,"id":8335},"user":"sebastianwoinar","tags":[]},"8335":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"8336":{"varMapping":{"__isSmartRef__":true,"id":8337},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":8338},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8337":{"this":{"__isSmartRef__":true,"id":8307}},"8338":{"timestamp":{"__isSmartRef__":true,"id":8339},"user":"sebastianwoinar","tags":[]},"8339":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8340":{"varMapping":{"__isSmartRef__":true,"id":8341},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":8342},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8341":{"this":{"__isSmartRef__":true,"id":8307}},"8342":{"timestamp":{"__isSmartRef__":true,"id":8343},"user":"sebastianwoinar","tags":[]},"8343":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8344":{"varMapping":{"__isSmartRef__":true,"id":8345},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8346},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8345":{"this":{"__isSmartRef__":true,"id":8307}},"8346":{"timestamp":{"__isSmartRef__":true,"id":8347},"user":"sebastianwoinar","tags":[]},"8347":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8348":{"varMapping":{"__isSmartRef__":true,"id":8349},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":8350},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8349":{"this":{"__isSmartRef__":true,"id":8307}},"8350":{"timestamp":{"__isSmartRef__":true,"id":8351},"user":"sebastianwoinar","tags":[]},"8351":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8352":{"varMapping":{"__isSmartRef__":true,"id":8353},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":8354},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8353":{"this":{"__isSmartRef__":true,"id":8307}},"8354":{"timestamp":{"__isSmartRef__":true,"id":8355},"user":"sebastianwoinar","tags":[]},"8355":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8356":{"varMapping":{"__isSmartRef__":true,"id":8357},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":8358},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8357":{"this":{"__isSmartRef__":true,"id":8307}},"8358":{"timestamp":{"__isSmartRef__":true,"id":8359},"user":"sebastianwoinar","tags":[]},"8359":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8360":{"varMapping":{"__isSmartRef__":true,"id":8361},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":8362},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8361":{"this":{"__isSmartRef__":true,"id":8307}},"8362":{"timestamp":{"__isSmartRef__":true,"id":8363},"user":"sebastianwoinar","tags":[]},"8363":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"8364":{"varMapping":{"__isSmartRef__":true,"id":8365},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":8366},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8365":{"this":{"__isSmartRef__":true,"id":8307}},"8366":{"timestamp":{"__isSmartRef__":true,"id":8367},"user":"sebastianwoinar","tags":[]},"8367":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"8368":{"varMapping":{"__isSmartRef__":true,"id":8369},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":8370},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8369":{"this":{"__isSmartRef__":true,"id":8307}},"8370":{"timestamp":{"__isSmartRef__":true,"id":8371},"user":"sebastianwoinar","tags":[]},"8371":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"8372":{"varMapping":{"__isSmartRef__":true,"id":8373},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":8374},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8373":{"this":{"__isSmartRef__":true,"id":8307}},"8374":{"timestamp":{"__isSmartRef__":true,"id":8375},"user":"sebastianwoinar","tags":[]},"8375":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"8376":{"varMapping":{"__isSmartRef__":true,"id":8377},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":8378},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8377":{"this":{"__isSmartRef__":true,"id":8307}},"8378":{"timestamp":{"__isSmartRef__":true,"id":8379},"user":"sebastianwoinar","tags":[]},"8379":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"8380":{"varMapping":{"__isSmartRef__":true,"id":8381},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":8382},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8381":{"this":{"__isSmartRef__":true,"id":8307}},"8382":{"timestamp":{"__isSmartRef__":true,"id":8383},"user":"sebastianwoinar","tags":[]},"8383":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"8384":{"varMapping":{"__isSmartRef__":true,"id":8385},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":8386},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8385":{"this":{"__isSmartRef__":true,"id":8307}},"8386":{"timestamp":{"__isSmartRef__":true,"id":8387},"user":"sebastianwoinar","tags":[]},"8387":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"8388":{"varMapping":{"__isSmartRef__":true,"id":8389},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":8390},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8389":{"this":{"__isSmartRef__":true,"id":8307}},"8390":{"timestamp":{"__isSmartRef__":true,"id":8391},"user":"sebastianwoinar","tags":[]},"8391":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"8392":{"varMapping":{"__isSmartRef__":true,"id":8393},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":8394},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8393":{"this":{"__isSmartRef__":true,"id":8307}},"8394":{"timestamp":{"__isSmartRef__":true,"id":8395},"user":"sebastianwoinar","tags":[]},"8395":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"8396":{"varMapping":{"__isSmartRef__":true,"id":8397},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":8402},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8397":{"this":{"__isSmartRef__":true,"id":8307},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8398}},"8398":{"$super":{"__isSmartRef__":true,"id":8399}},"8399":{"varMapping":{"__isSmartRef__":true,"id":8400},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8401},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8400":{"obj":{"__isSmartRef__":true,"id":8307},"name":"onMouseDown"},"8401":{},"8402":{"timestamp":{"__isSmartRef__":true,"id":8403},"user":"sebastianwoinar","tags":[]},"8403":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"8404":{"varMapping":{"__isSmartRef__":true,"id":8405},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":8406},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8405":{"this":{"__isSmartRef__":true,"id":8307}},"8406":{"timestamp":{"__isSmartRef__":true,"id":8407},"user":"sebastianwoinar","tags":[]},"8407":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"8408":{"varMapping":{"__isSmartRef__":true,"id":8409},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":8410},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8409":{"this":{"__isSmartRef__":true,"id":8307}},"8410":{"timestamp":{"__isSmartRef__":true,"id":8411},"user":"sebastianwoinar","tags":[]},"8411":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"8412":{"varMapping":{"__isSmartRef__":true,"id":8413},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":8414},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8413":{"this":{"__isSmartRef__":true,"id":8307}},"8414":{"timestamp":{"__isSmartRef__":true,"id":8415},"user":"sebastianwoinar","tags":[]},"8415":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"8416":{"varMapping":{"__isSmartRef__":true,"id":8417},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":8418},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8417":{"this":{"__isSmartRef__":true,"id":8307}},"8418":{"timestamp":{"__isSmartRef__":true,"id":8419},"user":"sebastianwoinar","tags":[]},"8419":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"8420":{"varMapping":{"__isSmartRef__":true,"id":8421},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":8422},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8421":{"this":{"__isSmartRef__":true,"id":8307}},"8422":{"timestamp":{"__isSmartRef__":true,"id":8423},"user":"sebastianwoinar","tags":[]},"8423":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"8424":{"varMapping":{"__isSmartRef__":true,"id":8425},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8426},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8425":{"this":{"__isSmartRef__":true,"id":8307}},"8426":{"timestamp":{"__isSmartRef__":true,"id":8427},"user":"sebastianwoinar","tags":[]},"8427":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"8428":{"varMapping":{"__isSmartRef__":true,"id":8429},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":8430},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8429":{"this":{"__isSmartRef__":true,"id":8307}},"8430":{"timestamp":{"__isSmartRef__":true,"id":8431},"user":"sebastianwoinar","tags":[]},"8431":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"8432":{"varMapping":{"__isSmartRef__":true,"id":8433},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8434},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8433":{"this":{"__isSmartRef__":true,"id":8307}},"8434":{"timestamp":{"__isSmartRef__":true,"id":8435},"user":"sebastianwoinar","tags":[]},"8435":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"8436":{"submorphs":[{"__isSmartRef__":true,"id":8437}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8454},"id":"64981EE6-04E4-4E0F-979F-93214F0AAEFA","eventHandler":{"__isSmartRef__":true,"id":8455},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":8456},"name":"node24","partsBinMetaInfo":{"__isSmartRef__":true,"id":8457},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5477},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":7896},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8460},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(124.7,210.0)"},"8437":{"submorphs":[],"scripts":[],"id":"F81CEBF6-0F4E-411C-ACD6-0D03743DC353","shape":{"__isSmartRef__":true,"id":8438},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":8439},"textChunks":[{"__isSmartRef__":true,"id":8451}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":8453},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":8436},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"8438":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"8439":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":8440},{"__isSmartRef__":true,"id":8442},{"__isSmartRef__":true,"id":8444},{"__isSmartRef__":true,"id":8446},{"__isSmartRef__":true,"id":8448}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":8450},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"8440":{"date":{"__isSmartRef__":true,"id":8441},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"8441":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"8442":{"date":{"__isSmartRef__":true,"id":8443},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"8443":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"8444":{"date":{"__isSmartRef__":true,"id":8445},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"8445":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"8446":{"date":{"__isSmartRef__":true,"id":8447},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"8447":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"8448":{"date":{"__isSmartRef__":true,"id":8449},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"8449":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"8450":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"8451":{"style":{"__isSmartRef__":true,"id":8452},"morph":{"__isSmartRef__":true,"id":8437},"chunkOwner":{"__isSmartRef__":true,"id":8437},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8452":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8453":{"morph":{"__isSmartRef__":true,"id":8437},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8454":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"8455":{"morph":{"__isSmartRef__":true,"id":8436},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8456":{},"8457":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":8458}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"8458":{"date":{"__isSmartRef__":true,"id":8459},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"8459":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"8460":{"buildChildNodes":{"__isSmartRef__":true,"id":8461},"getGameTree":{"__isSmartRef__":true,"id":8465},"getLevel":{"__isSmartRef__":true,"id":8469},"getLevelWeight":{"__isSmartRef__":true,"id":8473},"getWeight":{"__isSmartRef__":true,"id":8477},"setNode":{"__isSmartRef__":true,"id":8481},"setParent":{"__isSmartRef__":true,"id":8485},"getParent":{"__isSmartRef__":true,"id":8489},"deactivate":{"__isSmartRef__":true,"id":8493},"blink":{"__isSmartRef__":true,"id":8497},"ABPreturn":{"__isSmartRef__":true,"id":8501},"ABPstart":{"__isSmartRef__":true,"id":8505},"ABPcontinue":{"__isSmartRef__":true,"id":8509},"ABPshowValue":{"__isSmartRef__":true,"id":8513},"ABPgetValue":{"__isSmartRef__":true,"id":8517},"ABPhasChildNodes":{"__isSmartRef__":true,"id":8521},"onMouseDown":{"__isSmartRef__":true,"id":8525},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":8533},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":8537},"ABPmarkAsDone":{"__isSmartRef__":true,"id":8541},"ABPmarkAsActive":{"__isSmartRef__":true,"id":8545},"getStateMorph":{"__isSmartRef__":true,"id":8549},"showState":{"__isSmartRef__":true,"id":8553},"ABPfailHard":{"__isSmartRef__":true,"id":8557},"markFinalDrawWith":{"__isSmartRef__":true,"id":8561}},"8461":{"varMapping":{"__isSmartRef__":true,"id":8462},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":8463},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8462":{"this":{"__isSmartRef__":true,"id":8436}},"8463":{"timestamp":{"__isSmartRef__":true,"id":8464},"user":"sebastianwoinar","tags":[]},"8464":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"8465":{"varMapping":{"__isSmartRef__":true,"id":8466},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":8467},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8466":{"this":{"__isSmartRef__":true,"id":8436}},"8467":{"timestamp":{"__isSmartRef__":true,"id":8468},"user":"sebastianwoinar","tags":[]},"8468":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8469":{"varMapping":{"__isSmartRef__":true,"id":8470},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":8471},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8470":{"this":{"__isSmartRef__":true,"id":8436}},"8471":{"timestamp":{"__isSmartRef__":true,"id":8472},"user":"sebastianwoinar","tags":[]},"8472":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8473":{"varMapping":{"__isSmartRef__":true,"id":8474},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8475},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8474":{"this":{"__isSmartRef__":true,"id":8436}},"8475":{"timestamp":{"__isSmartRef__":true,"id":8476},"user":"sebastianwoinar","tags":[]},"8476":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8477":{"varMapping":{"__isSmartRef__":true,"id":8478},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":8479},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8478":{"this":{"__isSmartRef__":true,"id":8436}},"8479":{"timestamp":{"__isSmartRef__":true,"id":8480},"user":"sebastianwoinar","tags":[]},"8480":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8481":{"varMapping":{"__isSmartRef__":true,"id":8482},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":8483},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8482":{"this":{"__isSmartRef__":true,"id":8436}},"8483":{"timestamp":{"__isSmartRef__":true,"id":8484},"user":"sebastianwoinar","tags":[]},"8484":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8485":{"varMapping":{"__isSmartRef__":true,"id":8486},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":8487},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8486":{"this":{"__isSmartRef__":true,"id":8436}},"8487":{"timestamp":{"__isSmartRef__":true,"id":8488},"user":"sebastianwoinar","tags":[]},"8488":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8489":{"varMapping":{"__isSmartRef__":true,"id":8490},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":8491},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8490":{"this":{"__isSmartRef__":true,"id":8436}},"8491":{"timestamp":{"__isSmartRef__":true,"id":8492},"user":"sebastianwoinar","tags":[]},"8492":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"8493":{"varMapping":{"__isSmartRef__":true,"id":8494},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":8495},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8494":{"this":{"__isSmartRef__":true,"id":8436}},"8495":{"timestamp":{"__isSmartRef__":true,"id":8496},"user":"sebastianwoinar","tags":[]},"8496":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"8497":{"varMapping":{"__isSmartRef__":true,"id":8498},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":8499},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8498":{"this":{"__isSmartRef__":true,"id":8436}},"8499":{"timestamp":{"__isSmartRef__":true,"id":8500},"user":"sebastianwoinar","tags":[]},"8500":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"8501":{"varMapping":{"__isSmartRef__":true,"id":8502},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":8503},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8502":{"this":{"__isSmartRef__":true,"id":8436}},"8503":{"timestamp":{"__isSmartRef__":true,"id":8504},"user":"sebastianwoinar","tags":[]},"8504":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"8505":{"varMapping":{"__isSmartRef__":true,"id":8506},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":8507},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8506":{"this":{"__isSmartRef__":true,"id":8436}},"8507":{"timestamp":{"__isSmartRef__":true,"id":8508},"user":"sebastianwoinar","tags":[]},"8508":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"8509":{"varMapping":{"__isSmartRef__":true,"id":8510},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":8511},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8510":{"this":{"__isSmartRef__":true,"id":8436}},"8511":{"timestamp":{"__isSmartRef__":true,"id":8512},"user":"sebastianwoinar","tags":[]},"8512":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"8513":{"varMapping":{"__isSmartRef__":true,"id":8514},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":8515},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8514":{"this":{"__isSmartRef__":true,"id":8436}},"8515":{"timestamp":{"__isSmartRef__":true,"id":8516},"user":"sebastianwoinar","tags":[]},"8516":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"8517":{"varMapping":{"__isSmartRef__":true,"id":8518},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":8519},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8518":{"this":{"__isSmartRef__":true,"id":8436}},"8519":{"timestamp":{"__isSmartRef__":true,"id":8520},"user":"sebastianwoinar","tags":[]},"8520":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"8521":{"varMapping":{"__isSmartRef__":true,"id":8522},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":8523},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8522":{"this":{"__isSmartRef__":true,"id":8436}},"8523":{"timestamp":{"__isSmartRef__":true,"id":8524},"user":"sebastianwoinar","tags":[]},"8524":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"8525":{"varMapping":{"__isSmartRef__":true,"id":8526},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":8531},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8526":{"this":{"__isSmartRef__":true,"id":8436},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8527}},"8527":{"$super":{"__isSmartRef__":true,"id":8528}},"8528":{"varMapping":{"__isSmartRef__":true,"id":8529},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8530},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8529":{"obj":{"__isSmartRef__":true,"id":8436},"name":"onMouseDown"},"8530":{},"8531":{"timestamp":{"__isSmartRef__":true,"id":8532},"user":"sebastianwoinar","tags":[]},"8532":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"8533":{"varMapping":{"__isSmartRef__":true,"id":8534},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":8535},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8534":{"this":{"__isSmartRef__":true,"id":8436}},"8535":{"timestamp":{"__isSmartRef__":true,"id":8536},"user":"sebastianwoinar","tags":[]},"8536":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"8537":{"varMapping":{"__isSmartRef__":true,"id":8538},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":8539},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8538":{"this":{"__isSmartRef__":true,"id":8436}},"8539":{"timestamp":{"__isSmartRef__":true,"id":8540},"user":"sebastianwoinar","tags":[]},"8540":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"8541":{"varMapping":{"__isSmartRef__":true,"id":8542},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":8543},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8542":{"this":{"__isSmartRef__":true,"id":8436}},"8543":{"timestamp":{"__isSmartRef__":true,"id":8544},"user":"sebastianwoinar","tags":[]},"8544":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"8545":{"varMapping":{"__isSmartRef__":true,"id":8546},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":8547},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8546":{"this":{"__isSmartRef__":true,"id":8436}},"8547":{"timestamp":{"__isSmartRef__":true,"id":8548},"user":"sebastianwoinar","tags":[]},"8548":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"8549":{"varMapping":{"__isSmartRef__":true,"id":8550},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":8551},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8550":{"this":{"__isSmartRef__":true,"id":8436}},"8551":{"timestamp":{"__isSmartRef__":true,"id":8552},"user":"sebastianwoinar","tags":[]},"8552":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"8553":{"varMapping":{"__isSmartRef__":true,"id":8554},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8555},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8554":{"this":{"__isSmartRef__":true,"id":8436}},"8555":{"timestamp":{"__isSmartRef__":true,"id":8556},"user":"sebastianwoinar","tags":[]},"8556":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"8557":{"varMapping":{"__isSmartRef__":true,"id":8558},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":8559},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8558":{"this":{"__isSmartRef__":true,"id":8436}},"8559":{"timestamp":{"__isSmartRef__":true,"id":8560},"user":"sebastianwoinar","tags":[]},"8560":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"8561":{"varMapping":{"__isSmartRef__":true,"id":8562},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8563},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8562":{"this":{"__isSmartRef__":true,"id":8436}},"8563":{"timestamp":{"__isSmartRef__":true,"id":8564},"user":"sebastianwoinar","tags":[]},"8564":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"8565":{"submorphs":[{"__isSmartRef__":true,"id":8566}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8583},"id":"C022792F-094A-4931-BB74-B96CEC642CD1","eventHandler":{"__isSmartRef__":true,"id":8584},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":8585},"name":"node25","partsBinMetaInfo":{"__isSmartRef__":true,"id":8586},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5479},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":7896},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8589},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(129.9,210.0)"},"8566":{"submorphs":[],"scripts":[],"id":"7397EBF6-5A1B-4078-8E66-EADBAF5CE648","shape":{"__isSmartRef__":true,"id":8567},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":8568},"textChunks":[{"__isSmartRef__":true,"id":8580}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":8582},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":8565},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"8567":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"8568":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":8569},{"__isSmartRef__":true,"id":8571},{"__isSmartRef__":true,"id":8573},{"__isSmartRef__":true,"id":8575},{"__isSmartRef__":true,"id":8577}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":8579},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"8569":{"date":{"__isSmartRef__":true,"id":8570},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"8570":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"8571":{"date":{"__isSmartRef__":true,"id":8572},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"8572":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"8573":{"date":{"__isSmartRef__":true,"id":8574},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"8574":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"8575":{"date":{"__isSmartRef__":true,"id":8576},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"8576":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"8577":{"date":{"__isSmartRef__":true,"id":8578},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"8578":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"8579":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"8580":{"style":{"__isSmartRef__":true,"id":8581},"morph":{"__isSmartRef__":true,"id":8566},"chunkOwner":{"__isSmartRef__":true,"id":8566},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8581":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8582":{"morph":{"__isSmartRef__":true,"id":8566},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8583":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"8584":{"morph":{"__isSmartRef__":true,"id":8565},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8585":{},"8586":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":8587}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"8587":{"date":{"__isSmartRef__":true,"id":8588},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"8588":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"8589":{"buildChildNodes":{"__isSmartRef__":true,"id":8590},"getGameTree":{"__isSmartRef__":true,"id":8594},"getLevel":{"__isSmartRef__":true,"id":8598},"getLevelWeight":{"__isSmartRef__":true,"id":8602},"getWeight":{"__isSmartRef__":true,"id":8606},"setNode":{"__isSmartRef__":true,"id":8610},"setParent":{"__isSmartRef__":true,"id":8614},"getParent":{"__isSmartRef__":true,"id":8618},"deactivate":{"__isSmartRef__":true,"id":8622},"blink":{"__isSmartRef__":true,"id":8626},"ABPreturn":{"__isSmartRef__":true,"id":8630},"ABPstart":{"__isSmartRef__":true,"id":8634},"ABPcontinue":{"__isSmartRef__":true,"id":8638},"ABPshowValue":{"__isSmartRef__":true,"id":8642},"ABPgetValue":{"__isSmartRef__":true,"id":8646},"ABPhasChildNodes":{"__isSmartRef__":true,"id":8650},"onMouseDown":{"__isSmartRef__":true,"id":8654},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":8662},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":8666},"ABPmarkAsDone":{"__isSmartRef__":true,"id":8670},"ABPmarkAsActive":{"__isSmartRef__":true,"id":8674},"getStateMorph":{"__isSmartRef__":true,"id":8678},"showState":{"__isSmartRef__":true,"id":8682},"ABPfailHard":{"__isSmartRef__":true,"id":8686},"markFinalDrawWith":{"__isSmartRef__":true,"id":8690}},"8590":{"varMapping":{"__isSmartRef__":true,"id":8591},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":8592},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8591":{"this":{"__isSmartRef__":true,"id":8565}},"8592":{"timestamp":{"__isSmartRef__":true,"id":8593},"user":"sebastianwoinar","tags":[]},"8593":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"8594":{"varMapping":{"__isSmartRef__":true,"id":8595},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":8596},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8595":{"this":{"__isSmartRef__":true,"id":8565}},"8596":{"timestamp":{"__isSmartRef__":true,"id":8597},"user":"sebastianwoinar","tags":[]},"8597":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8598":{"varMapping":{"__isSmartRef__":true,"id":8599},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":8600},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8599":{"this":{"__isSmartRef__":true,"id":8565}},"8600":{"timestamp":{"__isSmartRef__":true,"id":8601},"user":"sebastianwoinar","tags":[]},"8601":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8602":{"varMapping":{"__isSmartRef__":true,"id":8603},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8604},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8603":{"this":{"__isSmartRef__":true,"id":8565}},"8604":{"timestamp":{"__isSmartRef__":true,"id":8605},"user":"sebastianwoinar","tags":[]},"8605":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8606":{"varMapping":{"__isSmartRef__":true,"id":8607},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":8608},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8607":{"this":{"__isSmartRef__":true,"id":8565}},"8608":{"timestamp":{"__isSmartRef__":true,"id":8609},"user":"sebastianwoinar","tags":[]},"8609":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8610":{"varMapping":{"__isSmartRef__":true,"id":8611},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":8612},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8611":{"this":{"__isSmartRef__":true,"id":8565}},"8612":{"timestamp":{"__isSmartRef__":true,"id":8613},"user":"sebastianwoinar","tags":[]},"8613":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8614":{"varMapping":{"__isSmartRef__":true,"id":8615},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":8616},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8615":{"this":{"__isSmartRef__":true,"id":8565}},"8616":{"timestamp":{"__isSmartRef__":true,"id":8617},"user":"sebastianwoinar","tags":[]},"8617":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8618":{"varMapping":{"__isSmartRef__":true,"id":8619},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":8620},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8619":{"this":{"__isSmartRef__":true,"id":8565}},"8620":{"timestamp":{"__isSmartRef__":true,"id":8621},"user":"sebastianwoinar","tags":[]},"8621":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"8622":{"varMapping":{"__isSmartRef__":true,"id":8623},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":8624},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8623":{"this":{"__isSmartRef__":true,"id":8565}},"8624":{"timestamp":{"__isSmartRef__":true,"id":8625},"user":"sebastianwoinar","tags":[]},"8625":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"8626":{"varMapping":{"__isSmartRef__":true,"id":8627},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":8628},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8627":{"this":{"__isSmartRef__":true,"id":8565}},"8628":{"timestamp":{"__isSmartRef__":true,"id":8629},"user":"sebastianwoinar","tags":[]},"8629":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"8630":{"varMapping":{"__isSmartRef__":true,"id":8631},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":8632},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8631":{"this":{"__isSmartRef__":true,"id":8565}},"8632":{"timestamp":{"__isSmartRef__":true,"id":8633},"user":"sebastianwoinar","tags":[]},"8633":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"8634":{"varMapping":{"__isSmartRef__":true,"id":8635},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":8636},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8635":{"this":{"__isSmartRef__":true,"id":8565}},"8636":{"timestamp":{"__isSmartRef__":true,"id":8637},"user":"sebastianwoinar","tags":[]},"8637":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"8638":{"varMapping":{"__isSmartRef__":true,"id":8639},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":8640},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8639":{"this":{"__isSmartRef__":true,"id":8565}},"8640":{"timestamp":{"__isSmartRef__":true,"id":8641},"user":"sebastianwoinar","tags":[]},"8641":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"8642":{"varMapping":{"__isSmartRef__":true,"id":8643},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":8644},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8643":{"this":{"__isSmartRef__":true,"id":8565}},"8644":{"timestamp":{"__isSmartRef__":true,"id":8645},"user":"sebastianwoinar","tags":[]},"8645":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"8646":{"varMapping":{"__isSmartRef__":true,"id":8647},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":8648},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8647":{"this":{"__isSmartRef__":true,"id":8565}},"8648":{"timestamp":{"__isSmartRef__":true,"id":8649},"user":"sebastianwoinar","tags":[]},"8649":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"8650":{"varMapping":{"__isSmartRef__":true,"id":8651},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":8652},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8651":{"this":{"__isSmartRef__":true,"id":8565}},"8652":{"timestamp":{"__isSmartRef__":true,"id":8653},"user":"sebastianwoinar","tags":[]},"8653":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"8654":{"varMapping":{"__isSmartRef__":true,"id":8655},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":8660},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8655":{"this":{"__isSmartRef__":true,"id":8565},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8656}},"8656":{"$super":{"__isSmartRef__":true,"id":8657}},"8657":{"varMapping":{"__isSmartRef__":true,"id":8658},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8659},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8658":{"obj":{"__isSmartRef__":true,"id":8565},"name":"onMouseDown"},"8659":{},"8660":{"timestamp":{"__isSmartRef__":true,"id":8661},"user":"sebastianwoinar","tags":[]},"8661":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"8662":{"varMapping":{"__isSmartRef__":true,"id":8663},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":8664},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8663":{"this":{"__isSmartRef__":true,"id":8565}},"8664":{"timestamp":{"__isSmartRef__":true,"id":8665},"user":"sebastianwoinar","tags":[]},"8665":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"8666":{"varMapping":{"__isSmartRef__":true,"id":8667},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":8668},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8667":{"this":{"__isSmartRef__":true,"id":8565}},"8668":{"timestamp":{"__isSmartRef__":true,"id":8669},"user":"sebastianwoinar","tags":[]},"8669":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"8670":{"varMapping":{"__isSmartRef__":true,"id":8671},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":8672},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8671":{"this":{"__isSmartRef__":true,"id":8565}},"8672":{"timestamp":{"__isSmartRef__":true,"id":8673},"user":"sebastianwoinar","tags":[]},"8673":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"8674":{"varMapping":{"__isSmartRef__":true,"id":8675},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":8676},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8675":{"this":{"__isSmartRef__":true,"id":8565}},"8676":{"timestamp":{"__isSmartRef__":true,"id":8677},"user":"sebastianwoinar","tags":[]},"8677":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"8678":{"varMapping":{"__isSmartRef__":true,"id":8679},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":8680},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8679":{"this":{"__isSmartRef__":true,"id":8565}},"8680":{"timestamp":{"__isSmartRef__":true,"id":8681},"user":"sebastianwoinar","tags":[]},"8681":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"8682":{"varMapping":{"__isSmartRef__":true,"id":8683},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8684},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8683":{"this":{"__isSmartRef__":true,"id":8565}},"8684":{"timestamp":{"__isSmartRef__":true,"id":8685},"user":"sebastianwoinar","tags":[]},"8685":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"8686":{"varMapping":{"__isSmartRef__":true,"id":8687},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":8688},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8687":{"this":{"__isSmartRef__":true,"id":8565}},"8688":{"timestamp":{"__isSmartRef__":true,"id":8689},"user":"sebastianwoinar","tags":[]},"8689":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"8690":{"varMapping":{"__isSmartRef__":true,"id":8691},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8692},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8691":{"this":{"__isSmartRef__":true,"id":8565}},"8692":{"timestamp":{"__isSmartRef__":true,"id":8693},"user":"sebastianwoinar","tags":[]},"8693":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"8694":{"submorphs":[{"__isSmartRef__":true,"id":8695}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8712},"id":"74A978E5-92A0-49F4-B7CE-5B9814753818","eventHandler":{"__isSmartRef__":true,"id":8713},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":8714},"name":"node26","partsBinMetaInfo":{"__isSmartRef__":true,"id":8715},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5481},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":7896},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8718},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(135.1,210.0)"},"8695":{"submorphs":[],"scripts":[],"id":"A94766AF-842F-422A-8436-760286FC2036","shape":{"__isSmartRef__":true,"id":8696},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":8697},"textChunks":[{"__isSmartRef__":true,"id":8709}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":8711},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":8694},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"8696":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"8697":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":8698},{"__isSmartRef__":true,"id":8700},{"__isSmartRef__":true,"id":8702},{"__isSmartRef__":true,"id":8704},{"__isSmartRef__":true,"id":8706}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":8708},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"8698":{"date":{"__isSmartRef__":true,"id":8699},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"8699":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"8700":{"date":{"__isSmartRef__":true,"id":8701},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"8701":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"8702":{"date":{"__isSmartRef__":true,"id":8703},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"8703":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"8704":{"date":{"__isSmartRef__":true,"id":8705},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"8705":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"8706":{"date":{"__isSmartRef__":true,"id":8707},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"8707":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"8708":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"8709":{"style":{"__isSmartRef__":true,"id":8710},"morph":{"__isSmartRef__":true,"id":8695},"chunkOwner":{"__isSmartRef__":true,"id":8695},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8710":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8711":{"morph":{"__isSmartRef__":true,"id":8695},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8712":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"8713":{"morph":{"__isSmartRef__":true,"id":8694},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8714":{},"8715":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":8716}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"8716":{"date":{"__isSmartRef__":true,"id":8717},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"8717":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"8718":{"buildChildNodes":{"__isSmartRef__":true,"id":8719},"getGameTree":{"__isSmartRef__":true,"id":8723},"getLevel":{"__isSmartRef__":true,"id":8727},"getLevelWeight":{"__isSmartRef__":true,"id":8731},"getWeight":{"__isSmartRef__":true,"id":8735},"setNode":{"__isSmartRef__":true,"id":8739},"setParent":{"__isSmartRef__":true,"id":8743},"getParent":{"__isSmartRef__":true,"id":8747},"deactivate":{"__isSmartRef__":true,"id":8751},"blink":{"__isSmartRef__":true,"id":8755},"ABPreturn":{"__isSmartRef__":true,"id":8759},"ABPstart":{"__isSmartRef__":true,"id":8763},"ABPcontinue":{"__isSmartRef__":true,"id":8767},"ABPshowValue":{"__isSmartRef__":true,"id":8771},"ABPgetValue":{"__isSmartRef__":true,"id":8775},"ABPhasChildNodes":{"__isSmartRef__":true,"id":8779},"onMouseDown":{"__isSmartRef__":true,"id":8783},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":8791},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":8795},"ABPmarkAsDone":{"__isSmartRef__":true,"id":8799},"ABPmarkAsActive":{"__isSmartRef__":true,"id":8803},"getStateMorph":{"__isSmartRef__":true,"id":8807},"showState":{"__isSmartRef__":true,"id":8811},"ABPfailHard":{"__isSmartRef__":true,"id":8815},"markFinalDrawWith":{"__isSmartRef__":true,"id":8819}},"8719":{"varMapping":{"__isSmartRef__":true,"id":8720},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":8721},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8720":{"this":{"__isSmartRef__":true,"id":8694}},"8721":{"timestamp":{"__isSmartRef__":true,"id":8722},"user":"sebastianwoinar","tags":[]},"8722":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"8723":{"varMapping":{"__isSmartRef__":true,"id":8724},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":8725},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8724":{"this":{"__isSmartRef__":true,"id":8694}},"8725":{"timestamp":{"__isSmartRef__":true,"id":8726},"user":"sebastianwoinar","tags":[]},"8726":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8727":{"varMapping":{"__isSmartRef__":true,"id":8728},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":8729},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8728":{"this":{"__isSmartRef__":true,"id":8694}},"8729":{"timestamp":{"__isSmartRef__":true,"id":8730},"user":"sebastianwoinar","tags":[]},"8730":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8731":{"varMapping":{"__isSmartRef__":true,"id":8732},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8733},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8732":{"this":{"__isSmartRef__":true,"id":8694}},"8733":{"timestamp":{"__isSmartRef__":true,"id":8734},"user":"sebastianwoinar","tags":[]},"8734":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8735":{"varMapping":{"__isSmartRef__":true,"id":8736},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":8737},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8736":{"this":{"__isSmartRef__":true,"id":8694}},"8737":{"timestamp":{"__isSmartRef__":true,"id":8738},"user":"sebastianwoinar","tags":[]},"8738":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8739":{"varMapping":{"__isSmartRef__":true,"id":8740},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":8741},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8740":{"this":{"__isSmartRef__":true,"id":8694}},"8741":{"timestamp":{"__isSmartRef__":true,"id":8742},"user":"sebastianwoinar","tags":[]},"8742":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8743":{"varMapping":{"__isSmartRef__":true,"id":8744},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":8745},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8744":{"this":{"__isSmartRef__":true,"id":8694}},"8745":{"timestamp":{"__isSmartRef__":true,"id":8746},"user":"sebastianwoinar","tags":[]},"8746":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8747":{"varMapping":{"__isSmartRef__":true,"id":8748},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":8749},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8748":{"this":{"__isSmartRef__":true,"id":8694}},"8749":{"timestamp":{"__isSmartRef__":true,"id":8750},"user":"sebastianwoinar","tags":[]},"8750":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"8751":{"varMapping":{"__isSmartRef__":true,"id":8752},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":8753},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8752":{"this":{"__isSmartRef__":true,"id":8694}},"8753":{"timestamp":{"__isSmartRef__":true,"id":8754},"user":"sebastianwoinar","tags":[]},"8754":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"8755":{"varMapping":{"__isSmartRef__":true,"id":8756},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":8757},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8756":{"this":{"__isSmartRef__":true,"id":8694}},"8757":{"timestamp":{"__isSmartRef__":true,"id":8758},"user":"sebastianwoinar","tags":[]},"8758":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"8759":{"varMapping":{"__isSmartRef__":true,"id":8760},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":8761},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8760":{"this":{"__isSmartRef__":true,"id":8694}},"8761":{"timestamp":{"__isSmartRef__":true,"id":8762},"user":"sebastianwoinar","tags":[]},"8762":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"8763":{"varMapping":{"__isSmartRef__":true,"id":8764},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":8765},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8764":{"this":{"__isSmartRef__":true,"id":8694}},"8765":{"timestamp":{"__isSmartRef__":true,"id":8766},"user":"sebastianwoinar","tags":[]},"8766":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"8767":{"varMapping":{"__isSmartRef__":true,"id":8768},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":8769},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8768":{"this":{"__isSmartRef__":true,"id":8694}},"8769":{"timestamp":{"__isSmartRef__":true,"id":8770},"user":"sebastianwoinar","tags":[]},"8770":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"8771":{"varMapping":{"__isSmartRef__":true,"id":8772},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":8773},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8772":{"this":{"__isSmartRef__":true,"id":8694}},"8773":{"timestamp":{"__isSmartRef__":true,"id":8774},"user":"sebastianwoinar","tags":[]},"8774":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"8775":{"varMapping":{"__isSmartRef__":true,"id":8776},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":8777},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8776":{"this":{"__isSmartRef__":true,"id":8694}},"8777":{"timestamp":{"__isSmartRef__":true,"id":8778},"user":"sebastianwoinar","tags":[]},"8778":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"8779":{"varMapping":{"__isSmartRef__":true,"id":8780},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":8781},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8780":{"this":{"__isSmartRef__":true,"id":8694}},"8781":{"timestamp":{"__isSmartRef__":true,"id":8782},"user":"sebastianwoinar","tags":[]},"8782":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"8783":{"varMapping":{"__isSmartRef__":true,"id":8784},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":8789},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8784":{"this":{"__isSmartRef__":true,"id":8694},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8785}},"8785":{"$super":{"__isSmartRef__":true,"id":8786}},"8786":{"varMapping":{"__isSmartRef__":true,"id":8787},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8788},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8787":{"obj":{"__isSmartRef__":true,"id":8694},"name":"onMouseDown"},"8788":{},"8789":{"timestamp":{"__isSmartRef__":true,"id":8790},"user":"sebastianwoinar","tags":[]},"8790":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"8791":{"varMapping":{"__isSmartRef__":true,"id":8792},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":8793},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8792":{"this":{"__isSmartRef__":true,"id":8694}},"8793":{"timestamp":{"__isSmartRef__":true,"id":8794},"user":"sebastianwoinar","tags":[]},"8794":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"8795":{"varMapping":{"__isSmartRef__":true,"id":8796},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":8797},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8796":{"this":{"__isSmartRef__":true,"id":8694}},"8797":{"timestamp":{"__isSmartRef__":true,"id":8798},"user":"sebastianwoinar","tags":[]},"8798":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"8799":{"varMapping":{"__isSmartRef__":true,"id":8800},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":8801},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8800":{"this":{"__isSmartRef__":true,"id":8694}},"8801":{"timestamp":{"__isSmartRef__":true,"id":8802},"user":"sebastianwoinar","tags":[]},"8802":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"8803":{"varMapping":{"__isSmartRef__":true,"id":8804},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":8805},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8804":{"this":{"__isSmartRef__":true,"id":8694}},"8805":{"timestamp":{"__isSmartRef__":true,"id":8806},"user":"sebastianwoinar","tags":[]},"8806":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"8807":{"varMapping":{"__isSmartRef__":true,"id":8808},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":8809},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8808":{"this":{"__isSmartRef__":true,"id":8694}},"8809":{"timestamp":{"__isSmartRef__":true,"id":8810},"user":"sebastianwoinar","tags":[]},"8810":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"8811":{"varMapping":{"__isSmartRef__":true,"id":8812},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8813},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8812":{"this":{"__isSmartRef__":true,"id":8694}},"8813":{"timestamp":{"__isSmartRef__":true,"id":8814},"user":"sebastianwoinar","tags":[]},"8814":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"8815":{"varMapping":{"__isSmartRef__":true,"id":8816},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":8817},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8816":{"this":{"__isSmartRef__":true,"id":8694}},"8817":{"timestamp":{"__isSmartRef__":true,"id":8818},"user":"sebastianwoinar","tags":[]},"8818":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"8819":{"varMapping":{"__isSmartRef__":true,"id":8820},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8821},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8820":{"this":{"__isSmartRef__":true,"id":8694}},"8821":{"timestamp":{"__isSmartRef__":true,"id":8822},"user":"sebastianwoinar","tags":[]},"8822":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"8823":{"buildChildNodes":{"__isSmartRef__":true,"id":8824},"getGameTree":{"__isSmartRef__":true,"id":8828},"getLevel":{"__isSmartRef__":true,"id":8832},"getLevelWeight":{"__isSmartRef__":true,"id":8836},"getWeight":{"__isSmartRef__":true,"id":8840},"setNode":{"__isSmartRef__":true,"id":8844},"setParent":{"__isSmartRef__":true,"id":8848},"getParent":{"__isSmartRef__":true,"id":8852},"deactivate":{"__isSmartRef__":true,"id":8856},"blink":{"__isSmartRef__":true,"id":8860},"ABPreturn":{"__isSmartRef__":true,"id":8864},"ABPstart":{"__isSmartRef__":true,"id":8868},"ABPcontinue":{"__isSmartRef__":true,"id":8872},"ABPshowValue":{"__isSmartRef__":true,"id":8876},"ABPgetValue":{"__isSmartRef__":true,"id":8880},"ABPhasChildNodes":{"__isSmartRef__":true,"id":8884},"onMouseDown":{"__isSmartRef__":true,"id":8888},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":8896},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":8900},"ABPmarkAsDone":{"__isSmartRef__":true,"id":8904},"ABPmarkAsActive":{"__isSmartRef__":true,"id":8908},"getStateMorph":{"__isSmartRef__":true,"id":8912},"showState":{"__isSmartRef__":true,"id":8916},"ABPfailHard":{"__isSmartRef__":true,"id":8920},"markFinalDrawWith":{"__isSmartRef__":true,"id":8924}},"8824":{"varMapping":{"__isSmartRef__":true,"id":8825},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":8826},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8825":{"this":{"__isSmartRef__":true,"id":7896}},"8826":{"timestamp":{"__isSmartRef__":true,"id":8827},"user":"sebastianwoinar","tags":[]},"8827":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"8828":{"varMapping":{"__isSmartRef__":true,"id":8829},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":8830},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8829":{"this":{"__isSmartRef__":true,"id":7896}},"8830":{"timestamp":{"__isSmartRef__":true,"id":8831},"user":"sebastianwoinar","tags":[]},"8831":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8832":{"varMapping":{"__isSmartRef__":true,"id":8833},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":8834},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8833":{"this":{"__isSmartRef__":true,"id":7896}},"8834":{"timestamp":{"__isSmartRef__":true,"id":8835},"user":"sebastianwoinar","tags":[]},"8835":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8836":{"varMapping":{"__isSmartRef__":true,"id":8837},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8838},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8837":{"this":{"__isSmartRef__":true,"id":7896}},"8838":{"timestamp":{"__isSmartRef__":true,"id":8839},"user":"sebastianwoinar","tags":[]},"8839":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8840":{"varMapping":{"__isSmartRef__":true,"id":8841},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":8842},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8841":{"this":{"__isSmartRef__":true,"id":7896}},"8842":{"timestamp":{"__isSmartRef__":true,"id":8843},"user":"sebastianwoinar","tags":[]},"8843":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8844":{"varMapping":{"__isSmartRef__":true,"id":8845},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":8846},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8845":{"this":{"__isSmartRef__":true,"id":7896}},"8846":{"timestamp":{"__isSmartRef__":true,"id":8847},"user":"sebastianwoinar","tags":[]},"8847":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8848":{"varMapping":{"__isSmartRef__":true,"id":8849},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":8850},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8849":{"this":{"__isSmartRef__":true,"id":7896}},"8850":{"timestamp":{"__isSmartRef__":true,"id":8851},"user":"sebastianwoinar","tags":[]},"8851":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8852":{"varMapping":{"__isSmartRef__":true,"id":8853},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":8854},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8853":{"this":{"__isSmartRef__":true,"id":7896}},"8854":{"timestamp":{"__isSmartRef__":true,"id":8855},"user":"sebastianwoinar","tags":[]},"8855":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"8856":{"varMapping":{"__isSmartRef__":true,"id":8857},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":8858},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8857":{"this":{"__isSmartRef__":true,"id":7896}},"8858":{"timestamp":{"__isSmartRef__":true,"id":8859},"user":"sebastianwoinar","tags":[]},"8859":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"8860":{"varMapping":{"__isSmartRef__":true,"id":8861},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":8862},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8861":{"this":{"__isSmartRef__":true,"id":7896}},"8862":{"timestamp":{"__isSmartRef__":true,"id":8863},"user":"sebastianwoinar","tags":[]},"8863":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"8864":{"varMapping":{"__isSmartRef__":true,"id":8865},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":8866},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8865":{"this":{"__isSmartRef__":true,"id":7896}},"8866":{"timestamp":{"__isSmartRef__":true,"id":8867},"user":"sebastianwoinar","tags":[]},"8867":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"8868":{"varMapping":{"__isSmartRef__":true,"id":8869},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":8870},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8869":{"this":{"__isSmartRef__":true,"id":7896}},"8870":{"timestamp":{"__isSmartRef__":true,"id":8871},"user":"sebastianwoinar","tags":[]},"8871":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"8872":{"varMapping":{"__isSmartRef__":true,"id":8873},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":8874},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8873":{"this":{"__isSmartRef__":true,"id":7896}},"8874":{"timestamp":{"__isSmartRef__":true,"id":8875},"user":"sebastianwoinar","tags":[]},"8875":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"8876":{"varMapping":{"__isSmartRef__":true,"id":8877},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":8878},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8877":{"this":{"__isSmartRef__":true,"id":7896}},"8878":{"timestamp":{"__isSmartRef__":true,"id":8879},"user":"sebastianwoinar","tags":[]},"8879":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"8880":{"varMapping":{"__isSmartRef__":true,"id":8881},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":8882},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8881":{"this":{"__isSmartRef__":true,"id":7896}},"8882":{"timestamp":{"__isSmartRef__":true,"id":8883},"user":"sebastianwoinar","tags":[]},"8883":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"8884":{"varMapping":{"__isSmartRef__":true,"id":8885},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":8886},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8885":{"this":{"__isSmartRef__":true,"id":7896}},"8886":{"timestamp":{"__isSmartRef__":true,"id":8887},"user":"sebastianwoinar","tags":[]},"8887":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"8888":{"varMapping":{"__isSmartRef__":true,"id":8889},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":8894},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8889":{"this":{"__isSmartRef__":true,"id":7896},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8890}},"8890":{"$super":{"__isSmartRef__":true,"id":8891}},"8891":{"varMapping":{"__isSmartRef__":true,"id":8892},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8893},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8892":{"obj":{"__isSmartRef__":true,"id":7896},"name":"onMouseDown"},"8893":{},"8894":{"timestamp":{"__isSmartRef__":true,"id":8895},"user":"sebastianwoinar","tags":[]},"8895":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"8896":{"varMapping":{"__isSmartRef__":true,"id":8897},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":8898},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8897":{"this":{"__isSmartRef__":true,"id":7896}},"8898":{"timestamp":{"__isSmartRef__":true,"id":8899},"user":"sebastianwoinar","tags":[]},"8899":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"8900":{"varMapping":{"__isSmartRef__":true,"id":8901},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":8902},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8901":{"this":{"__isSmartRef__":true,"id":7896}},"8902":{"timestamp":{"__isSmartRef__":true,"id":8903},"user":"sebastianwoinar","tags":[]},"8903":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"8904":{"varMapping":{"__isSmartRef__":true,"id":8905},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":8906},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8905":{"this":{"__isSmartRef__":true,"id":7896}},"8906":{"timestamp":{"__isSmartRef__":true,"id":8907},"user":"sebastianwoinar","tags":[]},"8907":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"8908":{"varMapping":{"__isSmartRef__":true,"id":8909},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":8910},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8909":{"this":{"__isSmartRef__":true,"id":7896}},"8910":{"timestamp":{"__isSmartRef__":true,"id":8911},"user":"sebastianwoinar","tags":[]},"8911":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"8912":{"varMapping":{"__isSmartRef__":true,"id":8913},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":8914},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8913":{"this":{"__isSmartRef__":true,"id":7896}},"8914":{"timestamp":{"__isSmartRef__":true,"id":8915},"user":"sebastianwoinar","tags":[]},"8915":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"8916":{"varMapping":{"__isSmartRef__":true,"id":8917},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8918},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8917":{"this":{"__isSmartRef__":true,"id":7896}},"8918":{"timestamp":{"__isSmartRef__":true,"id":8919},"user":"sebastianwoinar","tags":[]},"8919":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"8920":{"varMapping":{"__isSmartRef__":true,"id":8921},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":8922},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8921":{"this":{"__isSmartRef__":true,"id":7896}},"8922":{"timestamp":{"__isSmartRef__":true,"id":8923},"user":"sebastianwoinar","tags":[]},"8923":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"8924":{"varMapping":{"__isSmartRef__":true,"id":8925},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8926},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8925":{"this":{"__isSmartRef__":true,"id":7896}},"8926":{"timestamp":{"__isSmartRef__":true,"id":8927},"user":"sebastianwoinar","tags":[]},"8927":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"8928":{"submorphs":[{"__isSmartRef__":true,"id":8929}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8946},"id":"0F11744A-6486-4237-97F0-48E54E77B165","eventHandler":{"__isSmartRef__":true,"id":8947},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":8948},"name":"node27","partsBinMetaInfo":{"__isSmartRef__":true,"id":8949},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5483},"owner":{"__isSmartRef__":true,"id":5408},"childNodes":[{"__isSmartRef__":true,"id":8952},{"__isSmartRef__":true,"id":9081},{"__isSmartRef__":true,"id":9210},{"__isSmartRef__":true,"id":9339},{"__isSmartRef__":true,"id":9468}],"parent":{"__isSmartRef__":true,"id":5937},"level":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9597},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(176.5,160.0)"},"8929":{"submorphs":[],"scripts":[],"id":"EE90C397-1C69-4A75-901E-A6F2BB50E08D","shape":{"__isSmartRef__":true,"id":8930},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":8931},"textChunks":[{"__isSmartRef__":true,"id":8943}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":8945},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":8928},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"8930":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"8931":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":8932},{"__isSmartRef__":true,"id":8934},{"__isSmartRef__":true,"id":8936},{"__isSmartRef__":true,"id":8938},{"__isSmartRef__":true,"id":8940}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":8942},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"8932":{"date":{"__isSmartRef__":true,"id":8933},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"8933":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"8934":{"date":{"__isSmartRef__":true,"id":8935},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"8935":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"8936":{"date":{"__isSmartRef__":true,"id":8937},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"8937":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"8938":{"date":{"__isSmartRef__":true,"id":8939},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"8939":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"8940":{"date":{"__isSmartRef__":true,"id":8941},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"8941":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"8942":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"8943":{"style":{"__isSmartRef__":true,"id":8944},"morph":{"__isSmartRef__":true,"id":8929},"chunkOwner":{"__isSmartRef__":true,"id":8929},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8944":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8945":{"morph":{"__isSmartRef__":true,"id":8929},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8946":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"8947":{"morph":{"__isSmartRef__":true,"id":8928},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8948":{},"8949":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":8950}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"8950":{"date":{"__isSmartRef__":true,"id":8951},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"8951":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"8952":{"submorphs":[{"__isSmartRef__":true,"id":8953}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8970},"id":"550E677E-3505-4358-BC2A-9AD83DD6EA9D","eventHandler":{"__isSmartRef__":true,"id":8971},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":8972},"name":"node28","partsBinMetaInfo":{"__isSmartRef__":true,"id":8973},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5485},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":8928},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8976},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(140.2,210.0)"},"8953":{"submorphs":[],"scripts":[],"id":"9A2F51E8-A0F7-496D-9699-5764DE6EAC9A","shape":{"__isSmartRef__":true,"id":8954},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":8955},"textChunks":[{"__isSmartRef__":true,"id":8967}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":8969},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":8952},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"8954":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"8955":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":8956},{"__isSmartRef__":true,"id":8958},{"__isSmartRef__":true,"id":8960},{"__isSmartRef__":true,"id":8962},{"__isSmartRef__":true,"id":8964}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":8966},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"8956":{"date":{"__isSmartRef__":true,"id":8957},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"8957":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"8958":{"date":{"__isSmartRef__":true,"id":8959},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"8959":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"8960":{"date":{"__isSmartRef__":true,"id":8961},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"8961":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"8962":{"date":{"__isSmartRef__":true,"id":8963},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"8963":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"8964":{"date":{"__isSmartRef__":true,"id":8965},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"8965":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"8966":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"8967":{"style":{"__isSmartRef__":true,"id":8968},"morph":{"__isSmartRef__":true,"id":8953},"chunkOwner":{"__isSmartRef__":true,"id":8953},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8968":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8969":{"morph":{"__isSmartRef__":true,"id":8953},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8970":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"8971":{"morph":{"__isSmartRef__":true,"id":8952},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8972":{},"8973":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":8974}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"8974":{"date":{"__isSmartRef__":true,"id":8975},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"8975":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"8976":{"buildChildNodes":{"__isSmartRef__":true,"id":8977},"getGameTree":{"__isSmartRef__":true,"id":8981},"getLevel":{"__isSmartRef__":true,"id":8985},"getLevelWeight":{"__isSmartRef__":true,"id":8989},"getWeight":{"__isSmartRef__":true,"id":8993},"setNode":{"__isSmartRef__":true,"id":8997},"setParent":{"__isSmartRef__":true,"id":9001},"getParent":{"__isSmartRef__":true,"id":9005},"deactivate":{"__isSmartRef__":true,"id":9009},"blink":{"__isSmartRef__":true,"id":9013},"ABPreturn":{"__isSmartRef__":true,"id":9017},"ABPstart":{"__isSmartRef__":true,"id":9021},"ABPcontinue":{"__isSmartRef__":true,"id":9025},"ABPshowValue":{"__isSmartRef__":true,"id":9029},"ABPgetValue":{"__isSmartRef__":true,"id":9033},"ABPhasChildNodes":{"__isSmartRef__":true,"id":9037},"onMouseDown":{"__isSmartRef__":true,"id":9041},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":9049},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":9053},"ABPmarkAsDone":{"__isSmartRef__":true,"id":9057},"ABPmarkAsActive":{"__isSmartRef__":true,"id":9061},"getStateMorph":{"__isSmartRef__":true,"id":9065},"showState":{"__isSmartRef__":true,"id":9069},"ABPfailHard":{"__isSmartRef__":true,"id":9073},"markFinalDrawWith":{"__isSmartRef__":true,"id":9077}},"8977":{"varMapping":{"__isSmartRef__":true,"id":8978},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":8979},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8978":{"this":{"__isSmartRef__":true,"id":8952}},"8979":{"timestamp":{"__isSmartRef__":true,"id":8980},"user":"sebastianwoinar","tags":[]},"8980":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"8981":{"varMapping":{"__isSmartRef__":true,"id":8982},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":8983},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8982":{"this":{"__isSmartRef__":true,"id":8952}},"8983":{"timestamp":{"__isSmartRef__":true,"id":8984},"user":"sebastianwoinar","tags":[]},"8984":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8985":{"varMapping":{"__isSmartRef__":true,"id":8986},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":8987},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8986":{"this":{"__isSmartRef__":true,"id":8952}},"8987":{"timestamp":{"__isSmartRef__":true,"id":8988},"user":"sebastianwoinar","tags":[]},"8988":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8989":{"varMapping":{"__isSmartRef__":true,"id":8990},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8991},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8990":{"this":{"__isSmartRef__":true,"id":8952}},"8991":{"timestamp":{"__isSmartRef__":true,"id":8992},"user":"sebastianwoinar","tags":[]},"8992":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8993":{"varMapping":{"__isSmartRef__":true,"id":8994},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":8995},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8994":{"this":{"__isSmartRef__":true,"id":8952}},"8995":{"timestamp":{"__isSmartRef__":true,"id":8996},"user":"sebastianwoinar","tags":[]},"8996":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"8997":{"varMapping":{"__isSmartRef__":true,"id":8998},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":8999},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8998":{"this":{"__isSmartRef__":true,"id":8952}},"8999":{"timestamp":{"__isSmartRef__":true,"id":9000},"user":"sebastianwoinar","tags":[]},"9000":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9001":{"varMapping":{"__isSmartRef__":true,"id":9002},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":9003},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9002":{"this":{"__isSmartRef__":true,"id":8952}},"9003":{"timestamp":{"__isSmartRef__":true,"id":9004},"user":"sebastianwoinar","tags":[]},"9004":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9005":{"varMapping":{"__isSmartRef__":true,"id":9006},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":9007},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9006":{"this":{"__isSmartRef__":true,"id":8952}},"9007":{"timestamp":{"__isSmartRef__":true,"id":9008},"user":"sebastianwoinar","tags":[]},"9008":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"9009":{"varMapping":{"__isSmartRef__":true,"id":9010},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":9011},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9010":{"this":{"__isSmartRef__":true,"id":8952}},"9011":{"timestamp":{"__isSmartRef__":true,"id":9012},"user":"sebastianwoinar","tags":[]},"9012":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"9013":{"varMapping":{"__isSmartRef__":true,"id":9014},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":9015},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9014":{"this":{"__isSmartRef__":true,"id":8952}},"9015":{"timestamp":{"__isSmartRef__":true,"id":9016},"user":"sebastianwoinar","tags":[]},"9016":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"9017":{"varMapping":{"__isSmartRef__":true,"id":9018},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":9019},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9018":{"this":{"__isSmartRef__":true,"id":8952}},"9019":{"timestamp":{"__isSmartRef__":true,"id":9020},"user":"sebastianwoinar","tags":[]},"9020":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"9021":{"varMapping":{"__isSmartRef__":true,"id":9022},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":9023},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9022":{"this":{"__isSmartRef__":true,"id":8952}},"9023":{"timestamp":{"__isSmartRef__":true,"id":9024},"user":"sebastianwoinar","tags":[]},"9024":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"9025":{"varMapping":{"__isSmartRef__":true,"id":9026},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":9027},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9026":{"this":{"__isSmartRef__":true,"id":8952}},"9027":{"timestamp":{"__isSmartRef__":true,"id":9028},"user":"sebastianwoinar","tags":[]},"9028":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"9029":{"varMapping":{"__isSmartRef__":true,"id":9030},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":9031},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9030":{"this":{"__isSmartRef__":true,"id":8952}},"9031":{"timestamp":{"__isSmartRef__":true,"id":9032},"user":"sebastianwoinar","tags":[]},"9032":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"9033":{"varMapping":{"__isSmartRef__":true,"id":9034},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":9035},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9034":{"this":{"__isSmartRef__":true,"id":8952}},"9035":{"timestamp":{"__isSmartRef__":true,"id":9036},"user":"sebastianwoinar","tags":[]},"9036":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"9037":{"varMapping":{"__isSmartRef__":true,"id":9038},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":9039},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9038":{"this":{"__isSmartRef__":true,"id":8952}},"9039":{"timestamp":{"__isSmartRef__":true,"id":9040},"user":"sebastianwoinar","tags":[]},"9040":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"9041":{"varMapping":{"__isSmartRef__":true,"id":9042},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":9047},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9042":{"this":{"__isSmartRef__":true,"id":8952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9043}},"9043":{"$super":{"__isSmartRef__":true,"id":9044}},"9044":{"varMapping":{"__isSmartRef__":true,"id":9045},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9046},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9045":{"obj":{"__isSmartRef__":true,"id":8952},"name":"onMouseDown"},"9046":{},"9047":{"timestamp":{"__isSmartRef__":true,"id":9048},"user":"sebastianwoinar","tags":[]},"9048":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"9049":{"varMapping":{"__isSmartRef__":true,"id":9050},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":9051},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9050":{"this":{"__isSmartRef__":true,"id":8952}},"9051":{"timestamp":{"__isSmartRef__":true,"id":9052},"user":"sebastianwoinar","tags":[]},"9052":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"9053":{"varMapping":{"__isSmartRef__":true,"id":9054},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":9055},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9054":{"this":{"__isSmartRef__":true,"id":8952}},"9055":{"timestamp":{"__isSmartRef__":true,"id":9056},"user":"sebastianwoinar","tags":[]},"9056":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"9057":{"varMapping":{"__isSmartRef__":true,"id":9058},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":9059},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9058":{"this":{"__isSmartRef__":true,"id":8952}},"9059":{"timestamp":{"__isSmartRef__":true,"id":9060},"user":"sebastianwoinar","tags":[]},"9060":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"9061":{"varMapping":{"__isSmartRef__":true,"id":9062},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":9063},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9062":{"this":{"__isSmartRef__":true,"id":8952}},"9063":{"timestamp":{"__isSmartRef__":true,"id":9064},"user":"sebastianwoinar","tags":[]},"9064":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"9065":{"varMapping":{"__isSmartRef__":true,"id":9066},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":9067},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9066":{"this":{"__isSmartRef__":true,"id":8952}},"9067":{"timestamp":{"__isSmartRef__":true,"id":9068},"user":"sebastianwoinar","tags":[]},"9068":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"9069":{"varMapping":{"__isSmartRef__":true,"id":9070},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9071},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9070":{"this":{"__isSmartRef__":true,"id":8952}},"9071":{"timestamp":{"__isSmartRef__":true,"id":9072},"user":"sebastianwoinar","tags":[]},"9072":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"9073":{"varMapping":{"__isSmartRef__":true,"id":9074},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":9075},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9074":{"this":{"__isSmartRef__":true,"id":8952}},"9075":{"timestamp":{"__isSmartRef__":true,"id":9076},"user":"sebastianwoinar","tags":[]},"9076":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"9077":{"varMapping":{"__isSmartRef__":true,"id":9078},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9079},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9078":{"this":{"__isSmartRef__":true,"id":8952}},"9079":{"timestamp":{"__isSmartRef__":true,"id":9080},"user":"sebastianwoinar","tags":[]},"9080":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"9081":{"submorphs":[{"__isSmartRef__":true,"id":9082}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9099},"id":"9EBB6B69-E503-42B7-B16F-1068B4353190","eventHandler":{"__isSmartRef__":true,"id":9100},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":9101},"name":"node29","partsBinMetaInfo":{"__isSmartRef__":true,"id":9102},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5487},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":8928},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9105},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(145.4,210.0)"},"9082":{"submorphs":[],"scripts":[],"id":"C49E4D7C-79DD-41ED-BDDE-BE96DAC8CE6A","shape":{"__isSmartRef__":true,"id":9083},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":9084},"textChunks":[{"__isSmartRef__":true,"id":9096}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":9098},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":9081},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"9083":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"9084":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":9085},{"__isSmartRef__":true,"id":9087},{"__isSmartRef__":true,"id":9089},{"__isSmartRef__":true,"id":9091},{"__isSmartRef__":true,"id":9093}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":9095},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"9085":{"date":{"__isSmartRef__":true,"id":9086},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"9086":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"9087":{"date":{"__isSmartRef__":true,"id":9088},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"9088":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"9089":{"date":{"__isSmartRef__":true,"id":9090},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"9090":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"9091":{"date":{"__isSmartRef__":true,"id":9092},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"9092":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"9093":{"date":{"__isSmartRef__":true,"id":9094},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"9094":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"9095":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"9096":{"style":{"__isSmartRef__":true,"id":9097},"morph":{"__isSmartRef__":true,"id":9082},"chunkOwner":{"__isSmartRef__":true,"id":9082},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9097":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9098":{"morph":{"__isSmartRef__":true,"id":9082},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9099":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"9100":{"morph":{"__isSmartRef__":true,"id":9081},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9101":{},"9102":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":9103}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"9103":{"date":{"__isSmartRef__":true,"id":9104},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"9104":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"9105":{"buildChildNodes":{"__isSmartRef__":true,"id":9106},"getGameTree":{"__isSmartRef__":true,"id":9110},"getLevel":{"__isSmartRef__":true,"id":9114},"getLevelWeight":{"__isSmartRef__":true,"id":9118},"getWeight":{"__isSmartRef__":true,"id":9122},"setNode":{"__isSmartRef__":true,"id":9126},"setParent":{"__isSmartRef__":true,"id":9130},"getParent":{"__isSmartRef__":true,"id":9134},"deactivate":{"__isSmartRef__":true,"id":9138},"blink":{"__isSmartRef__":true,"id":9142},"ABPreturn":{"__isSmartRef__":true,"id":9146},"ABPstart":{"__isSmartRef__":true,"id":9150},"ABPcontinue":{"__isSmartRef__":true,"id":9154},"ABPshowValue":{"__isSmartRef__":true,"id":9158},"ABPgetValue":{"__isSmartRef__":true,"id":9162},"ABPhasChildNodes":{"__isSmartRef__":true,"id":9166},"onMouseDown":{"__isSmartRef__":true,"id":9170},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":9178},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":9182},"ABPmarkAsDone":{"__isSmartRef__":true,"id":9186},"ABPmarkAsActive":{"__isSmartRef__":true,"id":9190},"getStateMorph":{"__isSmartRef__":true,"id":9194},"showState":{"__isSmartRef__":true,"id":9198},"ABPfailHard":{"__isSmartRef__":true,"id":9202},"markFinalDrawWith":{"__isSmartRef__":true,"id":9206}},"9106":{"varMapping":{"__isSmartRef__":true,"id":9107},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":9108},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9107":{"this":{"__isSmartRef__":true,"id":9081}},"9108":{"timestamp":{"__isSmartRef__":true,"id":9109},"user":"sebastianwoinar","tags":[]},"9109":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"9110":{"varMapping":{"__isSmartRef__":true,"id":9111},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":9112},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9111":{"this":{"__isSmartRef__":true,"id":9081}},"9112":{"timestamp":{"__isSmartRef__":true,"id":9113},"user":"sebastianwoinar","tags":[]},"9113":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9114":{"varMapping":{"__isSmartRef__":true,"id":9115},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":9116},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9115":{"this":{"__isSmartRef__":true,"id":9081}},"9116":{"timestamp":{"__isSmartRef__":true,"id":9117},"user":"sebastianwoinar","tags":[]},"9117":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9118":{"varMapping":{"__isSmartRef__":true,"id":9119},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9120},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9119":{"this":{"__isSmartRef__":true,"id":9081}},"9120":{"timestamp":{"__isSmartRef__":true,"id":9121},"user":"sebastianwoinar","tags":[]},"9121":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9122":{"varMapping":{"__isSmartRef__":true,"id":9123},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":9124},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9123":{"this":{"__isSmartRef__":true,"id":9081}},"9124":{"timestamp":{"__isSmartRef__":true,"id":9125},"user":"sebastianwoinar","tags":[]},"9125":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9126":{"varMapping":{"__isSmartRef__":true,"id":9127},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":9128},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9127":{"this":{"__isSmartRef__":true,"id":9081}},"9128":{"timestamp":{"__isSmartRef__":true,"id":9129},"user":"sebastianwoinar","tags":[]},"9129":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9130":{"varMapping":{"__isSmartRef__":true,"id":9131},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":9132},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9131":{"this":{"__isSmartRef__":true,"id":9081}},"9132":{"timestamp":{"__isSmartRef__":true,"id":9133},"user":"sebastianwoinar","tags":[]},"9133":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9134":{"varMapping":{"__isSmartRef__":true,"id":9135},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":9136},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9135":{"this":{"__isSmartRef__":true,"id":9081}},"9136":{"timestamp":{"__isSmartRef__":true,"id":9137},"user":"sebastianwoinar","tags":[]},"9137":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"9138":{"varMapping":{"__isSmartRef__":true,"id":9139},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":9140},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9139":{"this":{"__isSmartRef__":true,"id":9081}},"9140":{"timestamp":{"__isSmartRef__":true,"id":9141},"user":"sebastianwoinar","tags":[]},"9141":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"9142":{"varMapping":{"__isSmartRef__":true,"id":9143},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":9144},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9143":{"this":{"__isSmartRef__":true,"id":9081}},"9144":{"timestamp":{"__isSmartRef__":true,"id":9145},"user":"sebastianwoinar","tags":[]},"9145":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"9146":{"varMapping":{"__isSmartRef__":true,"id":9147},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":9148},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9147":{"this":{"__isSmartRef__":true,"id":9081}},"9148":{"timestamp":{"__isSmartRef__":true,"id":9149},"user":"sebastianwoinar","tags":[]},"9149":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"9150":{"varMapping":{"__isSmartRef__":true,"id":9151},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":9152},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9151":{"this":{"__isSmartRef__":true,"id":9081}},"9152":{"timestamp":{"__isSmartRef__":true,"id":9153},"user":"sebastianwoinar","tags":[]},"9153":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"9154":{"varMapping":{"__isSmartRef__":true,"id":9155},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":9156},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9155":{"this":{"__isSmartRef__":true,"id":9081}},"9156":{"timestamp":{"__isSmartRef__":true,"id":9157},"user":"sebastianwoinar","tags":[]},"9157":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"9158":{"varMapping":{"__isSmartRef__":true,"id":9159},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":9160},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9159":{"this":{"__isSmartRef__":true,"id":9081}},"9160":{"timestamp":{"__isSmartRef__":true,"id":9161},"user":"sebastianwoinar","tags":[]},"9161":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"9162":{"varMapping":{"__isSmartRef__":true,"id":9163},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":9164},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9163":{"this":{"__isSmartRef__":true,"id":9081}},"9164":{"timestamp":{"__isSmartRef__":true,"id":9165},"user":"sebastianwoinar","tags":[]},"9165":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"9166":{"varMapping":{"__isSmartRef__":true,"id":9167},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":9168},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9167":{"this":{"__isSmartRef__":true,"id":9081}},"9168":{"timestamp":{"__isSmartRef__":true,"id":9169},"user":"sebastianwoinar","tags":[]},"9169":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"9170":{"varMapping":{"__isSmartRef__":true,"id":9171},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":9176},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9171":{"this":{"__isSmartRef__":true,"id":9081},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9172}},"9172":{"$super":{"__isSmartRef__":true,"id":9173}},"9173":{"varMapping":{"__isSmartRef__":true,"id":9174},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9175},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9174":{"obj":{"__isSmartRef__":true,"id":9081},"name":"onMouseDown"},"9175":{},"9176":{"timestamp":{"__isSmartRef__":true,"id":9177},"user":"sebastianwoinar","tags":[]},"9177":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"9178":{"varMapping":{"__isSmartRef__":true,"id":9179},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":9180},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9179":{"this":{"__isSmartRef__":true,"id":9081}},"9180":{"timestamp":{"__isSmartRef__":true,"id":9181},"user":"sebastianwoinar","tags":[]},"9181":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"9182":{"varMapping":{"__isSmartRef__":true,"id":9183},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":9184},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9183":{"this":{"__isSmartRef__":true,"id":9081}},"9184":{"timestamp":{"__isSmartRef__":true,"id":9185},"user":"sebastianwoinar","tags":[]},"9185":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"9186":{"varMapping":{"__isSmartRef__":true,"id":9187},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":9188},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9187":{"this":{"__isSmartRef__":true,"id":9081}},"9188":{"timestamp":{"__isSmartRef__":true,"id":9189},"user":"sebastianwoinar","tags":[]},"9189":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"9190":{"varMapping":{"__isSmartRef__":true,"id":9191},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":9192},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9191":{"this":{"__isSmartRef__":true,"id":9081}},"9192":{"timestamp":{"__isSmartRef__":true,"id":9193},"user":"sebastianwoinar","tags":[]},"9193":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"9194":{"varMapping":{"__isSmartRef__":true,"id":9195},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":9196},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9195":{"this":{"__isSmartRef__":true,"id":9081}},"9196":{"timestamp":{"__isSmartRef__":true,"id":9197},"user":"sebastianwoinar","tags":[]},"9197":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"9198":{"varMapping":{"__isSmartRef__":true,"id":9199},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9200},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9199":{"this":{"__isSmartRef__":true,"id":9081}},"9200":{"timestamp":{"__isSmartRef__":true,"id":9201},"user":"sebastianwoinar","tags":[]},"9201":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"9202":{"varMapping":{"__isSmartRef__":true,"id":9203},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":9204},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9203":{"this":{"__isSmartRef__":true,"id":9081}},"9204":{"timestamp":{"__isSmartRef__":true,"id":9205},"user":"sebastianwoinar","tags":[]},"9205":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"9206":{"varMapping":{"__isSmartRef__":true,"id":9207},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9208},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9207":{"this":{"__isSmartRef__":true,"id":9081}},"9208":{"timestamp":{"__isSmartRef__":true,"id":9209},"user":"sebastianwoinar","tags":[]},"9209":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"9210":{"submorphs":[{"__isSmartRef__":true,"id":9211}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9228},"id":"27FF34CF-AC06-42BD-A7D8-9DA9B33C3F5A","eventHandler":{"__isSmartRef__":true,"id":9229},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":9230},"name":"node30","partsBinMetaInfo":{"__isSmartRef__":true,"id":9231},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5489},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":8928},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9234},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(150.6,210.0)"},"9211":{"submorphs":[],"scripts":[],"id":"D0D973CF-A684-4662-A888-151BC2D12526","shape":{"__isSmartRef__":true,"id":9212},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":9213},"textChunks":[{"__isSmartRef__":true,"id":9225}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":9227},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":9210},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"9212":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"9213":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":9214},{"__isSmartRef__":true,"id":9216},{"__isSmartRef__":true,"id":9218},{"__isSmartRef__":true,"id":9220},{"__isSmartRef__":true,"id":9222}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":9224},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"9214":{"date":{"__isSmartRef__":true,"id":9215},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"9215":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"9216":{"date":{"__isSmartRef__":true,"id":9217},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"9217":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"9218":{"date":{"__isSmartRef__":true,"id":9219},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"9219":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"9220":{"date":{"__isSmartRef__":true,"id":9221},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"9221":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"9222":{"date":{"__isSmartRef__":true,"id":9223},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"9223":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"9224":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"9225":{"style":{"__isSmartRef__":true,"id":9226},"morph":{"__isSmartRef__":true,"id":9211},"chunkOwner":{"__isSmartRef__":true,"id":9211},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9226":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9227":{"morph":{"__isSmartRef__":true,"id":9211},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9228":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"9229":{"morph":{"__isSmartRef__":true,"id":9210},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9230":{},"9231":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":9232}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"9232":{"date":{"__isSmartRef__":true,"id":9233},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"9233":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"9234":{"buildChildNodes":{"__isSmartRef__":true,"id":9235},"getGameTree":{"__isSmartRef__":true,"id":9239},"getLevel":{"__isSmartRef__":true,"id":9243},"getLevelWeight":{"__isSmartRef__":true,"id":9247},"getWeight":{"__isSmartRef__":true,"id":9251},"setNode":{"__isSmartRef__":true,"id":9255},"setParent":{"__isSmartRef__":true,"id":9259},"getParent":{"__isSmartRef__":true,"id":9263},"deactivate":{"__isSmartRef__":true,"id":9267},"blink":{"__isSmartRef__":true,"id":9271},"ABPreturn":{"__isSmartRef__":true,"id":9275},"ABPstart":{"__isSmartRef__":true,"id":9279},"ABPcontinue":{"__isSmartRef__":true,"id":9283},"ABPshowValue":{"__isSmartRef__":true,"id":9287},"ABPgetValue":{"__isSmartRef__":true,"id":9291},"ABPhasChildNodes":{"__isSmartRef__":true,"id":9295},"onMouseDown":{"__isSmartRef__":true,"id":9299},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":9307},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":9311},"ABPmarkAsDone":{"__isSmartRef__":true,"id":9315},"ABPmarkAsActive":{"__isSmartRef__":true,"id":9319},"getStateMorph":{"__isSmartRef__":true,"id":9323},"showState":{"__isSmartRef__":true,"id":9327},"ABPfailHard":{"__isSmartRef__":true,"id":9331},"markFinalDrawWith":{"__isSmartRef__":true,"id":9335}},"9235":{"varMapping":{"__isSmartRef__":true,"id":9236},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":9237},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9236":{"this":{"__isSmartRef__":true,"id":9210}},"9237":{"timestamp":{"__isSmartRef__":true,"id":9238},"user":"sebastianwoinar","tags":[]},"9238":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"9239":{"varMapping":{"__isSmartRef__":true,"id":9240},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":9241},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9240":{"this":{"__isSmartRef__":true,"id":9210}},"9241":{"timestamp":{"__isSmartRef__":true,"id":9242},"user":"sebastianwoinar","tags":[]},"9242":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9243":{"varMapping":{"__isSmartRef__":true,"id":9244},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":9245},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9244":{"this":{"__isSmartRef__":true,"id":9210}},"9245":{"timestamp":{"__isSmartRef__":true,"id":9246},"user":"sebastianwoinar","tags":[]},"9246":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9247":{"varMapping":{"__isSmartRef__":true,"id":9248},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9249},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9248":{"this":{"__isSmartRef__":true,"id":9210}},"9249":{"timestamp":{"__isSmartRef__":true,"id":9250},"user":"sebastianwoinar","tags":[]},"9250":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9251":{"varMapping":{"__isSmartRef__":true,"id":9252},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":9253},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9252":{"this":{"__isSmartRef__":true,"id":9210}},"9253":{"timestamp":{"__isSmartRef__":true,"id":9254},"user":"sebastianwoinar","tags":[]},"9254":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9255":{"varMapping":{"__isSmartRef__":true,"id":9256},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":9257},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9256":{"this":{"__isSmartRef__":true,"id":9210}},"9257":{"timestamp":{"__isSmartRef__":true,"id":9258},"user":"sebastianwoinar","tags":[]},"9258":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9259":{"varMapping":{"__isSmartRef__":true,"id":9260},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":9261},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9260":{"this":{"__isSmartRef__":true,"id":9210}},"9261":{"timestamp":{"__isSmartRef__":true,"id":9262},"user":"sebastianwoinar","tags":[]},"9262":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9263":{"varMapping":{"__isSmartRef__":true,"id":9264},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":9265},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9264":{"this":{"__isSmartRef__":true,"id":9210}},"9265":{"timestamp":{"__isSmartRef__":true,"id":9266},"user":"sebastianwoinar","tags":[]},"9266":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"9267":{"varMapping":{"__isSmartRef__":true,"id":9268},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":9269},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9268":{"this":{"__isSmartRef__":true,"id":9210}},"9269":{"timestamp":{"__isSmartRef__":true,"id":9270},"user":"sebastianwoinar","tags":[]},"9270":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"9271":{"varMapping":{"__isSmartRef__":true,"id":9272},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":9273},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9272":{"this":{"__isSmartRef__":true,"id":9210}},"9273":{"timestamp":{"__isSmartRef__":true,"id":9274},"user":"sebastianwoinar","tags":[]},"9274":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"9275":{"varMapping":{"__isSmartRef__":true,"id":9276},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":9277},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9276":{"this":{"__isSmartRef__":true,"id":9210}},"9277":{"timestamp":{"__isSmartRef__":true,"id":9278},"user":"sebastianwoinar","tags":[]},"9278":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"9279":{"varMapping":{"__isSmartRef__":true,"id":9280},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":9281},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9280":{"this":{"__isSmartRef__":true,"id":9210}},"9281":{"timestamp":{"__isSmartRef__":true,"id":9282},"user":"sebastianwoinar","tags":[]},"9282":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"9283":{"varMapping":{"__isSmartRef__":true,"id":9284},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":9285},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9284":{"this":{"__isSmartRef__":true,"id":9210}},"9285":{"timestamp":{"__isSmartRef__":true,"id":9286},"user":"sebastianwoinar","tags":[]},"9286":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"9287":{"varMapping":{"__isSmartRef__":true,"id":9288},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":9289},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9288":{"this":{"__isSmartRef__":true,"id":9210}},"9289":{"timestamp":{"__isSmartRef__":true,"id":9290},"user":"sebastianwoinar","tags":[]},"9290":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"9291":{"varMapping":{"__isSmartRef__":true,"id":9292},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":9293},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9292":{"this":{"__isSmartRef__":true,"id":9210}},"9293":{"timestamp":{"__isSmartRef__":true,"id":9294},"user":"sebastianwoinar","tags":[]},"9294":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"9295":{"varMapping":{"__isSmartRef__":true,"id":9296},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":9297},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9296":{"this":{"__isSmartRef__":true,"id":9210}},"9297":{"timestamp":{"__isSmartRef__":true,"id":9298},"user":"sebastianwoinar","tags":[]},"9298":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"9299":{"varMapping":{"__isSmartRef__":true,"id":9300},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":9305},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9300":{"this":{"__isSmartRef__":true,"id":9210},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9301}},"9301":{"$super":{"__isSmartRef__":true,"id":9302}},"9302":{"varMapping":{"__isSmartRef__":true,"id":9303},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9304},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9303":{"obj":{"__isSmartRef__":true,"id":9210},"name":"onMouseDown"},"9304":{},"9305":{"timestamp":{"__isSmartRef__":true,"id":9306},"user":"sebastianwoinar","tags":[]},"9306":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"9307":{"varMapping":{"__isSmartRef__":true,"id":9308},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":9309},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9308":{"this":{"__isSmartRef__":true,"id":9210}},"9309":{"timestamp":{"__isSmartRef__":true,"id":9310},"user":"sebastianwoinar","tags":[]},"9310":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"9311":{"varMapping":{"__isSmartRef__":true,"id":9312},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":9313},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9312":{"this":{"__isSmartRef__":true,"id":9210}},"9313":{"timestamp":{"__isSmartRef__":true,"id":9314},"user":"sebastianwoinar","tags":[]},"9314":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"9315":{"varMapping":{"__isSmartRef__":true,"id":9316},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":9317},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9316":{"this":{"__isSmartRef__":true,"id":9210}},"9317":{"timestamp":{"__isSmartRef__":true,"id":9318},"user":"sebastianwoinar","tags":[]},"9318":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"9319":{"varMapping":{"__isSmartRef__":true,"id":9320},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":9321},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9320":{"this":{"__isSmartRef__":true,"id":9210}},"9321":{"timestamp":{"__isSmartRef__":true,"id":9322},"user":"sebastianwoinar","tags":[]},"9322":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"9323":{"varMapping":{"__isSmartRef__":true,"id":9324},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":9325},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9324":{"this":{"__isSmartRef__":true,"id":9210}},"9325":{"timestamp":{"__isSmartRef__":true,"id":9326},"user":"sebastianwoinar","tags":[]},"9326":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"9327":{"varMapping":{"__isSmartRef__":true,"id":9328},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9329},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9328":{"this":{"__isSmartRef__":true,"id":9210}},"9329":{"timestamp":{"__isSmartRef__":true,"id":9330},"user":"sebastianwoinar","tags":[]},"9330":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"9331":{"varMapping":{"__isSmartRef__":true,"id":9332},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":9333},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9332":{"this":{"__isSmartRef__":true,"id":9210}},"9333":{"timestamp":{"__isSmartRef__":true,"id":9334},"user":"sebastianwoinar","tags":[]},"9334":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"9335":{"varMapping":{"__isSmartRef__":true,"id":9336},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9337},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9336":{"this":{"__isSmartRef__":true,"id":9210}},"9337":{"timestamp":{"__isSmartRef__":true,"id":9338},"user":"sebastianwoinar","tags":[]},"9338":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"9339":{"submorphs":[{"__isSmartRef__":true,"id":9340}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9357},"id":"E3681651-216B-4A1B-83C7-707590806C46","eventHandler":{"__isSmartRef__":true,"id":9358},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":9359},"name":"node31","partsBinMetaInfo":{"__isSmartRef__":true,"id":9360},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5491},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":8928},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9363},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(155.8,210.0)"},"9340":{"submorphs":[],"scripts":[],"id":"4D4CF785-77D6-473F-87EF-3A5536855100","shape":{"__isSmartRef__":true,"id":9341},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":9342},"textChunks":[{"__isSmartRef__":true,"id":9354}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":9356},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":9339},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"9341":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"9342":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":9343},{"__isSmartRef__":true,"id":9345},{"__isSmartRef__":true,"id":9347},{"__isSmartRef__":true,"id":9349},{"__isSmartRef__":true,"id":9351}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":9353},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"9343":{"date":{"__isSmartRef__":true,"id":9344},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"9344":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"9345":{"date":{"__isSmartRef__":true,"id":9346},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"9346":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"9347":{"date":{"__isSmartRef__":true,"id":9348},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"9348":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"9349":{"date":{"__isSmartRef__":true,"id":9350},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"9350":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"9351":{"date":{"__isSmartRef__":true,"id":9352},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"9352":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"9353":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"9354":{"style":{"__isSmartRef__":true,"id":9355},"morph":{"__isSmartRef__":true,"id":9340},"chunkOwner":{"__isSmartRef__":true,"id":9340},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9355":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9356":{"morph":{"__isSmartRef__":true,"id":9340},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9357":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"9358":{"morph":{"__isSmartRef__":true,"id":9339},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9359":{},"9360":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":9361}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"9361":{"date":{"__isSmartRef__":true,"id":9362},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"9362":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"9363":{"buildChildNodes":{"__isSmartRef__":true,"id":9364},"getGameTree":{"__isSmartRef__":true,"id":9368},"getLevel":{"__isSmartRef__":true,"id":9372},"getLevelWeight":{"__isSmartRef__":true,"id":9376},"getWeight":{"__isSmartRef__":true,"id":9380},"setNode":{"__isSmartRef__":true,"id":9384},"setParent":{"__isSmartRef__":true,"id":9388},"getParent":{"__isSmartRef__":true,"id":9392},"deactivate":{"__isSmartRef__":true,"id":9396},"blink":{"__isSmartRef__":true,"id":9400},"ABPreturn":{"__isSmartRef__":true,"id":9404},"ABPstart":{"__isSmartRef__":true,"id":9408},"ABPcontinue":{"__isSmartRef__":true,"id":9412},"ABPshowValue":{"__isSmartRef__":true,"id":9416},"ABPgetValue":{"__isSmartRef__":true,"id":9420},"ABPhasChildNodes":{"__isSmartRef__":true,"id":9424},"onMouseDown":{"__isSmartRef__":true,"id":9428},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":9436},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":9440},"ABPmarkAsDone":{"__isSmartRef__":true,"id":9444},"ABPmarkAsActive":{"__isSmartRef__":true,"id":9448},"getStateMorph":{"__isSmartRef__":true,"id":9452},"showState":{"__isSmartRef__":true,"id":9456},"ABPfailHard":{"__isSmartRef__":true,"id":9460},"markFinalDrawWith":{"__isSmartRef__":true,"id":9464}},"9364":{"varMapping":{"__isSmartRef__":true,"id":9365},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":9366},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9365":{"this":{"__isSmartRef__":true,"id":9339}},"9366":{"timestamp":{"__isSmartRef__":true,"id":9367},"user":"sebastianwoinar","tags":[]},"9367":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"9368":{"varMapping":{"__isSmartRef__":true,"id":9369},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":9370},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9369":{"this":{"__isSmartRef__":true,"id":9339}},"9370":{"timestamp":{"__isSmartRef__":true,"id":9371},"user":"sebastianwoinar","tags":[]},"9371":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9372":{"varMapping":{"__isSmartRef__":true,"id":9373},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":9374},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9373":{"this":{"__isSmartRef__":true,"id":9339}},"9374":{"timestamp":{"__isSmartRef__":true,"id":9375},"user":"sebastianwoinar","tags":[]},"9375":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9376":{"varMapping":{"__isSmartRef__":true,"id":9377},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9378},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9377":{"this":{"__isSmartRef__":true,"id":9339}},"9378":{"timestamp":{"__isSmartRef__":true,"id":9379},"user":"sebastianwoinar","tags":[]},"9379":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9380":{"varMapping":{"__isSmartRef__":true,"id":9381},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":9382},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9381":{"this":{"__isSmartRef__":true,"id":9339}},"9382":{"timestamp":{"__isSmartRef__":true,"id":9383},"user":"sebastianwoinar","tags":[]},"9383":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9384":{"varMapping":{"__isSmartRef__":true,"id":9385},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":9386},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9385":{"this":{"__isSmartRef__":true,"id":9339}},"9386":{"timestamp":{"__isSmartRef__":true,"id":9387},"user":"sebastianwoinar","tags":[]},"9387":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9388":{"varMapping":{"__isSmartRef__":true,"id":9389},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":9390},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9389":{"this":{"__isSmartRef__":true,"id":9339}},"9390":{"timestamp":{"__isSmartRef__":true,"id":9391},"user":"sebastianwoinar","tags":[]},"9391":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9392":{"varMapping":{"__isSmartRef__":true,"id":9393},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":9394},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9393":{"this":{"__isSmartRef__":true,"id":9339}},"9394":{"timestamp":{"__isSmartRef__":true,"id":9395},"user":"sebastianwoinar","tags":[]},"9395":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"9396":{"varMapping":{"__isSmartRef__":true,"id":9397},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":9398},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9397":{"this":{"__isSmartRef__":true,"id":9339}},"9398":{"timestamp":{"__isSmartRef__":true,"id":9399},"user":"sebastianwoinar","tags":[]},"9399":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"9400":{"varMapping":{"__isSmartRef__":true,"id":9401},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":9402},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9401":{"this":{"__isSmartRef__":true,"id":9339}},"9402":{"timestamp":{"__isSmartRef__":true,"id":9403},"user":"sebastianwoinar","tags":[]},"9403":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"9404":{"varMapping":{"__isSmartRef__":true,"id":9405},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":9406},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9405":{"this":{"__isSmartRef__":true,"id":9339}},"9406":{"timestamp":{"__isSmartRef__":true,"id":9407},"user":"sebastianwoinar","tags":[]},"9407":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"9408":{"varMapping":{"__isSmartRef__":true,"id":9409},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":9410},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9409":{"this":{"__isSmartRef__":true,"id":9339}},"9410":{"timestamp":{"__isSmartRef__":true,"id":9411},"user":"sebastianwoinar","tags":[]},"9411":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"9412":{"varMapping":{"__isSmartRef__":true,"id":9413},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":9414},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9413":{"this":{"__isSmartRef__":true,"id":9339}},"9414":{"timestamp":{"__isSmartRef__":true,"id":9415},"user":"sebastianwoinar","tags":[]},"9415":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"9416":{"varMapping":{"__isSmartRef__":true,"id":9417},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":9418},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9417":{"this":{"__isSmartRef__":true,"id":9339}},"9418":{"timestamp":{"__isSmartRef__":true,"id":9419},"user":"sebastianwoinar","tags":[]},"9419":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"9420":{"varMapping":{"__isSmartRef__":true,"id":9421},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":9422},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9421":{"this":{"__isSmartRef__":true,"id":9339}},"9422":{"timestamp":{"__isSmartRef__":true,"id":9423},"user":"sebastianwoinar","tags":[]},"9423":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"9424":{"varMapping":{"__isSmartRef__":true,"id":9425},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":9426},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9425":{"this":{"__isSmartRef__":true,"id":9339}},"9426":{"timestamp":{"__isSmartRef__":true,"id":9427},"user":"sebastianwoinar","tags":[]},"9427":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"9428":{"varMapping":{"__isSmartRef__":true,"id":9429},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":9434},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9429":{"this":{"__isSmartRef__":true,"id":9339},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9430}},"9430":{"$super":{"__isSmartRef__":true,"id":9431}},"9431":{"varMapping":{"__isSmartRef__":true,"id":9432},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9433},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9432":{"obj":{"__isSmartRef__":true,"id":9339},"name":"onMouseDown"},"9433":{},"9434":{"timestamp":{"__isSmartRef__":true,"id":9435},"user":"sebastianwoinar","tags":[]},"9435":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"9436":{"varMapping":{"__isSmartRef__":true,"id":9437},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":9438},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9437":{"this":{"__isSmartRef__":true,"id":9339}},"9438":{"timestamp":{"__isSmartRef__":true,"id":9439},"user":"sebastianwoinar","tags":[]},"9439":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"9440":{"varMapping":{"__isSmartRef__":true,"id":9441},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":9442},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9441":{"this":{"__isSmartRef__":true,"id":9339}},"9442":{"timestamp":{"__isSmartRef__":true,"id":9443},"user":"sebastianwoinar","tags":[]},"9443":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"9444":{"varMapping":{"__isSmartRef__":true,"id":9445},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":9446},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9445":{"this":{"__isSmartRef__":true,"id":9339}},"9446":{"timestamp":{"__isSmartRef__":true,"id":9447},"user":"sebastianwoinar","tags":[]},"9447":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"9448":{"varMapping":{"__isSmartRef__":true,"id":9449},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":9450},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9449":{"this":{"__isSmartRef__":true,"id":9339}},"9450":{"timestamp":{"__isSmartRef__":true,"id":9451},"user":"sebastianwoinar","tags":[]},"9451":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"9452":{"varMapping":{"__isSmartRef__":true,"id":9453},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":9454},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9453":{"this":{"__isSmartRef__":true,"id":9339}},"9454":{"timestamp":{"__isSmartRef__":true,"id":9455},"user":"sebastianwoinar","tags":[]},"9455":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"9456":{"varMapping":{"__isSmartRef__":true,"id":9457},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9458},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9457":{"this":{"__isSmartRef__":true,"id":9339}},"9458":{"timestamp":{"__isSmartRef__":true,"id":9459},"user":"sebastianwoinar","tags":[]},"9459":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"9460":{"varMapping":{"__isSmartRef__":true,"id":9461},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":9462},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9461":{"this":{"__isSmartRef__":true,"id":9339}},"9462":{"timestamp":{"__isSmartRef__":true,"id":9463},"user":"sebastianwoinar","tags":[]},"9463":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"9464":{"varMapping":{"__isSmartRef__":true,"id":9465},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9466},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9465":{"this":{"__isSmartRef__":true,"id":9339}},"9466":{"timestamp":{"__isSmartRef__":true,"id":9467},"user":"sebastianwoinar","tags":[]},"9467":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"9468":{"submorphs":[{"__isSmartRef__":true,"id":9469}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9486},"id":"F879156B-CBEA-4853-B28B-F6AC02C311BA","eventHandler":{"__isSmartRef__":true,"id":9487},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":9488},"name":"node32","partsBinMetaInfo":{"__isSmartRef__":true,"id":9489},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5493},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":8928},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9492},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(161.0,210.0)"},"9469":{"submorphs":[],"scripts":[],"id":"1AD1A6C1-DC68-404C-B42D-A91CEFAFB2D1","shape":{"__isSmartRef__":true,"id":9470},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":9471},"textChunks":[{"__isSmartRef__":true,"id":9483}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":9485},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":9468},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"9470":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"9471":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":9472},{"__isSmartRef__":true,"id":9474},{"__isSmartRef__":true,"id":9476},{"__isSmartRef__":true,"id":9478},{"__isSmartRef__":true,"id":9480}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":9482},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"9472":{"date":{"__isSmartRef__":true,"id":9473},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"9473":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"9474":{"date":{"__isSmartRef__":true,"id":9475},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"9475":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"9476":{"date":{"__isSmartRef__":true,"id":9477},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"9477":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"9478":{"date":{"__isSmartRef__":true,"id":9479},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"9479":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"9480":{"date":{"__isSmartRef__":true,"id":9481},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"9481":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"9482":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"9483":{"style":{"__isSmartRef__":true,"id":9484},"morph":{"__isSmartRef__":true,"id":9469},"chunkOwner":{"__isSmartRef__":true,"id":9469},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9484":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9485":{"morph":{"__isSmartRef__":true,"id":9469},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9486":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"9487":{"morph":{"__isSmartRef__":true,"id":9468},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9488":{},"9489":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":9490}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"9490":{"date":{"__isSmartRef__":true,"id":9491},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"9491":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"9492":{"buildChildNodes":{"__isSmartRef__":true,"id":9493},"getGameTree":{"__isSmartRef__":true,"id":9497},"getLevel":{"__isSmartRef__":true,"id":9501},"getLevelWeight":{"__isSmartRef__":true,"id":9505},"getWeight":{"__isSmartRef__":true,"id":9509},"setNode":{"__isSmartRef__":true,"id":9513},"setParent":{"__isSmartRef__":true,"id":9517},"getParent":{"__isSmartRef__":true,"id":9521},"deactivate":{"__isSmartRef__":true,"id":9525},"blink":{"__isSmartRef__":true,"id":9529},"ABPreturn":{"__isSmartRef__":true,"id":9533},"ABPstart":{"__isSmartRef__":true,"id":9537},"ABPcontinue":{"__isSmartRef__":true,"id":9541},"ABPshowValue":{"__isSmartRef__":true,"id":9545},"ABPgetValue":{"__isSmartRef__":true,"id":9549},"ABPhasChildNodes":{"__isSmartRef__":true,"id":9553},"onMouseDown":{"__isSmartRef__":true,"id":9557},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":9565},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":9569},"ABPmarkAsDone":{"__isSmartRef__":true,"id":9573},"ABPmarkAsActive":{"__isSmartRef__":true,"id":9577},"getStateMorph":{"__isSmartRef__":true,"id":9581},"showState":{"__isSmartRef__":true,"id":9585},"ABPfailHard":{"__isSmartRef__":true,"id":9589},"markFinalDrawWith":{"__isSmartRef__":true,"id":9593}},"9493":{"varMapping":{"__isSmartRef__":true,"id":9494},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":9495},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9494":{"this":{"__isSmartRef__":true,"id":9468}},"9495":{"timestamp":{"__isSmartRef__":true,"id":9496},"user":"sebastianwoinar","tags":[]},"9496":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"9497":{"varMapping":{"__isSmartRef__":true,"id":9498},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":9499},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9498":{"this":{"__isSmartRef__":true,"id":9468}},"9499":{"timestamp":{"__isSmartRef__":true,"id":9500},"user":"sebastianwoinar","tags":[]},"9500":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9501":{"varMapping":{"__isSmartRef__":true,"id":9502},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":9503},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9502":{"this":{"__isSmartRef__":true,"id":9468}},"9503":{"timestamp":{"__isSmartRef__":true,"id":9504},"user":"sebastianwoinar","tags":[]},"9504":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9505":{"varMapping":{"__isSmartRef__":true,"id":9506},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9507},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9506":{"this":{"__isSmartRef__":true,"id":9468}},"9507":{"timestamp":{"__isSmartRef__":true,"id":9508},"user":"sebastianwoinar","tags":[]},"9508":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9509":{"varMapping":{"__isSmartRef__":true,"id":9510},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":9511},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9510":{"this":{"__isSmartRef__":true,"id":9468}},"9511":{"timestamp":{"__isSmartRef__":true,"id":9512},"user":"sebastianwoinar","tags":[]},"9512":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9513":{"varMapping":{"__isSmartRef__":true,"id":9514},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":9515},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9514":{"this":{"__isSmartRef__":true,"id":9468}},"9515":{"timestamp":{"__isSmartRef__":true,"id":9516},"user":"sebastianwoinar","tags":[]},"9516":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9517":{"varMapping":{"__isSmartRef__":true,"id":9518},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":9519},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9518":{"this":{"__isSmartRef__":true,"id":9468}},"9519":{"timestamp":{"__isSmartRef__":true,"id":9520},"user":"sebastianwoinar","tags":[]},"9520":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9521":{"varMapping":{"__isSmartRef__":true,"id":9522},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":9523},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9522":{"this":{"__isSmartRef__":true,"id":9468}},"9523":{"timestamp":{"__isSmartRef__":true,"id":9524},"user":"sebastianwoinar","tags":[]},"9524":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"9525":{"varMapping":{"__isSmartRef__":true,"id":9526},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":9527},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9526":{"this":{"__isSmartRef__":true,"id":9468}},"9527":{"timestamp":{"__isSmartRef__":true,"id":9528},"user":"sebastianwoinar","tags":[]},"9528":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"9529":{"varMapping":{"__isSmartRef__":true,"id":9530},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":9531},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9530":{"this":{"__isSmartRef__":true,"id":9468}},"9531":{"timestamp":{"__isSmartRef__":true,"id":9532},"user":"sebastianwoinar","tags":[]},"9532":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"9533":{"varMapping":{"__isSmartRef__":true,"id":9534},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":9535},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9534":{"this":{"__isSmartRef__":true,"id":9468}},"9535":{"timestamp":{"__isSmartRef__":true,"id":9536},"user":"sebastianwoinar","tags":[]},"9536":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"9537":{"varMapping":{"__isSmartRef__":true,"id":9538},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":9539},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9538":{"this":{"__isSmartRef__":true,"id":9468}},"9539":{"timestamp":{"__isSmartRef__":true,"id":9540},"user":"sebastianwoinar","tags":[]},"9540":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"9541":{"varMapping":{"__isSmartRef__":true,"id":9542},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":9543},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9542":{"this":{"__isSmartRef__":true,"id":9468}},"9543":{"timestamp":{"__isSmartRef__":true,"id":9544},"user":"sebastianwoinar","tags":[]},"9544":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"9545":{"varMapping":{"__isSmartRef__":true,"id":9546},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":9547},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9546":{"this":{"__isSmartRef__":true,"id":9468}},"9547":{"timestamp":{"__isSmartRef__":true,"id":9548},"user":"sebastianwoinar","tags":[]},"9548":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"9549":{"varMapping":{"__isSmartRef__":true,"id":9550},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":9551},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9550":{"this":{"__isSmartRef__":true,"id":9468}},"9551":{"timestamp":{"__isSmartRef__":true,"id":9552},"user":"sebastianwoinar","tags":[]},"9552":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"9553":{"varMapping":{"__isSmartRef__":true,"id":9554},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":9555},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9554":{"this":{"__isSmartRef__":true,"id":9468}},"9555":{"timestamp":{"__isSmartRef__":true,"id":9556},"user":"sebastianwoinar","tags":[]},"9556":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"9557":{"varMapping":{"__isSmartRef__":true,"id":9558},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":9563},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9558":{"this":{"__isSmartRef__":true,"id":9468},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9559}},"9559":{"$super":{"__isSmartRef__":true,"id":9560}},"9560":{"varMapping":{"__isSmartRef__":true,"id":9561},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9562},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9561":{"obj":{"__isSmartRef__":true,"id":9468},"name":"onMouseDown"},"9562":{},"9563":{"timestamp":{"__isSmartRef__":true,"id":9564},"user":"sebastianwoinar","tags":[]},"9564":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"9565":{"varMapping":{"__isSmartRef__":true,"id":9566},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":9567},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9566":{"this":{"__isSmartRef__":true,"id":9468}},"9567":{"timestamp":{"__isSmartRef__":true,"id":9568},"user":"sebastianwoinar","tags":[]},"9568":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"9569":{"varMapping":{"__isSmartRef__":true,"id":9570},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":9571},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9570":{"this":{"__isSmartRef__":true,"id":9468}},"9571":{"timestamp":{"__isSmartRef__":true,"id":9572},"user":"sebastianwoinar","tags":[]},"9572":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"9573":{"varMapping":{"__isSmartRef__":true,"id":9574},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":9575},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9574":{"this":{"__isSmartRef__":true,"id":9468}},"9575":{"timestamp":{"__isSmartRef__":true,"id":9576},"user":"sebastianwoinar","tags":[]},"9576":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"9577":{"varMapping":{"__isSmartRef__":true,"id":9578},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":9579},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9578":{"this":{"__isSmartRef__":true,"id":9468}},"9579":{"timestamp":{"__isSmartRef__":true,"id":9580},"user":"sebastianwoinar","tags":[]},"9580":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"9581":{"varMapping":{"__isSmartRef__":true,"id":9582},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":9583},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9582":{"this":{"__isSmartRef__":true,"id":9468}},"9583":{"timestamp":{"__isSmartRef__":true,"id":9584},"user":"sebastianwoinar","tags":[]},"9584":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"9585":{"varMapping":{"__isSmartRef__":true,"id":9586},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9587},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9586":{"this":{"__isSmartRef__":true,"id":9468}},"9587":{"timestamp":{"__isSmartRef__":true,"id":9588},"user":"sebastianwoinar","tags":[]},"9588":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"9589":{"varMapping":{"__isSmartRef__":true,"id":9590},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":9591},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9590":{"this":{"__isSmartRef__":true,"id":9468}},"9591":{"timestamp":{"__isSmartRef__":true,"id":9592},"user":"sebastianwoinar","tags":[]},"9592":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"9593":{"varMapping":{"__isSmartRef__":true,"id":9594},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9595},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9594":{"this":{"__isSmartRef__":true,"id":9468}},"9595":{"timestamp":{"__isSmartRef__":true,"id":9596},"user":"sebastianwoinar","tags":[]},"9596":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"9597":{"buildChildNodes":{"__isSmartRef__":true,"id":9598},"getGameTree":{"__isSmartRef__":true,"id":9602},"getLevel":{"__isSmartRef__":true,"id":9606},"getLevelWeight":{"__isSmartRef__":true,"id":9610},"getWeight":{"__isSmartRef__":true,"id":9614},"setNode":{"__isSmartRef__":true,"id":9618},"setParent":{"__isSmartRef__":true,"id":9622},"getParent":{"__isSmartRef__":true,"id":9626},"deactivate":{"__isSmartRef__":true,"id":9630},"blink":{"__isSmartRef__":true,"id":9634},"ABPreturn":{"__isSmartRef__":true,"id":9638},"ABPstart":{"__isSmartRef__":true,"id":9642},"ABPcontinue":{"__isSmartRef__":true,"id":9646},"ABPshowValue":{"__isSmartRef__":true,"id":9650},"ABPgetValue":{"__isSmartRef__":true,"id":9654},"ABPhasChildNodes":{"__isSmartRef__":true,"id":9658},"onMouseDown":{"__isSmartRef__":true,"id":9662},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":9670},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":9674},"ABPmarkAsDone":{"__isSmartRef__":true,"id":9678},"ABPmarkAsActive":{"__isSmartRef__":true,"id":9682},"getStateMorph":{"__isSmartRef__":true,"id":9686},"showState":{"__isSmartRef__":true,"id":9690},"ABPfailHard":{"__isSmartRef__":true,"id":9694},"markFinalDrawWith":{"__isSmartRef__":true,"id":9698}},"9598":{"varMapping":{"__isSmartRef__":true,"id":9599},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":9600},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9599":{"this":{"__isSmartRef__":true,"id":8928}},"9600":{"timestamp":{"__isSmartRef__":true,"id":9601},"user":"sebastianwoinar","tags":[]},"9601":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"9602":{"varMapping":{"__isSmartRef__":true,"id":9603},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":9604},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9603":{"this":{"__isSmartRef__":true,"id":8928}},"9604":{"timestamp":{"__isSmartRef__":true,"id":9605},"user":"sebastianwoinar","tags":[]},"9605":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9606":{"varMapping":{"__isSmartRef__":true,"id":9607},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":9608},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9607":{"this":{"__isSmartRef__":true,"id":8928}},"9608":{"timestamp":{"__isSmartRef__":true,"id":9609},"user":"sebastianwoinar","tags":[]},"9609":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9610":{"varMapping":{"__isSmartRef__":true,"id":9611},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9612},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9611":{"this":{"__isSmartRef__":true,"id":8928}},"9612":{"timestamp":{"__isSmartRef__":true,"id":9613},"user":"sebastianwoinar","tags":[]},"9613":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9614":{"varMapping":{"__isSmartRef__":true,"id":9615},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":9616},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9615":{"this":{"__isSmartRef__":true,"id":8928}},"9616":{"timestamp":{"__isSmartRef__":true,"id":9617},"user":"sebastianwoinar","tags":[]},"9617":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9618":{"varMapping":{"__isSmartRef__":true,"id":9619},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":9620},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9619":{"this":{"__isSmartRef__":true,"id":8928}},"9620":{"timestamp":{"__isSmartRef__":true,"id":9621},"user":"sebastianwoinar","tags":[]},"9621":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9622":{"varMapping":{"__isSmartRef__":true,"id":9623},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":9624},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9623":{"this":{"__isSmartRef__":true,"id":8928}},"9624":{"timestamp":{"__isSmartRef__":true,"id":9625},"user":"sebastianwoinar","tags":[]},"9625":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9626":{"varMapping":{"__isSmartRef__":true,"id":9627},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":9628},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9627":{"this":{"__isSmartRef__":true,"id":8928}},"9628":{"timestamp":{"__isSmartRef__":true,"id":9629},"user":"sebastianwoinar","tags":[]},"9629":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"9630":{"varMapping":{"__isSmartRef__":true,"id":9631},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":9632},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9631":{"this":{"__isSmartRef__":true,"id":8928}},"9632":{"timestamp":{"__isSmartRef__":true,"id":9633},"user":"sebastianwoinar","tags":[]},"9633":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"9634":{"varMapping":{"__isSmartRef__":true,"id":9635},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":9636},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9635":{"this":{"__isSmartRef__":true,"id":8928}},"9636":{"timestamp":{"__isSmartRef__":true,"id":9637},"user":"sebastianwoinar","tags":[]},"9637":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"9638":{"varMapping":{"__isSmartRef__":true,"id":9639},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":9640},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9639":{"this":{"__isSmartRef__":true,"id":8928}},"9640":{"timestamp":{"__isSmartRef__":true,"id":9641},"user":"sebastianwoinar","tags":[]},"9641":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"9642":{"varMapping":{"__isSmartRef__":true,"id":9643},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":9644},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9643":{"this":{"__isSmartRef__":true,"id":8928}},"9644":{"timestamp":{"__isSmartRef__":true,"id":9645},"user":"sebastianwoinar","tags":[]},"9645":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"9646":{"varMapping":{"__isSmartRef__":true,"id":9647},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":9648},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9647":{"this":{"__isSmartRef__":true,"id":8928}},"9648":{"timestamp":{"__isSmartRef__":true,"id":9649},"user":"sebastianwoinar","tags":[]},"9649":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"9650":{"varMapping":{"__isSmartRef__":true,"id":9651},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":9652},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9651":{"this":{"__isSmartRef__":true,"id":8928}},"9652":{"timestamp":{"__isSmartRef__":true,"id":9653},"user":"sebastianwoinar","tags":[]},"9653":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"9654":{"varMapping":{"__isSmartRef__":true,"id":9655},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":9656},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9655":{"this":{"__isSmartRef__":true,"id":8928}},"9656":{"timestamp":{"__isSmartRef__":true,"id":9657},"user":"sebastianwoinar","tags":[]},"9657":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"9658":{"varMapping":{"__isSmartRef__":true,"id":9659},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":9660},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9659":{"this":{"__isSmartRef__":true,"id":8928}},"9660":{"timestamp":{"__isSmartRef__":true,"id":9661},"user":"sebastianwoinar","tags":[]},"9661":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"9662":{"varMapping":{"__isSmartRef__":true,"id":9663},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":9668},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9663":{"this":{"__isSmartRef__":true,"id":8928},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9664}},"9664":{"$super":{"__isSmartRef__":true,"id":9665}},"9665":{"varMapping":{"__isSmartRef__":true,"id":9666},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9667},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9666":{"obj":{"__isSmartRef__":true,"id":8928},"name":"onMouseDown"},"9667":{},"9668":{"timestamp":{"__isSmartRef__":true,"id":9669},"user":"sebastianwoinar","tags":[]},"9669":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"9670":{"varMapping":{"__isSmartRef__":true,"id":9671},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":9672},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9671":{"this":{"__isSmartRef__":true,"id":8928}},"9672":{"timestamp":{"__isSmartRef__":true,"id":9673},"user":"sebastianwoinar","tags":[]},"9673":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"9674":{"varMapping":{"__isSmartRef__":true,"id":9675},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":9676},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9675":{"this":{"__isSmartRef__":true,"id":8928}},"9676":{"timestamp":{"__isSmartRef__":true,"id":9677},"user":"sebastianwoinar","tags":[]},"9677":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"9678":{"varMapping":{"__isSmartRef__":true,"id":9679},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":9680},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9679":{"this":{"__isSmartRef__":true,"id":8928}},"9680":{"timestamp":{"__isSmartRef__":true,"id":9681},"user":"sebastianwoinar","tags":[]},"9681":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"9682":{"varMapping":{"__isSmartRef__":true,"id":9683},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":9684},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9683":{"this":{"__isSmartRef__":true,"id":8928}},"9684":{"timestamp":{"__isSmartRef__":true,"id":9685},"user":"sebastianwoinar","tags":[]},"9685":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"9686":{"varMapping":{"__isSmartRef__":true,"id":9687},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":9688},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9687":{"this":{"__isSmartRef__":true,"id":8928}},"9688":{"timestamp":{"__isSmartRef__":true,"id":9689},"user":"sebastianwoinar","tags":[]},"9689":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"9690":{"varMapping":{"__isSmartRef__":true,"id":9691},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9692},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9691":{"this":{"__isSmartRef__":true,"id":8928}},"9692":{"timestamp":{"__isSmartRef__":true,"id":9693},"user":"sebastianwoinar","tags":[]},"9693":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"9694":{"varMapping":{"__isSmartRef__":true,"id":9695},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":9696},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9695":{"this":{"__isSmartRef__":true,"id":8928}},"9696":{"timestamp":{"__isSmartRef__":true,"id":9697},"user":"sebastianwoinar","tags":[]},"9697":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"9698":{"varMapping":{"__isSmartRef__":true,"id":9699},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9700},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9699":{"this":{"__isSmartRef__":true,"id":8928}},"9700":{"timestamp":{"__isSmartRef__":true,"id":9701},"user":"sebastianwoinar","tags":[]},"9701":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"9702":{"submorphs":[{"__isSmartRef__":true,"id":9703}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9720},"id":"DA87E6E9-6F03-48F0-9A52-5E794BCDF07A","eventHandler":{"__isSmartRef__":true,"id":9721},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":9722},"name":"node33","partsBinMetaInfo":{"__isSmartRef__":true,"id":9723},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5495},"owner":{"__isSmartRef__":true,"id":5408},"childNodes":[{"__isSmartRef__":true,"id":9726},{"__isSmartRef__":true,"id":9855},{"__isSmartRef__":true,"id":9984},{"__isSmartRef__":true,"id":10113},{"__isSmartRef__":true,"id":10242},{"__isSmartRef__":true,"id":10371}],"parent":{"__isSmartRef__":true,"id":5937},"level":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10500},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(212.7,160.0)"},"9703":{"submorphs":[],"scripts":[],"id":"C7196DD8-8F05-4B06-98C4-D47EB45FD94A","shape":{"__isSmartRef__":true,"id":9704},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":9705},"textChunks":[{"__isSmartRef__":true,"id":9717}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":9719},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":9702},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"9704":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"9705":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":9706},{"__isSmartRef__":true,"id":9708},{"__isSmartRef__":true,"id":9710},{"__isSmartRef__":true,"id":9712},{"__isSmartRef__":true,"id":9714}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":9716},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"9706":{"date":{"__isSmartRef__":true,"id":9707},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"9707":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"9708":{"date":{"__isSmartRef__":true,"id":9709},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"9709":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"9710":{"date":{"__isSmartRef__":true,"id":9711},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"9711":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"9712":{"date":{"__isSmartRef__":true,"id":9713},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"9713":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"9714":{"date":{"__isSmartRef__":true,"id":9715},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"9715":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"9716":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"9717":{"style":{"__isSmartRef__":true,"id":9718},"morph":{"__isSmartRef__":true,"id":9703},"chunkOwner":{"__isSmartRef__":true,"id":9703},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9718":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9719":{"morph":{"__isSmartRef__":true,"id":9703},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9720":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"9721":{"morph":{"__isSmartRef__":true,"id":9702},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9722":{},"9723":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":9724}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"9724":{"date":{"__isSmartRef__":true,"id":9725},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"9725":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"9726":{"submorphs":[{"__isSmartRef__":true,"id":9727}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9744},"id":"C9E9C8CE-BBB3-410D-A79C-E22F824A4CCF","eventHandler":{"__isSmartRef__":true,"id":9745},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":9746},"name":"node34","partsBinMetaInfo":{"__isSmartRef__":true,"id":9747},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5497},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":9702},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9750},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(166.1,210.0)"},"9727":{"submorphs":[],"scripts":[],"id":"FB7881F2-20CB-491C-8991-7C712D12B371","shape":{"__isSmartRef__":true,"id":9728},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":9729},"textChunks":[{"__isSmartRef__":true,"id":9741}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":9743},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":9726},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"9728":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"9729":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":9730},{"__isSmartRef__":true,"id":9732},{"__isSmartRef__":true,"id":9734},{"__isSmartRef__":true,"id":9736},{"__isSmartRef__":true,"id":9738}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":9740},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"9730":{"date":{"__isSmartRef__":true,"id":9731},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"9731":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"9732":{"date":{"__isSmartRef__":true,"id":9733},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"9733":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"9734":{"date":{"__isSmartRef__":true,"id":9735},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"9735":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"9736":{"date":{"__isSmartRef__":true,"id":9737},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"9737":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"9738":{"date":{"__isSmartRef__":true,"id":9739},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"9739":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"9740":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"9741":{"style":{"__isSmartRef__":true,"id":9742},"morph":{"__isSmartRef__":true,"id":9727},"chunkOwner":{"__isSmartRef__":true,"id":9727},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9742":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9743":{"morph":{"__isSmartRef__":true,"id":9727},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9744":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"9745":{"morph":{"__isSmartRef__":true,"id":9726},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9746":{},"9747":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":9748}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"9748":{"date":{"__isSmartRef__":true,"id":9749},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"9749":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"9750":{"buildChildNodes":{"__isSmartRef__":true,"id":9751},"getGameTree":{"__isSmartRef__":true,"id":9755},"getLevel":{"__isSmartRef__":true,"id":9759},"getLevelWeight":{"__isSmartRef__":true,"id":9763},"getWeight":{"__isSmartRef__":true,"id":9767},"setNode":{"__isSmartRef__":true,"id":9771},"setParent":{"__isSmartRef__":true,"id":9775},"getParent":{"__isSmartRef__":true,"id":9779},"deactivate":{"__isSmartRef__":true,"id":9783},"blink":{"__isSmartRef__":true,"id":9787},"ABPreturn":{"__isSmartRef__":true,"id":9791},"ABPstart":{"__isSmartRef__":true,"id":9795},"ABPcontinue":{"__isSmartRef__":true,"id":9799},"ABPshowValue":{"__isSmartRef__":true,"id":9803},"ABPgetValue":{"__isSmartRef__":true,"id":9807},"ABPhasChildNodes":{"__isSmartRef__":true,"id":9811},"onMouseDown":{"__isSmartRef__":true,"id":9815},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":9823},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":9827},"ABPmarkAsDone":{"__isSmartRef__":true,"id":9831},"ABPmarkAsActive":{"__isSmartRef__":true,"id":9835},"getStateMorph":{"__isSmartRef__":true,"id":9839},"showState":{"__isSmartRef__":true,"id":9843},"ABPfailHard":{"__isSmartRef__":true,"id":9847},"markFinalDrawWith":{"__isSmartRef__":true,"id":9851}},"9751":{"varMapping":{"__isSmartRef__":true,"id":9752},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":9753},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9752":{"this":{"__isSmartRef__":true,"id":9726}},"9753":{"timestamp":{"__isSmartRef__":true,"id":9754},"user":"sebastianwoinar","tags":[]},"9754":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"9755":{"varMapping":{"__isSmartRef__":true,"id":9756},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":9757},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9756":{"this":{"__isSmartRef__":true,"id":9726}},"9757":{"timestamp":{"__isSmartRef__":true,"id":9758},"user":"sebastianwoinar","tags":[]},"9758":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9759":{"varMapping":{"__isSmartRef__":true,"id":9760},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":9761},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9760":{"this":{"__isSmartRef__":true,"id":9726}},"9761":{"timestamp":{"__isSmartRef__":true,"id":9762},"user":"sebastianwoinar","tags":[]},"9762":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9763":{"varMapping":{"__isSmartRef__":true,"id":9764},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9765},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9764":{"this":{"__isSmartRef__":true,"id":9726}},"9765":{"timestamp":{"__isSmartRef__":true,"id":9766},"user":"sebastianwoinar","tags":[]},"9766":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9767":{"varMapping":{"__isSmartRef__":true,"id":9768},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":9769},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9768":{"this":{"__isSmartRef__":true,"id":9726}},"9769":{"timestamp":{"__isSmartRef__":true,"id":9770},"user":"sebastianwoinar","tags":[]},"9770":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9771":{"varMapping":{"__isSmartRef__":true,"id":9772},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":9773},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9772":{"this":{"__isSmartRef__":true,"id":9726}},"9773":{"timestamp":{"__isSmartRef__":true,"id":9774},"user":"sebastianwoinar","tags":[]},"9774":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9775":{"varMapping":{"__isSmartRef__":true,"id":9776},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":9777},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9776":{"this":{"__isSmartRef__":true,"id":9726}},"9777":{"timestamp":{"__isSmartRef__":true,"id":9778},"user":"sebastianwoinar","tags":[]},"9778":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9779":{"varMapping":{"__isSmartRef__":true,"id":9780},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":9781},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9780":{"this":{"__isSmartRef__":true,"id":9726}},"9781":{"timestamp":{"__isSmartRef__":true,"id":9782},"user":"sebastianwoinar","tags":[]},"9782":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"9783":{"varMapping":{"__isSmartRef__":true,"id":9784},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":9785},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9784":{"this":{"__isSmartRef__":true,"id":9726}},"9785":{"timestamp":{"__isSmartRef__":true,"id":9786},"user":"sebastianwoinar","tags":[]},"9786":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"9787":{"varMapping":{"__isSmartRef__":true,"id":9788},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":9789},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9788":{"this":{"__isSmartRef__":true,"id":9726}},"9789":{"timestamp":{"__isSmartRef__":true,"id":9790},"user":"sebastianwoinar","tags":[]},"9790":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"9791":{"varMapping":{"__isSmartRef__":true,"id":9792},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":9793},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9792":{"this":{"__isSmartRef__":true,"id":9726}},"9793":{"timestamp":{"__isSmartRef__":true,"id":9794},"user":"sebastianwoinar","tags":[]},"9794":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"9795":{"varMapping":{"__isSmartRef__":true,"id":9796},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":9797},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9796":{"this":{"__isSmartRef__":true,"id":9726}},"9797":{"timestamp":{"__isSmartRef__":true,"id":9798},"user":"sebastianwoinar","tags":[]},"9798":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"9799":{"varMapping":{"__isSmartRef__":true,"id":9800},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":9801},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9800":{"this":{"__isSmartRef__":true,"id":9726}},"9801":{"timestamp":{"__isSmartRef__":true,"id":9802},"user":"sebastianwoinar","tags":[]},"9802":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"9803":{"varMapping":{"__isSmartRef__":true,"id":9804},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":9805},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9804":{"this":{"__isSmartRef__":true,"id":9726}},"9805":{"timestamp":{"__isSmartRef__":true,"id":9806},"user":"sebastianwoinar","tags":[]},"9806":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"9807":{"varMapping":{"__isSmartRef__":true,"id":9808},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":9809},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9808":{"this":{"__isSmartRef__":true,"id":9726}},"9809":{"timestamp":{"__isSmartRef__":true,"id":9810},"user":"sebastianwoinar","tags":[]},"9810":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"9811":{"varMapping":{"__isSmartRef__":true,"id":9812},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":9813},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9812":{"this":{"__isSmartRef__":true,"id":9726}},"9813":{"timestamp":{"__isSmartRef__":true,"id":9814},"user":"sebastianwoinar","tags":[]},"9814":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"9815":{"varMapping":{"__isSmartRef__":true,"id":9816},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":9821},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9816":{"this":{"__isSmartRef__":true,"id":9726},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9817}},"9817":{"$super":{"__isSmartRef__":true,"id":9818}},"9818":{"varMapping":{"__isSmartRef__":true,"id":9819},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9820},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9819":{"obj":{"__isSmartRef__":true,"id":9726},"name":"onMouseDown"},"9820":{},"9821":{"timestamp":{"__isSmartRef__":true,"id":9822},"user":"sebastianwoinar","tags":[]},"9822":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"9823":{"varMapping":{"__isSmartRef__":true,"id":9824},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":9825},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9824":{"this":{"__isSmartRef__":true,"id":9726}},"9825":{"timestamp":{"__isSmartRef__":true,"id":9826},"user":"sebastianwoinar","tags":[]},"9826":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"9827":{"varMapping":{"__isSmartRef__":true,"id":9828},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":9829},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9828":{"this":{"__isSmartRef__":true,"id":9726}},"9829":{"timestamp":{"__isSmartRef__":true,"id":9830},"user":"sebastianwoinar","tags":[]},"9830":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"9831":{"varMapping":{"__isSmartRef__":true,"id":9832},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":9833},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9832":{"this":{"__isSmartRef__":true,"id":9726}},"9833":{"timestamp":{"__isSmartRef__":true,"id":9834},"user":"sebastianwoinar","tags":[]},"9834":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"9835":{"varMapping":{"__isSmartRef__":true,"id":9836},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":9837},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9836":{"this":{"__isSmartRef__":true,"id":9726}},"9837":{"timestamp":{"__isSmartRef__":true,"id":9838},"user":"sebastianwoinar","tags":[]},"9838":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"9839":{"varMapping":{"__isSmartRef__":true,"id":9840},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":9841},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9840":{"this":{"__isSmartRef__":true,"id":9726}},"9841":{"timestamp":{"__isSmartRef__":true,"id":9842},"user":"sebastianwoinar","tags":[]},"9842":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"9843":{"varMapping":{"__isSmartRef__":true,"id":9844},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9845},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9844":{"this":{"__isSmartRef__":true,"id":9726}},"9845":{"timestamp":{"__isSmartRef__":true,"id":9846},"user":"sebastianwoinar","tags":[]},"9846":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"9847":{"varMapping":{"__isSmartRef__":true,"id":9848},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":9849},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9848":{"this":{"__isSmartRef__":true,"id":9726}},"9849":{"timestamp":{"__isSmartRef__":true,"id":9850},"user":"sebastianwoinar","tags":[]},"9850":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"9851":{"varMapping":{"__isSmartRef__":true,"id":9852},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9853},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9852":{"this":{"__isSmartRef__":true,"id":9726}},"9853":{"timestamp":{"__isSmartRef__":true,"id":9854},"user":"sebastianwoinar","tags":[]},"9854":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"9855":{"submorphs":[{"__isSmartRef__":true,"id":9856}],"scripts":[],"shape":{"__isSmartRef__":true,"id":9873},"id":"17ED5945-790E-48C6-A508-F783E2CB517A","eventHandler":{"__isSmartRef__":true,"id":9874},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":9875},"name":"node35","partsBinMetaInfo":{"__isSmartRef__":true,"id":9876},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5499},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":9702},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9879},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(171.3,210.0)"},"9856":{"submorphs":[],"scripts":[],"id":"709E52D8-0B7D-477B-B1DC-311ED23C00DF","shape":{"__isSmartRef__":true,"id":9857},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":9858},"textChunks":[{"__isSmartRef__":true,"id":9870}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":9872},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":9855},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"9857":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"9858":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":9859},{"__isSmartRef__":true,"id":9861},{"__isSmartRef__":true,"id":9863},{"__isSmartRef__":true,"id":9865},{"__isSmartRef__":true,"id":9867}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":9869},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"9859":{"date":{"__isSmartRef__":true,"id":9860},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"9860":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"9861":{"date":{"__isSmartRef__":true,"id":9862},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"9862":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"9863":{"date":{"__isSmartRef__":true,"id":9864},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"9864":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"9865":{"date":{"__isSmartRef__":true,"id":9866},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"9866":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"9867":{"date":{"__isSmartRef__":true,"id":9868},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"9868":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"9869":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"9870":{"style":{"__isSmartRef__":true,"id":9871},"morph":{"__isSmartRef__":true,"id":9856},"chunkOwner":{"__isSmartRef__":true,"id":9856},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9871":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9872":{"morph":{"__isSmartRef__":true,"id":9856},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9873":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"9874":{"morph":{"__isSmartRef__":true,"id":9855},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9875":{},"9876":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":9877}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"9877":{"date":{"__isSmartRef__":true,"id":9878},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"9878":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"9879":{"buildChildNodes":{"__isSmartRef__":true,"id":9880},"getGameTree":{"__isSmartRef__":true,"id":9884},"getLevel":{"__isSmartRef__":true,"id":9888},"getLevelWeight":{"__isSmartRef__":true,"id":9892},"getWeight":{"__isSmartRef__":true,"id":9896},"setNode":{"__isSmartRef__":true,"id":9900},"setParent":{"__isSmartRef__":true,"id":9904},"getParent":{"__isSmartRef__":true,"id":9908},"deactivate":{"__isSmartRef__":true,"id":9912},"blink":{"__isSmartRef__":true,"id":9916},"ABPreturn":{"__isSmartRef__":true,"id":9920},"ABPstart":{"__isSmartRef__":true,"id":9924},"ABPcontinue":{"__isSmartRef__":true,"id":9928},"ABPshowValue":{"__isSmartRef__":true,"id":9932},"ABPgetValue":{"__isSmartRef__":true,"id":9936},"ABPhasChildNodes":{"__isSmartRef__":true,"id":9940},"onMouseDown":{"__isSmartRef__":true,"id":9944},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":9952},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":9956},"ABPmarkAsDone":{"__isSmartRef__":true,"id":9960},"ABPmarkAsActive":{"__isSmartRef__":true,"id":9964},"getStateMorph":{"__isSmartRef__":true,"id":9968},"showState":{"__isSmartRef__":true,"id":9972},"ABPfailHard":{"__isSmartRef__":true,"id":9976},"markFinalDrawWith":{"__isSmartRef__":true,"id":9980}},"9880":{"varMapping":{"__isSmartRef__":true,"id":9881},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":9882},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9881":{"this":{"__isSmartRef__":true,"id":9855}},"9882":{"timestamp":{"__isSmartRef__":true,"id":9883},"user":"sebastianwoinar","tags":[]},"9883":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"9884":{"varMapping":{"__isSmartRef__":true,"id":9885},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":9886},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9885":{"this":{"__isSmartRef__":true,"id":9855}},"9886":{"timestamp":{"__isSmartRef__":true,"id":9887},"user":"sebastianwoinar","tags":[]},"9887":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9888":{"varMapping":{"__isSmartRef__":true,"id":9889},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":9890},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9889":{"this":{"__isSmartRef__":true,"id":9855}},"9890":{"timestamp":{"__isSmartRef__":true,"id":9891},"user":"sebastianwoinar","tags":[]},"9891":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9892":{"varMapping":{"__isSmartRef__":true,"id":9893},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9894},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9893":{"this":{"__isSmartRef__":true,"id":9855}},"9894":{"timestamp":{"__isSmartRef__":true,"id":9895},"user":"sebastianwoinar","tags":[]},"9895":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9896":{"varMapping":{"__isSmartRef__":true,"id":9897},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":9898},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9897":{"this":{"__isSmartRef__":true,"id":9855}},"9898":{"timestamp":{"__isSmartRef__":true,"id":9899},"user":"sebastianwoinar","tags":[]},"9899":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9900":{"varMapping":{"__isSmartRef__":true,"id":9901},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":9902},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9901":{"this":{"__isSmartRef__":true,"id":9855}},"9902":{"timestamp":{"__isSmartRef__":true,"id":9903},"user":"sebastianwoinar","tags":[]},"9903":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9904":{"varMapping":{"__isSmartRef__":true,"id":9905},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":9906},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9905":{"this":{"__isSmartRef__":true,"id":9855}},"9906":{"timestamp":{"__isSmartRef__":true,"id":9907},"user":"sebastianwoinar","tags":[]},"9907":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"9908":{"varMapping":{"__isSmartRef__":true,"id":9909},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":9910},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9909":{"this":{"__isSmartRef__":true,"id":9855}},"9910":{"timestamp":{"__isSmartRef__":true,"id":9911},"user":"sebastianwoinar","tags":[]},"9911":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"9912":{"varMapping":{"__isSmartRef__":true,"id":9913},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":9914},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9913":{"this":{"__isSmartRef__":true,"id":9855}},"9914":{"timestamp":{"__isSmartRef__":true,"id":9915},"user":"sebastianwoinar","tags":[]},"9915":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"9916":{"varMapping":{"__isSmartRef__":true,"id":9917},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":9918},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9917":{"this":{"__isSmartRef__":true,"id":9855}},"9918":{"timestamp":{"__isSmartRef__":true,"id":9919},"user":"sebastianwoinar","tags":[]},"9919":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"9920":{"varMapping":{"__isSmartRef__":true,"id":9921},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":9922},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9921":{"this":{"__isSmartRef__":true,"id":9855}},"9922":{"timestamp":{"__isSmartRef__":true,"id":9923},"user":"sebastianwoinar","tags":[]},"9923":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"9924":{"varMapping":{"__isSmartRef__":true,"id":9925},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":9926},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9925":{"this":{"__isSmartRef__":true,"id":9855}},"9926":{"timestamp":{"__isSmartRef__":true,"id":9927},"user":"sebastianwoinar","tags":[]},"9927":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"9928":{"varMapping":{"__isSmartRef__":true,"id":9929},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":9930},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9929":{"this":{"__isSmartRef__":true,"id":9855}},"9930":{"timestamp":{"__isSmartRef__":true,"id":9931},"user":"sebastianwoinar","tags":[]},"9931":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"9932":{"varMapping":{"__isSmartRef__":true,"id":9933},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":9934},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9933":{"this":{"__isSmartRef__":true,"id":9855}},"9934":{"timestamp":{"__isSmartRef__":true,"id":9935},"user":"sebastianwoinar","tags":[]},"9935":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"9936":{"varMapping":{"__isSmartRef__":true,"id":9937},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":9938},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9937":{"this":{"__isSmartRef__":true,"id":9855}},"9938":{"timestamp":{"__isSmartRef__":true,"id":9939},"user":"sebastianwoinar","tags":[]},"9939":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"9940":{"varMapping":{"__isSmartRef__":true,"id":9941},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":9942},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9941":{"this":{"__isSmartRef__":true,"id":9855}},"9942":{"timestamp":{"__isSmartRef__":true,"id":9943},"user":"sebastianwoinar","tags":[]},"9943":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"9944":{"varMapping":{"__isSmartRef__":true,"id":9945},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":9950},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9945":{"this":{"__isSmartRef__":true,"id":9855},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9946}},"9946":{"$super":{"__isSmartRef__":true,"id":9947}},"9947":{"varMapping":{"__isSmartRef__":true,"id":9948},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9949},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9948":{"obj":{"__isSmartRef__":true,"id":9855},"name":"onMouseDown"},"9949":{},"9950":{"timestamp":{"__isSmartRef__":true,"id":9951},"user":"sebastianwoinar","tags":[]},"9951":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"9952":{"varMapping":{"__isSmartRef__":true,"id":9953},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":9954},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9953":{"this":{"__isSmartRef__":true,"id":9855}},"9954":{"timestamp":{"__isSmartRef__":true,"id":9955},"user":"sebastianwoinar","tags":[]},"9955":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"9956":{"varMapping":{"__isSmartRef__":true,"id":9957},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":9958},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9957":{"this":{"__isSmartRef__":true,"id":9855}},"9958":{"timestamp":{"__isSmartRef__":true,"id":9959},"user":"sebastianwoinar","tags":[]},"9959":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"9960":{"varMapping":{"__isSmartRef__":true,"id":9961},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":9962},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9961":{"this":{"__isSmartRef__":true,"id":9855}},"9962":{"timestamp":{"__isSmartRef__":true,"id":9963},"user":"sebastianwoinar","tags":[]},"9963":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"9964":{"varMapping":{"__isSmartRef__":true,"id":9965},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":9966},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9965":{"this":{"__isSmartRef__":true,"id":9855}},"9966":{"timestamp":{"__isSmartRef__":true,"id":9967},"user":"sebastianwoinar","tags":[]},"9967":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"9968":{"varMapping":{"__isSmartRef__":true,"id":9969},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":9970},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9969":{"this":{"__isSmartRef__":true,"id":9855}},"9970":{"timestamp":{"__isSmartRef__":true,"id":9971},"user":"sebastianwoinar","tags":[]},"9971":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"9972":{"varMapping":{"__isSmartRef__":true,"id":9973},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9974},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9973":{"this":{"__isSmartRef__":true,"id":9855}},"9974":{"timestamp":{"__isSmartRef__":true,"id":9975},"user":"sebastianwoinar","tags":[]},"9975":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"9976":{"varMapping":{"__isSmartRef__":true,"id":9977},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":9978},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9977":{"this":{"__isSmartRef__":true,"id":9855}},"9978":{"timestamp":{"__isSmartRef__":true,"id":9979},"user":"sebastianwoinar","tags":[]},"9979":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"9980":{"varMapping":{"__isSmartRef__":true,"id":9981},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9982},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9981":{"this":{"__isSmartRef__":true,"id":9855}},"9982":{"timestamp":{"__isSmartRef__":true,"id":9983},"user":"sebastianwoinar","tags":[]},"9983":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"9984":{"submorphs":[{"__isSmartRef__":true,"id":9985}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10002},"id":"7E315713-C9DE-4C69-9FAC-59CA9E3A43A1","eventHandler":{"__isSmartRef__":true,"id":10003},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":10004},"name":"node36","partsBinMetaInfo":{"__isSmartRef__":true,"id":10005},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5501},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":9702},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10008},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(176.5,210.0)"},"9985":{"submorphs":[],"scripts":[],"id":"F7302FE6-710E-4CB3-991F-C274BDCA6E63","shape":{"__isSmartRef__":true,"id":9986},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":9987},"textChunks":[{"__isSmartRef__":true,"id":9999}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":10001},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":9984},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"9986":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"9987":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":9988},{"__isSmartRef__":true,"id":9990},{"__isSmartRef__":true,"id":9992},{"__isSmartRef__":true,"id":9994},{"__isSmartRef__":true,"id":9996}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":9998},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"9988":{"date":{"__isSmartRef__":true,"id":9989},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"9989":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"9990":{"date":{"__isSmartRef__":true,"id":9991},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"9991":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"9992":{"date":{"__isSmartRef__":true,"id":9993},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"9993":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"9994":{"date":{"__isSmartRef__":true,"id":9995},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"9995":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"9996":{"date":{"__isSmartRef__":true,"id":9997},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"9997":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"9998":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"9999":{"style":{"__isSmartRef__":true,"id":10000},"morph":{"__isSmartRef__":true,"id":9985},"chunkOwner":{"__isSmartRef__":true,"id":9985},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10000":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10001":{"morph":{"__isSmartRef__":true,"id":9985},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10002":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"10003":{"morph":{"__isSmartRef__":true,"id":9984},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10004":{},"10005":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":10006}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"10006":{"date":{"__isSmartRef__":true,"id":10007},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"10007":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"10008":{"buildChildNodes":{"__isSmartRef__":true,"id":10009},"getGameTree":{"__isSmartRef__":true,"id":10013},"getLevel":{"__isSmartRef__":true,"id":10017},"getLevelWeight":{"__isSmartRef__":true,"id":10021},"getWeight":{"__isSmartRef__":true,"id":10025},"setNode":{"__isSmartRef__":true,"id":10029},"setParent":{"__isSmartRef__":true,"id":10033},"getParent":{"__isSmartRef__":true,"id":10037},"deactivate":{"__isSmartRef__":true,"id":10041},"blink":{"__isSmartRef__":true,"id":10045},"ABPreturn":{"__isSmartRef__":true,"id":10049},"ABPstart":{"__isSmartRef__":true,"id":10053},"ABPcontinue":{"__isSmartRef__":true,"id":10057},"ABPshowValue":{"__isSmartRef__":true,"id":10061},"ABPgetValue":{"__isSmartRef__":true,"id":10065},"ABPhasChildNodes":{"__isSmartRef__":true,"id":10069},"onMouseDown":{"__isSmartRef__":true,"id":10073},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":10081},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":10085},"ABPmarkAsDone":{"__isSmartRef__":true,"id":10089},"ABPmarkAsActive":{"__isSmartRef__":true,"id":10093},"getStateMorph":{"__isSmartRef__":true,"id":10097},"showState":{"__isSmartRef__":true,"id":10101},"ABPfailHard":{"__isSmartRef__":true,"id":10105},"markFinalDrawWith":{"__isSmartRef__":true,"id":10109}},"10009":{"varMapping":{"__isSmartRef__":true,"id":10010},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":10011},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10010":{"this":{"__isSmartRef__":true,"id":9984}},"10011":{"timestamp":{"__isSmartRef__":true,"id":10012},"user":"sebastianwoinar","tags":[]},"10012":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"10013":{"varMapping":{"__isSmartRef__":true,"id":10014},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":10015},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10014":{"this":{"__isSmartRef__":true,"id":9984}},"10015":{"timestamp":{"__isSmartRef__":true,"id":10016},"user":"sebastianwoinar","tags":[]},"10016":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10017":{"varMapping":{"__isSmartRef__":true,"id":10018},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":10019},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10018":{"this":{"__isSmartRef__":true,"id":9984}},"10019":{"timestamp":{"__isSmartRef__":true,"id":10020},"user":"sebastianwoinar","tags":[]},"10020":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10021":{"varMapping":{"__isSmartRef__":true,"id":10022},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10023},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10022":{"this":{"__isSmartRef__":true,"id":9984}},"10023":{"timestamp":{"__isSmartRef__":true,"id":10024},"user":"sebastianwoinar","tags":[]},"10024":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10025":{"varMapping":{"__isSmartRef__":true,"id":10026},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":10027},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10026":{"this":{"__isSmartRef__":true,"id":9984}},"10027":{"timestamp":{"__isSmartRef__":true,"id":10028},"user":"sebastianwoinar","tags":[]},"10028":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10029":{"varMapping":{"__isSmartRef__":true,"id":10030},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":10031},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10030":{"this":{"__isSmartRef__":true,"id":9984}},"10031":{"timestamp":{"__isSmartRef__":true,"id":10032},"user":"sebastianwoinar","tags":[]},"10032":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10033":{"varMapping":{"__isSmartRef__":true,"id":10034},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":10035},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10034":{"this":{"__isSmartRef__":true,"id":9984}},"10035":{"timestamp":{"__isSmartRef__":true,"id":10036},"user":"sebastianwoinar","tags":[]},"10036":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10037":{"varMapping":{"__isSmartRef__":true,"id":10038},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":10039},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10038":{"this":{"__isSmartRef__":true,"id":9984}},"10039":{"timestamp":{"__isSmartRef__":true,"id":10040},"user":"sebastianwoinar","tags":[]},"10040":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"10041":{"varMapping":{"__isSmartRef__":true,"id":10042},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":10043},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10042":{"this":{"__isSmartRef__":true,"id":9984}},"10043":{"timestamp":{"__isSmartRef__":true,"id":10044},"user":"sebastianwoinar","tags":[]},"10044":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"10045":{"varMapping":{"__isSmartRef__":true,"id":10046},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":10047},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10046":{"this":{"__isSmartRef__":true,"id":9984}},"10047":{"timestamp":{"__isSmartRef__":true,"id":10048},"user":"sebastianwoinar","tags":[]},"10048":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"10049":{"varMapping":{"__isSmartRef__":true,"id":10050},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":10051},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10050":{"this":{"__isSmartRef__":true,"id":9984}},"10051":{"timestamp":{"__isSmartRef__":true,"id":10052},"user":"sebastianwoinar","tags":[]},"10052":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"10053":{"varMapping":{"__isSmartRef__":true,"id":10054},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":10055},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10054":{"this":{"__isSmartRef__":true,"id":9984}},"10055":{"timestamp":{"__isSmartRef__":true,"id":10056},"user":"sebastianwoinar","tags":[]},"10056":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"10057":{"varMapping":{"__isSmartRef__":true,"id":10058},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":10059},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10058":{"this":{"__isSmartRef__":true,"id":9984}},"10059":{"timestamp":{"__isSmartRef__":true,"id":10060},"user":"sebastianwoinar","tags":[]},"10060":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"10061":{"varMapping":{"__isSmartRef__":true,"id":10062},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":10063},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10062":{"this":{"__isSmartRef__":true,"id":9984}},"10063":{"timestamp":{"__isSmartRef__":true,"id":10064},"user":"sebastianwoinar","tags":[]},"10064":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"10065":{"varMapping":{"__isSmartRef__":true,"id":10066},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":10067},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10066":{"this":{"__isSmartRef__":true,"id":9984}},"10067":{"timestamp":{"__isSmartRef__":true,"id":10068},"user":"sebastianwoinar","tags":[]},"10068":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"10069":{"varMapping":{"__isSmartRef__":true,"id":10070},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":10071},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10070":{"this":{"__isSmartRef__":true,"id":9984}},"10071":{"timestamp":{"__isSmartRef__":true,"id":10072},"user":"sebastianwoinar","tags":[]},"10072":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"10073":{"varMapping":{"__isSmartRef__":true,"id":10074},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":10079},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10074":{"this":{"__isSmartRef__":true,"id":9984},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10075}},"10075":{"$super":{"__isSmartRef__":true,"id":10076}},"10076":{"varMapping":{"__isSmartRef__":true,"id":10077},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10078},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10077":{"obj":{"__isSmartRef__":true,"id":9984},"name":"onMouseDown"},"10078":{},"10079":{"timestamp":{"__isSmartRef__":true,"id":10080},"user":"sebastianwoinar","tags":[]},"10080":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"10081":{"varMapping":{"__isSmartRef__":true,"id":10082},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":10083},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10082":{"this":{"__isSmartRef__":true,"id":9984}},"10083":{"timestamp":{"__isSmartRef__":true,"id":10084},"user":"sebastianwoinar","tags":[]},"10084":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"10085":{"varMapping":{"__isSmartRef__":true,"id":10086},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":10087},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10086":{"this":{"__isSmartRef__":true,"id":9984}},"10087":{"timestamp":{"__isSmartRef__":true,"id":10088},"user":"sebastianwoinar","tags":[]},"10088":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"10089":{"varMapping":{"__isSmartRef__":true,"id":10090},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":10091},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10090":{"this":{"__isSmartRef__":true,"id":9984}},"10091":{"timestamp":{"__isSmartRef__":true,"id":10092},"user":"sebastianwoinar","tags":[]},"10092":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"10093":{"varMapping":{"__isSmartRef__":true,"id":10094},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":10095},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10094":{"this":{"__isSmartRef__":true,"id":9984}},"10095":{"timestamp":{"__isSmartRef__":true,"id":10096},"user":"sebastianwoinar","tags":[]},"10096":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"10097":{"varMapping":{"__isSmartRef__":true,"id":10098},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":10099},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10098":{"this":{"__isSmartRef__":true,"id":9984}},"10099":{"timestamp":{"__isSmartRef__":true,"id":10100},"user":"sebastianwoinar","tags":[]},"10100":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"10101":{"varMapping":{"__isSmartRef__":true,"id":10102},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10103},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10102":{"this":{"__isSmartRef__":true,"id":9984}},"10103":{"timestamp":{"__isSmartRef__":true,"id":10104},"user":"sebastianwoinar","tags":[]},"10104":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"10105":{"varMapping":{"__isSmartRef__":true,"id":10106},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":10107},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10106":{"this":{"__isSmartRef__":true,"id":9984}},"10107":{"timestamp":{"__isSmartRef__":true,"id":10108},"user":"sebastianwoinar","tags":[]},"10108":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"10109":{"varMapping":{"__isSmartRef__":true,"id":10110},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10111},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10110":{"this":{"__isSmartRef__":true,"id":9984}},"10111":{"timestamp":{"__isSmartRef__":true,"id":10112},"user":"sebastianwoinar","tags":[]},"10112":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"10113":{"submorphs":[{"__isSmartRef__":true,"id":10114}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10131},"id":"07F1A129-407B-4BEF-9138-A0962643C513","eventHandler":{"__isSmartRef__":true,"id":10132},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":10133},"name":"node37","partsBinMetaInfo":{"__isSmartRef__":true,"id":10134},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5503},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":9702},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10137},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(181.7,210.0)"},"10114":{"submorphs":[],"scripts":[],"id":"B5FD0D83-951D-4A35-90BC-B5732ACA51E1","shape":{"__isSmartRef__":true,"id":10115},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":10116},"textChunks":[{"__isSmartRef__":true,"id":10128}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":10130},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":10113},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"10115":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"10116":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":10117},{"__isSmartRef__":true,"id":10119},{"__isSmartRef__":true,"id":10121},{"__isSmartRef__":true,"id":10123},{"__isSmartRef__":true,"id":10125}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":10127},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"10117":{"date":{"__isSmartRef__":true,"id":10118},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"10118":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"10119":{"date":{"__isSmartRef__":true,"id":10120},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"10120":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"10121":{"date":{"__isSmartRef__":true,"id":10122},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"10122":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"10123":{"date":{"__isSmartRef__":true,"id":10124},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"10124":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"10125":{"date":{"__isSmartRef__":true,"id":10126},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"10126":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"10127":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"10128":{"style":{"__isSmartRef__":true,"id":10129},"morph":{"__isSmartRef__":true,"id":10114},"chunkOwner":{"__isSmartRef__":true,"id":10114},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10129":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10130":{"morph":{"__isSmartRef__":true,"id":10114},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10131":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"10132":{"morph":{"__isSmartRef__":true,"id":10113},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10133":{},"10134":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":10135}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"10135":{"date":{"__isSmartRef__":true,"id":10136},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"10136":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"10137":{"buildChildNodes":{"__isSmartRef__":true,"id":10138},"getGameTree":{"__isSmartRef__":true,"id":10142},"getLevel":{"__isSmartRef__":true,"id":10146},"getLevelWeight":{"__isSmartRef__":true,"id":10150},"getWeight":{"__isSmartRef__":true,"id":10154},"setNode":{"__isSmartRef__":true,"id":10158},"setParent":{"__isSmartRef__":true,"id":10162},"getParent":{"__isSmartRef__":true,"id":10166},"deactivate":{"__isSmartRef__":true,"id":10170},"blink":{"__isSmartRef__":true,"id":10174},"ABPreturn":{"__isSmartRef__":true,"id":10178},"ABPstart":{"__isSmartRef__":true,"id":10182},"ABPcontinue":{"__isSmartRef__":true,"id":10186},"ABPshowValue":{"__isSmartRef__":true,"id":10190},"ABPgetValue":{"__isSmartRef__":true,"id":10194},"ABPhasChildNodes":{"__isSmartRef__":true,"id":10198},"onMouseDown":{"__isSmartRef__":true,"id":10202},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":10210},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":10214},"ABPmarkAsDone":{"__isSmartRef__":true,"id":10218},"ABPmarkAsActive":{"__isSmartRef__":true,"id":10222},"getStateMorph":{"__isSmartRef__":true,"id":10226},"showState":{"__isSmartRef__":true,"id":10230},"ABPfailHard":{"__isSmartRef__":true,"id":10234},"markFinalDrawWith":{"__isSmartRef__":true,"id":10238}},"10138":{"varMapping":{"__isSmartRef__":true,"id":10139},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":10140},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10139":{"this":{"__isSmartRef__":true,"id":10113}},"10140":{"timestamp":{"__isSmartRef__":true,"id":10141},"user":"sebastianwoinar","tags":[]},"10141":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"10142":{"varMapping":{"__isSmartRef__":true,"id":10143},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":10144},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10143":{"this":{"__isSmartRef__":true,"id":10113}},"10144":{"timestamp":{"__isSmartRef__":true,"id":10145},"user":"sebastianwoinar","tags":[]},"10145":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10146":{"varMapping":{"__isSmartRef__":true,"id":10147},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":10148},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10147":{"this":{"__isSmartRef__":true,"id":10113}},"10148":{"timestamp":{"__isSmartRef__":true,"id":10149},"user":"sebastianwoinar","tags":[]},"10149":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10150":{"varMapping":{"__isSmartRef__":true,"id":10151},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10152},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10151":{"this":{"__isSmartRef__":true,"id":10113}},"10152":{"timestamp":{"__isSmartRef__":true,"id":10153},"user":"sebastianwoinar","tags":[]},"10153":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10154":{"varMapping":{"__isSmartRef__":true,"id":10155},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":10156},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10155":{"this":{"__isSmartRef__":true,"id":10113}},"10156":{"timestamp":{"__isSmartRef__":true,"id":10157},"user":"sebastianwoinar","tags":[]},"10157":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10158":{"varMapping":{"__isSmartRef__":true,"id":10159},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":10160},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10159":{"this":{"__isSmartRef__":true,"id":10113}},"10160":{"timestamp":{"__isSmartRef__":true,"id":10161},"user":"sebastianwoinar","tags":[]},"10161":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10162":{"varMapping":{"__isSmartRef__":true,"id":10163},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":10164},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10163":{"this":{"__isSmartRef__":true,"id":10113}},"10164":{"timestamp":{"__isSmartRef__":true,"id":10165},"user":"sebastianwoinar","tags":[]},"10165":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10166":{"varMapping":{"__isSmartRef__":true,"id":10167},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":10168},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10167":{"this":{"__isSmartRef__":true,"id":10113}},"10168":{"timestamp":{"__isSmartRef__":true,"id":10169},"user":"sebastianwoinar","tags":[]},"10169":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"10170":{"varMapping":{"__isSmartRef__":true,"id":10171},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":10172},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10171":{"this":{"__isSmartRef__":true,"id":10113}},"10172":{"timestamp":{"__isSmartRef__":true,"id":10173},"user":"sebastianwoinar","tags":[]},"10173":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"10174":{"varMapping":{"__isSmartRef__":true,"id":10175},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":10176},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10175":{"this":{"__isSmartRef__":true,"id":10113}},"10176":{"timestamp":{"__isSmartRef__":true,"id":10177},"user":"sebastianwoinar","tags":[]},"10177":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"10178":{"varMapping":{"__isSmartRef__":true,"id":10179},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":10180},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10179":{"this":{"__isSmartRef__":true,"id":10113}},"10180":{"timestamp":{"__isSmartRef__":true,"id":10181},"user":"sebastianwoinar","tags":[]},"10181":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"10182":{"varMapping":{"__isSmartRef__":true,"id":10183},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":10184},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10183":{"this":{"__isSmartRef__":true,"id":10113}},"10184":{"timestamp":{"__isSmartRef__":true,"id":10185},"user":"sebastianwoinar","tags":[]},"10185":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"10186":{"varMapping":{"__isSmartRef__":true,"id":10187},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":10188},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10187":{"this":{"__isSmartRef__":true,"id":10113}},"10188":{"timestamp":{"__isSmartRef__":true,"id":10189},"user":"sebastianwoinar","tags":[]},"10189":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"10190":{"varMapping":{"__isSmartRef__":true,"id":10191},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":10192},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10191":{"this":{"__isSmartRef__":true,"id":10113}},"10192":{"timestamp":{"__isSmartRef__":true,"id":10193},"user":"sebastianwoinar","tags":[]},"10193":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"10194":{"varMapping":{"__isSmartRef__":true,"id":10195},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":10196},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10195":{"this":{"__isSmartRef__":true,"id":10113}},"10196":{"timestamp":{"__isSmartRef__":true,"id":10197},"user":"sebastianwoinar","tags":[]},"10197":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"10198":{"varMapping":{"__isSmartRef__":true,"id":10199},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":10200},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10199":{"this":{"__isSmartRef__":true,"id":10113}},"10200":{"timestamp":{"__isSmartRef__":true,"id":10201},"user":"sebastianwoinar","tags":[]},"10201":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"10202":{"varMapping":{"__isSmartRef__":true,"id":10203},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":10208},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10203":{"this":{"__isSmartRef__":true,"id":10113},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10204}},"10204":{"$super":{"__isSmartRef__":true,"id":10205}},"10205":{"varMapping":{"__isSmartRef__":true,"id":10206},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10207},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10206":{"obj":{"__isSmartRef__":true,"id":10113},"name":"onMouseDown"},"10207":{},"10208":{"timestamp":{"__isSmartRef__":true,"id":10209},"user":"sebastianwoinar","tags":[]},"10209":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"10210":{"varMapping":{"__isSmartRef__":true,"id":10211},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":10212},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10211":{"this":{"__isSmartRef__":true,"id":10113}},"10212":{"timestamp":{"__isSmartRef__":true,"id":10213},"user":"sebastianwoinar","tags":[]},"10213":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"10214":{"varMapping":{"__isSmartRef__":true,"id":10215},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":10216},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10215":{"this":{"__isSmartRef__":true,"id":10113}},"10216":{"timestamp":{"__isSmartRef__":true,"id":10217},"user":"sebastianwoinar","tags":[]},"10217":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"10218":{"varMapping":{"__isSmartRef__":true,"id":10219},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":10220},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10219":{"this":{"__isSmartRef__":true,"id":10113}},"10220":{"timestamp":{"__isSmartRef__":true,"id":10221},"user":"sebastianwoinar","tags":[]},"10221":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"10222":{"varMapping":{"__isSmartRef__":true,"id":10223},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":10224},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10223":{"this":{"__isSmartRef__":true,"id":10113}},"10224":{"timestamp":{"__isSmartRef__":true,"id":10225},"user":"sebastianwoinar","tags":[]},"10225":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"10226":{"varMapping":{"__isSmartRef__":true,"id":10227},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":10228},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10227":{"this":{"__isSmartRef__":true,"id":10113}},"10228":{"timestamp":{"__isSmartRef__":true,"id":10229},"user":"sebastianwoinar","tags":[]},"10229":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"10230":{"varMapping":{"__isSmartRef__":true,"id":10231},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10232},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10231":{"this":{"__isSmartRef__":true,"id":10113}},"10232":{"timestamp":{"__isSmartRef__":true,"id":10233},"user":"sebastianwoinar","tags":[]},"10233":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"10234":{"varMapping":{"__isSmartRef__":true,"id":10235},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":10236},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10235":{"this":{"__isSmartRef__":true,"id":10113}},"10236":{"timestamp":{"__isSmartRef__":true,"id":10237},"user":"sebastianwoinar","tags":[]},"10237":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"10238":{"varMapping":{"__isSmartRef__":true,"id":10239},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10240},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10239":{"this":{"__isSmartRef__":true,"id":10113}},"10240":{"timestamp":{"__isSmartRef__":true,"id":10241},"user":"sebastianwoinar","tags":[]},"10241":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"10242":{"submorphs":[{"__isSmartRef__":true,"id":10243}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10260},"id":"10E91255-D0C5-4D66-802C-6EF87E1EC2AC","eventHandler":{"__isSmartRef__":true,"id":10261},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":10262},"name":"node38","partsBinMetaInfo":{"__isSmartRef__":true,"id":10263},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5505},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":9702},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10266},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(186.9,210.0)"},"10243":{"submorphs":[],"scripts":[],"id":"C6B5CBD2-AA4D-4EFD-9C2C-3E675F7FC3C5","shape":{"__isSmartRef__":true,"id":10244},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":10245},"textChunks":[{"__isSmartRef__":true,"id":10257}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":10259},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":10242},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"10244":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"10245":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":10246},{"__isSmartRef__":true,"id":10248},{"__isSmartRef__":true,"id":10250},{"__isSmartRef__":true,"id":10252},{"__isSmartRef__":true,"id":10254}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":10256},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"10246":{"date":{"__isSmartRef__":true,"id":10247},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"10247":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"10248":{"date":{"__isSmartRef__":true,"id":10249},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"10249":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"10250":{"date":{"__isSmartRef__":true,"id":10251},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"10251":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"10252":{"date":{"__isSmartRef__":true,"id":10253},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"10253":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"10254":{"date":{"__isSmartRef__":true,"id":10255},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"10255":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"10256":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"10257":{"style":{"__isSmartRef__":true,"id":10258},"morph":{"__isSmartRef__":true,"id":10243},"chunkOwner":{"__isSmartRef__":true,"id":10243},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10258":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10259":{"morph":{"__isSmartRef__":true,"id":10243},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10260":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"10261":{"morph":{"__isSmartRef__":true,"id":10242},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10262":{},"10263":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":10264}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"10264":{"date":{"__isSmartRef__":true,"id":10265},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"10265":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"10266":{"buildChildNodes":{"__isSmartRef__":true,"id":10267},"getGameTree":{"__isSmartRef__":true,"id":10271},"getLevel":{"__isSmartRef__":true,"id":10275},"getLevelWeight":{"__isSmartRef__":true,"id":10279},"getWeight":{"__isSmartRef__":true,"id":10283},"setNode":{"__isSmartRef__":true,"id":10287},"setParent":{"__isSmartRef__":true,"id":10291},"getParent":{"__isSmartRef__":true,"id":10295},"deactivate":{"__isSmartRef__":true,"id":10299},"blink":{"__isSmartRef__":true,"id":10303},"ABPreturn":{"__isSmartRef__":true,"id":10307},"ABPstart":{"__isSmartRef__":true,"id":10311},"ABPcontinue":{"__isSmartRef__":true,"id":10315},"ABPshowValue":{"__isSmartRef__":true,"id":10319},"ABPgetValue":{"__isSmartRef__":true,"id":10323},"ABPhasChildNodes":{"__isSmartRef__":true,"id":10327},"onMouseDown":{"__isSmartRef__":true,"id":10331},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":10339},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":10343},"ABPmarkAsDone":{"__isSmartRef__":true,"id":10347},"ABPmarkAsActive":{"__isSmartRef__":true,"id":10351},"getStateMorph":{"__isSmartRef__":true,"id":10355},"showState":{"__isSmartRef__":true,"id":10359},"ABPfailHard":{"__isSmartRef__":true,"id":10363},"markFinalDrawWith":{"__isSmartRef__":true,"id":10367}},"10267":{"varMapping":{"__isSmartRef__":true,"id":10268},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":10269},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10268":{"this":{"__isSmartRef__":true,"id":10242}},"10269":{"timestamp":{"__isSmartRef__":true,"id":10270},"user":"sebastianwoinar","tags":[]},"10270":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"10271":{"varMapping":{"__isSmartRef__":true,"id":10272},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":10273},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10272":{"this":{"__isSmartRef__":true,"id":10242}},"10273":{"timestamp":{"__isSmartRef__":true,"id":10274},"user":"sebastianwoinar","tags":[]},"10274":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10275":{"varMapping":{"__isSmartRef__":true,"id":10276},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":10277},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10276":{"this":{"__isSmartRef__":true,"id":10242}},"10277":{"timestamp":{"__isSmartRef__":true,"id":10278},"user":"sebastianwoinar","tags":[]},"10278":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10279":{"varMapping":{"__isSmartRef__":true,"id":10280},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10281},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10280":{"this":{"__isSmartRef__":true,"id":10242}},"10281":{"timestamp":{"__isSmartRef__":true,"id":10282},"user":"sebastianwoinar","tags":[]},"10282":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10283":{"varMapping":{"__isSmartRef__":true,"id":10284},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":10285},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10284":{"this":{"__isSmartRef__":true,"id":10242}},"10285":{"timestamp":{"__isSmartRef__":true,"id":10286},"user":"sebastianwoinar","tags":[]},"10286":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10287":{"varMapping":{"__isSmartRef__":true,"id":10288},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":10289},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10288":{"this":{"__isSmartRef__":true,"id":10242}},"10289":{"timestamp":{"__isSmartRef__":true,"id":10290},"user":"sebastianwoinar","tags":[]},"10290":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10291":{"varMapping":{"__isSmartRef__":true,"id":10292},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":10293},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10292":{"this":{"__isSmartRef__":true,"id":10242}},"10293":{"timestamp":{"__isSmartRef__":true,"id":10294},"user":"sebastianwoinar","tags":[]},"10294":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10295":{"varMapping":{"__isSmartRef__":true,"id":10296},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":10297},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10296":{"this":{"__isSmartRef__":true,"id":10242}},"10297":{"timestamp":{"__isSmartRef__":true,"id":10298},"user":"sebastianwoinar","tags":[]},"10298":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"10299":{"varMapping":{"__isSmartRef__":true,"id":10300},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":10301},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10300":{"this":{"__isSmartRef__":true,"id":10242}},"10301":{"timestamp":{"__isSmartRef__":true,"id":10302},"user":"sebastianwoinar","tags":[]},"10302":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"10303":{"varMapping":{"__isSmartRef__":true,"id":10304},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":10305},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10304":{"this":{"__isSmartRef__":true,"id":10242}},"10305":{"timestamp":{"__isSmartRef__":true,"id":10306},"user":"sebastianwoinar","tags":[]},"10306":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"10307":{"varMapping":{"__isSmartRef__":true,"id":10308},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":10309},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10308":{"this":{"__isSmartRef__":true,"id":10242}},"10309":{"timestamp":{"__isSmartRef__":true,"id":10310},"user":"sebastianwoinar","tags":[]},"10310":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"10311":{"varMapping":{"__isSmartRef__":true,"id":10312},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":10313},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10312":{"this":{"__isSmartRef__":true,"id":10242}},"10313":{"timestamp":{"__isSmartRef__":true,"id":10314},"user":"sebastianwoinar","tags":[]},"10314":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"10315":{"varMapping":{"__isSmartRef__":true,"id":10316},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":10317},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10316":{"this":{"__isSmartRef__":true,"id":10242}},"10317":{"timestamp":{"__isSmartRef__":true,"id":10318},"user":"sebastianwoinar","tags":[]},"10318":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"10319":{"varMapping":{"__isSmartRef__":true,"id":10320},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":10321},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10320":{"this":{"__isSmartRef__":true,"id":10242}},"10321":{"timestamp":{"__isSmartRef__":true,"id":10322},"user":"sebastianwoinar","tags":[]},"10322":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"10323":{"varMapping":{"__isSmartRef__":true,"id":10324},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":10325},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10324":{"this":{"__isSmartRef__":true,"id":10242}},"10325":{"timestamp":{"__isSmartRef__":true,"id":10326},"user":"sebastianwoinar","tags":[]},"10326":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"10327":{"varMapping":{"__isSmartRef__":true,"id":10328},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":10329},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10328":{"this":{"__isSmartRef__":true,"id":10242}},"10329":{"timestamp":{"__isSmartRef__":true,"id":10330},"user":"sebastianwoinar","tags":[]},"10330":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"10331":{"varMapping":{"__isSmartRef__":true,"id":10332},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":10337},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10332":{"this":{"__isSmartRef__":true,"id":10242},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10333}},"10333":{"$super":{"__isSmartRef__":true,"id":10334}},"10334":{"varMapping":{"__isSmartRef__":true,"id":10335},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10336},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10335":{"obj":{"__isSmartRef__":true,"id":10242},"name":"onMouseDown"},"10336":{},"10337":{"timestamp":{"__isSmartRef__":true,"id":10338},"user":"sebastianwoinar","tags":[]},"10338":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"10339":{"varMapping":{"__isSmartRef__":true,"id":10340},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":10341},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10340":{"this":{"__isSmartRef__":true,"id":10242}},"10341":{"timestamp":{"__isSmartRef__":true,"id":10342},"user":"sebastianwoinar","tags":[]},"10342":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"10343":{"varMapping":{"__isSmartRef__":true,"id":10344},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":10345},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10344":{"this":{"__isSmartRef__":true,"id":10242}},"10345":{"timestamp":{"__isSmartRef__":true,"id":10346},"user":"sebastianwoinar","tags":[]},"10346":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"10347":{"varMapping":{"__isSmartRef__":true,"id":10348},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":10349},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10348":{"this":{"__isSmartRef__":true,"id":10242}},"10349":{"timestamp":{"__isSmartRef__":true,"id":10350},"user":"sebastianwoinar","tags":[]},"10350":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"10351":{"varMapping":{"__isSmartRef__":true,"id":10352},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":10353},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10352":{"this":{"__isSmartRef__":true,"id":10242}},"10353":{"timestamp":{"__isSmartRef__":true,"id":10354},"user":"sebastianwoinar","tags":[]},"10354":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"10355":{"varMapping":{"__isSmartRef__":true,"id":10356},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":10357},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10356":{"this":{"__isSmartRef__":true,"id":10242}},"10357":{"timestamp":{"__isSmartRef__":true,"id":10358},"user":"sebastianwoinar","tags":[]},"10358":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"10359":{"varMapping":{"__isSmartRef__":true,"id":10360},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10361},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10360":{"this":{"__isSmartRef__":true,"id":10242}},"10361":{"timestamp":{"__isSmartRef__":true,"id":10362},"user":"sebastianwoinar","tags":[]},"10362":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"10363":{"varMapping":{"__isSmartRef__":true,"id":10364},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":10365},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10364":{"this":{"__isSmartRef__":true,"id":10242}},"10365":{"timestamp":{"__isSmartRef__":true,"id":10366},"user":"sebastianwoinar","tags":[]},"10366":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"10367":{"varMapping":{"__isSmartRef__":true,"id":10368},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10369},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10368":{"this":{"__isSmartRef__":true,"id":10242}},"10369":{"timestamp":{"__isSmartRef__":true,"id":10370},"user":"sebastianwoinar","tags":[]},"10370":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"10371":{"submorphs":[{"__isSmartRef__":true,"id":10372}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10389},"id":"DF971044-26DD-4AF6-80D7-E29E225C0387","eventHandler":{"__isSmartRef__":true,"id":10390},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":10391},"name":"node39","partsBinMetaInfo":{"__isSmartRef__":true,"id":10392},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5507},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":9702},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10395},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(192.0,210.0)"},"10372":{"submorphs":[],"scripts":[],"id":"FA182D91-6873-4F2C-A218-8220C1ADE99C","shape":{"__isSmartRef__":true,"id":10373},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":10374},"textChunks":[{"__isSmartRef__":true,"id":10386}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":10388},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":10371},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"10373":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"10374":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":10375},{"__isSmartRef__":true,"id":10377},{"__isSmartRef__":true,"id":10379},{"__isSmartRef__":true,"id":10381},{"__isSmartRef__":true,"id":10383}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":10385},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"10375":{"date":{"__isSmartRef__":true,"id":10376},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"10376":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"10377":{"date":{"__isSmartRef__":true,"id":10378},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"10378":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"10379":{"date":{"__isSmartRef__":true,"id":10380},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"10380":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"10381":{"date":{"__isSmartRef__":true,"id":10382},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"10382":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"10383":{"date":{"__isSmartRef__":true,"id":10384},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"10384":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"10385":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"10386":{"style":{"__isSmartRef__":true,"id":10387},"morph":{"__isSmartRef__":true,"id":10372},"chunkOwner":{"__isSmartRef__":true,"id":10372},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10387":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10388":{"morph":{"__isSmartRef__":true,"id":10372},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10389":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"10390":{"morph":{"__isSmartRef__":true,"id":10371},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10391":{},"10392":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":10393}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"10393":{"date":{"__isSmartRef__":true,"id":10394},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"10394":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"10395":{"buildChildNodes":{"__isSmartRef__":true,"id":10396},"getGameTree":{"__isSmartRef__":true,"id":10400},"getLevel":{"__isSmartRef__":true,"id":10404},"getLevelWeight":{"__isSmartRef__":true,"id":10408},"getWeight":{"__isSmartRef__":true,"id":10412},"setNode":{"__isSmartRef__":true,"id":10416},"setParent":{"__isSmartRef__":true,"id":10420},"getParent":{"__isSmartRef__":true,"id":10424},"deactivate":{"__isSmartRef__":true,"id":10428},"blink":{"__isSmartRef__":true,"id":10432},"ABPreturn":{"__isSmartRef__":true,"id":10436},"ABPstart":{"__isSmartRef__":true,"id":10440},"ABPcontinue":{"__isSmartRef__":true,"id":10444},"ABPshowValue":{"__isSmartRef__":true,"id":10448},"ABPgetValue":{"__isSmartRef__":true,"id":10452},"ABPhasChildNodes":{"__isSmartRef__":true,"id":10456},"onMouseDown":{"__isSmartRef__":true,"id":10460},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":10468},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":10472},"ABPmarkAsDone":{"__isSmartRef__":true,"id":10476},"ABPmarkAsActive":{"__isSmartRef__":true,"id":10480},"getStateMorph":{"__isSmartRef__":true,"id":10484},"showState":{"__isSmartRef__":true,"id":10488},"ABPfailHard":{"__isSmartRef__":true,"id":10492},"markFinalDrawWith":{"__isSmartRef__":true,"id":10496}},"10396":{"varMapping":{"__isSmartRef__":true,"id":10397},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":10398},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10397":{"this":{"__isSmartRef__":true,"id":10371}},"10398":{"timestamp":{"__isSmartRef__":true,"id":10399},"user":"sebastianwoinar","tags":[]},"10399":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"10400":{"varMapping":{"__isSmartRef__":true,"id":10401},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":10402},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10401":{"this":{"__isSmartRef__":true,"id":10371}},"10402":{"timestamp":{"__isSmartRef__":true,"id":10403},"user":"sebastianwoinar","tags":[]},"10403":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10404":{"varMapping":{"__isSmartRef__":true,"id":10405},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":10406},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10405":{"this":{"__isSmartRef__":true,"id":10371}},"10406":{"timestamp":{"__isSmartRef__":true,"id":10407},"user":"sebastianwoinar","tags":[]},"10407":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10408":{"varMapping":{"__isSmartRef__":true,"id":10409},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10410},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10409":{"this":{"__isSmartRef__":true,"id":10371}},"10410":{"timestamp":{"__isSmartRef__":true,"id":10411},"user":"sebastianwoinar","tags":[]},"10411":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10412":{"varMapping":{"__isSmartRef__":true,"id":10413},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":10414},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10413":{"this":{"__isSmartRef__":true,"id":10371}},"10414":{"timestamp":{"__isSmartRef__":true,"id":10415},"user":"sebastianwoinar","tags":[]},"10415":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10416":{"varMapping":{"__isSmartRef__":true,"id":10417},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":10418},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10417":{"this":{"__isSmartRef__":true,"id":10371}},"10418":{"timestamp":{"__isSmartRef__":true,"id":10419},"user":"sebastianwoinar","tags":[]},"10419":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10420":{"varMapping":{"__isSmartRef__":true,"id":10421},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":10422},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10421":{"this":{"__isSmartRef__":true,"id":10371}},"10422":{"timestamp":{"__isSmartRef__":true,"id":10423},"user":"sebastianwoinar","tags":[]},"10423":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10424":{"varMapping":{"__isSmartRef__":true,"id":10425},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":10426},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10425":{"this":{"__isSmartRef__":true,"id":10371}},"10426":{"timestamp":{"__isSmartRef__":true,"id":10427},"user":"sebastianwoinar","tags":[]},"10427":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"10428":{"varMapping":{"__isSmartRef__":true,"id":10429},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":10430},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10429":{"this":{"__isSmartRef__":true,"id":10371}},"10430":{"timestamp":{"__isSmartRef__":true,"id":10431},"user":"sebastianwoinar","tags":[]},"10431":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"10432":{"varMapping":{"__isSmartRef__":true,"id":10433},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":10434},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10433":{"this":{"__isSmartRef__":true,"id":10371}},"10434":{"timestamp":{"__isSmartRef__":true,"id":10435},"user":"sebastianwoinar","tags":[]},"10435":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"10436":{"varMapping":{"__isSmartRef__":true,"id":10437},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":10438},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10437":{"this":{"__isSmartRef__":true,"id":10371}},"10438":{"timestamp":{"__isSmartRef__":true,"id":10439},"user":"sebastianwoinar","tags":[]},"10439":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"10440":{"varMapping":{"__isSmartRef__":true,"id":10441},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":10442},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10441":{"this":{"__isSmartRef__":true,"id":10371}},"10442":{"timestamp":{"__isSmartRef__":true,"id":10443},"user":"sebastianwoinar","tags":[]},"10443":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"10444":{"varMapping":{"__isSmartRef__":true,"id":10445},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":10446},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10445":{"this":{"__isSmartRef__":true,"id":10371}},"10446":{"timestamp":{"__isSmartRef__":true,"id":10447},"user":"sebastianwoinar","tags":[]},"10447":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"10448":{"varMapping":{"__isSmartRef__":true,"id":10449},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":10450},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10449":{"this":{"__isSmartRef__":true,"id":10371}},"10450":{"timestamp":{"__isSmartRef__":true,"id":10451},"user":"sebastianwoinar","tags":[]},"10451":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"10452":{"varMapping":{"__isSmartRef__":true,"id":10453},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":10454},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10453":{"this":{"__isSmartRef__":true,"id":10371}},"10454":{"timestamp":{"__isSmartRef__":true,"id":10455},"user":"sebastianwoinar","tags":[]},"10455":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"10456":{"varMapping":{"__isSmartRef__":true,"id":10457},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":10458},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10457":{"this":{"__isSmartRef__":true,"id":10371}},"10458":{"timestamp":{"__isSmartRef__":true,"id":10459},"user":"sebastianwoinar","tags":[]},"10459":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"10460":{"varMapping":{"__isSmartRef__":true,"id":10461},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":10466},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10461":{"this":{"__isSmartRef__":true,"id":10371},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10462}},"10462":{"$super":{"__isSmartRef__":true,"id":10463}},"10463":{"varMapping":{"__isSmartRef__":true,"id":10464},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10465},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10464":{"obj":{"__isSmartRef__":true,"id":10371},"name":"onMouseDown"},"10465":{},"10466":{"timestamp":{"__isSmartRef__":true,"id":10467},"user":"sebastianwoinar","tags":[]},"10467":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"10468":{"varMapping":{"__isSmartRef__":true,"id":10469},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":10470},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10469":{"this":{"__isSmartRef__":true,"id":10371}},"10470":{"timestamp":{"__isSmartRef__":true,"id":10471},"user":"sebastianwoinar","tags":[]},"10471":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"10472":{"varMapping":{"__isSmartRef__":true,"id":10473},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":10474},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10473":{"this":{"__isSmartRef__":true,"id":10371}},"10474":{"timestamp":{"__isSmartRef__":true,"id":10475},"user":"sebastianwoinar","tags":[]},"10475":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"10476":{"varMapping":{"__isSmartRef__":true,"id":10477},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":10478},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10477":{"this":{"__isSmartRef__":true,"id":10371}},"10478":{"timestamp":{"__isSmartRef__":true,"id":10479},"user":"sebastianwoinar","tags":[]},"10479":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"10480":{"varMapping":{"__isSmartRef__":true,"id":10481},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":10482},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10481":{"this":{"__isSmartRef__":true,"id":10371}},"10482":{"timestamp":{"__isSmartRef__":true,"id":10483},"user":"sebastianwoinar","tags":[]},"10483":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"10484":{"varMapping":{"__isSmartRef__":true,"id":10485},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":10486},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10485":{"this":{"__isSmartRef__":true,"id":10371}},"10486":{"timestamp":{"__isSmartRef__":true,"id":10487},"user":"sebastianwoinar","tags":[]},"10487":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"10488":{"varMapping":{"__isSmartRef__":true,"id":10489},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10490},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10489":{"this":{"__isSmartRef__":true,"id":10371}},"10490":{"timestamp":{"__isSmartRef__":true,"id":10491},"user":"sebastianwoinar","tags":[]},"10491":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"10492":{"varMapping":{"__isSmartRef__":true,"id":10493},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":10494},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10493":{"this":{"__isSmartRef__":true,"id":10371}},"10494":{"timestamp":{"__isSmartRef__":true,"id":10495},"user":"sebastianwoinar","tags":[]},"10495":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"10496":{"varMapping":{"__isSmartRef__":true,"id":10497},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10498},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10497":{"this":{"__isSmartRef__":true,"id":10371}},"10498":{"timestamp":{"__isSmartRef__":true,"id":10499},"user":"sebastianwoinar","tags":[]},"10499":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"10500":{"buildChildNodes":{"__isSmartRef__":true,"id":10501},"getGameTree":{"__isSmartRef__":true,"id":10505},"getLevel":{"__isSmartRef__":true,"id":10509},"getLevelWeight":{"__isSmartRef__":true,"id":10513},"getWeight":{"__isSmartRef__":true,"id":10517},"setNode":{"__isSmartRef__":true,"id":10521},"setParent":{"__isSmartRef__":true,"id":10525},"getParent":{"__isSmartRef__":true,"id":10529},"deactivate":{"__isSmartRef__":true,"id":10533},"blink":{"__isSmartRef__":true,"id":10537},"ABPreturn":{"__isSmartRef__":true,"id":10541},"ABPstart":{"__isSmartRef__":true,"id":10545},"ABPcontinue":{"__isSmartRef__":true,"id":10549},"ABPshowValue":{"__isSmartRef__":true,"id":10553},"ABPgetValue":{"__isSmartRef__":true,"id":10557},"ABPhasChildNodes":{"__isSmartRef__":true,"id":10561},"onMouseDown":{"__isSmartRef__":true,"id":10565},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":10573},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":10577},"ABPmarkAsDone":{"__isSmartRef__":true,"id":10581},"ABPmarkAsActive":{"__isSmartRef__":true,"id":10585},"getStateMorph":{"__isSmartRef__":true,"id":10589},"showState":{"__isSmartRef__":true,"id":10593},"ABPfailHard":{"__isSmartRef__":true,"id":10597},"markFinalDrawWith":{"__isSmartRef__":true,"id":10601}},"10501":{"varMapping":{"__isSmartRef__":true,"id":10502},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":10503},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10502":{"this":{"__isSmartRef__":true,"id":9702}},"10503":{"timestamp":{"__isSmartRef__":true,"id":10504},"user":"sebastianwoinar","tags":[]},"10504":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"10505":{"varMapping":{"__isSmartRef__":true,"id":10506},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":10507},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10506":{"this":{"__isSmartRef__":true,"id":9702}},"10507":{"timestamp":{"__isSmartRef__":true,"id":10508},"user":"sebastianwoinar","tags":[]},"10508":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10509":{"varMapping":{"__isSmartRef__":true,"id":10510},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":10511},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10510":{"this":{"__isSmartRef__":true,"id":9702}},"10511":{"timestamp":{"__isSmartRef__":true,"id":10512},"user":"sebastianwoinar","tags":[]},"10512":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10513":{"varMapping":{"__isSmartRef__":true,"id":10514},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10515},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10514":{"this":{"__isSmartRef__":true,"id":9702}},"10515":{"timestamp":{"__isSmartRef__":true,"id":10516},"user":"sebastianwoinar","tags":[]},"10516":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10517":{"varMapping":{"__isSmartRef__":true,"id":10518},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":10519},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10518":{"this":{"__isSmartRef__":true,"id":9702}},"10519":{"timestamp":{"__isSmartRef__":true,"id":10520},"user":"sebastianwoinar","tags":[]},"10520":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10521":{"varMapping":{"__isSmartRef__":true,"id":10522},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":10523},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10522":{"this":{"__isSmartRef__":true,"id":9702}},"10523":{"timestamp":{"__isSmartRef__":true,"id":10524},"user":"sebastianwoinar","tags":[]},"10524":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10525":{"varMapping":{"__isSmartRef__":true,"id":10526},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":10527},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10526":{"this":{"__isSmartRef__":true,"id":9702}},"10527":{"timestamp":{"__isSmartRef__":true,"id":10528},"user":"sebastianwoinar","tags":[]},"10528":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10529":{"varMapping":{"__isSmartRef__":true,"id":10530},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":10531},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10530":{"this":{"__isSmartRef__":true,"id":9702}},"10531":{"timestamp":{"__isSmartRef__":true,"id":10532},"user":"sebastianwoinar","tags":[]},"10532":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"10533":{"varMapping":{"__isSmartRef__":true,"id":10534},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":10535},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10534":{"this":{"__isSmartRef__":true,"id":9702}},"10535":{"timestamp":{"__isSmartRef__":true,"id":10536},"user":"sebastianwoinar","tags":[]},"10536":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"10537":{"varMapping":{"__isSmartRef__":true,"id":10538},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":10539},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10538":{"this":{"__isSmartRef__":true,"id":9702}},"10539":{"timestamp":{"__isSmartRef__":true,"id":10540},"user":"sebastianwoinar","tags":[]},"10540":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"10541":{"varMapping":{"__isSmartRef__":true,"id":10542},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":10543},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10542":{"this":{"__isSmartRef__":true,"id":9702}},"10543":{"timestamp":{"__isSmartRef__":true,"id":10544},"user":"sebastianwoinar","tags":[]},"10544":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"10545":{"varMapping":{"__isSmartRef__":true,"id":10546},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":10547},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10546":{"this":{"__isSmartRef__":true,"id":9702}},"10547":{"timestamp":{"__isSmartRef__":true,"id":10548},"user":"sebastianwoinar","tags":[]},"10548":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"10549":{"varMapping":{"__isSmartRef__":true,"id":10550},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":10551},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10550":{"this":{"__isSmartRef__":true,"id":9702}},"10551":{"timestamp":{"__isSmartRef__":true,"id":10552},"user":"sebastianwoinar","tags":[]},"10552":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"10553":{"varMapping":{"__isSmartRef__":true,"id":10554},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":10555},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10554":{"this":{"__isSmartRef__":true,"id":9702}},"10555":{"timestamp":{"__isSmartRef__":true,"id":10556},"user":"sebastianwoinar","tags":[]},"10556":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"10557":{"varMapping":{"__isSmartRef__":true,"id":10558},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":10559},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10558":{"this":{"__isSmartRef__":true,"id":9702}},"10559":{"timestamp":{"__isSmartRef__":true,"id":10560},"user":"sebastianwoinar","tags":[]},"10560":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"10561":{"varMapping":{"__isSmartRef__":true,"id":10562},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":10563},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10562":{"this":{"__isSmartRef__":true,"id":9702}},"10563":{"timestamp":{"__isSmartRef__":true,"id":10564},"user":"sebastianwoinar","tags":[]},"10564":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"10565":{"varMapping":{"__isSmartRef__":true,"id":10566},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":10571},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10566":{"this":{"__isSmartRef__":true,"id":9702},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10567}},"10567":{"$super":{"__isSmartRef__":true,"id":10568}},"10568":{"varMapping":{"__isSmartRef__":true,"id":10569},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10570},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10569":{"obj":{"__isSmartRef__":true,"id":9702},"name":"onMouseDown"},"10570":{},"10571":{"timestamp":{"__isSmartRef__":true,"id":10572},"user":"sebastianwoinar","tags":[]},"10572":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"10573":{"varMapping":{"__isSmartRef__":true,"id":10574},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":10575},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10574":{"this":{"__isSmartRef__":true,"id":9702}},"10575":{"timestamp":{"__isSmartRef__":true,"id":10576},"user":"sebastianwoinar","tags":[]},"10576":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"10577":{"varMapping":{"__isSmartRef__":true,"id":10578},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":10579},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10578":{"this":{"__isSmartRef__":true,"id":9702}},"10579":{"timestamp":{"__isSmartRef__":true,"id":10580},"user":"sebastianwoinar","tags":[]},"10580":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"10581":{"varMapping":{"__isSmartRef__":true,"id":10582},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":10583},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10582":{"this":{"__isSmartRef__":true,"id":9702}},"10583":{"timestamp":{"__isSmartRef__":true,"id":10584},"user":"sebastianwoinar","tags":[]},"10584":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"10585":{"varMapping":{"__isSmartRef__":true,"id":10586},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":10587},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10586":{"this":{"__isSmartRef__":true,"id":9702}},"10587":{"timestamp":{"__isSmartRef__":true,"id":10588},"user":"sebastianwoinar","tags":[]},"10588":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"10589":{"varMapping":{"__isSmartRef__":true,"id":10590},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":10591},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10590":{"this":{"__isSmartRef__":true,"id":9702}},"10591":{"timestamp":{"__isSmartRef__":true,"id":10592},"user":"sebastianwoinar","tags":[]},"10592":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"10593":{"varMapping":{"__isSmartRef__":true,"id":10594},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10595},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10594":{"this":{"__isSmartRef__":true,"id":9702}},"10595":{"timestamp":{"__isSmartRef__":true,"id":10596},"user":"sebastianwoinar","tags":[]},"10596":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"10597":{"varMapping":{"__isSmartRef__":true,"id":10598},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":10599},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10598":{"this":{"__isSmartRef__":true,"id":9702}},"10599":{"timestamp":{"__isSmartRef__":true,"id":10600},"user":"sebastianwoinar","tags":[]},"10600":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"10601":{"varMapping":{"__isSmartRef__":true,"id":10602},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10603},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10602":{"this":{"__isSmartRef__":true,"id":9702}},"10603":{"timestamp":{"__isSmartRef__":true,"id":10604},"user":"sebastianwoinar","tags":[]},"10604":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"10605":{"submorphs":[{"__isSmartRef__":true,"id":10606}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10623},"id":"C4E69C59-9497-449B-881B-93D2E9EBA8DF","eventHandler":{"__isSmartRef__":true,"id":10624},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":10625},"name":"node40","partsBinMetaInfo":{"__isSmartRef__":true,"id":10626},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5509},"owner":{"__isSmartRef__":true,"id":5408},"childNodes":[{"__isSmartRef__":true,"id":10629},{"__isSmartRef__":true,"id":10758},{"__isSmartRef__":true,"id":10887},{"__isSmartRef__":true,"id":11016},{"__isSmartRef__":true,"id":11145},{"__isSmartRef__":true,"id":11274},{"__isSmartRef__":true,"id":11403},{"__isSmartRef__":true,"id":11532},{"__isSmartRef__":true,"id":11661}],"parent":{"__isSmartRef__":true,"id":5937},"level":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11790},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(249.0,160.0)"},"10606":{"submorphs":[],"scripts":[],"id":"30B4C96D-501A-4562-83D3-1B260E82F11C","shape":{"__isSmartRef__":true,"id":10607},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":10608},"textChunks":[{"__isSmartRef__":true,"id":10620}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":10622},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":10605},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"10607":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"10608":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":10609},{"__isSmartRef__":true,"id":10611},{"__isSmartRef__":true,"id":10613},{"__isSmartRef__":true,"id":10615},{"__isSmartRef__":true,"id":10617}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":10619},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"10609":{"date":{"__isSmartRef__":true,"id":10610},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"10610":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"10611":{"date":{"__isSmartRef__":true,"id":10612},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"10612":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"10613":{"date":{"__isSmartRef__":true,"id":10614},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"10614":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"10615":{"date":{"__isSmartRef__":true,"id":10616},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"10616":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"10617":{"date":{"__isSmartRef__":true,"id":10618},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"10618":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"10619":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"10620":{"style":{"__isSmartRef__":true,"id":10621},"morph":{"__isSmartRef__":true,"id":10606},"chunkOwner":{"__isSmartRef__":true,"id":10606},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10621":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10622":{"morph":{"__isSmartRef__":true,"id":10606},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10623":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"10624":{"morph":{"__isSmartRef__":true,"id":10605},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10625":{},"10626":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":10627}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"10627":{"date":{"__isSmartRef__":true,"id":10628},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"10628":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"10629":{"submorphs":[{"__isSmartRef__":true,"id":10630}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10647},"id":"8EE4B9E0-161F-4CA9-9CCD-90A27DC40D53","eventHandler":{"__isSmartRef__":true,"id":10648},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":10649},"name":"node41","partsBinMetaInfo":{"__isSmartRef__":true,"id":10650},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5511},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":10605},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10653},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(197.2,210.0)"},"10630":{"submorphs":[],"scripts":[],"id":"284E4D61-2AF2-42F3-94C9-B06EFFA53E4A","shape":{"__isSmartRef__":true,"id":10631},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":10632},"textChunks":[{"__isSmartRef__":true,"id":10644}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":10646},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":10629},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"10631":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"10632":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":10633},{"__isSmartRef__":true,"id":10635},{"__isSmartRef__":true,"id":10637},{"__isSmartRef__":true,"id":10639},{"__isSmartRef__":true,"id":10641}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":10643},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"10633":{"date":{"__isSmartRef__":true,"id":10634},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"10634":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"10635":{"date":{"__isSmartRef__":true,"id":10636},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"10636":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"10637":{"date":{"__isSmartRef__":true,"id":10638},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"10638":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"10639":{"date":{"__isSmartRef__":true,"id":10640},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"10640":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"10641":{"date":{"__isSmartRef__":true,"id":10642},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"10642":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"10643":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"10644":{"style":{"__isSmartRef__":true,"id":10645},"morph":{"__isSmartRef__":true,"id":10630},"chunkOwner":{"__isSmartRef__":true,"id":10630},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10645":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10646":{"morph":{"__isSmartRef__":true,"id":10630},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10647":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"10648":{"morph":{"__isSmartRef__":true,"id":10629},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10649":{},"10650":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":10651}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"10651":{"date":{"__isSmartRef__":true,"id":10652},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"10652":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"10653":{"buildChildNodes":{"__isSmartRef__":true,"id":10654},"getGameTree":{"__isSmartRef__":true,"id":10658},"getLevel":{"__isSmartRef__":true,"id":10662},"getLevelWeight":{"__isSmartRef__":true,"id":10666},"getWeight":{"__isSmartRef__":true,"id":10670},"setNode":{"__isSmartRef__":true,"id":10674},"setParent":{"__isSmartRef__":true,"id":10678},"getParent":{"__isSmartRef__":true,"id":10682},"deactivate":{"__isSmartRef__":true,"id":10686},"blink":{"__isSmartRef__":true,"id":10690},"ABPreturn":{"__isSmartRef__":true,"id":10694},"ABPstart":{"__isSmartRef__":true,"id":10698},"ABPcontinue":{"__isSmartRef__":true,"id":10702},"ABPshowValue":{"__isSmartRef__":true,"id":10706},"ABPgetValue":{"__isSmartRef__":true,"id":10710},"ABPhasChildNodes":{"__isSmartRef__":true,"id":10714},"onMouseDown":{"__isSmartRef__":true,"id":10718},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":10726},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":10730},"ABPmarkAsDone":{"__isSmartRef__":true,"id":10734},"ABPmarkAsActive":{"__isSmartRef__":true,"id":10738},"getStateMorph":{"__isSmartRef__":true,"id":10742},"showState":{"__isSmartRef__":true,"id":10746},"ABPfailHard":{"__isSmartRef__":true,"id":10750},"markFinalDrawWith":{"__isSmartRef__":true,"id":10754}},"10654":{"varMapping":{"__isSmartRef__":true,"id":10655},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":10656},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10655":{"this":{"__isSmartRef__":true,"id":10629}},"10656":{"timestamp":{"__isSmartRef__":true,"id":10657},"user":"sebastianwoinar","tags":[]},"10657":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"10658":{"varMapping":{"__isSmartRef__":true,"id":10659},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":10660},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10659":{"this":{"__isSmartRef__":true,"id":10629}},"10660":{"timestamp":{"__isSmartRef__":true,"id":10661},"user":"sebastianwoinar","tags":[]},"10661":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10662":{"varMapping":{"__isSmartRef__":true,"id":10663},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":10664},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10663":{"this":{"__isSmartRef__":true,"id":10629}},"10664":{"timestamp":{"__isSmartRef__":true,"id":10665},"user":"sebastianwoinar","tags":[]},"10665":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10666":{"varMapping":{"__isSmartRef__":true,"id":10667},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10668},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10667":{"this":{"__isSmartRef__":true,"id":10629}},"10668":{"timestamp":{"__isSmartRef__":true,"id":10669},"user":"sebastianwoinar","tags":[]},"10669":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10670":{"varMapping":{"__isSmartRef__":true,"id":10671},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":10672},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10671":{"this":{"__isSmartRef__":true,"id":10629}},"10672":{"timestamp":{"__isSmartRef__":true,"id":10673},"user":"sebastianwoinar","tags":[]},"10673":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10674":{"varMapping":{"__isSmartRef__":true,"id":10675},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":10676},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10675":{"this":{"__isSmartRef__":true,"id":10629}},"10676":{"timestamp":{"__isSmartRef__":true,"id":10677},"user":"sebastianwoinar","tags":[]},"10677":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10678":{"varMapping":{"__isSmartRef__":true,"id":10679},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":10680},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10679":{"this":{"__isSmartRef__":true,"id":10629}},"10680":{"timestamp":{"__isSmartRef__":true,"id":10681},"user":"sebastianwoinar","tags":[]},"10681":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10682":{"varMapping":{"__isSmartRef__":true,"id":10683},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":10684},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10683":{"this":{"__isSmartRef__":true,"id":10629}},"10684":{"timestamp":{"__isSmartRef__":true,"id":10685},"user":"sebastianwoinar","tags":[]},"10685":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"10686":{"varMapping":{"__isSmartRef__":true,"id":10687},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":10688},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10687":{"this":{"__isSmartRef__":true,"id":10629}},"10688":{"timestamp":{"__isSmartRef__":true,"id":10689},"user":"sebastianwoinar","tags":[]},"10689":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"10690":{"varMapping":{"__isSmartRef__":true,"id":10691},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":10692},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10691":{"this":{"__isSmartRef__":true,"id":10629}},"10692":{"timestamp":{"__isSmartRef__":true,"id":10693},"user":"sebastianwoinar","tags":[]},"10693":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"10694":{"varMapping":{"__isSmartRef__":true,"id":10695},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":10696},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10695":{"this":{"__isSmartRef__":true,"id":10629}},"10696":{"timestamp":{"__isSmartRef__":true,"id":10697},"user":"sebastianwoinar","tags":[]},"10697":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"10698":{"varMapping":{"__isSmartRef__":true,"id":10699},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":10700},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10699":{"this":{"__isSmartRef__":true,"id":10629}},"10700":{"timestamp":{"__isSmartRef__":true,"id":10701},"user":"sebastianwoinar","tags":[]},"10701":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"10702":{"varMapping":{"__isSmartRef__":true,"id":10703},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":10704},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10703":{"this":{"__isSmartRef__":true,"id":10629}},"10704":{"timestamp":{"__isSmartRef__":true,"id":10705},"user":"sebastianwoinar","tags":[]},"10705":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"10706":{"varMapping":{"__isSmartRef__":true,"id":10707},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":10708},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10707":{"this":{"__isSmartRef__":true,"id":10629}},"10708":{"timestamp":{"__isSmartRef__":true,"id":10709},"user":"sebastianwoinar","tags":[]},"10709":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"10710":{"varMapping":{"__isSmartRef__":true,"id":10711},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":10712},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10711":{"this":{"__isSmartRef__":true,"id":10629}},"10712":{"timestamp":{"__isSmartRef__":true,"id":10713},"user":"sebastianwoinar","tags":[]},"10713":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"10714":{"varMapping":{"__isSmartRef__":true,"id":10715},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":10716},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10715":{"this":{"__isSmartRef__":true,"id":10629}},"10716":{"timestamp":{"__isSmartRef__":true,"id":10717},"user":"sebastianwoinar","tags":[]},"10717":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"10718":{"varMapping":{"__isSmartRef__":true,"id":10719},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":10724},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10719":{"this":{"__isSmartRef__":true,"id":10629},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10720}},"10720":{"$super":{"__isSmartRef__":true,"id":10721}},"10721":{"varMapping":{"__isSmartRef__":true,"id":10722},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10723},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10722":{"obj":{"__isSmartRef__":true,"id":10629},"name":"onMouseDown"},"10723":{},"10724":{"timestamp":{"__isSmartRef__":true,"id":10725},"user":"sebastianwoinar","tags":[]},"10725":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"10726":{"varMapping":{"__isSmartRef__":true,"id":10727},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":10728},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10727":{"this":{"__isSmartRef__":true,"id":10629}},"10728":{"timestamp":{"__isSmartRef__":true,"id":10729},"user":"sebastianwoinar","tags":[]},"10729":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"10730":{"varMapping":{"__isSmartRef__":true,"id":10731},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":10732},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10731":{"this":{"__isSmartRef__":true,"id":10629}},"10732":{"timestamp":{"__isSmartRef__":true,"id":10733},"user":"sebastianwoinar","tags":[]},"10733":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"10734":{"varMapping":{"__isSmartRef__":true,"id":10735},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":10736},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10735":{"this":{"__isSmartRef__":true,"id":10629}},"10736":{"timestamp":{"__isSmartRef__":true,"id":10737},"user":"sebastianwoinar","tags":[]},"10737":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"10738":{"varMapping":{"__isSmartRef__":true,"id":10739},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":10740},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10739":{"this":{"__isSmartRef__":true,"id":10629}},"10740":{"timestamp":{"__isSmartRef__":true,"id":10741},"user":"sebastianwoinar","tags":[]},"10741":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"10742":{"varMapping":{"__isSmartRef__":true,"id":10743},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":10744},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10743":{"this":{"__isSmartRef__":true,"id":10629}},"10744":{"timestamp":{"__isSmartRef__":true,"id":10745},"user":"sebastianwoinar","tags":[]},"10745":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"10746":{"varMapping":{"__isSmartRef__":true,"id":10747},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10748},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10747":{"this":{"__isSmartRef__":true,"id":10629}},"10748":{"timestamp":{"__isSmartRef__":true,"id":10749},"user":"sebastianwoinar","tags":[]},"10749":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"10750":{"varMapping":{"__isSmartRef__":true,"id":10751},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":10752},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10751":{"this":{"__isSmartRef__":true,"id":10629}},"10752":{"timestamp":{"__isSmartRef__":true,"id":10753},"user":"sebastianwoinar","tags":[]},"10753":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"10754":{"varMapping":{"__isSmartRef__":true,"id":10755},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10756},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10755":{"this":{"__isSmartRef__":true,"id":10629}},"10756":{"timestamp":{"__isSmartRef__":true,"id":10757},"user":"sebastianwoinar","tags":[]},"10757":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"10758":{"submorphs":[{"__isSmartRef__":true,"id":10759}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10776},"id":"EF2917A4-0CE8-4199-897F-C8800050625B","eventHandler":{"__isSmartRef__":true,"id":10777},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":10778},"name":"node42","partsBinMetaInfo":{"__isSmartRef__":true,"id":10779},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5513},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":10605},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10782},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(202.4,210.0)"},"10759":{"submorphs":[],"scripts":[],"id":"53830F46-C727-4547-80A4-646DFDB20AEF","shape":{"__isSmartRef__":true,"id":10760},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":10761},"textChunks":[{"__isSmartRef__":true,"id":10773}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":10775},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":10758},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"10760":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"10761":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":10762},{"__isSmartRef__":true,"id":10764},{"__isSmartRef__":true,"id":10766},{"__isSmartRef__":true,"id":10768},{"__isSmartRef__":true,"id":10770}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":10772},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"10762":{"date":{"__isSmartRef__":true,"id":10763},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"10763":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"10764":{"date":{"__isSmartRef__":true,"id":10765},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"10765":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"10766":{"date":{"__isSmartRef__":true,"id":10767},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"10767":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"10768":{"date":{"__isSmartRef__":true,"id":10769},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"10769":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"10770":{"date":{"__isSmartRef__":true,"id":10771},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"10771":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"10772":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"10773":{"style":{"__isSmartRef__":true,"id":10774},"morph":{"__isSmartRef__":true,"id":10759},"chunkOwner":{"__isSmartRef__":true,"id":10759},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10774":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10775":{"morph":{"__isSmartRef__":true,"id":10759},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10776":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"10777":{"morph":{"__isSmartRef__":true,"id":10758},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10778":{},"10779":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":10780}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"10780":{"date":{"__isSmartRef__":true,"id":10781},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"10781":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"10782":{"buildChildNodes":{"__isSmartRef__":true,"id":10783},"getGameTree":{"__isSmartRef__":true,"id":10787},"getLevel":{"__isSmartRef__":true,"id":10791},"getLevelWeight":{"__isSmartRef__":true,"id":10795},"getWeight":{"__isSmartRef__":true,"id":10799},"setNode":{"__isSmartRef__":true,"id":10803},"setParent":{"__isSmartRef__":true,"id":10807},"getParent":{"__isSmartRef__":true,"id":10811},"deactivate":{"__isSmartRef__":true,"id":10815},"blink":{"__isSmartRef__":true,"id":10819},"ABPreturn":{"__isSmartRef__":true,"id":10823},"ABPstart":{"__isSmartRef__":true,"id":10827},"ABPcontinue":{"__isSmartRef__":true,"id":10831},"ABPshowValue":{"__isSmartRef__":true,"id":10835},"ABPgetValue":{"__isSmartRef__":true,"id":10839},"ABPhasChildNodes":{"__isSmartRef__":true,"id":10843},"onMouseDown":{"__isSmartRef__":true,"id":10847},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":10855},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":10859},"ABPmarkAsDone":{"__isSmartRef__":true,"id":10863},"ABPmarkAsActive":{"__isSmartRef__":true,"id":10867},"getStateMorph":{"__isSmartRef__":true,"id":10871},"showState":{"__isSmartRef__":true,"id":10875},"ABPfailHard":{"__isSmartRef__":true,"id":10879},"markFinalDrawWith":{"__isSmartRef__":true,"id":10883}},"10783":{"varMapping":{"__isSmartRef__":true,"id":10784},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":10785},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10784":{"this":{"__isSmartRef__":true,"id":10758}},"10785":{"timestamp":{"__isSmartRef__":true,"id":10786},"user":"sebastianwoinar","tags":[]},"10786":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"10787":{"varMapping":{"__isSmartRef__":true,"id":10788},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":10789},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10788":{"this":{"__isSmartRef__":true,"id":10758}},"10789":{"timestamp":{"__isSmartRef__":true,"id":10790},"user":"sebastianwoinar","tags":[]},"10790":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10791":{"varMapping":{"__isSmartRef__":true,"id":10792},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":10793},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10792":{"this":{"__isSmartRef__":true,"id":10758}},"10793":{"timestamp":{"__isSmartRef__":true,"id":10794},"user":"sebastianwoinar","tags":[]},"10794":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10795":{"varMapping":{"__isSmartRef__":true,"id":10796},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10797},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10796":{"this":{"__isSmartRef__":true,"id":10758}},"10797":{"timestamp":{"__isSmartRef__":true,"id":10798},"user":"sebastianwoinar","tags":[]},"10798":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10799":{"varMapping":{"__isSmartRef__":true,"id":10800},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":10801},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10800":{"this":{"__isSmartRef__":true,"id":10758}},"10801":{"timestamp":{"__isSmartRef__":true,"id":10802},"user":"sebastianwoinar","tags":[]},"10802":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10803":{"varMapping":{"__isSmartRef__":true,"id":10804},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":10805},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10804":{"this":{"__isSmartRef__":true,"id":10758}},"10805":{"timestamp":{"__isSmartRef__":true,"id":10806},"user":"sebastianwoinar","tags":[]},"10806":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10807":{"varMapping":{"__isSmartRef__":true,"id":10808},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":10809},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10808":{"this":{"__isSmartRef__":true,"id":10758}},"10809":{"timestamp":{"__isSmartRef__":true,"id":10810},"user":"sebastianwoinar","tags":[]},"10810":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10811":{"varMapping":{"__isSmartRef__":true,"id":10812},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":10813},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10812":{"this":{"__isSmartRef__":true,"id":10758}},"10813":{"timestamp":{"__isSmartRef__":true,"id":10814},"user":"sebastianwoinar","tags":[]},"10814":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"10815":{"varMapping":{"__isSmartRef__":true,"id":10816},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":10817},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10816":{"this":{"__isSmartRef__":true,"id":10758}},"10817":{"timestamp":{"__isSmartRef__":true,"id":10818},"user":"sebastianwoinar","tags":[]},"10818":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"10819":{"varMapping":{"__isSmartRef__":true,"id":10820},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":10821},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10820":{"this":{"__isSmartRef__":true,"id":10758}},"10821":{"timestamp":{"__isSmartRef__":true,"id":10822},"user":"sebastianwoinar","tags":[]},"10822":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"10823":{"varMapping":{"__isSmartRef__":true,"id":10824},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":10825},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10824":{"this":{"__isSmartRef__":true,"id":10758}},"10825":{"timestamp":{"__isSmartRef__":true,"id":10826},"user":"sebastianwoinar","tags":[]},"10826":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"10827":{"varMapping":{"__isSmartRef__":true,"id":10828},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":10829},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10828":{"this":{"__isSmartRef__":true,"id":10758}},"10829":{"timestamp":{"__isSmartRef__":true,"id":10830},"user":"sebastianwoinar","tags":[]},"10830":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"10831":{"varMapping":{"__isSmartRef__":true,"id":10832},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":10833},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10832":{"this":{"__isSmartRef__":true,"id":10758}},"10833":{"timestamp":{"__isSmartRef__":true,"id":10834},"user":"sebastianwoinar","tags":[]},"10834":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"10835":{"varMapping":{"__isSmartRef__":true,"id":10836},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":10837},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10836":{"this":{"__isSmartRef__":true,"id":10758}},"10837":{"timestamp":{"__isSmartRef__":true,"id":10838},"user":"sebastianwoinar","tags":[]},"10838":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"10839":{"varMapping":{"__isSmartRef__":true,"id":10840},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":10841},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10840":{"this":{"__isSmartRef__":true,"id":10758}},"10841":{"timestamp":{"__isSmartRef__":true,"id":10842},"user":"sebastianwoinar","tags":[]},"10842":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"10843":{"varMapping":{"__isSmartRef__":true,"id":10844},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":10845},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10844":{"this":{"__isSmartRef__":true,"id":10758}},"10845":{"timestamp":{"__isSmartRef__":true,"id":10846},"user":"sebastianwoinar","tags":[]},"10846":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"10847":{"varMapping":{"__isSmartRef__":true,"id":10848},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":10853},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10848":{"this":{"__isSmartRef__":true,"id":10758},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10849}},"10849":{"$super":{"__isSmartRef__":true,"id":10850}},"10850":{"varMapping":{"__isSmartRef__":true,"id":10851},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10852},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10851":{"obj":{"__isSmartRef__":true,"id":10758},"name":"onMouseDown"},"10852":{},"10853":{"timestamp":{"__isSmartRef__":true,"id":10854},"user":"sebastianwoinar","tags":[]},"10854":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"10855":{"varMapping":{"__isSmartRef__":true,"id":10856},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":10857},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10856":{"this":{"__isSmartRef__":true,"id":10758}},"10857":{"timestamp":{"__isSmartRef__":true,"id":10858},"user":"sebastianwoinar","tags":[]},"10858":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"10859":{"varMapping":{"__isSmartRef__":true,"id":10860},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":10861},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10860":{"this":{"__isSmartRef__":true,"id":10758}},"10861":{"timestamp":{"__isSmartRef__":true,"id":10862},"user":"sebastianwoinar","tags":[]},"10862":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"10863":{"varMapping":{"__isSmartRef__":true,"id":10864},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":10865},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10864":{"this":{"__isSmartRef__":true,"id":10758}},"10865":{"timestamp":{"__isSmartRef__":true,"id":10866},"user":"sebastianwoinar","tags":[]},"10866":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"10867":{"varMapping":{"__isSmartRef__":true,"id":10868},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":10869},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10868":{"this":{"__isSmartRef__":true,"id":10758}},"10869":{"timestamp":{"__isSmartRef__":true,"id":10870},"user":"sebastianwoinar","tags":[]},"10870":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"10871":{"varMapping":{"__isSmartRef__":true,"id":10872},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":10873},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10872":{"this":{"__isSmartRef__":true,"id":10758}},"10873":{"timestamp":{"__isSmartRef__":true,"id":10874},"user":"sebastianwoinar","tags":[]},"10874":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"10875":{"varMapping":{"__isSmartRef__":true,"id":10876},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10877},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10876":{"this":{"__isSmartRef__":true,"id":10758}},"10877":{"timestamp":{"__isSmartRef__":true,"id":10878},"user":"sebastianwoinar","tags":[]},"10878":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"10879":{"varMapping":{"__isSmartRef__":true,"id":10880},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":10881},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10880":{"this":{"__isSmartRef__":true,"id":10758}},"10881":{"timestamp":{"__isSmartRef__":true,"id":10882},"user":"sebastianwoinar","tags":[]},"10882":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"10883":{"varMapping":{"__isSmartRef__":true,"id":10884},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10885},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10884":{"this":{"__isSmartRef__":true,"id":10758}},"10885":{"timestamp":{"__isSmartRef__":true,"id":10886},"user":"sebastianwoinar","tags":[]},"10886":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"10887":{"submorphs":[{"__isSmartRef__":true,"id":10888}],"scripts":[],"shape":{"__isSmartRef__":true,"id":10905},"id":"3EDDA423-C681-463D-9BE6-0AFD5A316D24","eventHandler":{"__isSmartRef__":true,"id":10906},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":10907},"name":"node43","partsBinMetaInfo":{"__isSmartRef__":true,"id":10908},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5515},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":10605},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10911},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(207.6,210.0)"},"10888":{"submorphs":[],"scripts":[],"id":"3F54FB1F-0696-4531-8D48-974FF0FBEFA9","shape":{"__isSmartRef__":true,"id":10889},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":10890},"textChunks":[{"__isSmartRef__":true,"id":10902}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":10904},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":10887},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"10889":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"10890":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":10891},{"__isSmartRef__":true,"id":10893},{"__isSmartRef__":true,"id":10895},{"__isSmartRef__":true,"id":10897},{"__isSmartRef__":true,"id":10899}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":10901},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"10891":{"date":{"__isSmartRef__":true,"id":10892},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"10892":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"10893":{"date":{"__isSmartRef__":true,"id":10894},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"10894":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"10895":{"date":{"__isSmartRef__":true,"id":10896},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"10896":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"10897":{"date":{"__isSmartRef__":true,"id":10898},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"10898":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"10899":{"date":{"__isSmartRef__":true,"id":10900},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"10900":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"10901":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"10902":{"style":{"__isSmartRef__":true,"id":10903},"morph":{"__isSmartRef__":true,"id":10888},"chunkOwner":{"__isSmartRef__":true,"id":10888},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10903":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10904":{"morph":{"__isSmartRef__":true,"id":10888},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10905":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"10906":{"morph":{"__isSmartRef__":true,"id":10887},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10907":{},"10908":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":10909}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"10909":{"date":{"__isSmartRef__":true,"id":10910},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"10910":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"10911":{"buildChildNodes":{"__isSmartRef__":true,"id":10912},"getGameTree":{"__isSmartRef__":true,"id":10916},"getLevel":{"__isSmartRef__":true,"id":10920},"getLevelWeight":{"__isSmartRef__":true,"id":10924},"getWeight":{"__isSmartRef__":true,"id":10928},"setNode":{"__isSmartRef__":true,"id":10932},"setParent":{"__isSmartRef__":true,"id":10936},"getParent":{"__isSmartRef__":true,"id":10940},"deactivate":{"__isSmartRef__":true,"id":10944},"blink":{"__isSmartRef__":true,"id":10948},"ABPreturn":{"__isSmartRef__":true,"id":10952},"ABPstart":{"__isSmartRef__":true,"id":10956},"ABPcontinue":{"__isSmartRef__":true,"id":10960},"ABPshowValue":{"__isSmartRef__":true,"id":10964},"ABPgetValue":{"__isSmartRef__":true,"id":10968},"ABPhasChildNodes":{"__isSmartRef__":true,"id":10972},"onMouseDown":{"__isSmartRef__":true,"id":10976},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":10984},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":10988},"ABPmarkAsDone":{"__isSmartRef__":true,"id":10992},"ABPmarkAsActive":{"__isSmartRef__":true,"id":10996},"getStateMorph":{"__isSmartRef__":true,"id":11000},"showState":{"__isSmartRef__":true,"id":11004},"ABPfailHard":{"__isSmartRef__":true,"id":11008},"markFinalDrawWith":{"__isSmartRef__":true,"id":11012}},"10912":{"varMapping":{"__isSmartRef__":true,"id":10913},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":10914},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10913":{"this":{"__isSmartRef__":true,"id":10887}},"10914":{"timestamp":{"__isSmartRef__":true,"id":10915},"user":"sebastianwoinar","tags":[]},"10915":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"10916":{"varMapping":{"__isSmartRef__":true,"id":10917},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":10918},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10917":{"this":{"__isSmartRef__":true,"id":10887}},"10918":{"timestamp":{"__isSmartRef__":true,"id":10919},"user":"sebastianwoinar","tags":[]},"10919":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10920":{"varMapping":{"__isSmartRef__":true,"id":10921},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":10922},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10921":{"this":{"__isSmartRef__":true,"id":10887}},"10922":{"timestamp":{"__isSmartRef__":true,"id":10923},"user":"sebastianwoinar","tags":[]},"10923":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10924":{"varMapping":{"__isSmartRef__":true,"id":10925},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10926},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10925":{"this":{"__isSmartRef__":true,"id":10887}},"10926":{"timestamp":{"__isSmartRef__":true,"id":10927},"user":"sebastianwoinar","tags":[]},"10927":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10928":{"varMapping":{"__isSmartRef__":true,"id":10929},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":10930},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10929":{"this":{"__isSmartRef__":true,"id":10887}},"10930":{"timestamp":{"__isSmartRef__":true,"id":10931},"user":"sebastianwoinar","tags":[]},"10931":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10932":{"varMapping":{"__isSmartRef__":true,"id":10933},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":10934},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10933":{"this":{"__isSmartRef__":true,"id":10887}},"10934":{"timestamp":{"__isSmartRef__":true,"id":10935},"user":"sebastianwoinar","tags":[]},"10935":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10936":{"varMapping":{"__isSmartRef__":true,"id":10937},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":10938},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10937":{"this":{"__isSmartRef__":true,"id":10887}},"10938":{"timestamp":{"__isSmartRef__":true,"id":10939},"user":"sebastianwoinar","tags":[]},"10939":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"10940":{"varMapping":{"__isSmartRef__":true,"id":10941},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":10942},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10941":{"this":{"__isSmartRef__":true,"id":10887}},"10942":{"timestamp":{"__isSmartRef__":true,"id":10943},"user":"sebastianwoinar","tags":[]},"10943":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"10944":{"varMapping":{"__isSmartRef__":true,"id":10945},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":10946},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10945":{"this":{"__isSmartRef__":true,"id":10887}},"10946":{"timestamp":{"__isSmartRef__":true,"id":10947},"user":"sebastianwoinar","tags":[]},"10947":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"10948":{"varMapping":{"__isSmartRef__":true,"id":10949},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":10950},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10949":{"this":{"__isSmartRef__":true,"id":10887}},"10950":{"timestamp":{"__isSmartRef__":true,"id":10951},"user":"sebastianwoinar","tags":[]},"10951":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"10952":{"varMapping":{"__isSmartRef__":true,"id":10953},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":10954},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10953":{"this":{"__isSmartRef__":true,"id":10887}},"10954":{"timestamp":{"__isSmartRef__":true,"id":10955},"user":"sebastianwoinar","tags":[]},"10955":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"10956":{"varMapping":{"__isSmartRef__":true,"id":10957},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":10958},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10957":{"this":{"__isSmartRef__":true,"id":10887}},"10958":{"timestamp":{"__isSmartRef__":true,"id":10959},"user":"sebastianwoinar","tags":[]},"10959":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"10960":{"varMapping":{"__isSmartRef__":true,"id":10961},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":10962},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10961":{"this":{"__isSmartRef__":true,"id":10887}},"10962":{"timestamp":{"__isSmartRef__":true,"id":10963},"user":"sebastianwoinar","tags":[]},"10963":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"10964":{"varMapping":{"__isSmartRef__":true,"id":10965},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":10966},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10965":{"this":{"__isSmartRef__":true,"id":10887}},"10966":{"timestamp":{"__isSmartRef__":true,"id":10967},"user":"sebastianwoinar","tags":[]},"10967":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"10968":{"varMapping":{"__isSmartRef__":true,"id":10969},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":10970},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10969":{"this":{"__isSmartRef__":true,"id":10887}},"10970":{"timestamp":{"__isSmartRef__":true,"id":10971},"user":"sebastianwoinar","tags":[]},"10971":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"10972":{"varMapping":{"__isSmartRef__":true,"id":10973},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":10974},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10973":{"this":{"__isSmartRef__":true,"id":10887}},"10974":{"timestamp":{"__isSmartRef__":true,"id":10975},"user":"sebastianwoinar","tags":[]},"10975":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"10976":{"varMapping":{"__isSmartRef__":true,"id":10977},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":10982},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10977":{"this":{"__isSmartRef__":true,"id":10887},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10978}},"10978":{"$super":{"__isSmartRef__":true,"id":10979}},"10979":{"varMapping":{"__isSmartRef__":true,"id":10980},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10981},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10980":{"obj":{"__isSmartRef__":true,"id":10887},"name":"onMouseDown"},"10981":{},"10982":{"timestamp":{"__isSmartRef__":true,"id":10983},"user":"sebastianwoinar","tags":[]},"10983":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"10984":{"varMapping":{"__isSmartRef__":true,"id":10985},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":10986},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10985":{"this":{"__isSmartRef__":true,"id":10887}},"10986":{"timestamp":{"__isSmartRef__":true,"id":10987},"user":"sebastianwoinar","tags":[]},"10987":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"10988":{"varMapping":{"__isSmartRef__":true,"id":10989},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":10990},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10989":{"this":{"__isSmartRef__":true,"id":10887}},"10990":{"timestamp":{"__isSmartRef__":true,"id":10991},"user":"sebastianwoinar","tags":[]},"10991":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"10992":{"varMapping":{"__isSmartRef__":true,"id":10993},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":10994},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10993":{"this":{"__isSmartRef__":true,"id":10887}},"10994":{"timestamp":{"__isSmartRef__":true,"id":10995},"user":"sebastianwoinar","tags":[]},"10995":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"10996":{"varMapping":{"__isSmartRef__":true,"id":10997},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":10998},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"10997":{"this":{"__isSmartRef__":true,"id":10887}},"10998":{"timestamp":{"__isSmartRef__":true,"id":10999},"user":"sebastianwoinar","tags":[]},"10999":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"11000":{"varMapping":{"__isSmartRef__":true,"id":11001},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":11002},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11001":{"this":{"__isSmartRef__":true,"id":10887}},"11002":{"timestamp":{"__isSmartRef__":true,"id":11003},"user":"sebastianwoinar","tags":[]},"11003":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"11004":{"varMapping":{"__isSmartRef__":true,"id":11005},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11006},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11005":{"this":{"__isSmartRef__":true,"id":10887}},"11006":{"timestamp":{"__isSmartRef__":true,"id":11007},"user":"sebastianwoinar","tags":[]},"11007":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"11008":{"varMapping":{"__isSmartRef__":true,"id":11009},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":11010},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11009":{"this":{"__isSmartRef__":true,"id":10887}},"11010":{"timestamp":{"__isSmartRef__":true,"id":11011},"user":"sebastianwoinar","tags":[]},"11011":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"11012":{"varMapping":{"__isSmartRef__":true,"id":11013},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11014},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11013":{"this":{"__isSmartRef__":true,"id":10887}},"11014":{"timestamp":{"__isSmartRef__":true,"id":11015},"user":"sebastianwoinar","tags":[]},"11015":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"11016":{"submorphs":[{"__isSmartRef__":true,"id":11017}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11034},"id":"5DAC7072-57F5-46C8-95B5-429B49A6F2FB","eventHandler":{"__isSmartRef__":true,"id":11035},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":11036},"name":"node44","partsBinMetaInfo":{"__isSmartRef__":true,"id":11037},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5517},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":10605},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11040},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(212.7,210.0)"},"11017":{"submorphs":[],"scripts":[],"id":"2BE537EA-7C47-4F3F-A4E6-719AF9BE1DAE","shape":{"__isSmartRef__":true,"id":11018},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":11019},"textChunks":[{"__isSmartRef__":true,"id":11031}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":11033},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":11016},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"11018":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"11019":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":11020},{"__isSmartRef__":true,"id":11022},{"__isSmartRef__":true,"id":11024},{"__isSmartRef__":true,"id":11026},{"__isSmartRef__":true,"id":11028}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":11030},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"11020":{"date":{"__isSmartRef__":true,"id":11021},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"11021":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"11022":{"date":{"__isSmartRef__":true,"id":11023},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"11023":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"11024":{"date":{"__isSmartRef__":true,"id":11025},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"11025":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"11026":{"date":{"__isSmartRef__":true,"id":11027},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"11027":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"11028":{"date":{"__isSmartRef__":true,"id":11029},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"11029":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"11030":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"11031":{"style":{"__isSmartRef__":true,"id":11032},"morph":{"__isSmartRef__":true,"id":11017},"chunkOwner":{"__isSmartRef__":true,"id":11017},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11032":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11033":{"morph":{"__isSmartRef__":true,"id":11017},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11034":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"11035":{"morph":{"__isSmartRef__":true,"id":11016},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11036":{},"11037":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":11038}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"11038":{"date":{"__isSmartRef__":true,"id":11039},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"11039":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"11040":{"buildChildNodes":{"__isSmartRef__":true,"id":11041},"getGameTree":{"__isSmartRef__":true,"id":11045},"getLevel":{"__isSmartRef__":true,"id":11049},"getLevelWeight":{"__isSmartRef__":true,"id":11053},"getWeight":{"__isSmartRef__":true,"id":11057},"setNode":{"__isSmartRef__":true,"id":11061},"setParent":{"__isSmartRef__":true,"id":11065},"getParent":{"__isSmartRef__":true,"id":11069},"deactivate":{"__isSmartRef__":true,"id":11073},"blink":{"__isSmartRef__":true,"id":11077},"ABPreturn":{"__isSmartRef__":true,"id":11081},"ABPstart":{"__isSmartRef__":true,"id":11085},"ABPcontinue":{"__isSmartRef__":true,"id":11089},"ABPshowValue":{"__isSmartRef__":true,"id":11093},"ABPgetValue":{"__isSmartRef__":true,"id":11097},"ABPhasChildNodes":{"__isSmartRef__":true,"id":11101},"onMouseDown":{"__isSmartRef__":true,"id":11105},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":11113},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":11117},"ABPmarkAsDone":{"__isSmartRef__":true,"id":11121},"ABPmarkAsActive":{"__isSmartRef__":true,"id":11125},"getStateMorph":{"__isSmartRef__":true,"id":11129},"showState":{"__isSmartRef__":true,"id":11133},"ABPfailHard":{"__isSmartRef__":true,"id":11137},"markFinalDrawWith":{"__isSmartRef__":true,"id":11141}},"11041":{"varMapping":{"__isSmartRef__":true,"id":11042},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":11043},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11042":{"this":{"__isSmartRef__":true,"id":11016}},"11043":{"timestamp":{"__isSmartRef__":true,"id":11044},"user":"sebastianwoinar","tags":[]},"11044":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"11045":{"varMapping":{"__isSmartRef__":true,"id":11046},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":11047},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11046":{"this":{"__isSmartRef__":true,"id":11016}},"11047":{"timestamp":{"__isSmartRef__":true,"id":11048},"user":"sebastianwoinar","tags":[]},"11048":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11049":{"varMapping":{"__isSmartRef__":true,"id":11050},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":11051},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11050":{"this":{"__isSmartRef__":true,"id":11016}},"11051":{"timestamp":{"__isSmartRef__":true,"id":11052},"user":"sebastianwoinar","tags":[]},"11052":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11053":{"varMapping":{"__isSmartRef__":true,"id":11054},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11055},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11054":{"this":{"__isSmartRef__":true,"id":11016}},"11055":{"timestamp":{"__isSmartRef__":true,"id":11056},"user":"sebastianwoinar","tags":[]},"11056":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11057":{"varMapping":{"__isSmartRef__":true,"id":11058},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":11059},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11058":{"this":{"__isSmartRef__":true,"id":11016}},"11059":{"timestamp":{"__isSmartRef__":true,"id":11060},"user":"sebastianwoinar","tags":[]},"11060":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11061":{"varMapping":{"__isSmartRef__":true,"id":11062},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":11063},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11062":{"this":{"__isSmartRef__":true,"id":11016}},"11063":{"timestamp":{"__isSmartRef__":true,"id":11064},"user":"sebastianwoinar","tags":[]},"11064":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11065":{"varMapping":{"__isSmartRef__":true,"id":11066},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":11067},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11066":{"this":{"__isSmartRef__":true,"id":11016}},"11067":{"timestamp":{"__isSmartRef__":true,"id":11068},"user":"sebastianwoinar","tags":[]},"11068":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11069":{"varMapping":{"__isSmartRef__":true,"id":11070},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":11071},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11070":{"this":{"__isSmartRef__":true,"id":11016}},"11071":{"timestamp":{"__isSmartRef__":true,"id":11072},"user":"sebastianwoinar","tags":[]},"11072":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"11073":{"varMapping":{"__isSmartRef__":true,"id":11074},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":11075},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11074":{"this":{"__isSmartRef__":true,"id":11016}},"11075":{"timestamp":{"__isSmartRef__":true,"id":11076},"user":"sebastianwoinar","tags":[]},"11076":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"11077":{"varMapping":{"__isSmartRef__":true,"id":11078},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":11079},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11078":{"this":{"__isSmartRef__":true,"id":11016}},"11079":{"timestamp":{"__isSmartRef__":true,"id":11080},"user":"sebastianwoinar","tags":[]},"11080":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"11081":{"varMapping":{"__isSmartRef__":true,"id":11082},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":11083},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11082":{"this":{"__isSmartRef__":true,"id":11016}},"11083":{"timestamp":{"__isSmartRef__":true,"id":11084},"user":"sebastianwoinar","tags":[]},"11084":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"11085":{"varMapping":{"__isSmartRef__":true,"id":11086},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":11087},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11086":{"this":{"__isSmartRef__":true,"id":11016}},"11087":{"timestamp":{"__isSmartRef__":true,"id":11088},"user":"sebastianwoinar","tags":[]},"11088":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"11089":{"varMapping":{"__isSmartRef__":true,"id":11090},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":11091},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11090":{"this":{"__isSmartRef__":true,"id":11016}},"11091":{"timestamp":{"__isSmartRef__":true,"id":11092},"user":"sebastianwoinar","tags":[]},"11092":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"11093":{"varMapping":{"__isSmartRef__":true,"id":11094},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":11095},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11094":{"this":{"__isSmartRef__":true,"id":11016}},"11095":{"timestamp":{"__isSmartRef__":true,"id":11096},"user":"sebastianwoinar","tags":[]},"11096":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"11097":{"varMapping":{"__isSmartRef__":true,"id":11098},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":11099},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11098":{"this":{"__isSmartRef__":true,"id":11016}},"11099":{"timestamp":{"__isSmartRef__":true,"id":11100},"user":"sebastianwoinar","tags":[]},"11100":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"11101":{"varMapping":{"__isSmartRef__":true,"id":11102},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":11103},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11102":{"this":{"__isSmartRef__":true,"id":11016}},"11103":{"timestamp":{"__isSmartRef__":true,"id":11104},"user":"sebastianwoinar","tags":[]},"11104":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"11105":{"varMapping":{"__isSmartRef__":true,"id":11106},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":11111},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11106":{"this":{"__isSmartRef__":true,"id":11016},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11107}},"11107":{"$super":{"__isSmartRef__":true,"id":11108}},"11108":{"varMapping":{"__isSmartRef__":true,"id":11109},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11110},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11109":{"obj":{"__isSmartRef__":true,"id":11016},"name":"onMouseDown"},"11110":{},"11111":{"timestamp":{"__isSmartRef__":true,"id":11112},"user":"sebastianwoinar","tags":[]},"11112":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"11113":{"varMapping":{"__isSmartRef__":true,"id":11114},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":11115},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11114":{"this":{"__isSmartRef__":true,"id":11016}},"11115":{"timestamp":{"__isSmartRef__":true,"id":11116},"user":"sebastianwoinar","tags":[]},"11116":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"11117":{"varMapping":{"__isSmartRef__":true,"id":11118},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":11119},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11118":{"this":{"__isSmartRef__":true,"id":11016}},"11119":{"timestamp":{"__isSmartRef__":true,"id":11120},"user":"sebastianwoinar","tags":[]},"11120":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"11121":{"varMapping":{"__isSmartRef__":true,"id":11122},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":11123},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11122":{"this":{"__isSmartRef__":true,"id":11016}},"11123":{"timestamp":{"__isSmartRef__":true,"id":11124},"user":"sebastianwoinar","tags":[]},"11124":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"11125":{"varMapping":{"__isSmartRef__":true,"id":11126},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":11127},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11126":{"this":{"__isSmartRef__":true,"id":11016}},"11127":{"timestamp":{"__isSmartRef__":true,"id":11128},"user":"sebastianwoinar","tags":[]},"11128":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"11129":{"varMapping":{"__isSmartRef__":true,"id":11130},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":11131},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11130":{"this":{"__isSmartRef__":true,"id":11016}},"11131":{"timestamp":{"__isSmartRef__":true,"id":11132},"user":"sebastianwoinar","tags":[]},"11132":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"11133":{"varMapping":{"__isSmartRef__":true,"id":11134},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11135},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11134":{"this":{"__isSmartRef__":true,"id":11016}},"11135":{"timestamp":{"__isSmartRef__":true,"id":11136},"user":"sebastianwoinar","tags":[]},"11136":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"11137":{"varMapping":{"__isSmartRef__":true,"id":11138},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":11139},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11138":{"this":{"__isSmartRef__":true,"id":11016}},"11139":{"timestamp":{"__isSmartRef__":true,"id":11140},"user":"sebastianwoinar","tags":[]},"11140":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"11141":{"varMapping":{"__isSmartRef__":true,"id":11142},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11143},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11142":{"this":{"__isSmartRef__":true,"id":11016}},"11143":{"timestamp":{"__isSmartRef__":true,"id":11144},"user":"sebastianwoinar","tags":[]},"11144":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"11145":{"submorphs":[{"__isSmartRef__":true,"id":11146}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11163},"id":"24BF571E-F834-4C6A-9C05-25AFE56C163D","eventHandler":{"__isSmartRef__":true,"id":11164},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":11165},"name":"node45","partsBinMetaInfo":{"__isSmartRef__":true,"id":11166},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5519},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":10605},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11169},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(217.9,210.0)"},"11146":{"submorphs":[],"scripts":[],"id":"F80049E9-A479-4CD3-8D84-63766F0BC8E4","shape":{"__isSmartRef__":true,"id":11147},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":11148},"textChunks":[{"__isSmartRef__":true,"id":11160}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":11162},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":11145},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"11147":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"11148":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":11149},{"__isSmartRef__":true,"id":11151},{"__isSmartRef__":true,"id":11153},{"__isSmartRef__":true,"id":11155},{"__isSmartRef__":true,"id":11157}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":11159},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"11149":{"date":{"__isSmartRef__":true,"id":11150},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"11150":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"11151":{"date":{"__isSmartRef__":true,"id":11152},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"11152":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"11153":{"date":{"__isSmartRef__":true,"id":11154},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"11154":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"11155":{"date":{"__isSmartRef__":true,"id":11156},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"11156":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"11157":{"date":{"__isSmartRef__":true,"id":11158},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"11158":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"11159":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"11160":{"style":{"__isSmartRef__":true,"id":11161},"morph":{"__isSmartRef__":true,"id":11146},"chunkOwner":{"__isSmartRef__":true,"id":11146},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11161":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11162":{"morph":{"__isSmartRef__":true,"id":11146},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11163":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"11164":{"morph":{"__isSmartRef__":true,"id":11145},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11165":{},"11166":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":11167}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"11167":{"date":{"__isSmartRef__":true,"id":11168},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"11168":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"11169":{"buildChildNodes":{"__isSmartRef__":true,"id":11170},"getGameTree":{"__isSmartRef__":true,"id":11174},"getLevel":{"__isSmartRef__":true,"id":11178},"getLevelWeight":{"__isSmartRef__":true,"id":11182},"getWeight":{"__isSmartRef__":true,"id":11186},"setNode":{"__isSmartRef__":true,"id":11190},"setParent":{"__isSmartRef__":true,"id":11194},"getParent":{"__isSmartRef__":true,"id":11198},"deactivate":{"__isSmartRef__":true,"id":11202},"blink":{"__isSmartRef__":true,"id":11206},"ABPreturn":{"__isSmartRef__":true,"id":11210},"ABPstart":{"__isSmartRef__":true,"id":11214},"ABPcontinue":{"__isSmartRef__":true,"id":11218},"ABPshowValue":{"__isSmartRef__":true,"id":11222},"ABPgetValue":{"__isSmartRef__":true,"id":11226},"ABPhasChildNodes":{"__isSmartRef__":true,"id":11230},"onMouseDown":{"__isSmartRef__":true,"id":11234},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":11242},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":11246},"ABPmarkAsDone":{"__isSmartRef__":true,"id":11250},"ABPmarkAsActive":{"__isSmartRef__":true,"id":11254},"getStateMorph":{"__isSmartRef__":true,"id":11258},"showState":{"__isSmartRef__":true,"id":11262},"ABPfailHard":{"__isSmartRef__":true,"id":11266},"markFinalDrawWith":{"__isSmartRef__":true,"id":11270}},"11170":{"varMapping":{"__isSmartRef__":true,"id":11171},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":11172},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11171":{"this":{"__isSmartRef__":true,"id":11145}},"11172":{"timestamp":{"__isSmartRef__":true,"id":11173},"user":"sebastianwoinar","tags":[]},"11173":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"11174":{"varMapping":{"__isSmartRef__":true,"id":11175},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":11176},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11175":{"this":{"__isSmartRef__":true,"id":11145}},"11176":{"timestamp":{"__isSmartRef__":true,"id":11177},"user":"sebastianwoinar","tags":[]},"11177":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11178":{"varMapping":{"__isSmartRef__":true,"id":11179},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":11180},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11179":{"this":{"__isSmartRef__":true,"id":11145}},"11180":{"timestamp":{"__isSmartRef__":true,"id":11181},"user":"sebastianwoinar","tags":[]},"11181":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11182":{"varMapping":{"__isSmartRef__":true,"id":11183},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11184},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11183":{"this":{"__isSmartRef__":true,"id":11145}},"11184":{"timestamp":{"__isSmartRef__":true,"id":11185},"user":"sebastianwoinar","tags":[]},"11185":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11186":{"varMapping":{"__isSmartRef__":true,"id":11187},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":11188},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11187":{"this":{"__isSmartRef__":true,"id":11145}},"11188":{"timestamp":{"__isSmartRef__":true,"id":11189},"user":"sebastianwoinar","tags":[]},"11189":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11190":{"varMapping":{"__isSmartRef__":true,"id":11191},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":11192},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11191":{"this":{"__isSmartRef__":true,"id":11145}},"11192":{"timestamp":{"__isSmartRef__":true,"id":11193},"user":"sebastianwoinar","tags":[]},"11193":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11194":{"varMapping":{"__isSmartRef__":true,"id":11195},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":11196},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11195":{"this":{"__isSmartRef__":true,"id":11145}},"11196":{"timestamp":{"__isSmartRef__":true,"id":11197},"user":"sebastianwoinar","tags":[]},"11197":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11198":{"varMapping":{"__isSmartRef__":true,"id":11199},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":11200},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11199":{"this":{"__isSmartRef__":true,"id":11145}},"11200":{"timestamp":{"__isSmartRef__":true,"id":11201},"user":"sebastianwoinar","tags":[]},"11201":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"11202":{"varMapping":{"__isSmartRef__":true,"id":11203},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":11204},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11203":{"this":{"__isSmartRef__":true,"id":11145}},"11204":{"timestamp":{"__isSmartRef__":true,"id":11205},"user":"sebastianwoinar","tags":[]},"11205":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"11206":{"varMapping":{"__isSmartRef__":true,"id":11207},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":11208},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11207":{"this":{"__isSmartRef__":true,"id":11145}},"11208":{"timestamp":{"__isSmartRef__":true,"id":11209},"user":"sebastianwoinar","tags":[]},"11209":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"11210":{"varMapping":{"__isSmartRef__":true,"id":11211},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":11212},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11211":{"this":{"__isSmartRef__":true,"id":11145}},"11212":{"timestamp":{"__isSmartRef__":true,"id":11213},"user":"sebastianwoinar","tags":[]},"11213":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"11214":{"varMapping":{"__isSmartRef__":true,"id":11215},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":11216},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11215":{"this":{"__isSmartRef__":true,"id":11145}},"11216":{"timestamp":{"__isSmartRef__":true,"id":11217},"user":"sebastianwoinar","tags":[]},"11217":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"11218":{"varMapping":{"__isSmartRef__":true,"id":11219},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":11220},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11219":{"this":{"__isSmartRef__":true,"id":11145}},"11220":{"timestamp":{"__isSmartRef__":true,"id":11221},"user":"sebastianwoinar","tags":[]},"11221":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"11222":{"varMapping":{"__isSmartRef__":true,"id":11223},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":11224},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11223":{"this":{"__isSmartRef__":true,"id":11145}},"11224":{"timestamp":{"__isSmartRef__":true,"id":11225},"user":"sebastianwoinar","tags":[]},"11225":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"11226":{"varMapping":{"__isSmartRef__":true,"id":11227},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":11228},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11227":{"this":{"__isSmartRef__":true,"id":11145}},"11228":{"timestamp":{"__isSmartRef__":true,"id":11229},"user":"sebastianwoinar","tags":[]},"11229":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"11230":{"varMapping":{"__isSmartRef__":true,"id":11231},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":11232},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11231":{"this":{"__isSmartRef__":true,"id":11145}},"11232":{"timestamp":{"__isSmartRef__":true,"id":11233},"user":"sebastianwoinar","tags":[]},"11233":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"11234":{"varMapping":{"__isSmartRef__":true,"id":11235},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":11240},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11235":{"this":{"__isSmartRef__":true,"id":11145},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11236}},"11236":{"$super":{"__isSmartRef__":true,"id":11237}},"11237":{"varMapping":{"__isSmartRef__":true,"id":11238},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11239},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11238":{"obj":{"__isSmartRef__":true,"id":11145},"name":"onMouseDown"},"11239":{},"11240":{"timestamp":{"__isSmartRef__":true,"id":11241},"user":"sebastianwoinar","tags":[]},"11241":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"11242":{"varMapping":{"__isSmartRef__":true,"id":11243},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":11244},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11243":{"this":{"__isSmartRef__":true,"id":11145}},"11244":{"timestamp":{"__isSmartRef__":true,"id":11245},"user":"sebastianwoinar","tags":[]},"11245":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"11246":{"varMapping":{"__isSmartRef__":true,"id":11247},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":11248},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11247":{"this":{"__isSmartRef__":true,"id":11145}},"11248":{"timestamp":{"__isSmartRef__":true,"id":11249},"user":"sebastianwoinar","tags":[]},"11249":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"11250":{"varMapping":{"__isSmartRef__":true,"id":11251},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":11252},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11251":{"this":{"__isSmartRef__":true,"id":11145}},"11252":{"timestamp":{"__isSmartRef__":true,"id":11253},"user":"sebastianwoinar","tags":[]},"11253":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"11254":{"varMapping":{"__isSmartRef__":true,"id":11255},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":11256},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11255":{"this":{"__isSmartRef__":true,"id":11145}},"11256":{"timestamp":{"__isSmartRef__":true,"id":11257},"user":"sebastianwoinar","tags":[]},"11257":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"11258":{"varMapping":{"__isSmartRef__":true,"id":11259},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":11260},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11259":{"this":{"__isSmartRef__":true,"id":11145}},"11260":{"timestamp":{"__isSmartRef__":true,"id":11261},"user":"sebastianwoinar","tags":[]},"11261":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"11262":{"varMapping":{"__isSmartRef__":true,"id":11263},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11264},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11263":{"this":{"__isSmartRef__":true,"id":11145}},"11264":{"timestamp":{"__isSmartRef__":true,"id":11265},"user":"sebastianwoinar","tags":[]},"11265":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"11266":{"varMapping":{"__isSmartRef__":true,"id":11267},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":11268},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11267":{"this":{"__isSmartRef__":true,"id":11145}},"11268":{"timestamp":{"__isSmartRef__":true,"id":11269},"user":"sebastianwoinar","tags":[]},"11269":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"11270":{"varMapping":{"__isSmartRef__":true,"id":11271},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11272},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11271":{"this":{"__isSmartRef__":true,"id":11145}},"11272":{"timestamp":{"__isSmartRef__":true,"id":11273},"user":"sebastianwoinar","tags":[]},"11273":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"11274":{"submorphs":[{"__isSmartRef__":true,"id":11275}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11292},"id":"73A8C22E-3FB3-4365-BAC9-1F0B08885716","eventHandler":{"__isSmartRef__":true,"id":11293},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":11294},"name":"node46","partsBinMetaInfo":{"__isSmartRef__":true,"id":11295},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5521},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":10605},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11298},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(223.1,210.0)"},"11275":{"submorphs":[],"scripts":[],"id":"3DC0302A-3F32-4AA8-8A84-15C505488B15","shape":{"__isSmartRef__":true,"id":11276},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":11277},"textChunks":[{"__isSmartRef__":true,"id":11289}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":11291},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":11274},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"11276":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"11277":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":11278},{"__isSmartRef__":true,"id":11280},{"__isSmartRef__":true,"id":11282},{"__isSmartRef__":true,"id":11284},{"__isSmartRef__":true,"id":11286}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":11288},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"11278":{"date":{"__isSmartRef__":true,"id":11279},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"11279":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"11280":{"date":{"__isSmartRef__":true,"id":11281},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"11281":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"11282":{"date":{"__isSmartRef__":true,"id":11283},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"11283":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"11284":{"date":{"__isSmartRef__":true,"id":11285},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"11285":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"11286":{"date":{"__isSmartRef__":true,"id":11287},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"11287":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"11288":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"11289":{"style":{"__isSmartRef__":true,"id":11290},"morph":{"__isSmartRef__":true,"id":11275},"chunkOwner":{"__isSmartRef__":true,"id":11275},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11290":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11291":{"morph":{"__isSmartRef__":true,"id":11275},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11292":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"11293":{"morph":{"__isSmartRef__":true,"id":11274},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11294":{},"11295":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":11296}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"11296":{"date":{"__isSmartRef__":true,"id":11297},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"11297":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"11298":{"buildChildNodes":{"__isSmartRef__":true,"id":11299},"getGameTree":{"__isSmartRef__":true,"id":11303},"getLevel":{"__isSmartRef__":true,"id":11307},"getLevelWeight":{"__isSmartRef__":true,"id":11311},"getWeight":{"__isSmartRef__":true,"id":11315},"setNode":{"__isSmartRef__":true,"id":11319},"setParent":{"__isSmartRef__":true,"id":11323},"getParent":{"__isSmartRef__":true,"id":11327},"deactivate":{"__isSmartRef__":true,"id":11331},"blink":{"__isSmartRef__":true,"id":11335},"ABPreturn":{"__isSmartRef__":true,"id":11339},"ABPstart":{"__isSmartRef__":true,"id":11343},"ABPcontinue":{"__isSmartRef__":true,"id":11347},"ABPshowValue":{"__isSmartRef__":true,"id":11351},"ABPgetValue":{"__isSmartRef__":true,"id":11355},"ABPhasChildNodes":{"__isSmartRef__":true,"id":11359},"onMouseDown":{"__isSmartRef__":true,"id":11363},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":11371},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":11375},"ABPmarkAsDone":{"__isSmartRef__":true,"id":11379},"ABPmarkAsActive":{"__isSmartRef__":true,"id":11383},"getStateMorph":{"__isSmartRef__":true,"id":11387},"showState":{"__isSmartRef__":true,"id":11391},"ABPfailHard":{"__isSmartRef__":true,"id":11395},"markFinalDrawWith":{"__isSmartRef__":true,"id":11399}},"11299":{"varMapping":{"__isSmartRef__":true,"id":11300},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":11301},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11300":{"this":{"__isSmartRef__":true,"id":11274}},"11301":{"timestamp":{"__isSmartRef__":true,"id":11302},"user":"sebastianwoinar","tags":[]},"11302":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"11303":{"varMapping":{"__isSmartRef__":true,"id":11304},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":11305},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11304":{"this":{"__isSmartRef__":true,"id":11274}},"11305":{"timestamp":{"__isSmartRef__":true,"id":11306},"user":"sebastianwoinar","tags":[]},"11306":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11307":{"varMapping":{"__isSmartRef__":true,"id":11308},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":11309},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11308":{"this":{"__isSmartRef__":true,"id":11274}},"11309":{"timestamp":{"__isSmartRef__":true,"id":11310},"user":"sebastianwoinar","tags":[]},"11310":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11311":{"varMapping":{"__isSmartRef__":true,"id":11312},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11313},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11312":{"this":{"__isSmartRef__":true,"id":11274}},"11313":{"timestamp":{"__isSmartRef__":true,"id":11314},"user":"sebastianwoinar","tags":[]},"11314":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11315":{"varMapping":{"__isSmartRef__":true,"id":11316},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":11317},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11316":{"this":{"__isSmartRef__":true,"id":11274}},"11317":{"timestamp":{"__isSmartRef__":true,"id":11318},"user":"sebastianwoinar","tags":[]},"11318":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11319":{"varMapping":{"__isSmartRef__":true,"id":11320},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":11321},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11320":{"this":{"__isSmartRef__":true,"id":11274}},"11321":{"timestamp":{"__isSmartRef__":true,"id":11322},"user":"sebastianwoinar","tags":[]},"11322":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11323":{"varMapping":{"__isSmartRef__":true,"id":11324},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":11325},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11324":{"this":{"__isSmartRef__":true,"id":11274}},"11325":{"timestamp":{"__isSmartRef__":true,"id":11326},"user":"sebastianwoinar","tags":[]},"11326":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11327":{"varMapping":{"__isSmartRef__":true,"id":11328},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":11329},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11328":{"this":{"__isSmartRef__":true,"id":11274}},"11329":{"timestamp":{"__isSmartRef__":true,"id":11330},"user":"sebastianwoinar","tags":[]},"11330":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"11331":{"varMapping":{"__isSmartRef__":true,"id":11332},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":11333},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11332":{"this":{"__isSmartRef__":true,"id":11274}},"11333":{"timestamp":{"__isSmartRef__":true,"id":11334},"user":"sebastianwoinar","tags":[]},"11334":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"11335":{"varMapping":{"__isSmartRef__":true,"id":11336},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":11337},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11336":{"this":{"__isSmartRef__":true,"id":11274}},"11337":{"timestamp":{"__isSmartRef__":true,"id":11338},"user":"sebastianwoinar","tags":[]},"11338":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"11339":{"varMapping":{"__isSmartRef__":true,"id":11340},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":11341},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11340":{"this":{"__isSmartRef__":true,"id":11274}},"11341":{"timestamp":{"__isSmartRef__":true,"id":11342},"user":"sebastianwoinar","tags":[]},"11342":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"11343":{"varMapping":{"__isSmartRef__":true,"id":11344},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":11345},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11344":{"this":{"__isSmartRef__":true,"id":11274}},"11345":{"timestamp":{"__isSmartRef__":true,"id":11346},"user":"sebastianwoinar","tags":[]},"11346":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"11347":{"varMapping":{"__isSmartRef__":true,"id":11348},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":11349},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11348":{"this":{"__isSmartRef__":true,"id":11274}},"11349":{"timestamp":{"__isSmartRef__":true,"id":11350},"user":"sebastianwoinar","tags":[]},"11350":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"11351":{"varMapping":{"__isSmartRef__":true,"id":11352},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":11353},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11352":{"this":{"__isSmartRef__":true,"id":11274}},"11353":{"timestamp":{"__isSmartRef__":true,"id":11354},"user":"sebastianwoinar","tags":[]},"11354":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"11355":{"varMapping":{"__isSmartRef__":true,"id":11356},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":11357},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11356":{"this":{"__isSmartRef__":true,"id":11274}},"11357":{"timestamp":{"__isSmartRef__":true,"id":11358},"user":"sebastianwoinar","tags":[]},"11358":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"11359":{"varMapping":{"__isSmartRef__":true,"id":11360},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":11361},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11360":{"this":{"__isSmartRef__":true,"id":11274}},"11361":{"timestamp":{"__isSmartRef__":true,"id":11362},"user":"sebastianwoinar","tags":[]},"11362":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"11363":{"varMapping":{"__isSmartRef__":true,"id":11364},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":11369},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11364":{"this":{"__isSmartRef__":true,"id":11274},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11365}},"11365":{"$super":{"__isSmartRef__":true,"id":11366}},"11366":{"varMapping":{"__isSmartRef__":true,"id":11367},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11368},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11367":{"obj":{"__isSmartRef__":true,"id":11274},"name":"onMouseDown"},"11368":{},"11369":{"timestamp":{"__isSmartRef__":true,"id":11370},"user":"sebastianwoinar","tags":[]},"11370":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"11371":{"varMapping":{"__isSmartRef__":true,"id":11372},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":11373},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11372":{"this":{"__isSmartRef__":true,"id":11274}},"11373":{"timestamp":{"__isSmartRef__":true,"id":11374},"user":"sebastianwoinar","tags":[]},"11374":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"11375":{"varMapping":{"__isSmartRef__":true,"id":11376},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":11377},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11376":{"this":{"__isSmartRef__":true,"id":11274}},"11377":{"timestamp":{"__isSmartRef__":true,"id":11378},"user":"sebastianwoinar","tags":[]},"11378":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"11379":{"varMapping":{"__isSmartRef__":true,"id":11380},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":11381},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11380":{"this":{"__isSmartRef__":true,"id":11274}},"11381":{"timestamp":{"__isSmartRef__":true,"id":11382},"user":"sebastianwoinar","tags":[]},"11382":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"11383":{"varMapping":{"__isSmartRef__":true,"id":11384},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":11385},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11384":{"this":{"__isSmartRef__":true,"id":11274}},"11385":{"timestamp":{"__isSmartRef__":true,"id":11386},"user":"sebastianwoinar","tags":[]},"11386":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"11387":{"varMapping":{"__isSmartRef__":true,"id":11388},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":11389},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11388":{"this":{"__isSmartRef__":true,"id":11274}},"11389":{"timestamp":{"__isSmartRef__":true,"id":11390},"user":"sebastianwoinar","tags":[]},"11390":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"11391":{"varMapping":{"__isSmartRef__":true,"id":11392},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11393},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11392":{"this":{"__isSmartRef__":true,"id":11274}},"11393":{"timestamp":{"__isSmartRef__":true,"id":11394},"user":"sebastianwoinar","tags":[]},"11394":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"11395":{"varMapping":{"__isSmartRef__":true,"id":11396},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":11397},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11396":{"this":{"__isSmartRef__":true,"id":11274}},"11397":{"timestamp":{"__isSmartRef__":true,"id":11398},"user":"sebastianwoinar","tags":[]},"11398":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"11399":{"varMapping":{"__isSmartRef__":true,"id":11400},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11401},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11400":{"this":{"__isSmartRef__":true,"id":11274}},"11401":{"timestamp":{"__isSmartRef__":true,"id":11402},"user":"sebastianwoinar","tags":[]},"11402":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"11403":{"submorphs":[{"__isSmartRef__":true,"id":11404}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11421},"id":"78C16286-FB9B-4C8B-8F94-406DF20606EF","eventHandler":{"__isSmartRef__":true,"id":11422},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":11423},"name":"node47","partsBinMetaInfo":{"__isSmartRef__":true,"id":11424},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5523},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":10605},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11427},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(228.3,210.0)"},"11404":{"submorphs":[],"scripts":[],"id":"63DDBD93-4268-425F-90AE-352EC41309AB","shape":{"__isSmartRef__":true,"id":11405},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":11406},"textChunks":[{"__isSmartRef__":true,"id":11418}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":11420},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":11403},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"11405":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"11406":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":11407},{"__isSmartRef__":true,"id":11409},{"__isSmartRef__":true,"id":11411},{"__isSmartRef__":true,"id":11413},{"__isSmartRef__":true,"id":11415}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":11417},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"11407":{"date":{"__isSmartRef__":true,"id":11408},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"11408":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"11409":{"date":{"__isSmartRef__":true,"id":11410},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"11410":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"11411":{"date":{"__isSmartRef__":true,"id":11412},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"11412":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"11413":{"date":{"__isSmartRef__":true,"id":11414},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"11414":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"11415":{"date":{"__isSmartRef__":true,"id":11416},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"11416":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"11417":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"11418":{"style":{"__isSmartRef__":true,"id":11419},"morph":{"__isSmartRef__":true,"id":11404},"chunkOwner":{"__isSmartRef__":true,"id":11404},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11419":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11420":{"morph":{"__isSmartRef__":true,"id":11404},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11421":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"11422":{"morph":{"__isSmartRef__":true,"id":11403},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11423":{},"11424":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":11425}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"11425":{"date":{"__isSmartRef__":true,"id":11426},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"11426":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"11427":{"buildChildNodes":{"__isSmartRef__":true,"id":11428},"getGameTree":{"__isSmartRef__":true,"id":11432},"getLevel":{"__isSmartRef__":true,"id":11436},"getLevelWeight":{"__isSmartRef__":true,"id":11440},"getWeight":{"__isSmartRef__":true,"id":11444},"setNode":{"__isSmartRef__":true,"id":11448},"setParent":{"__isSmartRef__":true,"id":11452},"getParent":{"__isSmartRef__":true,"id":11456},"deactivate":{"__isSmartRef__":true,"id":11460},"blink":{"__isSmartRef__":true,"id":11464},"ABPreturn":{"__isSmartRef__":true,"id":11468},"ABPstart":{"__isSmartRef__":true,"id":11472},"ABPcontinue":{"__isSmartRef__":true,"id":11476},"ABPshowValue":{"__isSmartRef__":true,"id":11480},"ABPgetValue":{"__isSmartRef__":true,"id":11484},"ABPhasChildNodes":{"__isSmartRef__":true,"id":11488},"onMouseDown":{"__isSmartRef__":true,"id":11492},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":11500},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":11504},"ABPmarkAsDone":{"__isSmartRef__":true,"id":11508},"ABPmarkAsActive":{"__isSmartRef__":true,"id":11512},"getStateMorph":{"__isSmartRef__":true,"id":11516},"showState":{"__isSmartRef__":true,"id":11520},"ABPfailHard":{"__isSmartRef__":true,"id":11524},"markFinalDrawWith":{"__isSmartRef__":true,"id":11528}},"11428":{"varMapping":{"__isSmartRef__":true,"id":11429},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":11430},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11429":{"this":{"__isSmartRef__":true,"id":11403}},"11430":{"timestamp":{"__isSmartRef__":true,"id":11431},"user":"sebastianwoinar","tags":[]},"11431":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"11432":{"varMapping":{"__isSmartRef__":true,"id":11433},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":11434},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11433":{"this":{"__isSmartRef__":true,"id":11403}},"11434":{"timestamp":{"__isSmartRef__":true,"id":11435},"user":"sebastianwoinar","tags":[]},"11435":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11436":{"varMapping":{"__isSmartRef__":true,"id":11437},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":11438},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11437":{"this":{"__isSmartRef__":true,"id":11403}},"11438":{"timestamp":{"__isSmartRef__":true,"id":11439},"user":"sebastianwoinar","tags":[]},"11439":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11440":{"varMapping":{"__isSmartRef__":true,"id":11441},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11442},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11441":{"this":{"__isSmartRef__":true,"id":11403}},"11442":{"timestamp":{"__isSmartRef__":true,"id":11443},"user":"sebastianwoinar","tags":[]},"11443":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11444":{"varMapping":{"__isSmartRef__":true,"id":11445},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":11446},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11445":{"this":{"__isSmartRef__":true,"id":11403}},"11446":{"timestamp":{"__isSmartRef__":true,"id":11447},"user":"sebastianwoinar","tags":[]},"11447":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11448":{"varMapping":{"__isSmartRef__":true,"id":11449},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":11450},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11449":{"this":{"__isSmartRef__":true,"id":11403}},"11450":{"timestamp":{"__isSmartRef__":true,"id":11451},"user":"sebastianwoinar","tags":[]},"11451":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11452":{"varMapping":{"__isSmartRef__":true,"id":11453},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":11454},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11453":{"this":{"__isSmartRef__":true,"id":11403}},"11454":{"timestamp":{"__isSmartRef__":true,"id":11455},"user":"sebastianwoinar","tags":[]},"11455":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11456":{"varMapping":{"__isSmartRef__":true,"id":11457},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":11458},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11457":{"this":{"__isSmartRef__":true,"id":11403}},"11458":{"timestamp":{"__isSmartRef__":true,"id":11459},"user":"sebastianwoinar","tags":[]},"11459":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"11460":{"varMapping":{"__isSmartRef__":true,"id":11461},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":11462},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11461":{"this":{"__isSmartRef__":true,"id":11403}},"11462":{"timestamp":{"__isSmartRef__":true,"id":11463},"user":"sebastianwoinar","tags":[]},"11463":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"11464":{"varMapping":{"__isSmartRef__":true,"id":11465},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":11466},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11465":{"this":{"__isSmartRef__":true,"id":11403}},"11466":{"timestamp":{"__isSmartRef__":true,"id":11467},"user":"sebastianwoinar","tags":[]},"11467":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"11468":{"varMapping":{"__isSmartRef__":true,"id":11469},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":11470},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11469":{"this":{"__isSmartRef__":true,"id":11403}},"11470":{"timestamp":{"__isSmartRef__":true,"id":11471},"user":"sebastianwoinar","tags":[]},"11471":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"11472":{"varMapping":{"__isSmartRef__":true,"id":11473},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":11474},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11473":{"this":{"__isSmartRef__":true,"id":11403}},"11474":{"timestamp":{"__isSmartRef__":true,"id":11475},"user":"sebastianwoinar","tags":[]},"11475":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"11476":{"varMapping":{"__isSmartRef__":true,"id":11477},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":11478},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11477":{"this":{"__isSmartRef__":true,"id":11403}},"11478":{"timestamp":{"__isSmartRef__":true,"id":11479},"user":"sebastianwoinar","tags":[]},"11479":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"11480":{"varMapping":{"__isSmartRef__":true,"id":11481},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":11482},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11481":{"this":{"__isSmartRef__":true,"id":11403}},"11482":{"timestamp":{"__isSmartRef__":true,"id":11483},"user":"sebastianwoinar","tags":[]},"11483":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"11484":{"varMapping":{"__isSmartRef__":true,"id":11485},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":11486},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11485":{"this":{"__isSmartRef__":true,"id":11403}},"11486":{"timestamp":{"__isSmartRef__":true,"id":11487},"user":"sebastianwoinar","tags":[]},"11487":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"11488":{"varMapping":{"__isSmartRef__":true,"id":11489},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":11490},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11489":{"this":{"__isSmartRef__":true,"id":11403}},"11490":{"timestamp":{"__isSmartRef__":true,"id":11491},"user":"sebastianwoinar","tags":[]},"11491":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"11492":{"varMapping":{"__isSmartRef__":true,"id":11493},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":11498},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11493":{"this":{"__isSmartRef__":true,"id":11403},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11494}},"11494":{"$super":{"__isSmartRef__":true,"id":11495}},"11495":{"varMapping":{"__isSmartRef__":true,"id":11496},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11497},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11496":{"obj":{"__isSmartRef__":true,"id":11403},"name":"onMouseDown"},"11497":{},"11498":{"timestamp":{"__isSmartRef__":true,"id":11499},"user":"sebastianwoinar","tags":[]},"11499":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"11500":{"varMapping":{"__isSmartRef__":true,"id":11501},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":11502},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11501":{"this":{"__isSmartRef__":true,"id":11403}},"11502":{"timestamp":{"__isSmartRef__":true,"id":11503},"user":"sebastianwoinar","tags":[]},"11503":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"11504":{"varMapping":{"__isSmartRef__":true,"id":11505},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":11506},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11505":{"this":{"__isSmartRef__":true,"id":11403}},"11506":{"timestamp":{"__isSmartRef__":true,"id":11507},"user":"sebastianwoinar","tags":[]},"11507":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"11508":{"varMapping":{"__isSmartRef__":true,"id":11509},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":11510},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11509":{"this":{"__isSmartRef__":true,"id":11403}},"11510":{"timestamp":{"__isSmartRef__":true,"id":11511},"user":"sebastianwoinar","tags":[]},"11511":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"11512":{"varMapping":{"__isSmartRef__":true,"id":11513},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":11514},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11513":{"this":{"__isSmartRef__":true,"id":11403}},"11514":{"timestamp":{"__isSmartRef__":true,"id":11515},"user":"sebastianwoinar","tags":[]},"11515":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"11516":{"varMapping":{"__isSmartRef__":true,"id":11517},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":11518},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11517":{"this":{"__isSmartRef__":true,"id":11403}},"11518":{"timestamp":{"__isSmartRef__":true,"id":11519},"user":"sebastianwoinar","tags":[]},"11519":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"11520":{"varMapping":{"__isSmartRef__":true,"id":11521},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11522},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11521":{"this":{"__isSmartRef__":true,"id":11403}},"11522":{"timestamp":{"__isSmartRef__":true,"id":11523},"user":"sebastianwoinar","tags":[]},"11523":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"11524":{"varMapping":{"__isSmartRef__":true,"id":11525},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":11526},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11525":{"this":{"__isSmartRef__":true,"id":11403}},"11526":{"timestamp":{"__isSmartRef__":true,"id":11527},"user":"sebastianwoinar","tags":[]},"11527":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"11528":{"varMapping":{"__isSmartRef__":true,"id":11529},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11530},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11529":{"this":{"__isSmartRef__":true,"id":11403}},"11530":{"timestamp":{"__isSmartRef__":true,"id":11531},"user":"sebastianwoinar","tags":[]},"11531":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"11532":{"submorphs":[{"__isSmartRef__":true,"id":11533}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11550},"id":"D926A931-38A7-4D88-A00E-4EA5FF56C967","eventHandler":{"__isSmartRef__":true,"id":11551},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":11552},"name":"node48","partsBinMetaInfo":{"__isSmartRef__":true,"id":11553},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5525},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":10605},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11556},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(233.5,210.0)"},"11533":{"submorphs":[],"scripts":[],"id":"A518C022-558A-404F-913E-8801949E6535","shape":{"__isSmartRef__":true,"id":11534},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":11535},"textChunks":[{"__isSmartRef__":true,"id":11547}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":11549},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":11532},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"11534":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"11535":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":11536},{"__isSmartRef__":true,"id":11538},{"__isSmartRef__":true,"id":11540},{"__isSmartRef__":true,"id":11542},{"__isSmartRef__":true,"id":11544}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":11546},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"11536":{"date":{"__isSmartRef__":true,"id":11537},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"11537":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"11538":{"date":{"__isSmartRef__":true,"id":11539},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"11539":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"11540":{"date":{"__isSmartRef__":true,"id":11541},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"11541":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"11542":{"date":{"__isSmartRef__":true,"id":11543},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"11543":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"11544":{"date":{"__isSmartRef__":true,"id":11545},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"11545":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"11546":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"11547":{"style":{"__isSmartRef__":true,"id":11548},"morph":{"__isSmartRef__":true,"id":11533},"chunkOwner":{"__isSmartRef__":true,"id":11533},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11548":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11549":{"morph":{"__isSmartRef__":true,"id":11533},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11550":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"11551":{"morph":{"__isSmartRef__":true,"id":11532},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11552":{},"11553":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":11554}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"11554":{"date":{"__isSmartRef__":true,"id":11555},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"11555":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"11556":{"buildChildNodes":{"__isSmartRef__":true,"id":11557},"getGameTree":{"__isSmartRef__":true,"id":11561},"getLevel":{"__isSmartRef__":true,"id":11565},"getLevelWeight":{"__isSmartRef__":true,"id":11569},"getWeight":{"__isSmartRef__":true,"id":11573},"setNode":{"__isSmartRef__":true,"id":11577},"setParent":{"__isSmartRef__":true,"id":11581},"getParent":{"__isSmartRef__":true,"id":11585},"deactivate":{"__isSmartRef__":true,"id":11589},"blink":{"__isSmartRef__":true,"id":11593},"ABPreturn":{"__isSmartRef__":true,"id":11597},"ABPstart":{"__isSmartRef__":true,"id":11601},"ABPcontinue":{"__isSmartRef__":true,"id":11605},"ABPshowValue":{"__isSmartRef__":true,"id":11609},"ABPgetValue":{"__isSmartRef__":true,"id":11613},"ABPhasChildNodes":{"__isSmartRef__":true,"id":11617},"onMouseDown":{"__isSmartRef__":true,"id":11621},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":11629},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":11633},"ABPmarkAsDone":{"__isSmartRef__":true,"id":11637},"ABPmarkAsActive":{"__isSmartRef__":true,"id":11641},"getStateMorph":{"__isSmartRef__":true,"id":11645},"showState":{"__isSmartRef__":true,"id":11649},"ABPfailHard":{"__isSmartRef__":true,"id":11653},"markFinalDrawWith":{"__isSmartRef__":true,"id":11657}},"11557":{"varMapping":{"__isSmartRef__":true,"id":11558},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":11559},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11558":{"this":{"__isSmartRef__":true,"id":11532}},"11559":{"timestamp":{"__isSmartRef__":true,"id":11560},"user":"sebastianwoinar","tags":[]},"11560":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"11561":{"varMapping":{"__isSmartRef__":true,"id":11562},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":11563},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11562":{"this":{"__isSmartRef__":true,"id":11532}},"11563":{"timestamp":{"__isSmartRef__":true,"id":11564},"user":"sebastianwoinar","tags":[]},"11564":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11565":{"varMapping":{"__isSmartRef__":true,"id":11566},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":11567},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11566":{"this":{"__isSmartRef__":true,"id":11532}},"11567":{"timestamp":{"__isSmartRef__":true,"id":11568},"user":"sebastianwoinar","tags":[]},"11568":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11569":{"varMapping":{"__isSmartRef__":true,"id":11570},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11571},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11570":{"this":{"__isSmartRef__":true,"id":11532}},"11571":{"timestamp":{"__isSmartRef__":true,"id":11572},"user":"sebastianwoinar","tags":[]},"11572":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11573":{"varMapping":{"__isSmartRef__":true,"id":11574},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":11575},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11574":{"this":{"__isSmartRef__":true,"id":11532}},"11575":{"timestamp":{"__isSmartRef__":true,"id":11576},"user":"sebastianwoinar","tags":[]},"11576":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11577":{"varMapping":{"__isSmartRef__":true,"id":11578},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":11579},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11578":{"this":{"__isSmartRef__":true,"id":11532}},"11579":{"timestamp":{"__isSmartRef__":true,"id":11580},"user":"sebastianwoinar","tags":[]},"11580":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11581":{"varMapping":{"__isSmartRef__":true,"id":11582},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":11583},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11582":{"this":{"__isSmartRef__":true,"id":11532}},"11583":{"timestamp":{"__isSmartRef__":true,"id":11584},"user":"sebastianwoinar","tags":[]},"11584":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11585":{"varMapping":{"__isSmartRef__":true,"id":11586},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":11587},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11586":{"this":{"__isSmartRef__":true,"id":11532}},"11587":{"timestamp":{"__isSmartRef__":true,"id":11588},"user":"sebastianwoinar","tags":[]},"11588":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"11589":{"varMapping":{"__isSmartRef__":true,"id":11590},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":11591},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11590":{"this":{"__isSmartRef__":true,"id":11532}},"11591":{"timestamp":{"__isSmartRef__":true,"id":11592},"user":"sebastianwoinar","tags":[]},"11592":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"11593":{"varMapping":{"__isSmartRef__":true,"id":11594},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":11595},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11594":{"this":{"__isSmartRef__":true,"id":11532}},"11595":{"timestamp":{"__isSmartRef__":true,"id":11596},"user":"sebastianwoinar","tags":[]},"11596":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"11597":{"varMapping":{"__isSmartRef__":true,"id":11598},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":11599},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11598":{"this":{"__isSmartRef__":true,"id":11532}},"11599":{"timestamp":{"__isSmartRef__":true,"id":11600},"user":"sebastianwoinar","tags":[]},"11600":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"11601":{"varMapping":{"__isSmartRef__":true,"id":11602},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":11603},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11602":{"this":{"__isSmartRef__":true,"id":11532}},"11603":{"timestamp":{"__isSmartRef__":true,"id":11604},"user":"sebastianwoinar","tags":[]},"11604":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"11605":{"varMapping":{"__isSmartRef__":true,"id":11606},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":11607},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11606":{"this":{"__isSmartRef__":true,"id":11532}},"11607":{"timestamp":{"__isSmartRef__":true,"id":11608},"user":"sebastianwoinar","tags":[]},"11608":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"11609":{"varMapping":{"__isSmartRef__":true,"id":11610},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":11611},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11610":{"this":{"__isSmartRef__":true,"id":11532}},"11611":{"timestamp":{"__isSmartRef__":true,"id":11612},"user":"sebastianwoinar","tags":[]},"11612":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"11613":{"varMapping":{"__isSmartRef__":true,"id":11614},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":11615},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11614":{"this":{"__isSmartRef__":true,"id":11532}},"11615":{"timestamp":{"__isSmartRef__":true,"id":11616},"user":"sebastianwoinar","tags":[]},"11616":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"11617":{"varMapping":{"__isSmartRef__":true,"id":11618},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":11619},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11618":{"this":{"__isSmartRef__":true,"id":11532}},"11619":{"timestamp":{"__isSmartRef__":true,"id":11620},"user":"sebastianwoinar","tags":[]},"11620":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"11621":{"varMapping":{"__isSmartRef__":true,"id":11622},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":11627},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11622":{"this":{"__isSmartRef__":true,"id":11532},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11623}},"11623":{"$super":{"__isSmartRef__":true,"id":11624}},"11624":{"varMapping":{"__isSmartRef__":true,"id":11625},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11626},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11625":{"obj":{"__isSmartRef__":true,"id":11532},"name":"onMouseDown"},"11626":{},"11627":{"timestamp":{"__isSmartRef__":true,"id":11628},"user":"sebastianwoinar","tags":[]},"11628":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"11629":{"varMapping":{"__isSmartRef__":true,"id":11630},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":11631},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11630":{"this":{"__isSmartRef__":true,"id":11532}},"11631":{"timestamp":{"__isSmartRef__":true,"id":11632},"user":"sebastianwoinar","tags":[]},"11632":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"11633":{"varMapping":{"__isSmartRef__":true,"id":11634},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":11635},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11634":{"this":{"__isSmartRef__":true,"id":11532}},"11635":{"timestamp":{"__isSmartRef__":true,"id":11636},"user":"sebastianwoinar","tags":[]},"11636":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"11637":{"varMapping":{"__isSmartRef__":true,"id":11638},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":11639},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11638":{"this":{"__isSmartRef__":true,"id":11532}},"11639":{"timestamp":{"__isSmartRef__":true,"id":11640},"user":"sebastianwoinar","tags":[]},"11640":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"11641":{"varMapping":{"__isSmartRef__":true,"id":11642},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":11643},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11642":{"this":{"__isSmartRef__":true,"id":11532}},"11643":{"timestamp":{"__isSmartRef__":true,"id":11644},"user":"sebastianwoinar","tags":[]},"11644":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"11645":{"varMapping":{"__isSmartRef__":true,"id":11646},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":11647},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11646":{"this":{"__isSmartRef__":true,"id":11532}},"11647":{"timestamp":{"__isSmartRef__":true,"id":11648},"user":"sebastianwoinar","tags":[]},"11648":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"11649":{"varMapping":{"__isSmartRef__":true,"id":11650},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11651},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11650":{"this":{"__isSmartRef__":true,"id":11532}},"11651":{"timestamp":{"__isSmartRef__":true,"id":11652},"user":"sebastianwoinar","tags":[]},"11652":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"11653":{"varMapping":{"__isSmartRef__":true,"id":11654},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":11655},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11654":{"this":{"__isSmartRef__":true,"id":11532}},"11655":{"timestamp":{"__isSmartRef__":true,"id":11656},"user":"sebastianwoinar","tags":[]},"11656":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"11657":{"varMapping":{"__isSmartRef__":true,"id":11658},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11659},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11658":{"this":{"__isSmartRef__":true,"id":11532}},"11659":{"timestamp":{"__isSmartRef__":true,"id":11660},"user":"sebastianwoinar","tags":[]},"11660":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"11661":{"submorphs":[{"__isSmartRef__":true,"id":11662}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11679},"id":"159FC869-07AE-49AD-80FC-63E330661968","eventHandler":{"__isSmartRef__":true,"id":11680},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":11681},"name":"node49","partsBinMetaInfo":{"__isSmartRef__":true,"id":11682},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5527},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":10605},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11685},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(238.6,210.0)"},"11662":{"submorphs":[],"scripts":[],"id":"9432BCE1-2329-40E8-9D8B-001EA43C6102","shape":{"__isSmartRef__":true,"id":11663},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":11664},"textChunks":[{"__isSmartRef__":true,"id":11676}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":11678},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":11661},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"11663":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"11664":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":11665},{"__isSmartRef__":true,"id":11667},{"__isSmartRef__":true,"id":11669},{"__isSmartRef__":true,"id":11671},{"__isSmartRef__":true,"id":11673}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":11675},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"11665":{"date":{"__isSmartRef__":true,"id":11666},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"11666":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"11667":{"date":{"__isSmartRef__":true,"id":11668},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"11668":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"11669":{"date":{"__isSmartRef__":true,"id":11670},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"11670":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"11671":{"date":{"__isSmartRef__":true,"id":11672},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"11672":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"11673":{"date":{"__isSmartRef__":true,"id":11674},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"11674":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"11675":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"11676":{"style":{"__isSmartRef__":true,"id":11677},"morph":{"__isSmartRef__":true,"id":11662},"chunkOwner":{"__isSmartRef__":true,"id":11662},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11677":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11678":{"morph":{"__isSmartRef__":true,"id":11662},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11679":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"11680":{"morph":{"__isSmartRef__":true,"id":11661},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11681":{},"11682":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":11683}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"11683":{"date":{"__isSmartRef__":true,"id":11684},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"11684":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"11685":{"buildChildNodes":{"__isSmartRef__":true,"id":11686},"getGameTree":{"__isSmartRef__":true,"id":11690},"getLevel":{"__isSmartRef__":true,"id":11694},"getLevelWeight":{"__isSmartRef__":true,"id":11698},"getWeight":{"__isSmartRef__":true,"id":11702},"setNode":{"__isSmartRef__":true,"id":11706},"setParent":{"__isSmartRef__":true,"id":11710},"getParent":{"__isSmartRef__":true,"id":11714},"deactivate":{"__isSmartRef__":true,"id":11718},"blink":{"__isSmartRef__":true,"id":11722},"ABPreturn":{"__isSmartRef__":true,"id":11726},"ABPstart":{"__isSmartRef__":true,"id":11730},"ABPcontinue":{"__isSmartRef__":true,"id":11734},"ABPshowValue":{"__isSmartRef__":true,"id":11738},"ABPgetValue":{"__isSmartRef__":true,"id":11742},"ABPhasChildNodes":{"__isSmartRef__":true,"id":11746},"onMouseDown":{"__isSmartRef__":true,"id":11750},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":11758},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":11762},"ABPmarkAsDone":{"__isSmartRef__":true,"id":11766},"ABPmarkAsActive":{"__isSmartRef__":true,"id":11770},"getStateMorph":{"__isSmartRef__":true,"id":11774},"showState":{"__isSmartRef__":true,"id":11778},"ABPfailHard":{"__isSmartRef__":true,"id":11782},"markFinalDrawWith":{"__isSmartRef__":true,"id":11786}},"11686":{"varMapping":{"__isSmartRef__":true,"id":11687},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":11688},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11687":{"this":{"__isSmartRef__":true,"id":11661}},"11688":{"timestamp":{"__isSmartRef__":true,"id":11689},"user":"sebastianwoinar","tags":[]},"11689":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"11690":{"varMapping":{"__isSmartRef__":true,"id":11691},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":11692},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11691":{"this":{"__isSmartRef__":true,"id":11661}},"11692":{"timestamp":{"__isSmartRef__":true,"id":11693},"user":"sebastianwoinar","tags":[]},"11693":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11694":{"varMapping":{"__isSmartRef__":true,"id":11695},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":11696},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11695":{"this":{"__isSmartRef__":true,"id":11661}},"11696":{"timestamp":{"__isSmartRef__":true,"id":11697},"user":"sebastianwoinar","tags":[]},"11697":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11698":{"varMapping":{"__isSmartRef__":true,"id":11699},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11700},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11699":{"this":{"__isSmartRef__":true,"id":11661}},"11700":{"timestamp":{"__isSmartRef__":true,"id":11701},"user":"sebastianwoinar","tags":[]},"11701":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11702":{"varMapping":{"__isSmartRef__":true,"id":11703},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":11704},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11703":{"this":{"__isSmartRef__":true,"id":11661}},"11704":{"timestamp":{"__isSmartRef__":true,"id":11705},"user":"sebastianwoinar","tags":[]},"11705":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11706":{"varMapping":{"__isSmartRef__":true,"id":11707},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":11708},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11707":{"this":{"__isSmartRef__":true,"id":11661}},"11708":{"timestamp":{"__isSmartRef__":true,"id":11709},"user":"sebastianwoinar","tags":[]},"11709":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11710":{"varMapping":{"__isSmartRef__":true,"id":11711},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":11712},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11711":{"this":{"__isSmartRef__":true,"id":11661}},"11712":{"timestamp":{"__isSmartRef__":true,"id":11713},"user":"sebastianwoinar","tags":[]},"11713":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11714":{"varMapping":{"__isSmartRef__":true,"id":11715},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":11716},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11715":{"this":{"__isSmartRef__":true,"id":11661}},"11716":{"timestamp":{"__isSmartRef__":true,"id":11717},"user":"sebastianwoinar","tags":[]},"11717":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"11718":{"varMapping":{"__isSmartRef__":true,"id":11719},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":11720},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11719":{"this":{"__isSmartRef__":true,"id":11661}},"11720":{"timestamp":{"__isSmartRef__":true,"id":11721},"user":"sebastianwoinar","tags":[]},"11721":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"11722":{"varMapping":{"__isSmartRef__":true,"id":11723},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":11724},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11723":{"this":{"__isSmartRef__":true,"id":11661}},"11724":{"timestamp":{"__isSmartRef__":true,"id":11725},"user":"sebastianwoinar","tags":[]},"11725":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"11726":{"varMapping":{"__isSmartRef__":true,"id":11727},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":11728},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11727":{"this":{"__isSmartRef__":true,"id":11661}},"11728":{"timestamp":{"__isSmartRef__":true,"id":11729},"user":"sebastianwoinar","tags":[]},"11729":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"11730":{"varMapping":{"__isSmartRef__":true,"id":11731},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":11732},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11731":{"this":{"__isSmartRef__":true,"id":11661}},"11732":{"timestamp":{"__isSmartRef__":true,"id":11733},"user":"sebastianwoinar","tags":[]},"11733":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"11734":{"varMapping":{"__isSmartRef__":true,"id":11735},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":11736},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11735":{"this":{"__isSmartRef__":true,"id":11661}},"11736":{"timestamp":{"__isSmartRef__":true,"id":11737},"user":"sebastianwoinar","tags":[]},"11737":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"11738":{"varMapping":{"__isSmartRef__":true,"id":11739},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":11740},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11739":{"this":{"__isSmartRef__":true,"id":11661}},"11740":{"timestamp":{"__isSmartRef__":true,"id":11741},"user":"sebastianwoinar","tags":[]},"11741":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"11742":{"varMapping":{"__isSmartRef__":true,"id":11743},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":11744},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11743":{"this":{"__isSmartRef__":true,"id":11661}},"11744":{"timestamp":{"__isSmartRef__":true,"id":11745},"user":"sebastianwoinar","tags":[]},"11745":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"11746":{"varMapping":{"__isSmartRef__":true,"id":11747},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":11748},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11747":{"this":{"__isSmartRef__":true,"id":11661}},"11748":{"timestamp":{"__isSmartRef__":true,"id":11749},"user":"sebastianwoinar","tags":[]},"11749":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"11750":{"varMapping":{"__isSmartRef__":true,"id":11751},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":11756},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11751":{"this":{"__isSmartRef__":true,"id":11661},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11752}},"11752":{"$super":{"__isSmartRef__":true,"id":11753}},"11753":{"varMapping":{"__isSmartRef__":true,"id":11754},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11755},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11754":{"obj":{"__isSmartRef__":true,"id":11661},"name":"onMouseDown"},"11755":{},"11756":{"timestamp":{"__isSmartRef__":true,"id":11757},"user":"sebastianwoinar","tags":[]},"11757":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"11758":{"varMapping":{"__isSmartRef__":true,"id":11759},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":11760},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11759":{"this":{"__isSmartRef__":true,"id":11661}},"11760":{"timestamp":{"__isSmartRef__":true,"id":11761},"user":"sebastianwoinar","tags":[]},"11761":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"11762":{"varMapping":{"__isSmartRef__":true,"id":11763},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":11764},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11763":{"this":{"__isSmartRef__":true,"id":11661}},"11764":{"timestamp":{"__isSmartRef__":true,"id":11765},"user":"sebastianwoinar","tags":[]},"11765":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"11766":{"varMapping":{"__isSmartRef__":true,"id":11767},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":11768},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11767":{"this":{"__isSmartRef__":true,"id":11661}},"11768":{"timestamp":{"__isSmartRef__":true,"id":11769},"user":"sebastianwoinar","tags":[]},"11769":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"11770":{"varMapping":{"__isSmartRef__":true,"id":11771},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":11772},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11771":{"this":{"__isSmartRef__":true,"id":11661}},"11772":{"timestamp":{"__isSmartRef__":true,"id":11773},"user":"sebastianwoinar","tags":[]},"11773":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"11774":{"varMapping":{"__isSmartRef__":true,"id":11775},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":11776},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11775":{"this":{"__isSmartRef__":true,"id":11661}},"11776":{"timestamp":{"__isSmartRef__":true,"id":11777},"user":"sebastianwoinar","tags":[]},"11777":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"11778":{"varMapping":{"__isSmartRef__":true,"id":11779},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11780},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11779":{"this":{"__isSmartRef__":true,"id":11661}},"11780":{"timestamp":{"__isSmartRef__":true,"id":11781},"user":"sebastianwoinar","tags":[]},"11781":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"11782":{"varMapping":{"__isSmartRef__":true,"id":11783},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":11784},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11783":{"this":{"__isSmartRef__":true,"id":11661}},"11784":{"timestamp":{"__isSmartRef__":true,"id":11785},"user":"sebastianwoinar","tags":[]},"11785":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"11786":{"varMapping":{"__isSmartRef__":true,"id":11787},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11788},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11787":{"this":{"__isSmartRef__":true,"id":11661}},"11788":{"timestamp":{"__isSmartRef__":true,"id":11789},"user":"sebastianwoinar","tags":[]},"11789":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"11790":{"buildChildNodes":{"__isSmartRef__":true,"id":11791},"getGameTree":{"__isSmartRef__":true,"id":11795},"getLevel":{"__isSmartRef__":true,"id":11799},"getLevelWeight":{"__isSmartRef__":true,"id":11803},"getWeight":{"__isSmartRef__":true,"id":11807},"setNode":{"__isSmartRef__":true,"id":11811},"setParent":{"__isSmartRef__":true,"id":11815},"getParent":{"__isSmartRef__":true,"id":11819},"deactivate":{"__isSmartRef__":true,"id":11823},"blink":{"__isSmartRef__":true,"id":11827},"ABPreturn":{"__isSmartRef__":true,"id":11831},"ABPstart":{"__isSmartRef__":true,"id":11835},"ABPcontinue":{"__isSmartRef__":true,"id":11839},"ABPshowValue":{"__isSmartRef__":true,"id":11843},"ABPgetValue":{"__isSmartRef__":true,"id":11847},"ABPhasChildNodes":{"__isSmartRef__":true,"id":11851},"onMouseDown":{"__isSmartRef__":true,"id":11855},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":11863},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":11867},"ABPmarkAsDone":{"__isSmartRef__":true,"id":11871},"ABPmarkAsActive":{"__isSmartRef__":true,"id":11875},"getStateMorph":{"__isSmartRef__":true,"id":11879},"showState":{"__isSmartRef__":true,"id":11883},"ABPfailHard":{"__isSmartRef__":true,"id":11887},"markFinalDrawWith":{"__isSmartRef__":true,"id":11891}},"11791":{"varMapping":{"__isSmartRef__":true,"id":11792},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":11793},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11792":{"this":{"__isSmartRef__":true,"id":10605}},"11793":{"timestamp":{"__isSmartRef__":true,"id":11794},"user":"sebastianwoinar","tags":[]},"11794":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"11795":{"varMapping":{"__isSmartRef__":true,"id":11796},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":11797},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11796":{"this":{"__isSmartRef__":true,"id":10605}},"11797":{"timestamp":{"__isSmartRef__":true,"id":11798},"user":"sebastianwoinar","tags":[]},"11798":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11799":{"varMapping":{"__isSmartRef__":true,"id":11800},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":11801},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11800":{"this":{"__isSmartRef__":true,"id":10605}},"11801":{"timestamp":{"__isSmartRef__":true,"id":11802},"user":"sebastianwoinar","tags":[]},"11802":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11803":{"varMapping":{"__isSmartRef__":true,"id":11804},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11805},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11804":{"this":{"__isSmartRef__":true,"id":10605}},"11805":{"timestamp":{"__isSmartRef__":true,"id":11806},"user":"sebastianwoinar","tags":[]},"11806":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11807":{"varMapping":{"__isSmartRef__":true,"id":11808},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":11809},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11808":{"this":{"__isSmartRef__":true,"id":10605}},"11809":{"timestamp":{"__isSmartRef__":true,"id":11810},"user":"sebastianwoinar","tags":[]},"11810":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11811":{"varMapping":{"__isSmartRef__":true,"id":11812},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":11813},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11812":{"this":{"__isSmartRef__":true,"id":10605}},"11813":{"timestamp":{"__isSmartRef__":true,"id":11814},"user":"sebastianwoinar","tags":[]},"11814":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11815":{"varMapping":{"__isSmartRef__":true,"id":11816},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":11817},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11816":{"this":{"__isSmartRef__":true,"id":10605}},"11817":{"timestamp":{"__isSmartRef__":true,"id":11818},"user":"sebastianwoinar","tags":[]},"11818":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11819":{"varMapping":{"__isSmartRef__":true,"id":11820},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":11821},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11820":{"this":{"__isSmartRef__":true,"id":10605}},"11821":{"timestamp":{"__isSmartRef__":true,"id":11822},"user":"sebastianwoinar","tags":[]},"11822":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"11823":{"varMapping":{"__isSmartRef__":true,"id":11824},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":11825},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11824":{"this":{"__isSmartRef__":true,"id":10605}},"11825":{"timestamp":{"__isSmartRef__":true,"id":11826},"user":"sebastianwoinar","tags":[]},"11826":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"11827":{"varMapping":{"__isSmartRef__":true,"id":11828},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":11829},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11828":{"this":{"__isSmartRef__":true,"id":10605}},"11829":{"timestamp":{"__isSmartRef__":true,"id":11830},"user":"sebastianwoinar","tags":[]},"11830":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"11831":{"varMapping":{"__isSmartRef__":true,"id":11832},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":11833},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11832":{"this":{"__isSmartRef__":true,"id":10605}},"11833":{"timestamp":{"__isSmartRef__":true,"id":11834},"user":"sebastianwoinar","tags":[]},"11834":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"11835":{"varMapping":{"__isSmartRef__":true,"id":11836},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":11837},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11836":{"this":{"__isSmartRef__":true,"id":10605}},"11837":{"timestamp":{"__isSmartRef__":true,"id":11838},"user":"sebastianwoinar","tags":[]},"11838":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"11839":{"varMapping":{"__isSmartRef__":true,"id":11840},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":11841},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11840":{"this":{"__isSmartRef__":true,"id":10605}},"11841":{"timestamp":{"__isSmartRef__":true,"id":11842},"user":"sebastianwoinar","tags":[]},"11842":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"11843":{"varMapping":{"__isSmartRef__":true,"id":11844},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":11845},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11844":{"this":{"__isSmartRef__":true,"id":10605}},"11845":{"timestamp":{"__isSmartRef__":true,"id":11846},"user":"sebastianwoinar","tags":[]},"11846":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"11847":{"varMapping":{"__isSmartRef__":true,"id":11848},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":11849},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11848":{"this":{"__isSmartRef__":true,"id":10605}},"11849":{"timestamp":{"__isSmartRef__":true,"id":11850},"user":"sebastianwoinar","tags":[]},"11850":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"11851":{"varMapping":{"__isSmartRef__":true,"id":11852},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":11853},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11852":{"this":{"__isSmartRef__":true,"id":10605}},"11853":{"timestamp":{"__isSmartRef__":true,"id":11854},"user":"sebastianwoinar","tags":[]},"11854":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"11855":{"varMapping":{"__isSmartRef__":true,"id":11856},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":11861},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11856":{"this":{"__isSmartRef__":true,"id":10605},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11857}},"11857":{"$super":{"__isSmartRef__":true,"id":11858}},"11858":{"varMapping":{"__isSmartRef__":true,"id":11859},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11860},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11859":{"obj":{"__isSmartRef__":true,"id":10605},"name":"onMouseDown"},"11860":{},"11861":{"timestamp":{"__isSmartRef__":true,"id":11862},"user":"sebastianwoinar","tags":[]},"11862":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"11863":{"varMapping":{"__isSmartRef__":true,"id":11864},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":11865},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11864":{"this":{"__isSmartRef__":true,"id":10605}},"11865":{"timestamp":{"__isSmartRef__":true,"id":11866},"user":"sebastianwoinar","tags":[]},"11866":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"11867":{"varMapping":{"__isSmartRef__":true,"id":11868},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":11869},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11868":{"this":{"__isSmartRef__":true,"id":10605}},"11869":{"timestamp":{"__isSmartRef__":true,"id":11870},"user":"sebastianwoinar","tags":[]},"11870":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"11871":{"varMapping":{"__isSmartRef__":true,"id":11872},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":11873},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11872":{"this":{"__isSmartRef__":true,"id":10605}},"11873":{"timestamp":{"__isSmartRef__":true,"id":11874},"user":"sebastianwoinar","tags":[]},"11874":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"11875":{"varMapping":{"__isSmartRef__":true,"id":11876},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":11877},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11876":{"this":{"__isSmartRef__":true,"id":10605}},"11877":{"timestamp":{"__isSmartRef__":true,"id":11878},"user":"sebastianwoinar","tags":[]},"11878":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"11879":{"varMapping":{"__isSmartRef__":true,"id":11880},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":11881},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11880":{"this":{"__isSmartRef__":true,"id":10605}},"11881":{"timestamp":{"__isSmartRef__":true,"id":11882},"user":"sebastianwoinar","tags":[]},"11882":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"11883":{"varMapping":{"__isSmartRef__":true,"id":11884},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11885},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11884":{"this":{"__isSmartRef__":true,"id":10605}},"11885":{"timestamp":{"__isSmartRef__":true,"id":11886},"user":"sebastianwoinar","tags":[]},"11886":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"11887":{"varMapping":{"__isSmartRef__":true,"id":11888},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":11889},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11888":{"this":{"__isSmartRef__":true,"id":10605}},"11889":{"timestamp":{"__isSmartRef__":true,"id":11890},"user":"sebastianwoinar","tags":[]},"11890":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"11891":{"varMapping":{"__isSmartRef__":true,"id":11892},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11893},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11892":{"this":{"__isSmartRef__":true,"id":10605}},"11893":{"timestamp":{"__isSmartRef__":true,"id":11894},"user":"sebastianwoinar","tags":[]},"11894":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"11895":{"submorphs":[{"__isSmartRef__":true,"id":11896}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11913},"id":"79E088FB-E77D-4B7C-8B36-318028C0D478","eventHandler":{"__isSmartRef__":true,"id":11914},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":11915},"name":"node50","partsBinMetaInfo":{"__isSmartRef__":true,"id":11916},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5529},"owner":{"__isSmartRef__":true,"id":5408},"childNodes":[{"__isSmartRef__":true,"id":11919},{"__isSmartRef__":true,"id":12048},{"__isSmartRef__":true,"id":12177}],"parent":{"__isSmartRef__":true,"id":5937},"level":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12306},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(285.2,160.0)"},"11896":{"submorphs":[],"scripts":[],"id":"52C22B0F-7EA6-429E-AD18-E04BAB24752C","shape":{"__isSmartRef__":true,"id":11897},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":11898},"textChunks":[{"__isSmartRef__":true,"id":11910}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":11912},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":11895},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"11897":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"11898":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":11899},{"__isSmartRef__":true,"id":11901},{"__isSmartRef__":true,"id":11903},{"__isSmartRef__":true,"id":11905},{"__isSmartRef__":true,"id":11907}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":11909},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"11899":{"date":{"__isSmartRef__":true,"id":11900},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"11900":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"11901":{"date":{"__isSmartRef__":true,"id":11902},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"11902":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"11903":{"date":{"__isSmartRef__":true,"id":11904},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"11904":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"11905":{"date":{"__isSmartRef__":true,"id":11906},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"11906":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"11907":{"date":{"__isSmartRef__":true,"id":11908},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"11908":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"11909":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"11910":{"style":{"__isSmartRef__":true,"id":11911},"morph":{"__isSmartRef__":true,"id":11896},"chunkOwner":{"__isSmartRef__":true,"id":11896},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11911":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11912":{"morph":{"__isSmartRef__":true,"id":11896},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11913":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"11914":{"morph":{"__isSmartRef__":true,"id":11895},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11915":{},"11916":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":11917}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"11917":{"date":{"__isSmartRef__":true,"id":11918},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"11918":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"11919":{"submorphs":[{"__isSmartRef__":true,"id":11920}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11937},"id":"D00D2203-9760-416A-BB4C-06752CA8B894","eventHandler":{"__isSmartRef__":true,"id":11938},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":11939},"name":"node51","partsBinMetaInfo":{"__isSmartRef__":true,"id":11940},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5531},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":11895},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11943},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(243.8,210.0)"},"11920":{"submorphs":[],"scripts":[],"id":"06D0B9F0-9365-45AA-B2F4-3A175373EB02","shape":{"__isSmartRef__":true,"id":11921},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":11922},"textChunks":[{"__isSmartRef__":true,"id":11934}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":11936},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":11919},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"11921":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"11922":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":11923},{"__isSmartRef__":true,"id":11925},{"__isSmartRef__":true,"id":11927},{"__isSmartRef__":true,"id":11929},{"__isSmartRef__":true,"id":11931}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":11933},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"11923":{"date":{"__isSmartRef__":true,"id":11924},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"11924":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"11925":{"date":{"__isSmartRef__":true,"id":11926},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"11926":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"11927":{"date":{"__isSmartRef__":true,"id":11928},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"11928":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"11929":{"date":{"__isSmartRef__":true,"id":11930},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"11930":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"11931":{"date":{"__isSmartRef__":true,"id":11932},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"11932":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"11933":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"11934":{"style":{"__isSmartRef__":true,"id":11935},"morph":{"__isSmartRef__":true,"id":11920},"chunkOwner":{"__isSmartRef__":true,"id":11920},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11935":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11936":{"morph":{"__isSmartRef__":true,"id":11920},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11937":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"11938":{"morph":{"__isSmartRef__":true,"id":11919},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11939":{},"11940":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":11941}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"11941":{"date":{"__isSmartRef__":true,"id":11942},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"11942":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"11943":{"buildChildNodes":{"__isSmartRef__":true,"id":11944},"getGameTree":{"__isSmartRef__":true,"id":11948},"getLevel":{"__isSmartRef__":true,"id":11952},"getLevelWeight":{"__isSmartRef__":true,"id":11956},"getWeight":{"__isSmartRef__":true,"id":11960},"setNode":{"__isSmartRef__":true,"id":11964},"setParent":{"__isSmartRef__":true,"id":11968},"getParent":{"__isSmartRef__":true,"id":11972},"deactivate":{"__isSmartRef__":true,"id":11976},"blink":{"__isSmartRef__":true,"id":11980},"ABPreturn":{"__isSmartRef__":true,"id":11984},"ABPstart":{"__isSmartRef__":true,"id":11988},"ABPcontinue":{"__isSmartRef__":true,"id":11992},"ABPshowValue":{"__isSmartRef__":true,"id":11996},"ABPgetValue":{"__isSmartRef__":true,"id":12000},"ABPhasChildNodes":{"__isSmartRef__":true,"id":12004},"onMouseDown":{"__isSmartRef__":true,"id":12008},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":12016},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":12020},"ABPmarkAsDone":{"__isSmartRef__":true,"id":12024},"ABPmarkAsActive":{"__isSmartRef__":true,"id":12028},"getStateMorph":{"__isSmartRef__":true,"id":12032},"showState":{"__isSmartRef__":true,"id":12036},"ABPfailHard":{"__isSmartRef__":true,"id":12040},"markFinalDrawWith":{"__isSmartRef__":true,"id":12044}},"11944":{"varMapping":{"__isSmartRef__":true,"id":11945},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":11946},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11945":{"this":{"__isSmartRef__":true,"id":11919}},"11946":{"timestamp":{"__isSmartRef__":true,"id":11947},"user":"sebastianwoinar","tags":[]},"11947":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"11948":{"varMapping":{"__isSmartRef__":true,"id":11949},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":11950},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11949":{"this":{"__isSmartRef__":true,"id":11919}},"11950":{"timestamp":{"__isSmartRef__":true,"id":11951},"user":"sebastianwoinar","tags":[]},"11951":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11952":{"varMapping":{"__isSmartRef__":true,"id":11953},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":11954},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11953":{"this":{"__isSmartRef__":true,"id":11919}},"11954":{"timestamp":{"__isSmartRef__":true,"id":11955},"user":"sebastianwoinar","tags":[]},"11955":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11956":{"varMapping":{"__isSmartRef__":true,"id":11957},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11958},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11957":{"this":{"__isSmartRef__":true,"id":11919}},"11958":{"timestamp":{"__isSmartRef__":true,"id":11959},"user":"sebastianwoinar","tags":[]},"11959":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11960":{"varMapping":{"__isSmartRef__":true,"id":11961},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":11962},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11961":{"this":{"__isSmartRef__":true,"id":11919}},"11962":{"timestamp":{"__isSmartRef__":true,"id":11963},"user":"sebastianwoinar","tags":[]},"11963":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11964":{"varMapping":{"__isSmartRef__":true,"id":11965},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":11966},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11965":{"this":{"__isSmartRef__":true,"id":11919}},"11966":{"timestamp":{"__isSmartRef__":true,"id":11967},"user":"sebastianwoinar","tags":[]},"11967":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11968":{"varMapping":{"__isSmartRef__":true,"id":11969},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":11970},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11969":{"this":{"__isSmartRef__":true,"id":11919}},"11970":{"timestamp":{"__isSmartRef__":true,"id":11971},"user":"sebastianwoinar","tags":[]},"11971":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"11972":{"varMapping":{"__isSmartRef__":true,"id":11973},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":11974},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11973":{"this":{"__isSmartRef__":true,"id":11919}},"11974":{"timestamp":{"__isSmartRef__":true,"id":11975},"user":"sebastianwoinar","tags":[]},"11975":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"11976":{"varMapping":{"__isSmartRef__":true,"id":11977},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":11978},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11977":{"this":{"__isSmartRef__":true,"id":11919}},"11978":{"timestamp":{"__isSmartRef__":true,"id":11979},"user":"sebastianwoinar","tags":[]},"11979":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"11980":{"varMapping":{"__isSmartRef__":true,"id":11981},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":11982},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11981":{"this":{"__isSmartRef__":true,"id":11919}},"11982":{"timestamp":{"__isSmartRef__":true,"id":11983},"user":"sebastianwoinar","tags":[]},"11983":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"11984":{"varMapping":{"__isSmartRef__":true,"id":11985},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":11986},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11985":{"this":{"__isSmartRef__":true,"id":11919}},"11986":{"timestamp":{"__isSmartRef__":true,"id":11987},"user":"sebastianwoinar","tags":[]},"11987":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"11988":{"varMapping":{"__isSmartRef__":true,"id":11989},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":11990},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11989":{"this":{"__isSmartRef__":true,"id":11919}},"11990":{"timestamp":{"__isSmartRef__":true,"id":11991},"user":"sebastianwoinar","tags":[]},"11991":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"11992":{"varMapping":{"__isSmartRef__":true,"id":11993},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":11994},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11993":{"this":{"__isSmartRef__":true,"id":11919}},"11994":{"timestamp":{"__isSmartRef__":true,"id":11995},"user":"sebastianwoinar","tags":[]},"11995":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"11996":{"varMapping":{"__isSmartRef__":true,"id":11997},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":11998},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11997":{"this":{"__isSmartRef__":true,"id":11919}},"11998":{"timestamp":{"__isSmartRef__":true,"id":11999},"user":"sebastianwoinar","tags":[]},"11999":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"12000":{"varMapping":{"__isSmartRef__":true,"id":12001},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":12002},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12001":{"this":{"__isSmartRef__":true,"id":11919}},"12002":{"timestamp":{"__isSmartRef__":true,"id":12003},"user":"sebastianwoinar","tags":[]},"12003":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"12004":{"varMapping":{"__isSmartRef__":true,"id":12005},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":12006},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12005":{"this":{"__isSmartRef__":true,"id":11919}},"12006":{"timestamp":{"__isSmartRef__":true,"id":12007},"user":"sebastianwoinar","tags":[]},"12007":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"12008":{"varMapping":{"__isSmartRef__":true,"id":12009},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":12014},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12009":{"this":{"__isSmartRef__":true,"id":11919},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12010}},"12010":{"$super":{"__isSmartRef__":true,"id":12011}},"12011":{"varMapping":{"__isSmartRef__":true,"id":12012},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12013},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12012":{"obj":{"__isSmartRef__":true,"id":11919},"name":"onMouseDown"},"12013":{},"12014":{"timestamp":{"__isSmartRef__":true,"id":12015},"user":"sebastianwoinar","tags":[]},"12015":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"12016":{"varMapping":{"__isSmartRef__":true,"id":12017},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":12018},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12017":{"this":{"__isSmartRef__":true,"id":11919}},"12018":{"timestamp":{"__isSmartRef__":true,"id":12019},"user":"sebastianwoinar","tags":[]},"12019":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"12020":{"varMapping":{"__isSmartRef__":true,"id":12021},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":12022},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12021":{"this":{"__isSmartRef__":true,"id":11919}},"12022":{"timestamp":{"__isSmartRef__":true,"id":12023},"user":"sebastianwoinar","tags":[]},"12023":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"12024":{"varMapping":{"__isSmartRef__":true,"id":12025},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":12026},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12025":{"this":{"__isSmartRef__":true,"id":11919}},"12026":{"timestamp":{"__isSmartRef__":true,"id":12027},"user":"sebastianwoinar","tags":[]},"12027":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"12028":{"varMapping":{"__isSmartRef__":true,"id":12029},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":12030},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12029":{"this":{"__isSmartRef__":true,"id":11919}},"12030":{"timestamp":{"__isSmartRef__":true,"id":12031},"user":"sebastianwoinar","tags":[]},"12031":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"12032":{"varMapping":{"__isSmartRef__":true,"id":12033},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":12034},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12033":{"this":{"__isSmartRef__":true,"id":11919}},"12034":{"timestamp":{"__isSmartRef__":true,"id":12035},"user":"sebastianwoinar","tags":[]},"12035":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"12036":{"varMapping":{"__isSmartRef__":true,"id":12037},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12038},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12037":{"this":{"__isSmartRef__":true,"id":11919}},"12038":{"timestamp":{"__isSmartRef__":true,"id":12039},"user":"sebastianwoinar","tags":[]},"12039":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"12040":{"varMapping":{"__isSmartRef__":true,"id":12041},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":12042},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12041":{"this":{"__isSmartRef__":true,"id":11919}},"12042":{"timestamp":{"__isSmartRef__":true,"id":12043},"user":"sebastianwoinar","tags":[]},"12043":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"12044":{"varMapping":{"__isSmartRef__":true,"id":12045},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12046},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12045":{"this":{"__isSmartRef__":true,"id":11919}},"12046":{"timestamp":{"__isSmartRef__":true,"id":12047},"user":"sebastianwoinar","tags":[]},"12047":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"12048":{"submorphs":[{"__isSmartRef__":true,"id":12049}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12066},"id":"3421C2B7-0901-4BCE-9DF4-46147532CF38","eventHandler":{"__isSmartRef__":true,"id":12067},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":12068},"name":"node52","partsBinMetaInfo":{"__isSmartRef__":true,"id":12069},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5533},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":11895},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12072},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(249.0,210.0)"},"12049":{"submorphs":[],"scripts":[],"id":"8F3606DD-559B-4E37-9EE4-35C53B940E90","shape":{"__isSmartRef__":true,"id":12050},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":12051},"textChunks":[{"__isSmartRef__":true,"id":12063}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":12065},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":12048},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"12050":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"12051":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":12052},{"__isSmartRef__":true,"id":12054},{"__isSmartRef__":true,"id":12056},{"__isSmartRef__":true,"id":12058},{"__isSmartRef__":true,"id":12060}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":12062},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"12052":{"date":{"__isSmartRef__":true,"id":12053},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"12053":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"12054":{"date":{"__isSmartRef__":true,"id":12055},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"12055":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"12056":{"date":{"__isSmartRef__":true,"id":12057},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"12057":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"12058":{"date":{"__isSmartRef__":true,"id":12059},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"12059":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"12060":{"date":{"__isSmartRef__":true,"id":12061},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"12061":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"12062":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"12063":{"style":{"__isSmartRef__":true,"id":12064},"morph":{"__isSmartRef__":true,"id":12049},"chunkOwner":{"__isSmartRef__":true,"id":12049},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12064":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12065":{"morph":{"__isSmartRef__":true,"id":12049},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12066":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"12067":{"morph":{"__isSmartRef__":true,"id":12048},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12068":{},"12069":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":12070}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"12070":{"date":{"__isSmartRef__":true,"id":12071},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"12071":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"12072":{"buildChildNodes":{"__isSmartRef__":true,"id":12073},"getGameTree":{"__isSmartRef__":true,"id":12077},"getLevel":{"__isSmartRef__":true,"id":12081},"getLevelWeight":{"__isSmartRef__":true,"id":12085},"getWeight":{"__isSmartRef__":true,"id":12089},"setNode":{"__isSmartRef__":true,"id":12093},"setParent":{"__isSmartRef__":true,"id":12097},"getParent":{"__isSmartRef__":true,"id":12101},"deactivate":{"__isSmartRef__":true,"id":12105},"blink":{"__isSmartRef__":true,"id":12109},"ABPreturn":{"__isSmartRef__":true,"id":12113},"ABPstart":{"__isSmartRef__":true,"id":12117},"ABPcontinue":{"__isSmartRef__":true,"id":12121},"ABPshowValue":{"__isSmartRef__":true,"id":12125},"ABPgetValue":{"__isSmartRef__":true,"id":12129},"ABPhasChildNodes":{"__isSmartRef__":true,"id":12133},"onMouseDown":{"__isSmartRef__":true,"id":12137},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":12145},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":12149},"ABPmarkAsDone":{"__isSmartRef__":true,"id":12153},"ABPmarkAsActive":{"__isSmartRef__":true,"id":12157},"getStateMorph":{"__isSmartRef__":true,"id":12161},"showState":{"__isSmartRef__":true,"id":12165},"ABPfailHard":{"__isSmartRef__":true,"id":12169},"markFinalDrawWith":{"__isSmartRef__":true,"id":12173}},"12073":{"varMapping":{"__isSmartRef__":true,"id":12074},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":12075},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12074":{"this":{"__isSmartRef__":true,"id":12048}},"12075":{"timestamp":{"__isSmartRef__":true,"id":12076},"user":"sebastianwoinar","tags":[]},"12076":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"12077":{"varMapping":{"__isSmartRef__":true,"id":12078},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":12079},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12078":{"this":{"__isSmartRef__":true,"id":12048}},"12079":{"timestamp":{"__isSmartRef__":true,"id":12080},"user":"sebastianwoinar","tags":[]},"12080":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12081":{"varMapping":{"__isSmartRef__":true,"id":12082},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":12083},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12082":{"this":{"__isSmartRef__":true,"id":12048}},"12083":{"timestamp":{"__isSmartRef__":true,"id":12084},"user":"sebastianwoinar","tags":[]},"12084":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12085":{"varMapping":{"__isSmartRef__":true,"id":12086},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12087},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12086":{"this":{"__isSmartRef__":true,"id":12048}},"12087":{"timestamp":{"__isSmartRef__":true,"id":12088},"user":"sebastianwoinar","tags":[]},"12088":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12089":{"varMapping":{"__isSmartRef__":true,"id":12090},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":12091},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12090":{"this":{"__isSmartRef__":true,"id":12048}},"12091":{"timestamp":{"__isSmartRef__":true,"id":12092},"user":"sebastianwoinar","tags":[]},"12092":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12093":{"varMapping":{"__isSmartRef__":true,"id":12094},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":12095},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12094":{"this":{"__isSmartRef__":true,"id":12048}},"12095":{"timestamp":{"__isSmartRef__":true,"id":12096},"user":"sebastianwoinar","tags":[]},"12096":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12097":{"varMapping":{"__isSmartRef__":true,"id":12098},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":12099},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12098":{"this":{"__isSmartRef__":true,"id":12048}},"12099":{"timestamp":{"__isSmartRef__":true,"id":12100},"user":"sebastianwoinar","tags":[]},"12100":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12101":{"varMapping":{"__isSmartRef__":true,"id":12102},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":12103},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12102":{"this":{"__isSmartRef__":true,"id":12048}},"12103":{"timestamp":{"__isSmartRef__":true,"id":12104},"user":"sebastianwoinar","tags":[]},"12104":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"12105":{"varMapping":{"__isSmartRef__":true,"id":12106},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":12107},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12106":{"this":{"__isSmartRef__":true,"id":12048}},"12107":{"timestamp":{"__isSmartRef__":true,"id":12108},"user":"sebastianwoinar","tags":[]},"12108":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"12109":{"varMapping":{"__isSmartRef__":true,"id":12110},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":12111},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12110":{"this":{"__isSmartRef__":true,"id":12048}},"12111":{"timestamp":{"__isSmartRef__":true,"id":12112},"user":"sebastianwoinar","tags":[]},"12112":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"12113":{"varMapping":{"__isSmartRef__":true,"id":12114},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":12115},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12114":{"this":{"__isSmartRef__":true,"id":12048}},"12115":{"timestamp":{"__isSmartRef__":true,"id":12116},"user":"sebastianwoinar","tags":[]},"12116":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"12117":{"varMapping":{"__isSmartRef__":true,"id":12118},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":12119},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12118":{"this":{"__isSmartRef__":true,"id":12048}},"12119":{"timestamp":{"__isSmartRef__":true,"id":12120},"user":"sebastianwoinar","tags":[]},"12120":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"12121":{"varMapping":{"__isSmartRef__":true,"id":12122},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":12123},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12122":{"this":{"__isSmartRef__":true,"id":12048}},"12123":{"timestamp":{"__isSmartRef__":true,"id":12124},"user":"sebastianwoinar","tags":[]},"12124":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"12125":{"varMapping":{"__isSmartRef__":true,"id":12126},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":12127},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12126":{"this":{"__isSmartRef__":true,"id":12048}},"12127":{"timestamp":{"__isSmartRef__":true,"id":12128},"user":"sebastianwoinar","tags":[]},"12128":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"12129":{"varMapping":{"__isSmartRef__":true,"id":12130},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":12131},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12130":{"this":{"__isSmartRef__":true,"id":12048}},"12131":{"timestamp":{"__isSmartRef__":true,"id":12132},"user":"sebastianwoinar","tags":[]},"12132":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"12133":{"varMapping":{"__isSmartRef__":true,"id":12134},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":12135},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12134":{"this":{"__isSmartRef__":true,"id":12048}},"12135":{"timestamp":{"__isSmartRef__":true,"id":12136},"user":"sebastianwoinar","tags":[]},"12136":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"12137":{"varMapping":{"__isSmartRef__":true,"id":12138},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":12143},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12138":{"this":{"__isSmartRef__":true,"id":12048},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12139}},"12139":{"$super":{"__isSmartRef__":true,"id":12140}},"12140":{"varMapping":{"__isSmartRef__":true,"id":12141},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12142},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12141":{"obj":{"__isSmartRef__":true,"id":12048},"name":"onMouseDown"},"12142":{},"12143":{"timestamp":{"__isSmartRef__":true,"id":12144},"user":"sebastianwoinar","tags":[]},"12144":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"12145":{"varMapping":{"__isSmartRef__":true,"id":12146},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":12147},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12146":{"this":{"__isSmartRef__":true,"id":12048}},"12147":{"timestamp":{"__isSmartRef__":true,"id":12148},"user":"sebastianwoinar","tags":[]},"12148":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"12149":{"varMapping":{"__isSmartRef__":true,"id":12150},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":12151},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12150":{"this":{"__isSmartRef__":true,"id":12048}},"12151":{"timestamp":{"__isSmartRef__":true,"id":12152},"user":"sebastianwoinar","tags":[]},"12152":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"12153":{"varMapping":{"__isSmartRef__":true,"id":12154},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":12155},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12154":{"this":{"__isSmartRef__":true,"id":12048}},"12155":{"timestamp":{"__isSmartRef__":true,"id":12156},"user":"sebastianwoinar","tags":[]},"12156":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"12157":{"varMapping":{"__isSmartRef__":true,"id":12158},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":12159},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12158":{"this":{"__isSmartRef__":true,"id":12048}},"12159":{"timestamp":{"__isSmartRef__":true,"id":12160},"user":"sebastianwoinar","tags":[]},"12160":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"12161":{"varMapping":{"__isSmartRef__":true,"id":12162},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":12163},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12162":{"this":{"__isSmartRef__":true,"id":12048}},"12163":{"timestamp":{"__isSmartRef__":true,"id":12164},"user":"sebastianwoinar","tags":[]},"12164":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"12165":{"varMapping":{"__isSmartRef__":true,"id":12166},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12167},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12166":{"this":{"__isSmartRef__":true,"id":12048}},"12167":{"timestamp":{"__isSmartRef__":true,"id":12168},"user":"sebastianwoinar","tags":[]},"12168":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"12169":{"varMapping":{"__isSmartRef__":true,"id":12170},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":12171},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12170":{"this":{"__isSmartRef__":true,"id":12048}},"12171":{"timestamp":{"__isSmartRef__":true,"id":12172},"user":"sebastianwoinar","tags":[]},"12172":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"12173":{"varMapping":{"__isSmartRef__":true,"id":12174},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12175},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12174":{"this":{"__isSmartRef__":true,"id":12048}},"12175":{"timestamp":{"__isSmartRef__":true,"id":12176},"user":"sebastianwoinar","tags":[]},"12176":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"12177":{"submorphs":[{"__isSmartRef__":true,"id":12178}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12195},"id":"0EC23607-C39A-412C-8B86-5B6F7DEFB2F1","eventHandler":{"__isSmartRef__":true,"id":12196},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":12197},"name":"node53","partsBinMetaInfo":{"__isSmartRef__":true,"id":12198},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5535},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":11895},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12201},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(254.2,210.0)"},"12178":{"submorphs":[],"scripts":[],"id":"99B364CF-5DEE-4936-96C5-AC3367126BC2","shape":{"__isSmartRef__":true,"id":12179},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":12180},"textChunks":[{"__isSmartRef__":true,"id":12192}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":12194},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":12177},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"12179":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"12180":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":12181},{"__isSmartRef__":true,"id":12183},{"__isSmartRef__":true,"id":12185},{"__isSmartRef__":true,"id":12187},{"__isSmartRef__":true,"id":12189}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":12191},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"12181":{"date":{"__isSmartRef__":true,"id":12182},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"12182":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"12183":{"date":{"__isSmartRef__":true,"id":12184},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"12184":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"12185":{"date":{"__isSmartRef__":true,"id":12186},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"12186":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"12187":{"date":{"__isSmartRef__":true,"id":12188},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"12188":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"12189":{"date":{"__isSmartRef__":true,"id":12190},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"12190":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"12191":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"12192":{"style":{"__isSmartRef__":true,"id":12193},"morph":{"__isSmartRef__":true,"id":12178},"chunkOwner":{"__isSmartRef__":true,"id":12178},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12193":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12194":{"morph":{"__isSmartRef__":true,"id":12178},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12195":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"12196":{"morph":{"__isSmartRef__":true,"id":12177},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12197":{},"12198":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":12199}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"12199":{"date":{"__isSmartRef__":true,"id":12200},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"12200":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"12201":{"buildChildNodes":{"__isSmartRef__":true,"id":12202},"getGameTree":{"__isSmartRef__":true,"id":12206},"getLevel":{"__isSmartRef__":true,"id":12210},"getLevelWeight":{"__isSmartRef__":true,"id":12214},"getWeight":{"__isSmartRef__":true,"id":12218},"setNode":{"__isSmartRef__":true,"id":12222},"setParent":{"__isSmartRef__":true,"id":12226},"getParent":{"__isSmartRef__":true,"id":12230},"deactivate":{"__isSmartRef__":true,"id":12234},"blink":{"__isSmartRef__":true,"id":12238},"ABPreturn":{"__isSmartRef__":true,"id":12242},"ABPstart":{"__isSmartRef__":true,"id":12246},"ABPcontinue":{"__isSmartRef__":true,"id":12250},"ABPshowValue":{"__isSmartRef__":true,"id":12254},"ABPgetValue":{"__isSmartRef__":true,"id":12258},"ABPhasChildNodes":{"__isSmartRef__":true,"id":12262},"onMouseDown":{"__isSmartRef__":true,"id":12266},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":12274},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":12278},"ABPmarkAsDone":{"__isSmartRef__":true,"id":12282},"ABPmarkAsActive":{"__isSmartRef__":true,"id":12286},"getStateMorph":{"__isSmartRef__":true,"id":12290},"showState":{"__isSmartRef__":true,"id":12294},"ABPfailHard":{"__isSmartRef__":true,"id":12298},"markFinalDrawWith":{"__isSmartRef__":true,"id":12302}},"12202":{"varMapping":{"__isSmartRef__":true,"id":12203},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":12204},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12203":{"this":{"__isSmartRef__":true,"id":12177}},"12204":{"timestamp":{"__isSmartRef__":true,"id":12205},"user":"sebastianwoinar","tags":[]},"12205":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"12206":{"varMapping":{"__isSmartRef__":true,"id":12207},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":12208},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12207":{"this":{"__isSmartRef__":true,"id":12177}},"12208":{"timestamp":{"__isSmartRef__":true,"id":12209},"user":"sebastianwoinar","tags":[]},"12209":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12210":{"varMapping":{"__isSmartRef__":true,"id":12211},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":12212},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12211":{"this":{"__isSmartRef__":true,"id":12177}},"12212":{"timestamp":{"__isSmartRef__":true,"id":12213},"user":"sebastianwoinar","tags":[]},"12213":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12214":{"varMapping":{"__isSmartRef__":true,"id":12215},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12216},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12215":{"this":{"__isSmartRef__":true,"id":12177}},"12216":{"timestamp":{"__isSmartRef__":true,"id":12217},"user":"sebastianwoinar","tags":[]},"12217":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12218":{"varMapping":{"__isSmartRef__":true,"id":12219},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":12220},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12219":{"this":{"__isSmartRef__":true,"id":12177}},"12220":{"timestamp":{"__isSmartRef__":true,"id":12221},"user":"sebastianwoinar","tags":[]},"12221":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12222":{"varMapping":{"__isSmartRef__":true,"id":12223},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":12224},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12223":{"this":{"__isSmartRef__":true,"id":12177}},"12224":{"timestamp":{"__isSmartRef__":true,"id":12225},"user":"sebastianwoinar","tags":[]},"12225":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12226":{"varMapping":{"__isSmartRef__":true,"id":12227},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":12228},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12227":{"this":{"__isSmartRef__":true,"id":12177}},"12228":{"timestamp":{"__isSmartRef__":true,"id":12229},"user":"sebastianwoinar","tags":[]},"12229":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12230":{"varMapping":{"__isSmartRef__":true,"id":12231},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":12232},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12231":{"this":{"__isSmartRef__":true,"id":12177}},"12232":{"timestamp":{"__isSmartRef__":true,"id":12233},"user":"sebastianwoinar","tags":[]},"12233":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"12234":{"varMapping":{"__isSmartRef__":true,"id":12235},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":12236},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12235":{"this":{"__isSmartRef__":true,"id":12177}},"12236":{"timestamp":{"__isSmartRef__":true,"id":12237},"user":"sebastianwoinar","tags":[]},"12237":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"12238":{"varMapping":{"__isSmartRef__":true,"id":12239},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":12240},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12239":{"this":{"__isSmartRef__":true,"id":12177}},"12240":{"timestamp":{"__isSmartRef__":true,"id":12241},"user":"sebastianwoinar","tags":[]},"12241":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"12242":{"varMapping":{"__isSmartRef__":true,"id":12243},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":12244},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12243":{"this":{"__isSmartRef__":true,"id":12177}},"12244":{"timestamp":{"__isSmartRef__":true,"id":12245},"user":"sebastianwoinar","tags":[]},"12245":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"12246":{"varMapping":{"__isSmartRef__":true,"id":12247},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":12248},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12247":{"this":{"__isSmartRef__":true,"id":12177}},"12248":{"timestamp":{"__isSmartRef__":true,"id":12249},"user":"sebastianwoinar","tags":[]},"12249":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"12250":{"varMapping":{"__isSmartRef__":true,"id":12251},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":12252},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12251":{"this":{"__isSmartRef__":true,"id":12177}},"12252":{"timestamp":{"__isSmartRef__":true,"id":12253},"user":"sebastianwoinar","tags":[]},"12253":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"12254":{"varMapping":{"__isSmartRef__":true,"id":12255},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":12256},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12255":{"this":{"__isSmartRef__":true,"id":12177}},"12256":{"timestamp":{"__isSmartRef__":true,"id":12257},"user":"sebastianwoinar","tags":[]},"12257":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"12258":{"varMapping":{"__isSmartRef__":true,"id":12259},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":12260},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12259":{"this":{"__isSmartRef__":true,"id":12177}},"12260":{"timestamp":{"__isSmartRef__":true,"id":12261},"user":"sebastianwoinar","tags":[]},"12261":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"12262":{"varMapping":{"__isSmartRef__":true,"id":12263},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":12264},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12263":{"this":{"__isSmartRef__":true,"id":12177}},"12264":{"timestamp":{"__isSmartRef__":true,"id":12265},"user":"sebastianwoinar","tags":[]},"12265":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"12266":{"varMapping":{"__isSmartRef__":true,"id":12267},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":12272},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12267":{"this":{"__isSmartRef__":true,"id":12177},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12268}},"12268":{"$super":{"__isSmartRef__":true,"id":12269}},"12269":{"varMapping":{"__isSmartRef__":true,"id":12270},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12271},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12270":{"obj":{"__isSmartRef__":true,"id":12177},"name":"onMouseDown"},"12271":{},"12272":{"timestamp":{"__isSmartRef__":true,"id":12273},"user":"sebastianwoinar","tags":[]},"12273":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"12274":{"varMapping":{"__isSmartRef__":true,"id":12275},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":12276},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12275":{"this":{"__isSmartRef__":true,"id":12177}},"12276":{"timestamp":{"__isSmartRef__":true,"id":12277},"user":"sebastianwoinar","tags":[]},"12277":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"12278":{"varMapping":{"__isSmartRef__":true,"id":12279},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":12280},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12279":{"this":{"__isSmartRef__":true,"id":12177}},"12280":{"timestamp":{"__isSmartRef__":true,"id":12281},"user":"sebastianwoinar","tags":[]},"12281":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"12282":{"varMapping":{"__isSmartRef__":true,"id":12283},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":12284},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12283":{"this":{"__isSmartRef__":true,"id":12177}},"12284":{"timestamp":{"__isSmartRef__":true,"id":12285},"user":"sebastianwoinar","tags":[]},"12285":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"12286":{"varMapping":{"__isSmartRef__":true,"id":12287},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":12288},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12287":{"this":{"__isSmartRef__":true,"id":12177}},"12288":{"timestamp":{"__isSmartRef__":true,"id":12289},"user":"sebastianwoinar","tags":[]},"12289":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"12290":{"varMapping":{"__isSmartRef__":true,"id":12291},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":12292},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12291":{"this":{"__isSmartRef__":true,"id":12177}},"12292":{"timestamp":{"__isSmartRef__":true,"id":12293},"user":"sebastianwoinar","tags":[]},"12293":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"12294":{"varMapping":{"__isSmartRef__":true,"id":12295},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12296},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12295":{"this":{"__isSmartRef__":true,"id":12177}},"12296":{"timestamp":{"__isSmartRef__":true,"id":12297},"user":"sebastianwoinar","tags":[]},"12297":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"12298":{"varMapping":{"__isSmartRef__":true,"id":12299},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":12300},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12299":{"this":{"__isSmartRef__":true,"id":12177}},"12300":{"timestamp":{"__isSmartRef__":true,"id":12301},"user":"sebastianwoinar","tags":[]},"12301":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"12302":{"varMapping":{"__isSmartRef__":true,"id":12303},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12304},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12303":{"this":{"__isSmartRef__":true,"id":12177}},"12304":{"timestamp":{"__isSmartRef__":true,"id":12305},"user":"sebastianwoinar","tags":[]},"12305":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"12306":{"buildChildNodes":{"__isSmartRef__":true,"id":12307},"getGameTree":{"__isSmartRef__":true,"id":12311},"getLevel":{"__isSmartRef__":true,"id":12315},"getLevelWeight":{"__isSmartRef__":true,"id":12319},"getWeight":{"__isSmartRef__":true,"id":12323},"setNode":{"__isSmartRef__":true,"id":12327},"setParent":{"__isSmartRef__":true,"id":12331},"getParent":{"__isSmartRef__":true,"id":12335},"deactivate":{"__isSmartRef__":true,"id":12339},"blink":{"__isSmartRef__":true,"id":12343},"ABPreturn":{"__isSmartRef__":true,"id":12347},"ABPstart":{"__isSmartRef__":true,"id":12351},"ABPcontinue":{"__isSmartRef__":true,"id":12355},"ABPshowValue":{"__isSmartRef__":true,"id":12359},"ABPgetValue":{"__isSmartRef__":true,"id":12363},"ABPhasChildNodes":{"__isSmartRef__":true,"id":12367},"onMouseDown":{"__isSmartRef__":true,"id":12371},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":12379},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":12383},"ABPmarkAsDone":{"__isSmartRef__":true,"id":12387},"ABPmarkAsActive":{"__isSmartRef__":true,"id":12391},"getStateMorph":{"__isSmartRef__":true,"id":12395},"showState":{"__isSmartRef__":true,"id":12399},"ABPfailHard":{"__isSmartRef__":true,"id":12403},"markFinalDrawWith":{"__isSmartRef__":true,"id":12407}},"12307":{"varMapping":{"__isSmartRef__":true,"id":12308},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":12309},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12308":{"this":{"__isSmartRef__":true,"id":11895}},"12309":{"timestamp":{"__isSmartRef__":true,"id":12310},"user":"sebastianwoinar","tags":[]},"12310":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"12311":{"varMapping":{"__isSmartRef__":true,"id":12312},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":12313},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12312":{"this":{"__isSmartRef__":true,"id":11895}},"12313":{"timestamp":{"__isSmartRef__":true,"id":12314},"user":"sebastianwoinar","tags":[]},"12314":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12315":{"varMapping":{"__isSmartRef__":true,"id":12316},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":12317},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12316":{"this":{"__isSmartRef__":true,"id":11895}},"12317":{"timestamp":{"__isSmartRef__":true,"id":12318},"user":"sebastianwoinar","tags":[]},"12318":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12319":{"varMapping":{"__isSmartRef__":true,"id":12320},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12321},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12320":{"this":{"__isSmartRef__":true,"id":11895}},"12321":{"timestamp":{"__isSmartRef__":true,"id":12322},"user":"sebastianwoinar","tags":[]},"12322":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12323":{"varMapping":{"__isSmartRef__":true,"id":12324},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":12325},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12324":{"this":{"__isSmartRef__":true,"id":11895}},"12325":{"timestamp":{"__isSmartRef__":true,"id":12326},"user":"sebastianwoinar","tags":[]},"12326":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12327":{"varMapping":{"__isSmartRef__":true,"id":12328},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":12329},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12328":{"this":{"__isSmartRef__":true,"id":11895}},"12329":{"timestamp":{"__isSmartRef__":true,"id":12330},"user":"sebastianwoinar","tags":[]},"12330":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12331":{"varMapping":{"__isSmartRef__":true,"id":12332},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":12333},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12332":{"this":{"__isSmartRef__":true,"id":11895}},"12333":{"timestamp":{"__isSmartRef__":true,"id":12334},"user":"sebastianwoinar","tags":[]},"12334":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12335":{"varMapping":{"__isSmartRef__":true,"id":12336},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":12337},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12336":{"this":{"__isSmartRef__":true,"id":11895}},"12337":{"timestamp":{"__isSmartRef__":true,"id":12338},"user":"sebastianwoinar","tags":[]},"12338":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"12339":{"varMapping":{"__isSmartRef__":true,"id":12340},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":12341},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12340":{"this":{"__isSmartRef__":true,"id":11895}},"12341":{"timestamp":{"__isSmartRef__":true,"id":12342},"user":"sebastianwoinar","tags":[]},"12342":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"12343":{"varMapping":{"__isSmartRef__":true,"id":12344},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":12345},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12344":{"this":{"__isSmartRef__":true,"id":11895}},"12345":{"timestamp":{"__isSmartRef__":true,"id":12346},"user":"sebastianwoinar","tags":[]},"12346":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"12347":{"varMapping":{"__isSmartRef__":true,"id":12348},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":12349},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12348":{"this":{"__isSmartRef__":true,"id":11895}},"12349":{"timestamp":{"__isSmartRef__":true,"id":12350},"user":"sebastianwoinar","tags":[]},"12350":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"12351":{"varMapping":{"__isSmartRef__":true,"id":12352},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":12353},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12352":{"this":{"__isSmartRef__":true,"id":11895}},"12353":{"timestamp":{"__isSmartRef__":true,"id":12354},"user":"sebastianwoinar","tags":[]},"12354":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"12355":{"varMapping":{"__isSmartRef__":true,"id":12356},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":12357},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12356":{"this":{"__isSmartRef__":true,"id":11895}},"12357":{"timestamp":{"__isSmartRef__":true,"id":12358},"user":"sebastianwoinar","tags":[]},"12358":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"12359":{"varMapping":{"__isSmartRef__":true,"id":12360},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":12361},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12360":{"this":{"__isSmartRef__":true,"id":11895}},"12361":{"timestamp":{"__isSmartRef__":true,"id":12362},"user":"sebastianwoinar","tags":[]},"12362":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"12363":{"varMapping":{"__isSmartRef__":true,"id":12364},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":12365},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12364":{"this":{"__isSmartRef__":true,"id":11895}},"12365":{"timestamp":{"__isSmartRef__":true,"id":12366},"user":"sebastianwoinar","tags":[]},"12366":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"12367":{"varMapping":{"__isSmartRef__":true,"id":12368},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":12369},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12368":{"this":{"__isSmartRef__":true,"id":11895}},"12369":{"timestamp":{"__isSmartRef__":true,"id":12370},"user":"sebastianwoinar","tags":[]},"12370":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"12371":{"varMapping":{"__isSmartRef__":true,"id":12372},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":12377},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12372":{"this":{"__isSmartRef__":true,"id":11895},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12373}},"12373":{"$super":{"__isSmartRef__":true,"id":12374}},"12374":{"varMapping":{"__isSmartRef__":true,"id":12375},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12376},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12375":{"obj":{"__isSmartRef__":true,"id":11895},"name":"onMouseDown"},"12376":{},"12377":{"timestamp":{"__isSmartRef__":true,"id":12378},"user":"sebastianwoinar","tags":[]},"12378":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"12379":{"varMapping":{"__isSmartRef__":true,"id":12380},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":12381},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12380":{"this":{"__isSmartRef__":true,"id":11895}},"12381":{"timestamp":{"__isSmartRef__":true,"id":12382},"user":"sebastianwoinar","tags":[]},"12382":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"12383":{"varMapping":{"__isSmartRef__":true,"id":12384},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":12385},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12384":{"this":{"__isSmartRef__":true,"id":11895}},"12385":{"timestamp":{"__isSmartRef__":true,"id":12386},"user":"sebastianwoinar","tags":[]},"12386":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"12387":{"varMapping":{"__isSmartRef__":true,"id":12388},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":12389},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12388":{"this":{"__isSmartRef__":true,"id":11895}},"12389":{"timestamp":{"__isSmartRef__":true,"id":12390},"user":"sebastianwoinar","tags":[]},"12390":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"12391":{"varMapping":{"__isSmartRef__":true,"id":12392},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":12393},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12392":{"this":{"__isSmartRef__":true,"id":11895}},"12393":{"timestamp":{"__isSmartRef__":true,"id":12394},"user":"sebastianwoinar","tags":[]},"12394":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"12395":{"varMapping":{"__isSmartRef__":true,"id":12396},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":12397},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12396":{"this":{"__isSmartRef__":true,"id":11895}},"12397":{"timestamp":{"__isSmartRef__":true,"id":12398},"user":"sebastianwoinar","tags":[]},"12398":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"12399":{"varMapping":{"__isSmartRef__":true,"id":12400},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12401},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12400":{"this":{"__isSmartRef__":true,"id":11895}},"12401":{"timestamp":{"__isSmartRef__":true,"id":12402},"user":"sebastianwoinar","tags":[]},"12402":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"12403":{"varMapping":{"__isSmartRef__":true,"id":12404},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":12405},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12404":{"this":{"__isSmartRef__":true,"id":11895}},"12405":{"timestamp":{"__isSmartRef__":true,"id":12406},"user":"sebastianwoinar","tags":[]},"12406":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"12407":{"varMapping":{"__isSmartRef__":true,"id":12408},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12409},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12408":{"this":{"__isSmartRef__":true,"id":11895}},"12409":{"timestamp":{"__isSmartRef__":true,"id":12410},"user":"sebastianwoinar","tags":[]},"12410":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"12411":{"buildChildNodes":{"__isSmartRef__":true,"id":12412},"getGameTree":{"__isSmartRef__":true,"id":12416},"getLevel":{"__isSmartRef__":true,"id":12420},"getLevelWeight":{"__isSmartRef__":true,"id":12424},"getWeight":{"__isSmartRef__":true,"id":12428},"setNode":{"__isSmartRef__":true,"id":12432},"setParent":{"__isSmartRef__":true,"id":12436},"getParent":{"__isSmartRef__":true,"id":12440},"deactivate":{"__isSmartRef__":true,"id":12444},"blink":{"__isSmartRef__":true,"id":12448},"ABPreturn":{"__isSmartRef__":true,"id":12452},"ABPstart":{"__isSmartRef__":true,"id":12456},"ABPcontinue":{"__isSmartRef__":true,"id":12460},"ABPshowValue":{"__isSmartRef__":true,"id":12464},"ABPgetValue":{"__isSmartRef__":true,"id":12468},"ABPhasChildNodes":{"__isSmartRef__":true,"id":12472},"onMouseDown":{"__isSmartRef__":true,"id":12476},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":12484},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":12488},"ABPmarkAsDone":{"__isSmartRef__":true,"id":12492},"ABPmarkAsActive":{"__isSmartRef__":true,"id":12496},"getStateMorph":{"__isSmartRef__":true,"id":12500},"showState":{"__isSmartRef__":true,"id":12504},"ABPfailHard":{"__isSmartRef__":true,"id":12508},"markFinalDrawWith":{"__isSmartRef__":true,"id":12512}},"12412":{"varMapping":{"__isSmartRef__":true,"id":12413},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":12414},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12413":{"this":{"__isSmartRef__":true,"id":5937}},"12414":{"timestamp":{"__isSmartRef__":true,"id":12415},"user":"sebastianwoinar","tags":[]},"12415":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"12416":{"varMapping":{"__isSmartRef__":true,"id":12417},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":12418},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12417":{"this":{"__isSmartRef__":true,"id":5937}},"12418":{"timestamp":{"__isSmartRef__":true,"id":12419},"user":"sebastianwoinar","tags":[]},"12419":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12420":{"varMapping":{"__isSmartRef__":true,"id":12421},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":12422},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12421":{"this":{"__isSmartRef__":true,"id":5937}},"12422":{"timestamp":{"__isSmartRef__":true,"id":12423},"user":"sebastianwoinar","tags":[]},"12423":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12424":{"varMapping":{"__isSmartRef__":true,"id":12425},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12426},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12425":{"this":{"__isSmartRef__":true,"id":5937}},"12426":{"timestamp":{"__isSmartRef__":true,"id":12427},"user":"sebastianwoinar","tags":[]},"12427":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12428":{"varMapping":{"__isSmartRef__":true,"id":12429},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":12430},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12429":{"this":{"__isSmartRef__":true,"id":5937}},"12430":{"timestamp":{"__isSmartRef__":true,"id":12431},"user":"sebastianwoinar","tags":[]},"12431":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12432":{"varMapping":{"__isSmartRef__":true,"id":12433},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":12434},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12433":{"this":{"__isSmartRef__":true,"id":5937}},"12434":{"timestamp":{"__isSmartRef__":true,"id":12435},"user":"sebastianwoinar","tags":[]},"12435":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12436":{"varMapping":{"__isSmartRef__":true,"id":12437},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":12438},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12437":{"this":{"__isSmartRef__":true,"id":5937}},"12438":{"timestamp":{"__isSmartRef__":true,"id":12439},"user":"sebastianwoinar","tags":[]},"12439":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12440":{"varMapping":{"__isSmartRef__":true,"id":12441},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":12442},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12441":{"this":{"__isSmartRef__":true,"id":5937}},"12442":{"timestamp":{"__isSmartRef__":true,"id":12443},"user":"sebastianwoinar","tags":[]},"12443":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"12444":{"varMapping":{"__isSmartRef__":true,"id":12445},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":12446},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12445":{"this":{"__isSmartRef__":true,"id":5937}},"12446":{"timestamp":{"__isSmartRef__":true,"id":12447},"user":"sebastianwoinar","tags":[]},"12447":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"12448":{"varMapping":{"__isSmartRef__":true,"id":12449},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":12450},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12449":{"this":{"__isSmartRef__":true,"id":5937}},"12450":{"timestamp":{"__isSmartRef__":true,"id":12451},"user":"sebastianwoinar","tags":[]},"12451":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"12452":{"varMapping":{"__isSmartRef__":true,"id":12453},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":12454},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12453":{"this":{"__isSmartRef__":true,"id":5937}},"12454":{"timestamp":{"__isSmartRef__":true,"id":12455},"user":"sebastianwoinar","tags":[]},"12455":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"12456":{"varMapping":{"__isSmartRef__":true,"id":12457},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":12458},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12457":{"this":{"__isSmartRef__":true,"id":5937}},"12458":{"timestamp":{"__isSmartRef__":true,"id":12459},"user":"sebastianwoinar","tags":[]},"12459":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"12460":{"varMapping":{"__isSmartRef__":true,"id":12461},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":12462},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12461":{"this":{"__isSmartRef__":true,"id":5937}},"12462":{"timestamp":{"__isSmartRef__":true,"id":12463},"user":"sebastianwoinar","tags":[]},"12463":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"12464":{"varMapping":{"__isSmartRef__":true,"id":12465},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":12466},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12465":{"this":{"__isSmartRef__":true,"id":5937}},"12466":{"timestamp":{"__isSmartRef__":true,"id":12467},"user":"sebastianwoinar","tags":[]},"12467":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"12468":{"varMapping":{"__isSmartRef__":true,"id":12469},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":12470},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12469":{"this":{"__isSmartRef__":true,"id":5937}},"12470":{"timestamp":{"__isSmartRef__":true,"id":12471},"user":"sebastianwoinar","tags":[]},"12471":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"12472":{"varMapping":{"__isSmartRef__":true,"id":12473},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":12474},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12473":{"this":{"__isSmartRef__":true,"id":5937}},"12474":{"timestamp":{"__isSmartRef__":true,"id":12475},"user":"sebastianwoinar","tags":[]},"12475":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"12476":{"varMapping":{"__isSmartRef__":true,"id":12477},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":12482},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12477":{"this":{"__isSmartRef__":true,"id":5937},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12478}},"12478":{"$super":{"__isSmartRef__":true,"id":12479}},"12479":{"varMapping":{"__isSmartRef__":true,"id":12480},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12481},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12480":{"obj":{"__isSmartRef__":true,"id":5937},"name":"onMouseDown"},"12481":{},"12482":{"timestamp":{"__isSmartRef__":true,"id":12483},"user":"sebastianwoinar","tags":[]},"12483":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"12484":{"varMapping":{"__isSmartRef__":true,"id":12485},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":12486},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12485":{"this":{"__isSmartRef__":true,"id":5937}},"12486":{"timestamp":{"__isSmartRef__":true,"id":12487},"user":"sebastianwoinar","tags":[]},"12487":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"12488":{"varMapping":{"__isSmartRef__":true,"id":12489},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":12490},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12489":{"this":{"__isSmartRef__":true,"id":5937}},"12490":{"timestamp":{"__isSmartRef__":true,"id":12491},"user":"sebastianwoinar","tags":[]},"12491":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"12492":{"varMapping":{"__isSmartRef__":true,"id":12493},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":12494},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12493":{"this":{"__isSmartRef__":true,"id":5937}},"12494":{"timestamp":{"__isSmartRef__":true,"id":12495},"user":"sebastianwoinar","tags":[]},"12495":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"12496":{"varMapping":{"__isSmartRef__":true,"id":12497},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":12498},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12497":{"this":{"__isSmartRef__":true,"id":5937}},"12498":{"timestamp":{"__isSmartRef__":true,"id":12499},"user":"sebastianwoinar","tags":[]},"12499":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"12500":{"varMapping":{"__isSmartRef__":true,"id":12501},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":12502},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12501":{"this":{"__isSmartRef__":true,"id":5937}},"12502":{"timestamp":{"__isSmartRef__":true,"id":12503},"user":"sebastianwoinar","tags":[]},"12503":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"12504":{"varMapping":{"__isSmartRef__":true,"id":12505},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12506},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12505":{"this":{"__isSmartRef__":true,"id":5937}},"12506":{"timestamp":{"__isSmartRef__":true,"id":12507},"user":"sebastianwoinar","tags":[]},"12507":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"12508":{"varMapping":{"__isSmartRef__":true,"id":12509},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":12510},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12509":{"this":{"__isSmartRef__":true,"id":5937}},"12510":{"timestamp":{"__isSmartRef__":true,"id":12511},"user":"sebastianwoinar","tags":[]},"12511":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"12512":{"varMapping":{"__isSmartRef__":true,"id":12513},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12514},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12513":{"this":{"__isSmartRef__":true,"id":5937}},"12514":{"timestamp":{"__isSmartRef__":true,"id":12515},"user":"sebastianwoinar","tags":[]},"12515":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"12516":{"submorphs":[{"__isSmartRef__":true,"id":12517}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12534},"id":"B3E19F57-E92F-4FCB-800E-A40D5DF6D5E3","eventHandler":{"__isSmartRef__":true,"id":12535},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":12536},"name":"node54","partsBinMetaInfo":{"__isSmartRef__":true,"id":12537},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5537},"owner":{"__isSmartRef__":true,"id":5408},"childNodes":[{"__isSmartRef__":true,"id":12540},{"__isSmartRef__":true,"id":13572},{"__isSmartRef__":true,"id":14604},{"__isSmartRef__":true,"id":15507},{"__isSmartRef__":true,"id":16797}],"parent":{"__isSmartRef__":true,"id":5409},"level":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17700},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(406.1,110.0)"},"12517":{"submorphs":[],"scripts":[],"id":"AB253E64-6505-4B55-B52E-605D08A7A680","shape":{"__isSmartRef__":true,"id":12518},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":12519},"textChunks":[{"__isSmartRef__":true,"id":12531}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":12533},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":12516},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"12518":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"12519":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":12520},{"__isSmartRef__":true,"id":12522},{"__isSmartRef__":true,"id":12524},{"__isSmartRef__":true,"id":12526},{"__isSmartRef__":true,"id":12528}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":12530},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"12520":{"date":{"__isSmartRef__":true,"id":12521},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"12521":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"12522":{"date":{"__isSmartRef__":true,"id":12523},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"12523":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"12524":{"date":{"__isSmartRef__":true,"id":12525},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"12525":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"12526":{"date":{"__isSmartRef__":true,"id":12527},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"12527":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"12528":{"date":{"__isSmartRef__":true,"id":12529},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"12529":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"12530":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"12531":{"style":{"__isSmartRef__":true,"id":12532},"morph":{"__isSmartRef__":true,"id":12517},"chunkOwner":{"__isSmartRef__":true,"id":12517},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12532":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12533":{"morph":{"__isSmartRef__":true,"id":12517},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12534":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"12535":{"morph":{"__isSmartRef__":true,"id":12516},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12536":{},"12537":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":12538}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"12538":{"date":{"__isSmartRef__":true,"id":12539},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"12539":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"12540":{"submorphs":[{"__isSmartRef__":true,"id":12541}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12558},"id":"9074F291-BCD6-41DE-8F31-389850524A58","eventHandler":{"__isSmartRef__":true,"id":12559},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":12560},"name":"node55","partsBinMetaInfo":{"__isSmartRef__":true,"id":12561},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5539},"owner":{"__isSmartRef__":true,"id":5408},"childNodes":[{"__isSmartRef__":true,"id":12564},{"__isSmartRef__":true,"id":12693},{"__isSmartRef__":true,"id":12822},{"__isSmartRef__":true,"id":12951},{"__isSmartRef__":true,"id":13080},{"__isSmartRef__":true,"id":13209},{"__isSmartRef__":true,"id":13338}],"parent":{"__isSmartRef__":true,"id":12516},"level":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13467},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(321.5,160.0)"},"12541":{"submorphs":[],"scripts":[],"id":"A794FD59-D56F-46EB-89AF-2EDDBF379DC8","shape":{"__isSmartRef__":true,"id":12542},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":12543},"textChunks":[{"__isSmartRef__":true,"id":12555}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":12557},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":12540},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"12542":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"12543":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":12544},{"__isSmartRef__":true,"id":12546},{"__isSmartRef__":true,"id":12548},{"__isSmartRef__":true,"id":12550},{"__isSmartRef__":true,"id":12552}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":12554},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"12544":{"date":{"__isSmartRef__":true,"id":12545},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"12545":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"12546":{"date":{"__isSmartRef__":true,"id":12547},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"12547":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"12548":{"date":{"__isSmartRef__":true,"id":12549},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"12549":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"12550":{"date":{"__isSmartRef__":true,"id":12551},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"12551":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"12552":{"date":{"__isSmartRef__":true,"id":12553},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"12553":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"12554":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"12555":{"style":{"__isSmartRef__":true,"id":12556},"morph":{"__isSmartRef__":true,"id":12541},"chunkOwner":{"__isSmartRef__":true,"id":12541},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12556":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12557":{"morph":{"__isSmartRef__":true,"id":12541},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12558":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"12559":{"morph":{"__isSmartRef__":true,"id":12540},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12560":{},"12561":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":12562}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"12562":{"date":{"__isSmartRef__":true,"id":12563},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"12563":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"12564":{"submorphs":[{"__isSmartRef__":true,"id":12565}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12582},"id":"13CBB7EC-B2D2-4077-9E43-03F1BABFB914","eventHandler":{"__isSmartRef__":true,"id":12583},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":12584},"name":"node56","partsBinMetaInfo":{"__isSmartRef__":true,"id":12585},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5541},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":12540},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12588},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(259.3,210.0)"},"12565":{"submorphs":[],"scripts":[],"id":"A198D0B9-2C2E-407B-A8EF-0314F791CDD3","shape":{"__isSmartRef__":true,"id":12566},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":12567},"textChunks":[{"__isSmartRef__":true,"id":12579}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":12581},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":12564},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"12566":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"12567":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":12568},{"__isSmartRef__":true,"id":12570},{"__isSmartRef__":true,"id":12572},{"__isSmartRef__":true,"id":12574},{"__isSmartRef__":true,"id":12576}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":12578},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"12568":{"date":{"__isSmartRef__":true,"id":12569},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"12569":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"12570":{"date":{"__isSmartRef__":true,"id":12571},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"12571":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"12572":{"date":{"__isSmartRef__":true,"id":12573},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"12573":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"12574":{"date":{"__isSmartRef__":true,"id":12575},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"12575":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"12576":{"date":{"__isSmartRef__":true,"id":12577},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"12577":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"12578":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"12579":{"style":{"__isSmartRef__":true,"id":12580},"morph":{"__isSmartRef__":true,"id":12565},"chunkOwner":{"__isSmartRef__":true,"id":12565},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12580":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12581":{"morph":{"__isSmartRef__":true,"id":12565},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12582":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"12583":{"morph":{"__isSmartRef__":true,"id":12564},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12584":{},"12585":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":12586}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"12586":{"date":{"__isSmartRef__":true,"id":12587},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"12587":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"12588":{"buildChildNodes":{"__isSmartRef__":true,"id":12589},"getGameTree":{"__isSmartRef__":true,"id":12593},"getLevel":{"__isSmartRef__":true,"id":12597},"getLevelWeight":{"__isSmartRef__":true,"id":12601},"getWeight":{"__isSmartRef__":true,"id":12605},"setNode":{"__isSmartRef__":true,"id":12609},"setParent":{"__isSmartRef__":true,"id":12613},"getParent":{"__isSmartRef__":true,"id":12617},"deactivate":{"__isSmartRef__":true,"id":12621},"blink":{"__isSmartRef__":true,"id":12625},"ABPreturn":{"__isSmartRef__":true,"id":12629},"ABPstart":{"__isSmartRef__":true,"id":12633},"ABPcontinue":{"__isSmartRef__":true,"id":12637},"ABPshowValue":{"__isSmartRef__":true,"id":12641},"ABPgetValue":{"__isSmartRef__":true,"id":12645},"ABPhasChildNodes":{"__isSmartRef__":true,"id":12649},"onMouseDown":{"__isSmartRef__":true,"id":12653},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":12661},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":12665},"ABPmarkAsDone":{"__isSmartRef__":true,"id":12669},"ABPmarkAsActive":{"__isSmartRef__":true,"id":12673},"getStateMorph":{"__isSmartRef__":true,"id":12677},"showState":{"__isSmartRef__":true,"id":12681},"ABPfailHard":{"__isSmartRef__":true,"id":12685},"markFinalDrawWith":{"__isSmartRef__":true,"id":12689}},"12589":{"varMapping":{"__isSmartRef__":true,"id":12590},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":12591},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12590":{"this":{"__isSmartRef__":true,"id":12564}},"12591":{"timestamp":{"__isSmartRef__":true,"id":12592},"user":"sebastianwoinar","tags":[]},"12592":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"12593":{"varMapping":{"__isSmartRef__":true,"id":12594},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":12595},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12594":{"this":{"__isSmartRef__":true,"id":12564}},"12595":{"timestamp":{"__isSmartRef__":true,"id":12596},"user":"sebastianwoinar","tags":[]},"12596":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12597":{"varMapping":{"__isSmartRef__":true,"id":12598},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":12599},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12598":{"this":{"__isSmartRef__":true,"id":12564}},"12599":{"timestamp":{"__isSmartRef__":true,"id":12600},"user":"sebastianwoinar","tags":[]},"12600":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12601":{"varMapping":{"__isSmartRef__":true,"id":12602},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12603},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12602":{"this":{"__isSmartRef__":true,"id":12564}},"12603":{"timestamp":{"__isSmartRef__":true,"id":12604},"user":"sebastianwoinar","tags":[]},"12604":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12605":{"varMapping":{"__isSmartRef__":true,"id":12606},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":12607},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12606":{"this":{"__isSmartRef__":true,"id":12564}},"12607":{"timestamp":{"__isSmartRef__":true,"id":12608},"user":"sebastianwoinar","tags":[]},"12608":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12609":{"varMapping":{"__isSmartRef__":true,"id":12610},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":12611},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12610":{"this":{"__isSmartRef__":true,"id":12564}},"12611":{"timestamp":{"__isSmartRef__":true,"id":12612},"user":"sebastianwoinar","tags":[]},"12612":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12613":{"varMapping":{"__isSmartRef__":true,"id":12614},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":12615},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12614":{"this":{"__isSmartRef__":true,"id":12564}},"12615":{"timestamp":{"__isSmartRef__":true,"id":12616},"user":"sebastianwoinar","tags":[]},"12616":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12617":{"varMapping":{"__isSmartRef__":true,"id":12618},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":12619},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12618":{"this":{"__isSmartRef__":true,"id":12564}},"12619":{"timestamp":{"__isSmartRef__":true,"id":12620},"user":"sebastianwoinar","tags":[]},"12620":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"12621":{"varMapping":{"__isSmartRef__":true,"id":12622},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":12623},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12622":{"this":{"__isSmartRef__":true,"id":12564}},"12623":{"timestamp":{"__isSmartRef__":true,"id":12624},"user":"sebastianwoinar","tags":[]},"12624":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"12625":{"varMapping":{"__isSmartRef__":true,"id":12626},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":12627},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12626":{"this":{"__isSmartRef__":true,"id":12564}},"12627":{"timestamp":{"__isSmartRef__":true,"id":12628},"user":"sebastianwoinar","tags":[]},"12628":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"12629":{"varMapping":{"__isSmartRef__":true,"id":12630},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":12631},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12630":{"this":{"__isSmartRef__":true,"id":12564}},"12631":{"timestamp":{"__isSmartRef__":true,"id":12632},"user":"sebastianwoinar","tags":[]},"12632":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"12633":{"varMapping":{"__isSmartRef__":true,"id":12634},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":12635},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12634":{"this":{"__isSmartRef__":true,"id":12564}},"12635":{"timestamp":{"__isSmartRef__":true,"id":12636},"user":"sebastianwoinar","tags":[]},"12636":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"12637":{"varMapping":{"__isSmartRef__":true,"id":12638},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":12639},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12638":{"this":{"__isSmartRef__":true,"id":12564}},"12639":{"timestamp":{"__isSmartRef__":true,"id":12640},"user":"sebastianwoinar","tags":[]},"12640":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"12641":{"varMapping":{"__isSmartRef__":true,"id":12642},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":12643},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12642":{"this":{"__isSmartRef__":true,"id":12564}},"12643":{"timestamp":{"__isSmartRef__":true,"id":12644},"user":"sebastianwoinar","tags":[]},"12644":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"12645":{"varMapping":{"__isSmartRef__":true,"id":12646},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":12647},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12646":{"this":{"__isSmartRef__":true,"id":12564}},"12647":{"timestamp":{"__isSmartRef__":true,"id":12648},"user":"sebastianwoinar","tags":[]},"12648":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"12649":{"varMapping":{"__isSmartRef__":true,"id":12650},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":12651},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12650":{"this":{"__isSmartRef__":true,"id":12564}},"12651":{"timestamp":{"__isSmartRef__":true,"id":12652},"user":"sebastianwoinar","tags":[]},"12652":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"12653":{"varMapping":{"__isSmartRef__":true,"id":12654},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":12659},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12654":{"this":{"__isSmartRef__":true,"id":12564},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12655}},"12655":{"$super":{"__isSmartRef__":true,"id":12656}},"12656":{"varMapping":{"__isSmartRef__":true,"id":12657},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12658},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12657":{"obj":{"__isSmartRef__":true,"id":12564},"name":"onMouseDown"},"12658":{},"12659":{"timestamp":{"__isSmartRef__":true,"id":12660},"user":"sebastianwoinar","tags":[]},"12660":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"12661":{"varMapping":{"__isSmartRef__":true,"id":12662},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":12663},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12662":{"this":{"__isSmartRef__":true,"id":12564}},"12663":{"timestamp":{"__isSmartRef__":true,"id":12664},"user":"sebastianwoinar","tags":[]},"12664":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"12665":{"varMapping":{"__isSmartRef__":true,"id":12666},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":12667},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12666":{"this":{"__isSmartRef__":true,"id":12564}},"12667":{"timestamp":{"__isSmartRef__":true,"id":12668},"user":"sebastianwoinar","tags":[]},"12668":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"12669":{"varMapping":{"__isSmartRef__":true,"id":12670},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":12671},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12670":{"this":{"__isSmartRef__":true,"id":12564}},"12671":{"timestamp":{"__isSmartRef__":true,"id":12672},"user":"sebastianwoinar","tags":[]},"12672":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"12673":{"varMapping":{"__isSmartRef__":true,"id":12674},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":12675},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12674":{"this":{"__isSmartRef__":true,"id":12564}},"12675":{"timestamp":{"__isSmartRef__":true,"id":12676},"user":"sebastianwoinar","tags":[]},"12676":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"12677":{"varMapping":{"__isSmartRef__":true,"id":12678},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":12679},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12678":{"this":{"__isSmartRef__":true,"id":12564}},"12679":{"timestamp":{"__isSmartRef__":true,"id":12680},"user":"sebastianwoinar","tags":[]},"12680":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"12681":{"varMapping":{"__isSmartRef__":true,"id":12682},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12683},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12682":{"this":{"__isSmartRef__":true,"id":12564}},"12683":{"timestamp":{"__isSmartRef__":true,"id":12684},"user":"sebastianwoinar","tags":[]},"12684":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"12685":{"varMapping":{"__isSmartRef__":true,"id":12686},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":12687},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12686":{"this":{"__isSmartRef__":true,"id":12564}},"12687":{"timestamp":{"__isSmartRef__":true,"id":12688},"user":"sebastianwoinar","tags":[]},"12688":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"12689":{"varMapping":{"__isSmartRef__":true,"id":12690},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12691},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12690":{"this":{"__isSmartRef__":true,"id":12564}},"12691":{"timestamp":{"__isSmartRef__":true,"id":12692},"user":"sebastianwoinar","tags":[]},"12692":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"12693":{"submorphs":[{"__isSmartRef__":true,"id":12694}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12711},"id":"00B01527-85F0-40E5-B048-89B6D010ADAE","eventHandler":{"__isSmartRef__":true,"id":12712},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":12713},"name":"node57","partsBinMetaInfo":{"__isSmartRef__":true,"id":12714},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5543},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":12540},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12717},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(264.5,210.0)"},"12694":{"submorphs":[],"scripts":[],"id":"6B2DE23C-7040-4825-B0D2-F422184D8998","shape":{"__isSmartRef__":true,"id":12695},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":12696},"textChunks":[{"__isSmartRef__":true,"id":12708}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":12710},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":12693},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"12695":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"12696":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":12697},{"__isSmartRef__":true,"id":12699},{"__isSmartRef__":true,"id":12701},{"__isSmartRef__":true,"id":12703},{"__isSmartRef__":true,"id":12705}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":12707},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"12697":{"date":{"__isSmartRef__":true,"id":12698},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"12698":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"12699":{"date":{"__isSmartRef__":true,"id":12700},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"12700":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"12701":{"date":{"__isSmartRef__":true,"id":12702},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"12702":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"12703":{"date":{"__isSmartRef__":true,"id":12704},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"12704":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"12705":{"date":{"__isSmartRef__":true,"id":12706},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"12706":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"12707":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"12708":{"style":{"__isSmartRef__":true,"id":12709},"morph":{"__isSmartRef__":true,"id":12694},"chunkOwner":{"__isSmartRef__":true,"id":12694},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12709":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12710":{"morph":{"__isSmartRef__":true,"id":12694},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12711":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"12712":{"morph":{"__isSmartRef__":true,"id":12693},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12713":{},"12714":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":12715}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"12715":{"date":{"__isSmartRef__":true,"id":12716},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"12716":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"12717":{"buildChildNodes":{"__isSmartRef__":true,"id":12718},"getGameTree":{"__isSmartRef__":true,"id":12722},"getLevel":{"__isSmartRef__":true,"id":12726},"getLevelWeight":{"__isSmartRef__":true,"id":12730},"getWeight":{"__isSmartRef__":true,"id":12734},"setNode":{"__isSmartRef__":true,"id":12738},"setParent":{"__isSmartRef__":true,"id":12742},"getParent":{"__isSmartRef__":true,"id":12746},"deactivate":{"__isSmartRef__":true,"id":12750},"blink":{"__isSmartRef__":true,"id":12754},"ABPreturn":{"__isSmartRef__":true,"id":12758},"ABPstart":{"__isSmartRef__":true,"id":12762},"ABPcontinue":{"__isSmartRef__":true,"id":12766},"ABPshowValue":{"__isSmartRef__":true,"id":12770},"ABPgetValue":{"__isSmartRef__":true,"id":12774},"ABPhasChildNodes":{"__isSmartRef__":true,"id":12778},"onMouseDown":{"__isSmartRef__":true,"id":12782},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":12790},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":12794},"ABPmarkAsDone":{"__isSmartRef__":true,"id":12798},"ABPmarkAsActive":{"__isSmartRef__":true,"id":12802},"getStateMorph":{"__isSmartRef__":true,"id":12806},"showState":{"__isSmartRef__":true,"id":12810},"ABPfailHard":{"__isSmartRef__":true,"id":12814},"markFinalDrawWith":{"__isSmartRef__":true,"id":12818}},"12718":{"varMapping":{"__isSmartRef__":true,"id":12719},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":12720},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12719":{"this":{"__isSmartRef__":true,"id":12693}},"12720":{"timestamp":{"__isSmartRef__":true,"id":12721},"user":"sebastianwoinar","tags":[]},"12721":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"12722":{"varMapping":{"__isSmartRef__":true,"id":12723},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":12724},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12723":{"this":{"__isSmartRef__":true,"id":12693}},"12724":{"timestamp":{"__isSmartRef__":true,"id":12725},"user":"sebastianwoinar","tags":[]},"12725":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12726":{"varMapping":{"__isSmartRef__":true,"id":12727},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":12728},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12727":{"this":{"__isSmartRef__":true,"id":12693}},"12728":{"timestamp":{"__isSmartRef__":true,"id":12729},"user":"sebastianwoinar","tags":[]},"12729":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12730":{"varMapping":{"__isSmartRef__":true,"id":12731},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12732},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12731":{"this":{"__isSmartRef__":true,"id":12693}},"12732":{"timestamp":{"__isSmartRef__":true,"id":12733},"user":"sebastianwoinar","tags":[]},"12733":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12734":{"varMapping":{"__isSmartRef__":true,"id":12735},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":12736},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12735":{"this":{"__isSmartRef__":true,"id":12693}},"12736":{"timestamp":{"__isSmartRef__":true,"id":12737},"user":"sebastianwoinar","tags":[]},"12737":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12738":{"varMapping":{"__isSmartRef__":true,"id":12739},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":12740},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12739":{"this":{"__isSmartRef__":true,"id":12693}},"12740":{"timestamp":{"__isSmartRef__":true,"id":12741},"user":"sebastianwoinar","tags":[]},"12741":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12742":{"varMapping":{"__isSmartRef__":true,"id":12743},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":12744},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12743":{"this":{"__isSmartRef__":true,"id":12693}},"12744":{"timestamp":{"__isSmartRef__":true,"id":12745},"user":"sebastianwoinar","tags":[]},"12745":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12746":{"varMapping":{"__isSmartRef__":true,"id":12747},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":12748},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12747":{"this":{"__isSmartRef__":true,"id":12693}},"12748":{"timestamp":{"__isSmartRef__":true,"id":12749},"user":"sebastianwoinar","tags":[]},"12749":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"12750":{"varMapping":{"__isSmartRef__":true,"id":12751},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":12752},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12751":{"this":{"__isSmartRef__":true,"id":12693}},"12752":{"timestamp":{"__isSmartRef__":true,"id":12753},"user":"sebastianwoinar","tags":[]},"12753":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"12754":{"varMapping":{"__isSmartRef__":true,"id":12755},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":12756},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12755":{"this":{"__isSmartRef__":true,"id":12693}},"12756":{"timestamp":{"__isSmartRef__":true,"id":12757},"user":"sebastianwoinar","tags":[]},"12757":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"12758":{"varMapping":{"__isSmartRef__":true,"id":12759},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":12760},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12759":{"this":{"__isSmartRef__":true,"id":12693}},"12760":{"timestamp":{"__isSmartRef__":true,"id":12761},"user":"sebastianwoinar","tags":[]},"12761":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"12762":{"varMapping":{"__isSmartRef__":true,"id":12763},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":12764},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12763":{"this":{"__isSmartRef__":true,"id":12693}},"12764":{"timestamp":{"__isSmartRef__":true,"id":12765},"user":"sebastianwoinar","tags":[]},"12765":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"12766":{"varMapping":{"__isSmartRef__":true,"id":12767},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":12768},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12767":{"this":{"__isSmartRef__":true,"id":12693}},"12768":{"timestamp":{"__isSmartRef__":true,"id":12769},"user":"sebastianwoinar","tags":[]},"12769":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"12770":{"varMapping":{"__isSmartRef__":true,"id":12771},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":12772},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12771":{"this":{"__isSmartRef__":true,"id":12693}},"12772":{"timestamp":{"__isSmartRef__":true,"id":12773},"user":"sebastianwoinar","tags":[]},"12773":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"12774":{"varMapping":{"__isSmartRef__":true,"id":12775},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":12776},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12775":{"this":{"__isSmartRef__":true,"id":12693}},"12776":{"timestamp":{"__isSmartRef__":true,"id":12777},"user":"sebastianwoinar","tags":[]},"12777":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"12778":{"varMapping":{"__isSmartRef__":true,"id":12779},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":12780},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12779":{"this":{"__isSmartRef__":true,"id":12693}},"12780":{"timestamp":{"__isSmartRef__":true,"id":12781},"user":"sebastianwoinar","tags":[]},"12781":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"12782":{"varMapping":{"__isSmartRef__":true,"id":12783},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":12788},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12783":{"this":{"__isSmartRef__":true,"id":12693},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12784}},"12784":{"$super":{"__isSmartRef__":true,"id":12785}},"12785":{"varMapping":{"__isSmartRef__":true,"id":12786},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12787},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12786":{"obj":{"__isSmartRef__":true,"id":12693},"name":"onMouseDown"},"12787":{},"12788":{"timestamp":{"__isSmartRef__":true,"id":12789},"user":"sebastianwoinar","tags":[]},"12789":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"12790":{"varMapping":{"__isSmartRef__":true,"id":12791},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":12792},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12791":{"this":{"__isSmartRef__":true,"id":12693}},"12792":{"timestamp":{"__isSmartRef__":true,"id":12793},"user":"sebastianwoinar","tags":[]},"12793":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"12794":{"varMapping":{"__isSmartRef__":true,"id":12795},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":12796},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12795":{"this":{"__isSmartRef__":true,"id":12693}},"12796":{"timestamp":{"__isSmartRef__":true,"id":12797},"user":"sebastianwoinar","tags":[]},"12797":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"12798":{"varMapping":{"__isSmartRef__":true,"id":12799},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":12800},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12799":{"this":{"__isSmartRef__":true,"id":12693}},"12800":{"timestamp":{"__isSmartRef__":true,"id":12801},"user":"sebastianwoinar","tags":[]},"12801":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"12802":{"varMapping":{"__isSmartRef__":true,"id":12803},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":12804},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12803":{"this":{"__isSmartRef__":true,"id":12693}},"12804":{"timestamp":{"__isSmartRef__":true,"id":12805},"user":"sebastianwoinar","tags":[]},"12805":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"12806":{"varMapping":{"__isSmartRef__":true,"id":12807},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":12808},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12807":{"this":{"__isSmartRef__":true,"id":12693}},"12808":{"timestamp":{"__isSmartRef__":true,"id":12809},"user":"sebastianwoinar","tags":[]},"12809":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"12810":{"varMapping":{"__isSmartRef__":true,"id":12811},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12812},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12811":{"this":{"__isSmartRef__":true,"id":12693}},"12812":{"timestamp":{"__isSmartRef__":true,"id":12813},"user":"sebastianwoinar","tags":[]},"12813":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"12814":{"varMapping":{"__isSmartRef__":true,"id":12815},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":12816},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12815":{"this":{"__isSmartRef__":true,"id":12693}},"12816":{"timestamp":{"__isSmartRef__":true,"id":12817},"user":"sebastianwoinar","tags":[]},"12817":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"12818":{"varMapping":{"__isSmartRef__":true,"id":12819},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12820},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12819":{"this":{"__isSmartRef__":true,"id":12693}},"12820":{"timestamp":{"__isSmartRef__":true,"id":12821},"user":"sebastianwoinar","tags":[]},"12821":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"12822":{"submorphs":[{"__isSmartRef__":true,"id":12823}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12840},"id":"8CC63913-B7B6-4B65-A156-4981CAC7185C","eventHandler":{"__isSmartRef__":true,"id":12841},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":12842},"name":"node58","partsBinMetaInfo":{"__isSmartRef__":true,"id":12843},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5545},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":12540},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12846},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(269.7,210.0)"},"12823":{"submorphs":[],"scripts":[],"id":"933503E8-128D-43F4-926E-631B069C4728","shape":{"__isSmartRef__":true,"id":12824},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":12825},"textChunks":[{"__isSmartRef__":true,"id":12837}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":12839},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":12822},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"12824":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"12825":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":12826},{"__isSmartRef__":true,"id":12828},{"__isSmartRef__":true,"id":12830},{"__isSmartRef__":true,"id":12832},{"__isSmartRef__":true,"id":12834}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":12836},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"12826":{"date":{"__isSmartRef__":true,"id":12827},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"12827":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"12828":{"date":{"__isSmartRef__":true,"id":12829},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"12829":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"12830":{"date":{"__isSmartRef__":true,"id":12831},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"12831":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"12832":{"date":{"__isSmartRef__":true,"id":12833},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"12833":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"12834":{"date":{"__isSmartRef__":true,"id":12835},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"12835":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"12836":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"12837":{"style":{"__isSmartRef__":true,"id":12838},"morph":{"__isSmartRef__":true,"id":12823},"chunkOwner":{"__isSmartRef__":true,"id":12823},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12838":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12839":{"morph":{"__isSmartRef__":true,"id":12823},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12840":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"12841":{"morph":{"__isSmartRef__":true,"id":12822},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12842":{},"12843":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":12844}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"12844":{"date":{"__isSmartRef__":true,"id":12845},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"12845":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"12846":{"buildChildNodes":{"__isSmartRef__":true,"id":12847},"getGameTree":{"__isSmartRef__":true,"id":12851},"getLevel":{"__isSmartRef__":true,"id":12855},"getLevelWeight":{"__isSmartRef__":true,"id":12859},"getWeight":{"__isSmartRef__":true,"id":12863},"setNode":{"__isSmartRef__":true,"id":12867},"setParent":{"__isSmartRef__":true,"id":12871},"getParent":{"__isSmartRef__":true,"id":12875},"deactivate":{"__isSmartRef__":true,"id":12879},"blink":{"__isSmartRef__":true,"id":12883},"ABPreturn":{"__isSmartRef__":true,"id":12887},"ABPstart":{"__isSmartRef__":true,"id":12891},"ABPcontinue":{"__isSmartRef__":true,"id":12895},"ABPshowValue":{"__isSmartRef__":true,"id":12899},"ABPgetValue":{"__isSmartRef__":true,"id":12903},"ABPhasChildNodes":{"__isSmartRef__":true,"id":12907},"onMouseDown":{"__isSmartRef__":true,"id":12911},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":12919},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":12923},"ABPmarkAsDone":{"__isSmartRef__":true,"id":12927},"ABPmarkAsActive":{"__isSmartRef__":true,"id":12931},"getStateMorph":{"__isSmartRef__":true,"id":12935},"showState":{"__isSmartRef__":true,"id":12939},"ABPfailHard":{"__isSmartRef__":true,"id":12943},"markFinalDrawWith":{"__isSmartRef__":true,"id":12947}},"12847":{"varMapping":{"__isSmartRef__":true,"id":12848},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":12849},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12848":{"this":{"__isSmartRef__":true,"id":12822}},"12849":{"timestamp":{"__isSmartRef__":true,"id":12850},"user":"sebastianwoinar","tags":[]},"12850":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"12851":{"varMapping":{"__isSmartRef__":true,"id":12852},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":12853},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12852":{"this":{"__isSmartRef__":true,"id":12822}},"12853":{"timestamp":{"__isSmartRef__":true,"id":12854},"user":"sebastianwoinar","tags":[]},"12854":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12855":{"varMapping":{"__isSmartRef__":true,"id":12856},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":12857},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12856":{"this":{"__isSmartRef__":true,"id":12822}},"12857":{"timestamp":{"__isSmartRef__":true,"id":12858},"user":"sebastianwoinar","tags":[]},"12858":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12859":{"varMapping":{"__isSmartRef__":true,"id":12860},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12861},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12860":{"this":{"__isSmartRef__":true,"id":12822}},"12861":{"timestamp":{"__isSmartRef__":true,"id":12862},"user":"sebastianwoinar","tags":[]},"12862":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12863":{"varMapping":{"__isSmartRef__":true,"id":12864},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":12865},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12864":{"this":{"__isSmartRef__":true,"id":12822}},"12865":{"timestamp":{"__isSmartRef__":true,"id":12866},"user":"sebastianwoinar","tags":[]},"12866":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12867":{"varMapping":{"__isSmartRef__":true,"id":12868},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":12869},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12868":{"this":{"__isSmartRef__":true,"id":12822}},"12869":{"timestamp":{"__isSmartRef__":true,"id":12870},"user":"sebastianwoinar","tags":[]},"12870":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12871":{"varMapping":{"__isSmartRef__":true,"id":12872},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":12873},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12872":{"this":{"__isSmartRef__":true,"id":12822}},"12873":{"timestamp":{"__isSmartRef__":true,"id":12874},"user":"sebastianwoinar","tags":[]},"12874":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12875":{"varMapping":{"__isSmartRef__":true,"id":12876},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":12877},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12876":{"this":{"__isSmartRef__":true,"id":12822}},"12877":{"timestamp":{"__isSmartRef__":true,"id":12878},"user":"sebastianwoinar","tags":[]},"12878":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"12879":{"varMapping":{"__isSmartRef__":true,"id":12880},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":12881},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12880":{"this":{"__isSmartRef__":true,"id":12822}},"12881":{"timestamp":{"__isSmartRef__":true,"id":12882},"user":"sebastianwoinar","tags":[]},"12882":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"12883":{"varMapping":{"__isSmartRef__":true,"id":12884},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":12885},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12884":{"this":{"__isSmartRef__":true,"id":12822}},"12885":{"timestamp":{"__isSmartRef__":true,"id":12886},"user":"sebastianwoinar","tags":[]},"12886":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"12887":{"varMapping":{"__isSmartRef__":true,"id":12888},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":12889},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12888":{"this":{"__isSmartRef__":true,"id":12822}},"12889":{"timestamp":{"__isSmartRef__":true,"id":12890},"user":"sebastianwoinar","tags":[]},"12890":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"12891":{"varMapping":{"__isSmartRef__":true,"id":12892},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":12893},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12892":{"this":{"__isSmartRef__":true,"id":12822}},"12893":{"timestamp":{"__isSmartRef__":true,"id":12894},"user":"sebastianwoinar","tags":[]},"12894":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"12895":{"varMapping":{"__isSmartRef__":true,"id":12896},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":12897},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12896":{"this":{"__isSmartRef__":true,"id":12822}},"12897":{"timestamp":{"__isSmartRef__":true,"id":12898},"user":"sebastianwoinar","tags":[]},"12898":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"12899":{"varMapping":{"__isSmartRef__":true,"id":12900},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":12901},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12900":{"this":{"__isSmartRef__":true,"id":12822}},"12901":{"timestamp":{"__isSmartRef__":true,"id":12902},"user":"sebastianwoinar","tags":[]},"12902":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"12903":{"varMapping":{"__isSmartRef__":true,"id":12904},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":12905},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12904":{"this":{"__isSmartRef__":true,"id":12822}},"12905":{"timestamp":{"__isSmartRef__":true,"id":12906},"user":"sebastianwoinar","tags":[]},"12906":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"12907":{"varMapping":{"__isSmartRef__":true,"id":12908},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":12909},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12908":{"this":{"__isSmartRef__":true,"id":12822}},"12909":{"timestamp":{"__isSmartRef__":true,"id":12910},"user":"sebastianwoinar","tags":[]},"12910":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"12911":{"varMapping":{"__isSmartRef__":true,"id":12912},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":12917},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12912":{"this":{"__isSmartRef__":true,"id":12822},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12913}},"12913":{"$super":{"__isSmartRef__":true,"id":12914}},"12914":{"varMapping":{"__isSmartRef__":true,"id":12915},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12916},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12915":{"obj":{"__isSmartRef__":true,"id":12822},"name":"onMouseDown"},"12916":{},"12917":{"timestamp":{"__isSmartRef__":true,"id":12918},"user":"sebastianwoinar","tags":[]},"12918":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"12919":{"varMapping":{"__isSmartRef__":true,"id":12920},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":12921},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12920":{"this":{"__isSmartRef__":true,"id":12822}},"12921":{"timestamp":{"__isSmartRef__":true,"id":12922},"user":"sebastianwoinar","tags":[]},"12922":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"12923":{"varMapping":{"__isSmartRef__":true,"id":12924},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":12925},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12924":{"this":{"__isSmartRef__":true,"id":12822}},"12925":{"timestamp":{"__isSmartRef__":true,"id":12926},"user":"sebastianwoinar","tags":[]},"12926":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"12927":{"varMapping":{"__isSmartRef__":true,"id":12928},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":12929},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12928":{"this":{"__isSmartRef__":true,"id":12822}},"12929":{"timestamp":{"__isSmartRef__":true,"id":12930},"user":"sebastianwoinar","tags":[]},"12930":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"12931":{"varMapping":{"__isSmartRef__":true,"id":12932},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":12933},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12932":{"this":{"__isSmartRef__":true,"id":12822}},"12933":{"timestamp":{"__isSmartRef__":true,"id":12934},"user":"sebastianwoinar","tags":[]},"12934":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"12935":{"varMapping":{"__isSmartRef__":true,"id":12936},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":12937},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12936":{"this":{"__isSmartRef__":true,"id":12822}},"12937":{"timestamp":{"__isSmartRef__":true,"id":12938},"user":"sebastianwoinar","tags":[]},"12938":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"12939":{"varMapping":{"__isSmartRef__":true,"id":12940},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12941},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12940":{"this":{"__isSmartRef__":true,"id":12822}},"12941":{"timestamp":{"__isSmartRef__":true,"id":12942},"user":"sebastianwoinar","tags":[]},"12942":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"12943":{"varMapping":{"__isSmartRef__":true,"id":12944},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":12945},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12944":{"this":{"__isSmartRef__":true,"id":12822}},"12945":{"timestamp":{"__isSmartRef__":true,"id":12946},"user":"sebastianwoinar","tags":[]},"12946":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"12947":{"varMapping":{"__isSmartRef__":true,"id":12948},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12949},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12948":{"this":{"__isSmartRef__":true,"id":12822}},"12949":{"timestamp":{"__isSmartRef__":true,"id":12950},"user":"sebastianwoinar","tags":[]},"12950":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"12951":{"submorphs":[{"__isSmartRef__":true,"id":12952}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12969},"id":"066BAF82-D77F-4BBD-8A63-B988889867CD","eventHandler":{"__isSmartRef__":true,"id":12970},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":12971},"name":"node59","partsBinMetaInfo":{"__isSmartRef__":true,"id":12972},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5547},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":12540},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12975},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(274.9,210.0)"},"12952":{"submorphs":[],"scripts":[],"id":"66DF4B43-4D68-4489-ADE4-7601FABBB5AC","shape":{"__isSmartRef__":true,"id":12953},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":12954},"textChunks":[{"__isSmartRef__":true,"id":12966}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":12968},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":12951},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"12953":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"12954":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":12955},{"__isSmartRef__":true,"id":12957},{"__isSmartRef__":true,"id":12959},{"__isSmartRef__":true,"id":12961},{"__isSmartRef__":true,"id":12963}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":12965},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"12955":{"date":{"__isSmartRef__":true,"id":12956},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"12956":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"12957":{"date":{"__isSmartRef__":true,"id":12958},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"12958":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"12959":{"date":{"__isSmartRef__":true,"id":12960},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"12960":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"12961":{"date":{"__isSmartRef__":true,"id":12962},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"12962":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"12963":{"date":{"__isSmartRef__":true,"id":12964},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"12964":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"12965":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"12966":{"style":{"__isSmartRef__":true,"id":12967},"morph":{"__isSmartRef__":true,"id":12952},"chunkOwner":{"__isSmartRef__":true,"id":12952},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12967":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12968":{"morph":{"__isSmartRef__":true,"id":12952},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12969":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"12970":{"morph":{"__isSmartRef__":true,"id":12951},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12971":{},"12972":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":12973}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"12973":{"date":{"__isSmartRef__":true,"id":12974},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"12974":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"12975":{"buildChildNodes":{"__isSmartRef__":true,"id":12976},"getGameTree":{"__isSmartRef__":true,"id":12980},"getLevel":{"__isSmartRef__":true,"id":12984},"getLevelWeight":{"__isSmartRef__":true,"id":12988},"getWeight":{"__isSmartRef__":true,"id":12992},"setNode":{"__isSmartRef__":true,"id":12996},"setParent":{"__isSmartRef__":true,"id":13000},"getParent":{"__isSmartRef__":true,"id":13004},"deactivate":{"__isSmartRef__":true,"id":13008},"blink":{"__isSmartRef__":true,"id":13012},"ABPreturn":{"__isSmartRef__":true,"id":13016},"ABPstart":{"__isSmartRef__":true,"id":13020},"ABPcontinue":{"__isSmartRef__":true,"id":13024},"ABPshowValue":{"__isSmartRef__":true,"id":13028},"ABPgetValue":{"__isSmartRef__":true,"id":13032},"ABPhasChildNodes":{"__isSmartRef__":true,"id":13036},"onMouseDown":{"__isSmartRef__":true,"id":13040},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":13048},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":13052},"ABPmarkAsDone":{"__isSmartRef__":true,"id":13056},"ABPmarkAsActive":{"__isSmartRef__":true,"id":13060},"getStateMorph":{"__isSmartRef__":true,"id":13064},"showState":{"__isSmartRef__":true,"id":13068},"ABPfailHard":{"__isSmartRef__":true,"id":13072},"markFinalDrawWith":{"__isSmartRef__":true,"id":13076}},"12976":{"varMapping":{"__isSmartRef__":true,"id":12977},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":12978},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12977":{"this":{"__isSmartRef__":true,"id":12951}},"12978":{"timestamp":{"__isSmartRef__":true,"id":12979},"user":"sebastianwoinar","tags":[]},"12979":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"12980":{"varMapping":{"__isSmartRef__":true,"id":12981},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":12982},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12981":{"this":{"__isSmartRef__":true,"id":12951}},"12982":{"timestamp":{"__isSmartRef__":true,"id":12983},"user":"sebastianwoinar","tags":[]},"12983":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12984":{"varMapping":{"__isSmartRef__":true,"id":12985},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":12986},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12985":{"this":{"__isSmartRef__":true,"id":12951}},"12986":{"timestamp":{"__isSmartRef__":true,"id":12987},"user":"sebastianwoinar","tags":[]},"12987":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12988":{"varMapping":{"__isSmartRef__":true,"id":12989},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12990},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12989":{"this":{"__isSmartRef__":true,"id":12951}},"12990":{"timestamp":{"__isSmartRef__":true,"id":12991},"user":"sebastianwoinar","tags":[]},"12991":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12992":{"varMapping":{"__isSmartRef__":true,"id":12993},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":12994},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12993":{"this":{"__isSmartRef__":true,"id":12951}},"12994":{"timestamp":{"__isSmartRef__":true,"id":12995},"user":"sebastianwoinar","tags":[]},"12995":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"12996":{"varMapping":{"__isSmartRef__":true,"id":12997},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":12998},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"12997":{"this":{"__isSmartRef__":true,"id":12951}},"12998":{"timestamp":{"__isSmartRef__":true,"id":12999},"user":"sebastianwoinar","tags":[]},"12999":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13000":{"varMapping":{"__isSmartRef__":true,"id":13001},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":13002},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13001":{"this":{"__isSmartRef__":true,"id":12951}},"13002":{"timestamp":{"__isSmartRef__":true,"id":13003},"user":"sebastianwoinar","tags":[]},"13003":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13004":{"varMapping":{"__isSmartRef__":true,"id":13005},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":13006},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13005":{"this":{"__isSmartRef__":true,"id":12951}},"13006":{"timestamp":{"__isSmartRef__":true,"id":13007},"user":"sebastianwoinar","tags":[]},"13007":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"13008":{"varMapping":{"__isSmartRef__":true,"id":13009},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":13010},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13009":{"this":{"__isSmartRef__":true,"id":12951}},"13010":{"timestamp":{"__isSmartRef__":true,"id":13011},"user":"sebastianwoinar","tags":[]},"13011":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"13012":{"varMapping":{"__isSmartRef__":true,"id":13013},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":13014},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13013":{"this":{"__isSmartRef__":true,"id":12951}},"13014":{"timestamp":{"__isSmartRef__":true,"id":13015},"user":"sebastianwoinar","tags":[]},"13015":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"13016":{"varMapping":{"__isSmartRef__":true,"id":13017},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":13018},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13017":{"this":{"__isSmartRef__":true,"id":12951}},"13018":{"timestamp":{"__isSmartRef__":true,"id":13019},"user":"sebastianwoinar","tags":[]},"13019":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"13020":{"varMapping":{"__isSmartRef__":true,"id":13021},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":13022},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13021":{"this":{"__isSmartRef__":true,"id":12951}},"13022":{"timestamp":{"__isSmartRef__":true,"id":13023},"user":"sebastianwoinar","tags":[]},"13023":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"13024":{"varMapping":{"__isSmartRef__":true,"id":13025},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":13026},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13025":{"this":{"__isSmartRef__":true,"id":12951}},"13026":{"timestamp":{"__isSmartRef__":true,"id":13027},"user":"sebastianwoinar","tags":[]},"13027":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"13028":{"varMapping":{"__isSmartRef__":true,"id":13029},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":13030},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13029":{"this":{"__isSmartRef__":true,"id":12951}},"13030":{"timestamp":{"__isSmartRef__":true,"id":13031},"user":"sebastianwoinar","tags":[]},"13031":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"13032":{"varMapping":{"__isSmartRef__":true,"id":13033},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":13034},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13033":{"this":{"__isSmartRef__":true,"id":12951}},"13034":{"timestamp":{"__isSmartRef__":true,"id":13035},"user":"sebastianwoinar","tags":[]},"13035":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"13036":{"varMapping":{"__isSmartRef__":true,"id":13037},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":13038},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13037":{"this":{"__isSmartRef__":true,"id":12951}},"13038":{"timestamp":{"__isSmartRef__":true,"id":13039},"user":"sebastianwoinar","tags":[]},"13039":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"13040":{"varMapping":{"__isSmartRef__":true,"id":13041},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":13046},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13041":{"this":{"__isSmartRef__":true,"id":12951},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13042}},"13042":{"$super":{"__isSmartRef__":true,"id":13043}},"13043":{"varMapping":{"__isSmartRef__":true,"id":13044},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":13045},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13044":{"obj":{"__isSmartRef__":true,"id":12951},"name":"onMouseDown"},"13045":{},"13046":{"timestamp":{"__isSmartRef__":true,"id":13047},"user":"sebastianwoinar","tags":[]},"13047":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"13048":{"varMapping":{"__isSmartRef__":true,"id":13049},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":13050},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13049":{"this":{"__isSmartRef__":true,"id":12951}},"13050":{"timestamp":{"__isSmartRef__":true,"id":13051},"user":"sebastianwoinar","tags":[]},"13051":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"13052":{"varMapping":{"__isSmartRef__":true,"id":13053},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":13054},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13053":{"this":{"__isSmartRef__":true,"id":12951}},"13054":{"timestamp":{"__isSmartRef__":true,"id":13055},"user":"sebastianwoinar","tags":[]},"13055":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"13056":{"varMapping":{"__isSmartRef__":true,"id":13057},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":13058},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13057":{"this":{"__isSmartRef__":true,"id":12951}},"13058":{"timestamp":{"__isSmartRef__":true,"id":13059},"user":"sebastianwoinar","tags":[]},"13059":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"13060":{"varMapping":{"__isSmartRef__":true,"id":13061},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":13062},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13061":{"this":{"__isSmartRef__":true,"id":12951}},"13062":{"timestamp":{"__isSmartRef__":true,"id":13063},"user":"sebastianwoinar","tags":[]},"13063":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"13064":{"varMapping":{"__isSmartRef__":true,"id":13065},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":13066},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13065":{"this":{"__isSmartRef__":true,"id":12951}},"13066":{"timestamp":{"__isSmartRef__":true,"id":13067},"user":"sebastianwoinar","tags":[]},"13067":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"13068":{"varMapping":{"__isSmartRef__":true,"id":13069},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13070},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13069":{"this":{"__isSmartRef__":true,"id":12951}},"13070":{"timestamp":{"__isSmartRef__":true,"id":13071},"user":"sebastianwoinar","tags":[]},"13071":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"13072":{"varMapping":{"__isSmartRef__":true,"id":13073},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":13074},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13073":{"this":{"__isSmartRef__":true,"id":12951}},"13074":{"timestamp":{"__isSmartRef__":true,"id":13075},"user":"sebastianwoinar","tags":[]},"13075":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"13076":{"varMapping":{"__isSmartRef__":true,"id":13077},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13078},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13077":{"this":{"__isSmartRef__":true,"id":12951}},"13078":{"timestamp":{"__isSmartRef__":true,"id":13079},"user":"sebastianwoinar","tags":[]},"13079":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"13080":{"submorphs":[{"__isSmartRef__":true,"id":13081}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13098},"id":"1769439A-3D53-4F53-B701-C7E3C7FC39CD","eventHandler":{"__isSmartRef__":true,"id":13099},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":13100},"name":"node60","partsBinMetaInfo":{"__isSmartRef__":true,"id":13101},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5549},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":12540},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13104},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(280.1,210.0)"},"13081":{"submorphs":[],"scripts":[],"id":"680819BD-78FB-463C-AC16-47FBC019E2F4","shape":{"__isSmartRef__":true,"id":13082},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":13083},"textChunks":[{"__isSmartRef__":true,"id":13095}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":13097},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":13080},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"13082":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"13083":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":13084},{"__isSmartRef__":true,"id":13086},{"__isSmartRef__":true,"id":13088},{"__isSmartRef__":true,"id":13090},{"__isSmartRef__":true,"id":13092}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":13094},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"13084":{"date":{"__isSmartRef__":true,"id":13085},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"13085":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"13086":{"date":{"__isSmartRef__":true,"id":13087},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"13087":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"13088":{"date":{"__isSmartRef__":true,"id":13089},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"13089":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"13090":{"date":{"__isSmartRef__":true,"id":13091},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"13091":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"13092":{"date":{"__isSmartRef__":true,"id":13093},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"13093":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"13094":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"13095":{"style":{"__isSmartRef__":true,"id":13096},"morph":{"__isSmartRef__":true,"id":13081},"chunkOwner":{"__isSmartRef__":true,"id":13081},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13096":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13097":{"morph":{"__isSmartRef__":true,"id":13081},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13098":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"13099":{"morph":{"__isSmartRef__":true,"id":13080},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13100":{},"13101":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":13102}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"13102":{"date":{"__isSmartRef__":true,"id":13103},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"13103":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"13104":{"buildChildNodes":{"__isSmartRef__":true,"id":13105},"getGameTree":{"__isSmartRef__":true,"id":13109},"getLevel":{"__isSmartRef__":true,"id":13113},"getLevelWeight":{"__isSmartRef__":true,"id":13117},"getWeight":{"__isSmartRef__":true,"id":13121},"setNode":{"__isSmartRef__":true,"id":13125},"setParent":{"__isSmartRef__":true,"id":13129},"getParent":{"__isSmartRef__":true,"id":13133},"deactivate":{"__isSmartRef__":true,"id":13137},"blink":{"__isSmartRef__":true,"id":13141},"ABPreturn":{"__isSmartRef__":true,"id":13145},"ABPstart":{"__isSmartRef__":true,"id":13149},"ABPcontinue":{"__isSmartRef__":true,"id":13153},"ABPshowValue":{"__isSmartRef__":true,"id":13157},"ABPgetValue":{"__isSmartRef__":true,"id":13161},"ABPhasChildNodes":{"__isSmartRef__":true,"id":13165},"onMouseDown":{"__isSmartRef__":true,"id":13169},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":13177},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":13181},"ABPmarkAsDone":{"__isSmartRef__":true,"id":13185},"ABPmarkAsActive":{"__isSmartRef__":true,"id":13189},"getStateMorph":{"__isSmartRef__":true,"id":13193},"showState":{"__isSmartRef__":true,"id":13197},"ABPfailHard":{"__isSmartRef__":true,"id":13201},"markFinalDrawWith":{"__isSmartRef__":true,"id":13205}},"13105":{"varMapping":{"__isSmartRef__":true,"id":13106},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":13107},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13106":{"this":{"__isSmartRef__":true,"id":13080}},"13107":{"timestamp":{"__isSmartRef__":true,"id":13108},"user":"sebastianwoinar","tags":[]},"13108":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"13109":{"varMapping":{"__isSmartRef__":true,"id":13110},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":13111},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13110":{"this":{"__isSmartRef__":true,"id":13080}},"13111":{"timestamp":{"__isSmartRef__":true,"id":13112},"user":"sebastianwoinar","tags":[]},"13112":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13113":{"varMapping":{"__isSmartRef__":true,"id":13114},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":13115},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13114":{"this":{"__isSmartRef__":true,"id":13080}},"13115":{"timestamp":{"__isSmartRef__":true,"id":13116},"user":"sebastianwoinar","tags":[]},"13116":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13117":{"varMapping":{"__isSmartRef__":true,"id":13118},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13119},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13118":{"this":{"__isSmartRef__":true,"id":13080}},"13119":{"timestamp":{"__isSmartRef__":true,"id":13120},"user":"sebastianwoinar","tags":[]},"13120":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13121":{"varMapping":{"__isSmartRef__":true,"id":13122},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":13123},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13122":{"this":{"__isSmartRef__":true,"id":13080}},"13123":{"timestamp":{"__isSmartRef__":true,"id":13124},"user":"sebastianwoinar","tags":[]},"13124":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13125":{"varMapping":{"__isSmartRef__":true,"id":13126},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":13127},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13126":{"this":{"__isSmartRef__":true,"id":13080}},"13127":{"timestamp":{"__isSmartRef__":true,"id":13128},"user":"sebastianwoinar","tags":[]},"13128":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13129":{"varMapping":{"__isSmartRef__":true,"id":13130},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":13131},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13130":{"this":{"__isSmartRef__":true,"id":13080}},"13131":{"timestamp":{"__isSmartRef__":true,"id":13132},"user":"sebastianwoinar","tags":[]},"13132":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13133":{"varMapping":{"__isSmartRef__":true,"id":13134},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":13135},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13134":{"this":{"__isSmartRef__":true,"id":13080}},"13135":{"timestamp":{"__isSmartRef__":true,"id":13136},"user":"sebastianwoinar","tags":[]},"13136":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"13137":{"varMapping":{"__isSmartRef__":true,"id":13138},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":13139},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13138":{"this":{"__isSmartRef__":true,"id":13080}},"13139":{"timestamp":{"__isSmartRef__":true,"id":13140},"user":"sebastianwoinar","tags":[]},"13140":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"13141":{"varMapping":{"__isSmartRef__":true,"id":13142},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":13143},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13142":{"this":{"__isSmartRef__":true,"id":13080}},"13143":{"timestamp":{"__isSmartRef__":true,"id":13144},"user":"sebastianwoinar","tags":[]},"13144":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"13145":{"varMapping":{"__isSmartRef__":true,"id":13146},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":13147},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13146":{"this":{"__isSmartRef__":true,"id":13080}},"13147":{"timestamp":{"__isSmartRef__":true,"id":13148},"user":"sebastianwoinar","tags":[]},"13148":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"13149":{"varMapping":{"__isSmartRef__":true,"id":13150},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":13151},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13150":{"this":{"__isSmartRef__":true,"id":13080}},"13151":{"timestamp":{"__isSmartRef__":true,"id":13152},"user":"sebastianwoinar","tags":[]},"13152":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"13153":{"varMapping":{"__isSmartRef__":true,"id":13154},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":13155},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13154":{"this":{"__isSmartRef__":true,"id":13080}},"13155":{"timestamp":{"__isSmartRef__":true,"id":13156},"user":"sebastianwoinar","tags":[]},"13156":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"13157":{"varMapping":{"__isSmartRef__":true,"id":13158},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":13159},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13158":{"this":{"__isSmartRef__":true,"id":13080}},"13159":{"timestamp":{"__isSmartRef__":true,"id":13160},"user":"sebastianwoinar","tags":[]},"13160":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"13161":{"varMapping":{"__isSmartRef__":true,"id":13162},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":13163},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13162":{"this":{"__isSmartRef__":true,"id":13080}},"13163":{"timestamp":{"__isSmartRef__":true,"id":13164},"user":"sebastianwoinar","tags":[]},"13164":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"13165":{"varMapping":{"__isSmartRef__":true,"id":13166},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":13167},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13166":{"this":{"__isSmartRef__":true,"id":13080}},"13167":{"timestamp":{"__isSmartRef__":true,"id":13168},"user":"sebastianwoinar","tags":[]},"13168":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"13169":{"varMapping":{"__isSmartRef__":true,"id":13170},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":13175},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13170":{"this":{"__isSmartRef__":true,"id":13080},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13171}},"13171":{"$super":{"__isSmartRef__":true,"id":13172}},"13172":{"varMapping":{"__isSmartRef__":true,"id":13173},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":13174},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13173":{"obj":{"__isSmartRef__":true,"id":13080},"name":"onMouseDown"},"13174":{},"13175":{"timestamp":{"__isSmartRef__":true,"id":13176},"user":"sebastianwoinar","tags":[]},"13176":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"13177":{"varMapping":{"__isSmartRef__":true,"id":13178},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":13179},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13178":{"this":{"__isSmartRef__":true,"id":13080}},"13179":{"timestamp":{"__isSmartRef__":true,"id":13180},"user":"sebastianwoinar","tags":[]},"13180":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"13181":{"varMapping":{"__isSmartRef__":true,"id":13182},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":13183},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13182":{"this":{"__isSmartRef__":true,"id":13080}},"13183":{"timestamp":{"__isSmartRef__":true,"id":13184},"user":"sebastianwoinar","tags":[]},"13184":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"13185":{"varMapping":{"__isSmartRef__":true,"id":13186},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":13187},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13186":{"this":{"__isSmartRef__":true,"id":13080}},"13187":{"timestamp":{"__isSmartRef__":true,"id":13188},"user":"sebastianwoinar","tags":[]},"13188":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"13189":{"varMapping":{"__isSmartRef__":true,"id":13190},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":13191},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13190":{"this":{"__isSmartRef__":true,"id":13080}},"13191":{"timestamp":{"__isSmartRef__":true,"id":13192},"user":"sebastianwoinar","tags":[]},"13192":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"13193":{"varMapping":{"__isSmartRef__":true,"id":13194},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":13195},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13194":{"this":{"__isSmartRef__":true,"id":13080}},"13195":{"timestamp":{"__isSmartRef__":true,"id":13196},"user":"sebastianwoinar","tags":[]},"13196":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"13197":{"varMapping":{"__isSmartRef__":true,"id":13198},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13199},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13198":{"this":{"__isSmartRef__":true,"id":13080}},"13199":{"timestamp":{"__isSmartRef__":true,"id":13200},"user":"sebastianwoinar","tags":[]},"13200":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"13201":{"varMapping":{"__isSmartRef__":true,"id":13202},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":13203},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13202":{"this":{"__isSmartRef__":true,"id":13080}},"13203":{"timestamp":{"__isSmartRef__":true,"id":13204},"user":"sebastianwoinar","tags":[]},"13204":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"13205":{"varMapping":{"__isSmartRef__":true,"id":13206},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13207},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13206":{"this":{"__isSmartRef__":true,"id":13080}},"13207":{"timestamp":{"__isSmartRef__":true,"id":13208},"user":"sebastianwoinar","tags":[]},"13208":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"13209":{"submorphs":[{"__isSmartRef__":true,"id":13210}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13227},"id":"C8670677-975C-4FF2-8C1F-698936C52885","eventHandler":{"__isSmartRef__":true,"id":13228},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":13229},"name":"node61","partsBinMetaInfo":{"__isSmartRef__":true,"id":13230},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5551},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":12540},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13233},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(285.2,210.0)"},"13210":{"submorphs":[],"scripts":[],"id":"828712FA-460F-4AEE-9793-B39DF181044A","shape":{"__isSmartRef__":true,"id":13211},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":13212},"textChunks":[{"__isSmartRef__":true,"id":13224}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":13226},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":13209},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"13211":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"13212":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":13213},{"__isSmartRef__":true,"id":13215},{"__isSmartRef__":true,"id":13217},{"__isSmartRef__":true,"id":13219},{"__isSmartRef__":true,"id":13221}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":13223},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"13213":{"date":{"__isSmartRef__":true,"id":13214},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"13214":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"13215":{"date":{"__isSmartRef__":true,"id":13216},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"13216":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"13217":{"date":{"__isSmartRef__":true,"id":13218},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"13218":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"13219":{"date":{"__isSmartRef__":true,"id":13220},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"13220":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"13221":{"date":{"__isSmartRef__":true,"id":13222},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"13222":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"13223":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"13224":{"style":{"__isSmartRef__":true,"id":13225},"morph":{"__isSmartRef__":true,"id":13210},"chunkOwner":{"__isSmartRef__":true,"id":13210},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13225":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13226":{"morph":{"__isSmartRef__":true,"id":13210},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13227":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"13228":{"morph":{"__isSmartRef__":true,"id":13209},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13229":{},"13230":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":13231}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"13231":{"date":{"__isSmartRef__":true,"id":13232},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"13232":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"13233":{"buildChildNodes":{"__isSmartRef__":true,"id":13234},"getGameTree":{"__isSmartRef__":true,"id":13238},"getLevel":{"__isSmartRef__":true,"id":13242},"getLevelWeight":{"__isSmartRef__":true,"id":13246},"getWeight":{"__isSmartRef__":true,"id":13250},"setNode":{"__isSmartRef__":true,"id":13254},"setParent":{"__isSmartRef__":true,"id":13258},"getParent":{"__isSmartRef__":true,"id":13262},"deactivate":{"__isSmartRef__":true,"id":13266},"blink":{"__isSmartRef__":true,"id":13270},"ABPreturn":{"__isSmartRef__":true,"id":13274},"ABPstart":{"__isSmartRef__":true,"id":13278},"ABPcontinue":{"__isSmartRef__":true,"id":13282},"ABPshowValue":{"__isSmartRef__":true,"id":13286},"ABPgetValue":{"__isSmartRef__":true,"id":13290},"ABPhasChildNodes":{"__isSmartRef__":true,"id":13294},"onMouseDown":{"__isSmartRef__":true,"id":13298},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":13306},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":13310},"ABPmarkAsDone":{"__isSmartRef__":true,"id":13314},"ABPmarkAsActive":{"__isSmartRef__":true,"id":13318},"getStateMorph":{"__isSmartRef__":true,"id":13322},"showState":{"__isSmartRef__":true,"id":13326},"ABPfailHard":{"__isSmartRef__":true,"id":13330},"markFinalDrawWith":{"__isSmartRef__":true,"id":13334}},"13234":{"varMapping":{"__isSmartRef__":true,"id":13235},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":13236},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13235":{"this":{"__isSmartRef__":true,"id":13209}},"13236":{"timestamp":{"__isSmartRef__":true,"id":13237},"user":"sebastianwoinar","tags":[]},"13237":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"13238":{"varMapping":{"__isSmartRef__":true,"id":13239},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":13240},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13239":{"this":{"__isSmartRef__":true,"id":13209}},"13240":{"timestamp":{"__isSmartRef__":true,"id":13241},"user":"sebastianwoinar","tags":[]},"13241":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13242":{"varMapping":{"__isSmartRef__":true,"id":13243},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":13244},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13243":{"this":{"__isSmartRef__":true,"id":13209}},"13244":{"timestamp":{"__isSmartRef__":true,"id":13245},"user":"sebastianwoinar","tags":[]},"13245":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13246":{"varMapping":{"__isSmartRef__":true,"id":13247},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13248},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13247":{"this":{"__isSmartRef__":true,"id":13209}},"13248":{"timestamp":{"__isSmartRef__":true,"id":13249},"user":"sebastianwoinar","tags":[]},"13249":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13250":{"varMapping":{"__isSmartRef__":true,"id":13251},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":13252},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13251":{"this":{"__isSmartRef__":true,"id":13209}},"13252":{"timestamp":{"__isSmartRef__":true,"id":13253},"user":"sebastianwoinar","tags":[]},"13253":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13254":{"varMapping":{"__isSmartRef__":true,"id":13255},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":13256},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13255":{"this":{"__isSmartRef__":true,"id":13209}},"13256":{"timestamp":{"__isSmartRef__":true,"id":13257},"user":"sebastianwoinar","tags":[]},"13257":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13258":{"varMapping":{"__isSmartRef__":true,"id":13259},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":13260},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13259":{"this":{"__isSmartRef__":true,"id":13209}},"13260":{"timestamp":{"__isSmartRef__":true,"id":13261},"user":"sebastianwoinar","tags":[]},"13261":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13262":{"varMapping":{"__isSmartRef__":true,"id":13263},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":13264},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13263":{"this":{"__isSmartRef__":true,"id":13209}},"13264":{"timestamp":{"__isSmartRef__":true,"id":13265},"user":"sebastianwoinar","tags":[]},"13265":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"13266":{"varMapping":{"__isSmartRef__":true,"id":13267},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":13268},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13267":{"this":{"__isSmartRef__":true,"id":13209}},"13268":{"timestamp":{"__isSmartRef__":true,"id":13269},"user":"sebastianwoinar","tags":[]},"13269":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"13270":{"varMapping":{"__isSmartRef__":true,"id":13271},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":13272},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13271":{"this":{"__isSmartRef__":true,"id":13209}},"13272":{"timestamp":{"__isSmartRef__":true,"id":13273},"user":"sebastianwoinar","tags":[]},"13273":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"13274":{"varMapping":{"__isSmartRef__":true,"id":13275},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":13276},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13275":{"this":{"__isSmartRef__":true,"id":13209}},"13276":{"timestamp":{"__isSmartRef__":true,"id":13277},"user":"sebastianwoinar","tags":[]},"13277":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"13278":{"varMapping":{"__isSmartRef__":true,"id":13279},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":13280},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13279":{"this":{"__isSmartRef__":true,"id":13209}},"13280":{"timestamp":{"__isSmartRef__":true,"id":13281},"user":"sebastianwoinar","tags":[]},"13281":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"13282":{"varMapping":{"__isSmartRef__":true,"id":13283},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":13284},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13283":{"this":{"__isSmartRef__":true,"id":13209}},"13284":{"timestamp":{"__isSmartRef__":true,"id":13285},"user":"sebastianwoinar","tags":[]},"13285":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"13286":{"varMapping":{"__isSmartRef__":true,"id":13287},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":13288},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13287":{"this":{"__isSmartRef__":true,"id":13209}},"13288":{"timestamp":{"__isSmartRef__":true,"id":13289},"user":"sebastianwoinar","tags":[]},"13289":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"13290":{"varMapping":{"__isSmartRef__":true,"id":13291},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":13292},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13291":{"this":{"__isSmartRef__":true,"id":13209}},"13292":{"timestamp":{"__isSmartRef__":true,"id":13293},"user":"sebastianwoinar","tags":[]},"13293":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"13294":{"varMapping":{"__isSmartRef__":true,"id":13295},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":13296},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13295":{"this":{"__isSmartRef__":true,"id":13209}},"13296":{"timestamp":{"__isSmartRef__":true,"id":13297},"user":"sebastianwoinar","tags":[]},"13297":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"13298":{"varMapping":{"__isSmartRef__":true,"id":13299},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":13304},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13299":{"this":{"__isSmartRef__":true,"id":13209},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13300}},"13300":{"$super":{"__isSmartRef__":true,"id":13301}},"13301":{"varMapping":{"__isSmartRef__":true,"id":13302},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":13303},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13302":{"obj":{"__isSmartRef__":true,"id":13209},"name":"onMouseDown"},"13303":{},"13304":{"timestamp":{"__isSmartRef__":true,"id":13305},"user":"sebastianwoinar","tags":[]},"13305":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"13306":{"varMapping":{"__isSmartRef__":true,"id":13307},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":13308},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13307":{"this":{"__isSmartRef__":true,"id":13209}},"13308":{"timestamp":{"__isSmartRef__":true,"id":13309},"user":"sebastianwoinar","tags":[]},"13309":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"13310":{"varMapping":{"__isSmartRef__":true,"id":13311},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":13312},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13311":{"this":{"__isSmartRef__":true,"id":13209}},"13312":{"timestamp":{"__isSmartRef__":true,"id":13313},"user":"sebastianwoinar","tags":[]},"13313":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"13314":{"varMapping":{"__isSmartRef__":true,"id":13315},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":13316},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13315":{"this":{"__isSmartRef__":true,"id":13209}},"13316":{"timestamp":{"__isSmartRef__":true,"id":13317},"user":"sebastianwoinar","tags":[]},"13317":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"13318":{"varMapping":{"__isSmartRef__":true,"id":13319},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":13320},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13319":{"this":{"__isSmartRef__":true,"id":13209}},"13320":{"timestamp":{"__isSmartRef__":true,"id":13321},"user":"sebastianwoinar","tags":[]},"13321":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"13322":{"varMapping":{"__isSmartRef__":true,"id":13323},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":13324},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13323":{"this":{"__isSmartRef__":true,"id":13209}},"13324":{"timestamp":{"__isSmartRef__":true,"id":13325},"user":"sebastianwoinar","tags":[]},"13325":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"13326":{"varMapping":{"__isSmartRef__":true,"id":13327},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13328},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13327":{"this":{"__isSmartRef__":true,"id":13209}},"13328":{"timestamp":{"__isSmartRef__":true,"id":13329},"user":"sebastianwoinar","tags":[]},"13329":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"13330":{"varMapping":{"__isSmartRef__":true,"id":13331},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":13332},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13331":{"this":{"__isSmartRef__":true,"id":13209}},"13332":{"timestamp":{"__isSmartRef__":true,"id":13333},"user":"sebastianwoinar","tags":[]},"13333":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"13334":{"varMapping":{"__isSmartRef__":true,"id":13335},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13336},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13335":{"this":{"__isSmartRef__":true,"id":13209}},"13336":{"timestamp":{"__isSmartRef__":true,"id":13337},"user":"sebastianwoinar","tags":[]},"13337":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"13338":{"submorphs":[{"__isSmartRef__":true,"id":13339}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13356},"id":"EA334165-B038-4750-BF2D-D425EC5AEB4C","eventHandler":{"__isSmartRef__":true,"id":13357},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":13358},"name":"node62","partsBinMetaInfo":{"__isSmartRef__":true,"id":13359},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5553},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":12540},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13362},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(290.4,210.0)"},"13339":{"submorphs":[],"scripts":[],"id":"F5377389-1175-4A45-846C-B66CAE2590A2","shape":{"__isSmartRef__":true,"id":13340},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":13341},"textChunks":[{"__isSmartRef__":true,"id":13353}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":13355},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":13338},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"13340":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"13341":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":13342},{"__isSmartRef__":true,"id":13344},{"__isSmartRef__":true,"id":13346},{"__isSmartRef__":true,"id":13348},{"__isSmartRef__":true,"id":13350}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":13352},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"13342":{"date":{"__isSmartRef__":true,"id":13343},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"13343":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"13344":{"date":{"__isSmartRef__":true,"id":13345},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"13345":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"13346":{"date":{"__isSmartRef__":true,"id":13347},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"13347":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"13348":{"date":{"__isSmartRef__":true,"id":13349},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"13349":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"13350":{"date":{"__isSmartRef__":true,"id":13351},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"13351":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"13352":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"13353":{"style":{"__isSmartRef__":true,"id":13354},"morph":{"__isSmartRef__":true,"id":13339},"chunkOwner":{"__isSmartRef__":true,"id":13339},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13354":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13355":{"morph":{"__isSmartRef__":true,"id":13339},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13356":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"13357":{"morph":{"__isSmartRef__":true,"id":13338},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13358":{},"13359":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":13360}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"13360":{"date":{"__isSmartRef__":true,"id":13361},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"13361":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"13362":{"buildChildNodes":{"__isSmartRef__":true,"id":13363},"getGameTree":{"__isSmartRef__":true,"id":13367},"getLevel":{"__isSmartRef__":true,"id":13371},"getLevelWeight":{"__isSmartRef__":true,"id":13375},"getWeight":{"__isSmartRef__":true,"id":13379},"setNode":{"__isSmartRef__":true,"id":13383},"setParent":{"__isSmartRef__":true,"id":13387},"getParent":{"__isSmartRef__":true,"id":13391},"deactivate":{"__isSmartRef__":true,"id":13395},"blink":{"__isSmartRef__":true,"id":13399},"ABPreturn":{"__isSmartRef__":true,"id":13403},"ABPstart":{"__isSmartRef__":true,"id":13407},"ABPcontinue":{"__isSmartRef__":true,"id":13411},"ABPshowValue":{"__isSmartRef__":true,"id":13415},"ABPgetValue":{"__isSmartRef__":true,"id":13419},"ABPhasChildNodes":{"__isSmartRef__":true,"id":13423},"onMouseDown":{"__isSmartRef__":true,"id":13427},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":13435},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":13439},"ABPmarkAsDone":{"__isSmartRef__":true,"id":13443},"ABPmarkAsActive":{"__isSmartRef__":true,"id":13447},"getStateMorph":{"__isSmartRef__":true,"id":13451},"showState":{"__isSmartRef__":true,"id":13455},"ABPfailHard":{"__isSmartRef__":true,"id":13459},"markFinalDrawWith":{"__isSmartRef__":true,"id":13463}},"13363":{"varMapping":{"__isSmartRef__":true,"id":13364},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":13365},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13364":{"this":{"__isSmartRef__":true,"id":13338}},"13365":{"timestamp":{"__isSmartRef__":true,"id":13366},"user":"sebastianwoinar","tags":[]},"13366":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"13367":{"varMapping":{"__isSmartRef__":true,"id":13368},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":13369},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13368":{"this":{"__isSmartRef__":true,"id":13338}},"13369":{"timestamp":{"__isSmartRef__":true,"id":13370},"user":"sebastianwoinar","tags":[]},"13370":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13371":{"varMapping":{"__isSmartRef__":true,"id":13372},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":13373},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13372":{"this":{"__isSmartRef__":true,"id":13338}},"13373":{"timestamp":{"__isSmartRef__":true,"id":13374},"user":"sebastianwoinar","tags":[]},"13374":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13375":{"varMapping":{"__isSmartRef__":true,"id":13376},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13377},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13376":{"this":{"__isSmartRef__":true,"id":13338}},"13377":{"timestamp":{"__isSmartRef__":true,"id":13378},"user":"sebastianwoinar","tags":[]},"13378":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13379":{"varMapping":{"__isSmartRef__":true,"id":13380},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":13381},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13380":{"this":{"__isSmartRef__":true,"id":13338}},"13381":{"timestamp":{"__isSmartRef__":true,"id":13382},"user":"sebastianwoinar","tags":[]},"13382":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13383":{"varMapping":{"__isSmartRef__":true,"id":13384},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":13385},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13384":{"this":{"__isSmartRef__":true,"id":13338}},"13385":{"timestamp":{"__isSmartRef__":true,"id":13386},"user":"sebastianwoinar","tags":[]},"13386":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13387":{"varMapping":{"__isSmartRef__":true,"id":13388},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":13389},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13388":{"this":{"__isSmartRef__":true,"id":13338}},"13389":{"timestamp":{"__isSmartRef__":true,"id":13390},"user":"sebastianwoinar","tags":[]},"13390":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13391":{"varMapping":{"__isSmartRef__":true,"id":13392},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":13393},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13392":{"this":{"__isSmartRef__":true,"id":13338}},"13393":{"timestamp":{"__isSmartRef__":true,"id":13394},"user":"sebastianwoinar","tags":[]},"13394":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"13395":{"varMapping":{"__isSmartRef__":true,"id":13396},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":13397},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13396":{"this":{"__isSmartRef__":true,"id":13338}},"13397":{"timestamp":{"__isSmartRef__":true,"id":13398},"user":"sebastianwoinar","tags":[]},"13398":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"13399":{"varMapping":{"__isSmartRef__":true,"id":13400},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":13401},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13400":{"this":{"__isSmartRef__":true,"id":13338}},"13401":{"timestamp":{"__isSmartRef__":true,"id":13402},"user":"sebastianwoinar","tags":[]},"13402":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"13403":{"varMapping":{"__isSmartRef__":true,"id":13404},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":13405},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13404":{"this":{"__isSmartRef__":true,"id":13338}},"13405":{"timestamp":{"__isSmartRef__":true,"id":13406},"user":"sebastianwoinar","tags":[]},"13406":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"13407":{"varMapping":{"__isSmartRef__":true,"id":13408},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":13409},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13408":{"this":{"__isSmartRef__":true,"id":13338}},"13409":{"timestamp":{"__isSmartRef__":true,"id":13410},"user":"sebastianwoinar","tags":[]},"13410":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"13411":{"varMapping":{"__isSmartRef__":true,"id":13412},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":13413},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13412":{"this":{"__isSmartRef__":true,"id":13338}},"13413":{"timestamp":{"__isSmartRef__":true,"id":13414},"user":"sebastianwoinar","tags":[]},"13414":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"13415":{"varMapping":{"__isSmartRef__":true,"id":13416},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":13417},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13416":{"this":{"__isSmartRef__":true,"id":13338}},"13417":{"timestamp":{"__isSmartRef__":true,"id":13418},"user":"sebastianwoinar","tags":[]},"13418":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"13419":{"varMapping":{"__isSmartRef__":true,"id":13420},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":13421},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13420":{"this":{"__isSmartRef__":true,"id":13338}},"13421":{"timestamp":{"__isSmartRef__":true,"id":13422},"user":"sebastianwoinar","tags":[]},"13422":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"13423":{"varMapping":{"__isSmartRef__":true,"id":13424},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":13425},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13424":{"this":{"__isSmartRef__":true,"id":13338}},"13425":{"timestamp":{"__isSmartRef__":true,"id":13426},"user":"sebastianwoinar","tags":[]},"13426":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"13427":{"varMapping":{"__isSmartRef__":true,"id":13428},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":13433},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13428":{"this":{"__isSmartRef__":true,"id":13338},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13429}},"13429":{"$super":{"__isSmartRef__":true,"id":13430}},"13430":{"varMapping":{"__isSmartRef__":true,"id":13431},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":13432},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13431":{"obj":{"__isSmartRef__":true,"id":13338},"name":"onMouseDown"},"13432":{},"13433":{"timestamp":{"__isSmartRef__":true,"id":13434},"user":"sebastianwoinar","tags":[]},"13434":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"13435":{"varMapping":{"__isSmartRef__":true,"id":13436},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":13437},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13436":{"this":{"__isSmartRef__":true,"id":13338}},"13437":{"timestamp":{"__isSmartRef__":true,"id":13438},"user":"sebastianwoinar","tags":[]},"13438":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"13439":{"varMapping":{"__isSmartRef__":true,"id":13440},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":13441},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13440":{"this":{"__isSmartRef__":true,"id":13338}},"13441":{"timestamp":{"__isSmartRef__":true,"id":13442},"user":"sebastianwoinar","tags":[]},"13442":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"13443":{"varMapping":{"__isSmartRef__":true,"id":13444},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":13445},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13444":{"this":{"__isSmartRef__":true,"id":13338}},"13445":{"timestamp":{"__isSmartRef__":true,"id":13446},"user":"sebastianwoinar","tags":[]},"13446":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"13447":{"varMapping":{"__isSmartRef__":true,"id":13448},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":13449},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13448":{"this":{"__isSmartRef__":true,"id":13338}},"13449":{"timestamp":{"__isSmartRef__":true,"id":13450},"user":"sebastianwoinar","tags":[]},"13450":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"13451":{"varMapping":{"__isSmartRef__":true,"id":13452},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":13453},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13452":{"this":{"__isSmartRef__":true,"id":13338}},"13453":{"timestamp":{"__isSmartRef__":true,"id":13454},"user":"sebastianwoinar","tags":[]},"13454":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"13455":{"varMapping":{"__isSmartRef__":true,"id":13456},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13457},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13456":{"this":{"__isSmartRef__":true,"id":13338}},"13457":{"timestamp":{"__isSmartRef__":true,"id":13458},"user":"sebastianwoinar","tags":[]},"13458":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"13459":{"varMapping":{"__isSmartRef__":true,"id":13460},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":13461},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13460":{"this":{"__isSmartRef__":true,"id":13338}},"13461":{"timestamp":{"__isSmartRef__":true,"id":13462},"user":"sebastianwoinar","tags":[]},"13462":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"13463":{"varMapping":{"__isSmartRef__":true,"id":13464},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13465},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13464":{"this":{"__isSmartRef__":true,"id":13338}},"13465":{"timestamp":{"__isSmartRef__":true,"id":13466},"user":"sebastianwoinar","tags":[]},"13466":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"13467":{"buildChildNodes":{"__isSmartRef__":true,"id":13468},"getGameTree":{"__isSmartRef__":true,"id":13472},"getLevel":{"__isSmartRef__":true,"id":13476},"getLevelWeight":{"__isSmartRef__":true,"id":13480},"getWeight":{"__isSmartRef__":true,"id":13484},"setNode":{"__isSmartRef__":true,"id":13488},"setParent":{"__isSmartRef__":true,"id":13492},"getParent":{"__isSmartRef__":true,"id":13496},"deactivate":{"__isSmartRef__":true,"id":13500},"blink":{"__isSmartRef__":true,"id":13504},"ABPreturn":{"__isSmartRef__":true,"id":13508},"ABPstart":{"__isSmartRef__":true,"id":13512},"ABPcontinue":{"__isSmartRef__":true,"id":13516},"ABPshowValue":{"__isSmartRef__":true,"id":13520},"ABPgetValue":{"__isSmartRef__":true,"id":13524},"ABPhasChildNodes":{"__isSmartRef__":true,"id":13528},"onMouseDown":{"__isSmartRef__":true,"id":13532},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":13540},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":13544},"ABPmarkAsDone":{"__isSmartRef__":true,"id":13548},"ABPmarkAsActive":{"__isSmartRef__":true,"id":13552},"getStateMorph":{"__isSmartRef__":true,"id":13556},"showState":{"__isSmartRef__":true,"id":13560},"ABPfailHard":{"__isSmartRef__":true,"id":13564},"markFinalDrawWith":{"__isSmartRef__":true,"id":13568}},"13468":{"varMapping":{"__isSmartRef__":true,"id":13469},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":13470},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13469":{"this":{"__isSmartRef__":true,"id":12540}},"13470":{"timestamp":{"__isSmartRef__":true,"id":13471},"user":"sebastianwoinar","tags":[]},"13471":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"13472":{"varMapping":{"__isSmartRef__":true,"id":13473},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":13474},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13473":{"this":{"__isSmartRef__":true,"id":12540}},"13474":{"timestamp":{"__isSmartRef__":true,"id":13475},"user":"sebastianwoinar","tags":[]},"13475":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13476":{"varMapping":{"__isSmartRef__":true,"id":13477},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":13478},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13477":{"this":{"__isSmartRef__":true,"id":12540}},"13478":{"timestamp":{"__isSmartRef__":true,"id":13479},"user":"sebastianwoinar","tags":[]},"13479":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13480":{"varMapping":{"__isSmartRef__":true,"id":13481},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13482},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13481":{"this":{"__isSmartRef__":true,"id":12540}},"13482":{"timestamp":{"__isSmartRef__":true,"id":13483},"user":"sebastianwoinar","tags":[]},"13483":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13484":{"varMapping":{"__isSmartRef__":true,"id":13485},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":13486},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13485":{"this":{"__isSmartRef__":true,"id":12540}},"13486":{"timestamp":{"__isSmartRef__":true,"id":13487},"user":"sebastianwoinar","tags":[]},"13487":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13488":{"varMapping":{"__isSmartRef__":true,"id":13489},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":13490},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13489":{"this":{"__isSmartRef__":true,"id":12540}},"13490":{"timestamp":{"__isSmartRef__":true,"id":13491},"user":"sebastianwoinar","tags":[]},"13491":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13492":{"varMapping":{"__isSmartRef__":true,"id":13493},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":13494},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13493":{"this":{"__isSmartRef__":true,"id":12540}},"13494":{"timestamp":{"__isSmartRef__":true,"id":13495},"user":"sebastianwoinar","tags":[]},"13495":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13496":{"varMapping":{"__isSmartRef__":true,"id":13497},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":13498},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13497":{"this":{"__isSmartRef__":true,"id":12540}},"13498":{"timestamp":{"__isSmartRef__":true,"id":13499},"user":"sebastianwoinar","tags":[]},"13499":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"13500":{"varMapping":{"__isSmartRef__":true,"id":13501},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":13502},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13501":{"this":{"__isSmartRef__":true,"id":12540}},"13502":{"timestamp":{"__isSmartRef__":true,"id":13503},"user":"sebastianwoinar","tags":[]},"13503":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"13504":{"varMapping":{"__isSmartRef__":true,"id":13505},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":13506},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13505":{"this":{"__isSmartRef__":true,"id":12540}},"13506":{"timestamp":{"__isSmartRef__":true,"id":13507},"user":"sebastianwoinar","tags":[]},"13507":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"13508":{"varMapping":{"__isSmartRef__":true,"id":13509},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":13510},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13509":{"this":{"__isSmartRef__":true,"id":12540}},"13510":{"timestamp":{"__isSmartRef__":true,"id":13511},"user":"sebastianwoinar","tags":[]},"13511":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"13512":{"varMapping":{"__isSmartRef__":true,"id":13513},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":13514},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13513":{"this":{"__isSmartRef__":true,"id":12540}},"13514":{"timestamp":{"__isSmartRef__":true,"id":13515},"user":"sebastianwoinar","tags":[]},"13515":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"13516":{"varMapping":{"__isSmartRef__":true,"id":13517},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":13518},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13517":{"this":{"__isSmartRef__":true,"id":12540}},"13518":{"timestamp":{"__isSmartRef__":true,"id":13519},"user":"sebastianwoinar","tags":[]},"13519":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"13520":{"varMapping":{"__isSmartRef__":true,"id":13521},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":13522},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13521":{"this":{"__isSmartRef__":true,"id":12540}},"13522":{"timestamp":{"__isSmartRef__":true,"id":13523},"user":"sebastianwoinar","tags":[]},"13523":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"13524":{"varMapping":{"__isSmartRef__":true,"id":13525},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":13526},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13525":{"this":{"__isSmartRef__":true,"id":12540}},"13526":{"timestamp":{"__isSmartRef__":true,"id":13527},"user":"sebastianwoinar","tags":[]},"13527":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"13528":{"varMapping":{"__isSmartRef__":true,"id":13529},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":13530},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13529":{"this":{"__isSmartRef__":true,"id":12540}},"13530":{"timestamp":{"__isSmartRef__":true,"id":13531},"user":"sebastianwoinar","tags":[]},"13531":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"13532":{"varMapping":{"__isSmartRef__":true,"id":13533},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":13538},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13533":{"this":{"__isSmartRef__":true,"id":12540},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13534}},"13534":{"$super":{"__isSmartRef__":true,"id":13535}},"13535":{"varMapping":{"__isSmartRef__":true,"id":13536},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":13537},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13536":{"obj":{"__isSmartRef__":true,"id":12540},"name":"onMouseDown"},"13537":{},"13538":{"timestamp":{"__isSmartRef__":true,"id":13539},"user":"sebastianwoinar","tags":[]},"13539":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"13540":{"varMapping":{"__isSmartRef__":true,"id":13541},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":13542},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13541":{"this":{"__isSmartRef__":true,"id":12540}},"13542":{"timestamp":{"__isSmartRef__":true,"id":13543},"user":"sebastianwoinar","tags":[]},"13543":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"13544":{"varMapping":{"__isSmartRef__":true,"id":13545},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":13546},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13545":{"this":{"__isSmartRef__":true,"id":12540}},"13546":{"timestamp":{"__isSmartRef__":true,"id":13547},"user":"sebastianwoinar","tags":[]},"13547":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"13548":{"varMapping":{"__isSmartRef__":true,"id":13549},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":13550},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13549":{"this":{"__isSmartRef__":true,"id":12540}},"13550":{"timestamp":{"__isSmartRef__":true,"id":13551},"user":"sebastianwoinar","tags":[]},"13551":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"13552":{"varMapping":{"__isSmartRef__":true,"id":13553},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":13554},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13553":{"this":{"__isSmartRef__":true,"id":12540}},"13554":{"timestamp":{"__isSmartRef__":true,"id":13555},"user":"sebastianwoinar","tags":[]},"13555":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"13556":{"varMapping":{"__isSmartRef__":true,"id":13557},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":13558},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13557":{"this":{"__isSmartRef__":true,"id":12540}},"13558":{"timestamp":{"__isSmartRef__":true,"id":13559},"user":"sebastianwoinar","tags":[]},"13559":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"13560":{"varMapping":{"__isSmartRef__":true,"id":13561},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13562},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13561":{"this":{"__isSmartRef__":true,"id":12540}},"13562":{"timestamp":{"__isSmartRef__":true,"id":13563},"user":"sebastianwoinar","tags":[]},"13563":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"13564":{"varMapping":{"__isSmartRef__":true,"id":13565},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":13566},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13565":{"this":{"__isSmartRef__":true,"id":12540}},"13566":{"timestamp":{"__isSmartRef__":true,"id":13567},"user":"sebastianwoinar","tags":[]},"13567":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"13568":{"varMapping":{"__isSmartRef__":true,"id":13569},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13570},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13569":{"this":{"__isSmartRef__":true,"id":12540}},"13570":{"timestamp":{"__isSmartRef__":true,"id":13571},"user":"sebastianwoinar","tags":[]},"13571":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"13572":{"submorphs":[{"__isSmartRef__":true,"id":13573}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13590},"id":"2EA819DC-0CC2-413C-BBFB-B6EAE63D1524","eventHandler":{"__isSmartRef__":true,"id":13591},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":13592},"name":"node63","partsBinMetaInfo":{"__isSmartRef__":true,"id":13593},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5555},"owner":{"__isSmartRef__":true,"id":5408},"childNodes":[{"__isSmartRef__":true,"id":13596},{"__isSmartRef__":true,"id":13725},{"__isSmartRef__":true,"id":13854},{"__isSmartRef__":true,"id":13983},{"__isSmartRef__":true,"id":14112},{"__isSmartRef__":true,"id":14241},{"__isSmartRef__":true,"id":14370}],"parent":{"__isSmartRef__":true,"id":12516},"level":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14499},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(357.7,160.0)"},"13573":{"submorphs":[],"scripts":[],"id":"76186C75-7E5E-48FB-A6C9-D8679C8BF20F","shape":{"__isSmartRef__":true,"id":13574},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":13575},"textChunks":[{"__isSmartRef__":true,"id":13587}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":13589},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":13572},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"13574":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"13575":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":13576},{"__isSmartRef__":true,"id":13578},{"__isSmartRef__":true,"id":13580},{"__isSmartRef__":true,"id":13582},{"__isSmartRef__":true,"id":13584}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":13586},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"13576":{"date":{"__isSmartRef__":true,"id":13577},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"13577":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"13578":{"date":{"__isSmartRef__":true,"id":13579},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"13579":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"13580":{"date":{"__isSmartRef__":true,"id":13581},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"13581":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"13582":{"date":{"__isSmartRef__":true,"id":13583},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"13583":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"13584":{"date":{"__isSmartRef__":true,"id":13585},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"13585":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"13586":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"13587":{"style":{"__isSmartRef__":true,"id":13588},"morph":{"__isSmartRef__":true,"id":13573},"chunkOwner":{"__isSmartRef__":true,"id":13573},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13588":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13589":{"morph":{"__isSmartRef__":true,"id":13573},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13590":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"13591":{"morph":{"__isSmartRef__":true,"id":13572},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13592":{},"13593":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":13594}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"13594":{"date":{"__isSmartRef__":true,"id":13595},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"13595":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"13596":{"submorphs":[{"__isSmartRef__":true,"id":13597}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13614},"id":"D1DE68F2-55DB-48B6-B23A-1356B9C22061","eventHandler":{"__isSmartRef__":true,"id":13615},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":13616},"name":"node64","partsBinMetaInfo":{"__isSmartRef__":true,"id":13617},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5557},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":13572},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13620},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(295.6,210.0)"},"13597":{"submorphs":[],"scripts":[],"id":"4AB63055-CC84-4DC7-87A6-E53B115768DB","shape":{"__isSmartRef__":true,"id":13598},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":13599},"textChunks":[{"__isSmartRef__":true,"id":13611}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":13613},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":13596},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"13598":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"13599":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":13600},{"__isSmartRef__":true,"id":13602},{"__isSmartRef__":true,"id":13604},{"__isSmartRef__":true,"id":13606},{"__isSmartRef__":true,"id":13608}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":13610},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"13600":{"date":{"__isSmartRef__":true,"id":13601},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"13601":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"13602":{"date":{"__isSmartRef__":true,"id":13603},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"13603":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"13604":{"date":{"__isSmartRef__":true,"id":13605},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"13605":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"13606":{"date":{"__isSmartRef__":true,"id":13607},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"13607":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"13608":{"date":{"__isSmartRef__":true,"id":13609},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"13609":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"13610":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"13611":{"style":{"__isSmartRef__":true,"id":13612},"morph":{"__isSmartRef__":true,"id":13597},"chunkOwner":{"__isSmartRef__":true,"id":13597},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13612":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13613":{"morph":{"__isSmartRef__":true,"id":13597},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13614":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"13615":{"morph":{"__isSmartRef__":true,"id":13596},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13616":{},"13617":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":13618}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"13618":{"date":{"__isSmartRef__":true,"id":13619},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"13619":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"13620":{"buildChildNodes":{"__isSmartRef__":true,"id":13621},"getGameTree":{"__isSmartRef__":true,"id":13625},"getLevel":{"__isSmartRef__":true,"id":13629},"getLevelWeight":{"__isSmartRef__":true,"id":13633},"getWeight":{"__isSmartRef__":true,"id":13637},"setNode":{"__isSmartRef__":true,"id":13641},"setParent":{"__isSmartRef__":true,"id":13645},"getParent":{"__isSmartRef__":true,"id":13649},"deactivate":{"__isSmartRef__":true,"id":13653},"blink":{"__isSmartRef__":true,"id":13657},"ABPreturn":{"__isSmartRef__":true,"id":13661},"ABPstart":{"__isSmartRef__":true,"id":13665},"ABPcontinue":{"__isSmartRef__":true,"id":13669},"ABPshowValue":{"__isSmartRef__":true,"id":13673},"ABPgetValue":{"__isSmartRef__":true,"id":13677},"ABPhasChildNodes":{"__isSmartRef__":true,"id":13681},"onMouseDown":{"__isSmartRef__":true,"id":13685},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":13693},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":13697},"ABPmarkAsDone":{"__isSmartRef__":true,"id":13701},"ABPmarkAsActive":{"__isSmartRef__":true,"id":13705},"getStateMorph":{"__isSmartRef__":true,"id":13709},"showState":{"__isSmartRef__":true,"id":13713},"ABPfailHard":{"__isSmartRef__":true,"id":13717},"markFinalDrawWith":{"__isSmartRef__":true,"id":13721}},"13621":{"varMapping":{"__isSmartRef__":true,"id":13622},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":13623},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13622":{"this":{"__isSmartRef__":true,"id":13596}},"13623":{"timestamp":{"__isSmartRef__":true,"id":13624},"user":"sebastianwoinar","tags":[]},"13624":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"13625":{"varMapping":{"__isSmartRef__":true,"id":13626},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":13627},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13626":{"this":{"__isSmartRef__":true,"id":13596}},"13627":{"timestamp":{"__isSmartRef__":true,"id":13628},"user":"sebastianwoinar","tags":[]},"13628":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13629":{"varMapping":{"__isSmartRef__":true,"id":13630},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":13631},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13630":{"this":{"__isSmartRef__":true,"id":13596}},"13631":{"timestamp":{"__isSmartRef__":true,"id":13632},"user":"sebastianwoinar","tags":[]},"13632":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13633":{"varMapping":{"__isSmartRef__":true,"id":13634},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13635},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13634":{"this":{"__isSmartRef__":true,"id":13596}},"13635":{"timestamp":{"__isSmartRef__":true,"id":13636},"user":"sebastianwoinar","tags":[]},"13636":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13637":{"varMapping":{"__isSmartRef__":true,"id":13638},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":13639},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13638":{"this":{"__isSmartRef__":true,"id":13596}},"13639":{"timestamp":{"__isSmartRef__":true,"id":13640},"user":"sebastianwoinar","tags":[]},"13640":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13641":{"varMapping":{"__isSmartRef__":true,"id":13642},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":13643},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13642":{"this":{"__isSmartRef__":true,"id":13596}},"13643":{"timestamp":{"__isSmartRef__":true,"id":13644},"user":"sebastianwoinar","tags":[]},"13644":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13645":{"varMapping":{"__isSmartRef__":true,"id":13646},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":13647},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13646":{"this":{"__isSmartRef__":true,"id":13596}},"13647":{"timestamp":{"__isSmartRef__":true,"id":13648},"user":"sebastianwoinar","tags":[]},"13648":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13649":{"varMapping":{"__isSmartRef__":true,"id":13650},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":13651},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13650":{"this":{"__isSmartRef__":true,"id":13596}},"13651":{"timestamp":{"__isSmartRef__":true,"id":13652},"user":"sebastianwoinar","tags":[]},"13652":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"13653":{"varMapping":{"__isSmartRef__":true,"id":13654},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":13655},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13654":{"this":{"__isSmartRef__":true,"id":13596}},"13655":{"timestamp":{"__isSmartRef__":true,"id":13656},"user":"sebastianwoinar","tags":[]},"13656":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"13657":{"varMapping":{"__isSmartRef__":true,"id":13658},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":13659},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13658":{"this":{"__isSmartRef__":true,"id":13596}},"13659":{"timestamp":{"__isSmartRef__":true,"id":13660},"user":"sebastianwoinar","tags":[]},"13660":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"13661":{"varMapping":{"__isSmartRef__":true,"id":13662},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":13663},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13662":{"this":{"__isSmartRef__":true,"id":13596}},"13663":{"timestamp":{"__isSmartRef__":true,"id":13664},"user":"sebastianwoinar","tags":[]},"13664":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"13665":{"varMapping":{"__isSmartRef__":true,"id":13666},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":13667},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13666":{"this":{"__isSmartRef__":true,"id":13596}},"13667":{"timestamp":{"__isSmartRef__":true,"id":13668},"user":"sebastianwoinar","tags":[]},"13668":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"13669":{"varMapping":{"__isSmartRef__":true,"id":13670},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":13671},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13670":{"this":{"__isSmartRef__":true,"id":13596}},"13671":{"timestamp":{"__isSmartRef__":true,"id":13672},"user":"sebastianwoinar","tags":[]},"13672":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"13673":{"varMapping":{"__isSmartRef__":true,"id":13674},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":13675},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13674":{"this":{"__isSmartRef__":true,"id":13596}},"13675":{"timestamp":{"__isSmartRef__":true,"id":13676},"user":"sebastianwoinar","tags":[]},"13676":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"13677":{"varMapping":{"__isSmartRef__":true,"id":13678},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":13679},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13678":{"this":{"__isSmartRef__":true,"id":13596}},"13679":{"timestamp":{"__isSmartRef__":true,"id":13680},"user":"sebastianwoinar","tags":[]},"13680":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"13681":{"varMapping":{"__isSmartRef__":true,"id":13682},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":13683},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13682":{"this":{"__isSmartRef__":true,"id":13596}},"13683":{"timestamp":{"__isSmartRef__":true,"id":13684},"user":"sebastianwoinar","tags":[]},"13684":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"13685":{"varMapping":{"__isSmartRef__":true,"id":13686},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":13691},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13686":{"this":{"__isSmartRef__":true,"id":13596},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13687}},"13687":{"$super":{"__isSmartRef__":true,"id":13688}},"13688":{"varMapping":{"__isSmartRef__":true,"id":13689},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":13690},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13689":{"obj":{"__isSmartRef__":true,"id":13596},"name":"onMouseDown"},"13690":{},"13691":{"timestamp":{"__isSmartRef__":true,"id":13692},"user":"sebastianwoinar","tags":[]},"13692":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"13693":{"varMapping":{"__isSmartRef__":true,"id":13694},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":13695},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13694":{"this":{"__isSmartRef__":true,"id":13596}},"13695":{"timestamp":{"__isSmartRef__":true,"id":13696},"user":"sebastianwoinar","tags":[]},"13696":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"13697":{"varMapping":{"__isSmartRef__":true,"id":13698},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":13699},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13698":{"this":{"__isSmartRef__":true,"id":13596}},"13699":{"timestamp":{"__isSmartRef__":true,"id":13700},"user":"sebastianwoinar","tags":[]},"13700":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"13701":{"varMapping":{"__isSmartRef__":true,"id":13702},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":13703},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13702":{"this":{"__isSmartRef__":true,"id":13596}},"13703":{"timestamp":{"__isSmartRef__":true,"id":13704},"user":"sebastianwoinar","tags":[]},"13704":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"13705":{"varMapping":{"__isSmartRef__":true,"id":13706},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":13707},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13706":{"this":{"__isSmartRef__":true,"id":13596}},"13707":{"timestamp":{"__isSmartRef__":true,"id":13708},"user":"sebastianwoinar","tags":[]},"13708":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"13709":{"varMapping":{"__isSmartRef__":true,"id":13710},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":13711},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13710":{"this":{"__isSmartRef__":true,"id":13596}},"13711":{"timestamp":{"__isSmartRef__":true,"id":13712},"user":"sebastianwoinar","tags":[]},"13712":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"13713":{"varMapping":{"__isSmartRef__":true,"id":13714},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13715},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13714":{"this":{"__isSmartRef__":true,"id":13596}},"13715":{"timestamp":{"__isSmartRef__":true,"id":13716},"user":"sebastianwoinar","tags":[]},"13716":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"13717":{"varMapping":{"__isSmartRef__":true,"id":13718},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":13719},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13718":{"this":{"__isSmartRef__":true,"id":13596}},"13719":{"timestamp":{"__isSmartRef__":true,"id":13720},"user":"sebastianwoinar","tags":[]},"13720":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"13721":{"varMapping":{"__isSmartRef__":true,"id":13722},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13723},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13722":{"this":{"__isSmartRef__":true,"id":13596}},"13723":{"timestamp":{"__isSmartRef__":true,"id":13724},"user":"sebastianwoinar","tags":[]},"13724":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"13725":{"submorphs":[{"__isSmartRef__":true,"id":13726}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13743},"id":"BC2775B7-4025-4697-B251-26E19C863245","eventHandler":{"__isSmartRef__":true,"id":13744},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":13745},"name":"node65","partsBinMetaInfo":{"__isSmartRef__":true,"id":13746},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5559},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":13572},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13749},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(300.8,210.0)"},"13726":{"submorphs":[],"scripts":[],"id":"EF481979-621C-4186-8F1C-63D52B76F087","shape":{"__isSmartRef__":true,"id":13727},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":13728},"textChunks":[{"__isSmartRef__":true,"id":13740}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":13742},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":13725},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"13727":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"13728":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":13729},{"__isSmartRef__":true,"id":13731},{"__isSmartRef__":true,"id":13733},{"__isSmartRef__":true,"id":13735},{"__isSmartRef__":true,"id":13737}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":13739},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"13729":{"date":{"__isSmartRef__":true,"id":13730},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"13730":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"13731":{"date":{"__isSmartRef__":true,"id":13732},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"13732":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"13733":{"date":{"__isSmartRef__":true,"id":13734},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"13734":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"13735":{"date":{"__isSmartRef__":true,"id":13736},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"13736":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"13737":{"date":{"__isSmartRef__":true,"id":13738},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"13738":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"13739":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"13740":{"style":{"__isSmartRef__":true,"id":13741},"morph":{"__isSmartRef__":true,"id":13726},"chunkOwner":{"__isSmartRef__":true,"id":13726},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13741":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13742":{"morph":{"__isSmartRef__":true,"id":13726},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13743":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"13744":{"morph":{"__isSmartRef__":true,"id":13725},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13745":{},"13746":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":13747}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"13747":{"date":{"__isSmartRef__":true,"id":13748},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"13748":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"13749":{"buildChildNodes":{"__isSmartRef__":true,"id":13750},"getGameTree":{"__isSmartRef__":true,"id":13754},"getLevel":{"__isSmartRef__":true,"id":13758},"getLevelWeight":{"__isSmartRef__":true,"id":13762},"getWeight":{"__isSmartRef__":true,"id":13766},"setNode":{"__isSmartRef__":true,"id":13770},"setParent":{"__isSmartRef__":true,"id":13774},"getParent":{"__isSmartRef__":true,"id":13778},"deactivate":{"__isSmartRef__":true,"id":13782},"blink":{"__isSmartRef__":true,"id":13786},"ABPreturn":{"__isSmartRef__":true,"id":13790},"ABPstart":{"__isSmartRef__":true,"id":13794},"ABPcontinue":{"__isSmartRef__":true,"id":13798},"ABPshowValue":{"__isSmartRef__":true,"id":13802},"ABPgetValue":{"__isSmartRef__":true,"id":13806},"ABPhasChildNodes":{"__isSmartRef__":true,"id":13810},"onMouseDown":{"__isSmartRef__":true,"id":13814},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":13822},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":13826},"ABPmarkAsDone":{"__isSmartRef__":true,"id":13830},"ABPmarkAsActive":{"__isSmartRef__":true,"id":13834},"getStateMorph":{"__isSmartRef__":true,"id":13838},"showState":{"__isSmartRef__":true,"id":13842},"ABPfailHard":{"__isSmartRef__":true,"id":13846},"markFinalDrawWith":{"__isSmartRef__":true,"id":13850}},"13750":{"varMapping":{"__isSmartRef__":true,"id":13751},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":13752},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13751":{"this":{"__isSmartRef__":true,"id":13725}},"13752":{"timestamp":{"__isSmartRef__":true,"id":13753},"user":"sebastianwoinar","tags":[]},"13753":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"13754":{"varMapping":{"__isSmartRef__":true,"id":13755},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":13756},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13755":{"this":{"__isSmartRef__":true,"id":13725}},"13756":{"timestamp":{"__isSmartRef__":true,"id":13757},"user":"sebastianwoinar","tags":[]},"13757":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13758":{"varMapping":{"__isSmartRef__":true,"id":13759},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":13760},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13759":{"this":{"__isSmartRef__":true,"id":13725}},"13760":{"timestamp":{"__isSmartRef__":true,"id":13761},"user":"sebastianwoinar","tags":[]},"13761":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13762":{"varMapping":{"__isSmartRef__":true,"id":13763},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13764},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13763":{"this":{"__isSmartRef__":true,"id":13725}},"13764":{"timestamp":{"__isSmartRef__":true,"id":13765},"user":"sebastianwoinar","tags":[]},"13765":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13766":{"varMapping":{"__isSmartRef__":true,"id":13767},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":13768},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13767":{"this":{"__isSmartRef__":true,"id":13725}},"13768":{"timestamp":{"__isSmartRef__":true,"id":13769},"user":"sebastianwoinar","tags":[]},"13769":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13770":{"varMapping":{"__isSmartRef__":true,"id":13771},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":13772},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13771":{"this":{"__isSmartRef__":true,"id":13725}},"13772":{"timestamp":{"__isSmartRef__":true,"id":13773},"user":"sebastianwoinar","tags":[]},"13773":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13774":{"varMapping":{"__isSmartRef__":true,"id":13775},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":13776},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13775":{"this":{"__isSmartRef__":true,"id":13725}},"13776":{"timestamp":{"__isSmartRef__":true,"id":13777},"user":"sebastianwoinar","tags":[]},"13777":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13778":{"varMapping":{"__isSmartRef__":true,"id":13779},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":13780},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13779":{"this":{"__isSmartRef__":true,"id":13725}},"13780":{"timestamp":{"__isSmartRef__":true,"id":13781},"user":"sebastianwoinar","tags":[]},"13781":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"13782":{"varMapping":{"__isSmartRef__":true,"id":13783},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":13784},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13783":{"this":{"__isSmartRef__":true,"id":13725}},"13784":{"timestamp":{"__isSmartRef__":true,"id":13785},"user":"sebastianwoinar","tags":[]},"13785":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"13786":{"varMapping":{"__isSmartRef__":true,"id":13787},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":13788},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13787":{"this":{"__isSmartRef__":true,"id":13725}},"13788":{"timestamp":{"__isSmartRef__":true,"id":13789},"user":"sebastianwoinar","tags":[]},"13789":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"13790":{"varMapping":{"__isSmartRef__":true,"id":13791},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":13792},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13791":{"this":{"__isSmartRef__":true,"id":13725}},"13792":{"timestamp":{"__isSmartRef__":true,"id":13793},"user":"sebastianwoinar","tags":[]},"13793":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"13794":{"varMapping":{"__isSmartRef__":true,"id":13795},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":13796},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13795":{"this":{"__isSmartRef__":true,"id":13725}},"13796":{"timestamp":{"__isSmartRef__":true,"id":13797},"user":"sebastianwoinar","tags":[]},"13797":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"13798":{"varMapping":{"__isSmartRef__":true,"id":13799},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":13800},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13799":{"this":{"__isSmartRef__":true,"id":13725}},"13800":{"timestamp":{"__isSmartRef__":true,"id":13801},"user":"sebastianwoinar","tags":[]},"13801":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"13802":{"varMapping":{"__isSmartRef__":true,"id":13803},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":13804},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13803":{"this":{"__isSmartRef__":true,"id":13725}},"13804":{"timestamp":{"__isSmartRef__":true,"id":13805},"user":"sebastianwoinar","tags":[]},"13805":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"13806":{"varMapping":{"__isSmartRef__":true,"id":13807},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":13808},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13807":{"this":{"__isSmartRef__":true,"id":13725}},"13808":{"timestamp":{"__isSmartRef__":true,"id":13809},"user":"sebastianwoinar","tags":[]},"13809":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"13810":{"varMapping":{"__isSmartRef__":true,"id":13811},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":13812},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13811":{"this":{"__isSmartRef__":true,"id":13725}},"13812":{"timestamp":{"__isSmartRef__":true,"id":13813},"user":"sebastianwoinar","tags":[]},"13813":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"13814":{"varMapping":{"__isSmartRef__":true,"id":13815},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":13820},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13815":{"this":{"__isSmartRef__":true,"id":13725},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13816}},"13816":{"$super":{"__isSmartRef__":true,"id":13817}},"13817":{"varMapping":{"__isSmartRef__":true,"id":13818},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":13819},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13818":{"obj":{"__isSmartRef__":true,"id":13725},"name":"onMouseDown"},"13819":{},"13820":{"timestamp":{"__isSmartRef__":true,"id":13821},"user":"sebastianwoinar","tags":[]},"13821":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"13822":{"varMapping":{"__isSmartRef__":true,"id":13823},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":13824},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13823":{"this":{"__isSmartRef__":true,"id":13725}},"13824":{"timestamp":{"__isSmartRef__":true,"id":13825},"user":"sebastianwoinar","tags":[]},"13825":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"13826":{"varMapping":{"__isSmartRef__":true,"id":13827},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":13828},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13827":{"this":{"__isSmartRef__":true,"id":13725}},"13828":{"timestamp":{"__isSmartRef__":true,"id":13829},"user":"sebastianwoinar","tags":[]},"13829":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"13830":{"varMapping":{"__isSmartRef__":true,"id":13831},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":13832},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13831":{"this":{"__isSmartRef__":true,"id":13725}},"13832":{"timestamp":{"__isSmartRef__":true,"id":13833},"user":"sebastianwoinar","tags":[]},"13833":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"13834":{"varMapping":{"__isSmartRef__":true,"id":13835},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":13836},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13835":{"this":{"__isSmartRef__":true,"id":13725}},"13836":{"timestamp":{"__isSmartRef__":true,"id":13837},"user":"sebastianwoinar","tags":[]},"13837":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"13838":{"varMapping":{"__isSmartRef__":true,"id":13839},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":13840},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13839":{"this":{"__isSmartRef__":true,"id":13725}},"13840":{"timestamp":{"__isSmartRef__":true,"id":13841},"user":"sebastianwoinar","tags":[]},"13841":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"13842":{"varMapping":{"__isSmartRef__":true,"id":13843},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13844},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13843":{"this":{"__isSmartRef__":true,"id":13725}},"13844":{"timestamp":{"__isSmartRef__":true,"id":13845},"user":"sebastianwoinar","tags":[]},"13845":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"13846":{"varMapping":{"__isSmartRef__":true,"id":13847},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":13848},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13847":{"this":{"__isSmartRef__":true,"id":13725}},"13848":{"timestamp":{"__isSmartRef__":true,"id":13849},"user":"sebastianwoinar","tags":[]},"13849":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"13850":{"varMapping":{"__isSmartRef__":true,"id":13851},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13852},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13851":{"this":{"__isSmartRef__":true,"id":13725}},"13852":{"timestamp":{"__isSmartRef__":true,"id":13853},"user":"sebastianwoinar","tags":[]},"13853":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"13854":{"submorphs":[{"__isSmartRef__":true,"id":13855}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13872},"id":"618DAB57-B821-4C30-BECA-F65D09C26801","eventHandler":{"__isSmartRef__":true,"id":13873},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":13874},"name":"node66","partsBinMetaInfo":{"__isSmartRef__":true,"id":13875},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5561},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":13572},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13878},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(306.0,210.0)"},"13855":{"submorphs":[],"scripts":[],"id":"9388F04B-6881-43CE-928A-F193ECD9C837","shape":{"__isSmartRef__":true,"id":13856},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":13857},"textChunks":[{"__isSmartRef__":true,"id":13869}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":13871},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":13854},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"13856":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"13857":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":13858},{"__isSmartRef__":true,"id":13860},{"__isSmartRef__":true,"id":13862},{"__isSmartRef__":true,"id":13864},{"__isSmartRef__":true,"id":13866}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":13868},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"13858":{"date":{"__isSmartRef__":true,"id":13859},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"13859":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"13860":{"date":{"__isSmartRef__":true,"id":13861},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"13861":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"13862":{"date":{"__isSmartRef__":true,"id":13863},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"13863":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"13864":{"date":{"__isSmartRef__":true,"id":13865},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"13865":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"13866":{"date":{"__isSmartRef__":true,"id":13867},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"13867":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"13868":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"13869":{"style":{"__isSmartRef__":true,"id":13870},"morph":{"__isSmartRef__":true,"id":13855},"chunkOwner":{"__isSmartRef__":true,"id":13855},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13870":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13871":{"morph":{"__isSmartRef__":true,"id":13855},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13872":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"13873":{"morph":{"__isSmartRef__":true,"id":13854},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13874":{},"13875":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":13876}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"13876":{"date":{"__isSmartRef__":true,"id":13877},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"13877":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"13878":{"buildChildNodes":{"__isSmartRef__":true,"id":13879},"getGameTree":{"__isSmartRef__":true,"id":13883},"getLevel":{"__isSmartRef__":true,"id":13887},"getLevelWeight":{"__isSmartRef__":true,"id":13891},"getWeight":{"__isSmartRef__":true,"id":13895},"setNode":{"__isSmartRef__":true,"id":13899},"setParent":{"__isSmartRef__":true,"id":13903},"getParent":{"__isSmartRef__":true,"id":13907},"deactivate":{"__isSmartRef__":true,"id":13911},"blink":{"__isSmartRef__":true,"id":13915},"ABPreturn":{"__isSmartRef__":true,"id":13919},"ABPstart":{"__isSmartRef__":true,"id":13923},"ABPcontinue":{"__isSmartRef__":true,"id":13927},"ABPshowValue":{"__isSmartRef__":true,"id":13931},"ABPgetValue":{"__isSmartRef__":true,"id":13935},"ABPhasChildNodes":{"__isSmartRef__":true,"id":13939},"onMouseDown":{"__isSmartRef__":true,"id":13943},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":13951},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":13955},"ABPmarkAsDone":{"__isSmartRef__":true,"id":13959},"ABPmarkAsActive":{"__isSmartRef__":true,"id":13963},"getStateMorph":{"__isSmartRef__":true,"id":13967},"showState":{"__isSmartRef__":true,"id":13971},"ABPfailHard":{"__isSmartRef__":true,"id":13975},"markFinalDrawWith":{"__isSmartRef__":true,"id":13979}},"13879":{"varMapping":{"__isSmartRef__":true,"id":13880},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":13881},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13880":{"this":{"__isSmartRef__":true,"id":13854}},"13881":{"timestamp":{"__isSmartRef__":true,"id":13882},"user":"sebastianwoinar","tags":[]},"13882":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"13883":{"varMapping":{"__isSmartRef__":true,"id":13884},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":13885},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13884":{"this":{"__isSmartRef__":true,"id":13854}},"13885":{"timestamp":{"__isSmartRef__":true,"id":13886},"user":"sebastianwoinar","tags":[]},"13886":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13887":{"varMapping":{"__isSmartRef__":true,"id":13888},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":13889},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13888":{"this":{"__isSmartRef__":true,"id":13854}},"13889":{"timestamp":{"__isSmartRef__":true,"id":13890},"user":"sebastianwoinar","tags":[]},"13890":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13891":{"varMapping":{"__isSmartRef__":true,"id":13892},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13893},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13892":{"this":{"__isSmartRef__":true,"id":13854}},"13893":{"timestamp":{"__isSmartRef__":true,"id":13894},"user":"sebastianwoinar","tags":[]},"13894":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13895":{"varMapping":{"__isSmartRef__":true,"id":13896},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":13897},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13896":{"this":{"__isSmartRef__":true,"id":13854}},"13897":{"timestamp":{"__isSmartRef__":true,"id":13898},"user":"sebastianwoinar","tags":[]},"13898":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13899":{"varMapping":{"__isSmartRef__":true,"id":13900},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":13901},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13900":{"this":{"__isSmartRef__":true,"id":13854}},"13901":{"timestamp":{"__isSmartRef__":true,"id":13902},"user":"sebastianwoinar","tags":[]},"13902":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13903":{"varMapping":{"__isSmartRef__":true,"id":13904},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":13905},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13904":{"this":{"__isSmartRef__":true,"id":13854}},"13905":{"timestamp":{"__isSmartRef__":true,"id":13906},"user":"sebastianwoinar","tags":[]},"13906":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"13907":{"varMapping":{"__isSmartRef__":true,"id":13908},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":13909},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13908":{"this":{"__isSmartRef__":true,"id":13854}},"13909":{"timestamp":{"__isSmartRef__":true,"id":13910},"user":"sebastianwoinar","tags":[]},"13910":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"13911":{"varMapping":{"__isSmartRef__":true,"id":13912},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":13913},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13912":{"this":{"__isSmartRef__":true,"id":13854}},"13913":{"timestamp":{"__isSmartRef__":true,"id":13914},"user":"sebastianwoinar","tags":[]},"13914":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"13915":{"varMapping":{"__isSmartRef__":true,"id":13916},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":13917},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13916":{"this":{"__isSmartRef__":true,"id":13854}},"13917":{"timestamp":{"__isSmartRef__":true,"id":13918},"user":"sebastianwoinar","tags":[]},"13918":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"13919":{"varMapping":{"__isSmartRef__":true,"id":13920},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":13921},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13920":{"this":{"__isSmartRef__":true,"id":13854}},"13921":{"timestamp":{"__isSmartRef__":true,"id":13922},"user":"sebastianwoinar","tags":[]},"13922":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"13923":{"varMapping":{"__isSmartRef__":true,"id":13924},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":13925},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13924":{"this":{"__isSmartRef__":true,"id":13854}},"13925":{"timestamp":{"__isSmartRef__":true,"id":13926},"user":"sebastianwoinar","tags":[]},"13926":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"13927":{"varMapping":{"__isSmartRef__":true,"id":13928},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":13929},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13928":{"this":{"__isSmartRef__":true,"id":13854}},"13929":{"timestamp":{"__isSmartRef__":true,"id":13930},"user":"sebastianwoinar","tags":[]},"13930":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"13931":{"varMapping":{"__isSmartRef__":true,"id":13932},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":13933},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13932":{"this":{"__isSmartRef__":true,"id":13854}},"13933":{"timestamp":{"__isSmartRef__":true,"id":13934},"user":"sebastianwoinar","tags":[]},"13934":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"13935":{"varMapping":{"__isSmartRef__":true,"id":13936},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":13937},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13936":{"this":{"__isSmartRef__":true,"id":13854}},"13937":{"timestamp":{"__isSmartRef__":true,"id":13938},"user":"sebastianwoinar","tags":[]},"13938":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"13939":{"varMapping":{"__isSmartRef__":true,"id":13940},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":13941},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13940":{"this":{"__isSmartRef__":true,"id":13854}},"13941":{"timestamp":{"__isSmartRef__":true,"id":13942},"user":"sebastianwoinar","tags":[]},"13942":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"13943":{"varMapping":{"__isSmartRef__":true,"id":13944},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":13949},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13944":{"this":{"__isSmartRef__":true,"id":13854},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13945}},"13945":{"$super":{"__isSmartRef__":true,"id":13946}},"13946":{"varMapping":{"__isSmartRef__":true,"id":13947},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":13948},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13947":{"obj":{"__isSmartRef__":true,"id":13854},"name":"onMouseDown"},"13948":{},"13949":{"timestamp":{"__isSmartRef__":true,"id":13950},"user":"sebastianwoinar","tags":[]},"13950":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"13951":{"varMapping":{"__isSmartRef__":true,"id":13952},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":13953},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13952":{"this":{"__isSmartRef__":true,"id":13854}},"13953":{"timestamp":{"__isSmartRef__":true,"id":13954},"user":"sebastianwoinar","tags":[]},"13954":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"13955":{"varMapping":{"__isSmartRef__":true,"id":13956},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":13957},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13956":{"this":{"__isSmartRef__":true,"id":13854}},"13957":{"timestamp":{"__isSmartRef__":true,"id":13958},"user":"sebastianwoinar","tags":[]},"13958":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"13959":{"varMapping":{"__isSmartRef__":true,"id":13960},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":13961},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13960":{"this":{"__isSmartRef__":true,"id":13854}},"13961":{"timestamp":{"__isSmartRef__":true,"id":13962},"user":"sebastianwoinar","tags":[]},"13962":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"13963":{"varMapping":{"__isSmartRef__":true,"id":13964},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":13965},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13964":{"this":{"__isSmartRef__":true,"id":13854}},"13965":{"timestamp":{"__isSmartRef__":true,"id":13966},"user":"sebastianwoinar","tags":[]},"13966":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"13967":{"varMapping":{"__isSmartRef__":true,"id":13968},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":13969},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13968":{"this":{"__isSmartRef__":true,"id":13854}},"13969":{"timestamp":{"__isSmartRef__":true,"id":13970},"user":"sebastianwoinar","tags":[]},"13970":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"13971":{"varMapping":{"__isSmartRef__":true,"id":13972},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13973},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13972":{"this":{"__isSmartRef__":true,"id":13854}},"13973":{"timestamp":{"__isSmartRef__":true,"id":13974},"user":"sebastianwoinar","tags":[]},"13974":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"13975":{"varMapping":{"__isSmartRef__":true,"id":13976},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":13977},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13976":{"this":{"__isSmartRef__":true,"id":13854}},"13977":{"timestamp":{"__isSmartRef__":true,"id":13978},"user":"sebastianwoinar","tags":[]},"13978":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"13979":{"varMapping":{"__isSmartRef__":true,"id":13980},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13981},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13980":{"this":{"__isSmartRef__":true,"id":13854}},"13981":{"timestamp":{"__isSmartRef__":true,"id":13982},"user":"sebastianwoinar","tags":[]},"13982":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"13983":{"submorphs":[{"__isSmartRef__":true,"id":13984}],"scripts":[],"shape":{"__isSmartRef__":true,"id":14001},"id":"DA46C840-8FBD-4F88-B0D8-B6AD574C8339","eventHandler":{"__isSmartRef__":true,"id":14002},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":14003},"name":"node67","partsBinMetaInfo":{"__isSmartRef__":true,"id":14004},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5563},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":13572},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14007},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(311.1,210.0)"},"13984":{"submorphs":[],"scripts":[],"id":"E5D9207E-A5BD-4372-A276-CBC26F5E588C","shape":{"__isSmartRef__":true,"id":13985},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":13986},"textChunks":[{"__isSmartRef__":true,"id":13998}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":14000},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":13983},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"13985":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"13986":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":13987},{"__isSmartRef__":true,"id":13989},{"__isSmartRef__":true,"id":13991},{"__isSmartRef__":true,"id":13993},{"__isSmartRef__":true,"id":13995}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":13997},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"13987":{"date":{"__isSmartRef__":true,"id":13988},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"13988":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"13989":{"date":{"__isSmartRef__":true,"id":13990},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"13990":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"13991":{"date":{"__isSmartRef__":true,"id":13992},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"13992":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"13993":{"date":{"__isSmartRef__":true,"id":13994},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"13994":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"13995":{"date":{"__isSmartRef__":true,"id":13996},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"13996":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"13997":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"13998":{"style":{"__isSmartRef__":true,"id":13999},"morph":{"__isSmartRef__":true,"id":13984},"chunkOwner":{"__isSmartRef__":true,"id":13984},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13999":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14000":{"morph":{"__isSmartRef__":true,"id":13984},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14001":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"14002":{"morph":{"__isSmartRef__":true,"id":13983},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14003":{},"14004":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":14005}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"14005":{"date":{"__isSmartRef__":true,"id":14006},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"14006":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"14007":{"buildChildNodes":{"__isSmartRef__":true,"id":14008},"getGameTree":{"__isSmartRef__":true,"id":14012},"getLevel":{"__isSmartRef__":true,"id":14016},"getLevelWeight":{"__isSmartRef__":true,"id":14020},"getWeight":{"__isSmartRef__":true,"id":14024},"setNode":{"__isSmartRef__":true,"id":14028},"setParent":{"__isSmartRef__":true,"id":14032},"getParent":{"__isSmartRef__":true,"id":14036},"deactivate":{"__isSmartRef__":true,"id":14040},"blink":{"__isSmartRef__":true,"id":14044},"ABPreturn":{"__isSmartRef__":true,"id":14048},"ABPstart":{"__isSmartRef__":true,"id":14052},"ABPcontinue":{"__isSmartRef__":true,"id":14056},"ABPshowValue":{"__isSmartRef__":true,"id":14060},"ABPgetValue":{"__isSmartRef__":true,"id":14064},"ABPhasChildNodes":{"__isSmartRef__":true,"id":14068},"onMouseDown":{"__isSmartRef__":true,"id":14072},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":14080},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":14084},"ABPmarkAsDone":{"__isSmartRef__":true,"id":14088},"ABPmarkAsActive":{"__isSmartRef__":true,"id":14092},"getStateMorph":{"__isSmartRef__":true,"id":14096},"showState":{"__isSmartRef__":true,"id":14100},"ABPfailHard":{"__isSmartRef__":true,"id":14104},"markFinalDrawWith":{"__isSmartRef__":true,"id":14108}},"14008":{"varMapping":{"__isSmartRef__":true,"id":14009},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":14010},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14009":{"this":{"__isSmartRef__":true,"id":13983}},"14010":{"timestamp":{"__isSmartRef__":true,"id":14011},"user":"sebastianwoinar","tags":[]},"14011":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"14012":{"varMapping":{"__isSmartRef__":true,"id":14013},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":14014},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14013":{"this":{"__isSmartRef__":true,"id":13983}},"14014":{"timestamp":{"__isSmartRef__":true,"id":14015},"user":"sebastianwoinar","tags":[]},"14015":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14016":{"varMapping":{"__isSmartRef__":true,"id":14017},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":14018},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14017":{"this":{"__isSmartRef__":true,"id":13983}},"14018":{"timestamp":{"__isSmartRef__":true,"id":14019},"user":"sebastianwoinar","tags":[]},"14019":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14020":{"varMapping":{"__isSmartRef__":true,"id":14021},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14022},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14021":{"this":{"__isSmartRef__":true,"id":13983}},"14022":{"timestamp":{"__isSmartRef__":true,"id":14023},"user":"sebastianwoinar","tags":[]},"14023":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14024":{"varMapping":{"__isSmartRef__":true,"id":14025},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":14026},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14025":{"this":{"__isSmartRef__":true,"id":13983}},"14026":{"timestamp":{"__isSmartRef__":true,"id":14027},"user":"sebastianwoinar","tags":[]},"14027":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14028":{"varMapping":{"__isSmartRef__":true,"id":14029},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":14030},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14029":{"this":{"__isSmartRef__":true,"id":13983}},"14030":{"timestamp":{"__isSmartRef__":true,"id":14031},"user":"sebastianwoinar","tags":[]},"14031":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14032":{"varMapping":{"__isSmartRef__":true,"id":14033},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":14034},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14033":{"this":{"__isSmartRef__":true,"id":13983}},"14034":{"timestamp":{"__isSmartRef__":true,"id":14035},"user":"sebastianwoinar","tags":[]},"14035":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14036":{"varMapping":{"__isSmartRef__":true,"id":14037},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":14038},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14037":{"this":{"__isSmartRef__":true,"id":13983}},"14038":{"timestamp":{"__isSmartRef__":true,"id":14039},"user":"sebastianwoinar","tags":[]},"14039":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"14040":{"varMapping":{"__isSmartRef__":true,"id":14041},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":14042},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14041":{"this":{"__isSmartRef__":true,"id":13983}},"14042":{"timestamp":{"__isSmartRef__":true,"id":14043},"user":"sebastianwoinar","tags":[]},"14043":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"14044":{"varMapping":{"__isSmartRef__":true,"id":14045},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":14046},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14045":{"this":{"__isSmartRef__":true,"id":13983}},"14046":{"timestamp":{"__isSmartRef__":true,"id":14047},"user":"sebastianwoinar","tags":[]},"14047":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"14048":{"varMapping":{"__isSmartRef__":true,"id":14049},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":14050},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14049":{"this":{"__isSmartRef__":true,"id":13983}},"14050":{"timestamp":{"__isSmartRef__":true,"id":14051},"user":"sebastianwoinar","tags":[]},"14051":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"14052":{"varMapping":{"__isSmartRef__":true,"id":14053},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":14054},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14053":{"this":{"__isSmartRef__":true,"id":13983}},"14054":{"timestamp":{"__isSmartRef__":true,"id":14055},"user":"sebastianwoinar","tags":[]},"14055":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"14056":{"varMapping":{"__isSmartRef__":true,"id":14057},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":14058},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14057":{"this":{"__isSmartRef__":true,"id":13983}},"14058":{"timestamp":{"__isSmartRef__":true,"id":14059},"user":"sebastianwoinar","tags":[]},"14059":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"14060":{"varMapping":{"__isSmartRef__":true,"id":14061},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":14062},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14061":{"this":{"__isSmartRef__":true,"id":13983}},"14062":{"timestamp":{"__isSmartRef__":true,"id":14063},"user":"sebastianwoinar","tags":[]},"14063":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"14064":{"varMapping":{"__isSmartRef__":true,"id":14065},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":14066},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14065":{"this":{"__isSmartRef__":true,"id":13983}},"14066":{"timestamp":{"__isSmartRef__":true,"id":14067},"user":"sebastianwoinar","tags":[]},"14067":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"14068":{"varMapping":{"__isSmartRef__":true,"id":14069},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":14070},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14069":{"this":{"__isSmartRef__":true,"id":13983}},"14070":{"timestamp":{"__isSmartRef__":true,"id":14071},"user":"sebastianwoinar","tags":[]},"14071":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"14072":{"varMapping":{"__isSmartRef__":true,"id":14073},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":14078},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14073":{"this":{"__isSmartRef__":true,"id":13983},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14074}},"14074":{"$super":{"__isSmartRef__":true,"id":14075}},"14075":{"varMapping":{"__isSmartRef__":true,"id":14076},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":14077},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14076":{"obj":{"__isSmartRef__":true,"id":13983},"name":"onMouseDown"},"14077":{},"14078":{"timestamp":{"__isSmartRef__":true,"id":14079},"user":"sebastianwoinar","tags":[]},"14079":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"14080":{"varMapping":{"__isSmartRef__":true,"id":14081},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":14082},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14081":{"this":{"__isSmartRef__":true,"id":13983}},"14082":{"timestamp":{"__isSmartRef__":true,"id":14083},"user":"sebastianwoinar","tags":[]},"14083":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"14084":{"varMapping":{"__isSmartRef__":true,"id":14085},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":14086},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14085":{"this":{"__isSmartRef__":true,"id":13983}},"14086":{"timestamp":{"__isSmartRef__":true,"id":14087},"user":"sebastianwoinar","tags":[]},"14087":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"14088":{"varMapping":{"__isSmartRef__":true,"id":14089},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":14090},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14089":{"this":{"__isSmartRef__":true,"id":13983}},"14090":{"timestamp":{"__isSmartRef__":true,"id":14091},"user":"sebastianwoinar","tags":[]},"14091":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"14092":{"varMapping":{"__isSmartRef__":true,"id":14093},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":14094},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14093":{"this":{"__isSmartRef__":true,"id":13983}},"14094":{"timestamp":{"__isSmartRef__":true,"id":14095},"user":"sebastianwoinar","tags":[]},"14095":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"14096":{"varMapping":{"__isSmartRef__":true,"id":14097},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":14098},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14097":{"this":{"__isSmartRef__":true,"id":13983}},"14098":{"timestamp":{"__isSmartRef__":true,"id":14099},"user":"sebastianwoinar","tags":[]},"14099":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"14100":{"varMapping":{"__isSmartRef__":true,"id":14101},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14102},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14101":{"this":{"__isSmartRef__":true,"id":13983}},"14102":{"timestamp":{"__isSmartRef__":true,"id":14103},"user":"sebastianwoinar","tags":[]},"14103":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"14104":{"varMapping":{"__isSmartRef__":true,"id":14105},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":14106},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14105":{"this":{"__isSmartRef__":true,"id":13983}},"14106":{"timestamp":{"__isSmartRef__":true,"id":14107},"user":"sebastianwoinar","tags":[]},"14107":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"14108":{"varMapping":{"__isSmartRef__":true,"id":14109},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14110},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14109":{"this":{"__isSmartRef__":true,"id":13983}},"14110":{"timestamp":{"__isSmartRef__":true,"id":14111},"user":"sebastianwoinar","tags":[]},"14111":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"14112":{"submorphs":[{"__isSmartRef__":true,"id":14113}],"scripts":[],"shape":{"__isSmartRef__":true,"id":14130},"id":"D294C75F-C7DA-4768-9932-128A61F6C7F3","eventHandler":{"__isSmartRef__":true,"id":14131},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":14132},"name":"node68","partsBinMetaInfo":{"__isSmartRef__":true,"id":14133},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5565},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":13572},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14136},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(316.3,210.0)"},"14113":{"submorphs":[],"scripts":[],"id":"8178FA7C-7351-469E-8670-66AA001FDEA8","shape":{"__isSmartRef__":true,"id":14114},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":14115},"textChunks":[{"__isSmartRef__":true,"id":14127}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":14129},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":14112},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"14114":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"14115":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":14116},{"__isSmartRef__":true,"id":14118},{"__isSmartRef__":true,"id":14120},{"__isSmartRef__":true,"id":14122},{"__isSmartRef__":true,"id":14124}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":14126},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"14116":{"date":{"__isSmartRef__":true,"id":14117},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"14117":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"14118":{"date":{"__isSmartRef__":true,"id":14119},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"14119":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"14120":{"date":{"__isSmartRef__":true,"id":14121},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"14121":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"14122":{"date":{"__isSmartRef__":true,"id":14123},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"14123":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"14124":{"date":{"__isSmartRef__":true,"id":14125},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"14125":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"14126":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"14127":{"style":{"__isSmartRef__":true,"id":14128},"morph":{"__isSmartRef__":true,"id":14113},"chunkOwner":{"__isSmartRef__":true,"id":14113},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14128":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14129":{"morph":{"__isSmartRef__":true,"id":14113},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14130":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"14131":{"morph":{"__isSmartRef__":true,"id":14112},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14132":{},"14133":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":14134}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"14134":{"date":{"__isSmartRef__":true,"id":14135},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"14135":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"14136":{"buildChildNodes":{"__isSmartRef__":true,"id":14137},"getGameTree":{"__isSmartRef__":true,"id":14141},"getLevel":{"__isSmartRef__":true,"id":14145},"getLevelWeight":{"__isSmartRef__":true,"id":14149},"getWeight":{"__isSmartRef__":true,"id":14153},"setNode":{"__isSmartRef__":true,"id":14157},"setParent":{"__isSmartRef__":true,"id":14161},"getParent":{"__isSmartRef__":true,"id":14165},"deactivate":{"__isSmartRef__":true,"id":14169},"blink":{"__isSmartRef__":true,"id":14173},"ABPreturn":{"__isSmartRef__":true,"id":14177},"ABPstart":{"__isSmartRef__":true,"id":14181},"ABPcontinue":{"__isSmartRef__":true,"id":14185},"ABPshowValue":{"__isSmartRef__":true,"id":14189},"ABPgetValue":{"__isSmartRef__":true,"id":14193},"ABPhasChildNodes":{"__isSmartRef__":true,"id":14197},"onMouseDown":{"__isSmartRef__":true,"id":14201},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":14209},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":14213},"ABPmarkAsDone":{"__isSmartRef__":true,"id":14217},"ABPmarkAsActive":{"__isSmartRef__":true,"id":14221},"getStateMorph":{"__isSmartRef__":true,"id":14225},"showState":{"__isSmartRef__":true,"id":14229},"ABPfailHard":{"__isSmartRef__":true,"id":14233},"markFinalDrawWith":{"__isSmartRef__":true,"id":14237}},"14137":{"varMapping":{"__isSmartRef__":true,"id":14138},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":14139},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14138":{"this":{"__isSmartRef__":true,"id":14112}},"14139":{"timestamp":{"__isSmartRef__":true,"id":14140},"user":"sebastianwoinar","tags":[]},"14140":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"14141":{"varMapping":{"__isSmartRef__":true,"id":14142},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":14143},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14142":{"this":{"__isSmartRef__":true,"id":14112}},"14143":{"timestamp":{"__isSmartRef__":true,"id":14144},"user":"sebastianwoinar","tags":[]},"14144":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14145":{"varMapping":{"__isSmartRef__":true,"id":14146},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":14147},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14146":{"this":{"__isSmartRef__":true,"id":14112}},"14147":{"timestamp":{"__isSmartRef__":true,"id":14148},"user":"sebastianwoinar","tags":[]},"14148":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14149":{"varMapping":{"__isSmartRef__":true,"id":14150},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14151},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14150":{"this":{"__isSmartRef__":true,"id":14112}},"14151":{"timestamp":{"__isSmartRef__":true,"id":14152},"user":"sebastianwoinar","tags":[]},"14152":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14153":{"varMapping":{"__isSmartRef__":true,"id":14154},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":14155},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14154":{"this":{"__isSmartRef__":true,"id":14112}},"14155":{"timestamp":{"__isSmartRef__":true,"id":14156},"user":"sebastianwoinar","tags":[]},"14156":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14157":{"varMapping":{"__isSmartRef__":true,"id":14158},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":14159},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14158":{"this":{"__isSmartRef__":true,"id":14112}},"14159":{"timestamp":{"__isSmartRef__":true,"id":14160},"user":"sebastianwoinar","tags":[]},"14160":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14161":{"varMapping":{"__isSmartRef__":true,"id":14162},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":14163},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14162":{"this":{"__isSmartRef__":true,"id":14112}},"14163":{"timestamp":{"__isSmartRef__":true,"id":14164},"user":"sebastianwoinar","tags":[]},"14164":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14165":{"varMapping":{"__isSmartRef__":true,"id":14166},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":14167},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14166":{"this":{"__isSmartRef__":true,"id":14112}},"14167":{"timestamp":{"__isSmartRef__":true,"id":14168},"user":"sebastianwoinar","tags":[]},"14168":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"14169":{"varMapping":{"__isSmartRef__":true,"id":14170},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":14171},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14170":{"this":{"__isSmartRef__":true,"id":14112}},"14171":{"timestamp":{"__isSmartRef__":true,"id":14172},"user":"sebastianwoinar","tags":[]},"14172":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"14173":{"varMapping":{"__isSmartRef__":true,"id":14174},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":14175},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14174":{"this":{"__isSmartRef__":true,"id":14112}},"14175":{"timestamp":{"__isSmartRef__":true,"id":14176},"user":"sebastianwoinar","tags":[]},"14176":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"14177":{"varMapping":{"__isSmartRef__":true,"id":14178},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":14179},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14178":{"this":{"__isSmartRef__":true,"id":14112}},"14179":{"timestamp":{"__isSmartRef__":true,"id":14180},"user":"sebastianwoinar","tags":[]},"14180":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"14181":{"varMapping":{"__isSmartRef__":true,"id":14182},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":14183},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14182":{"this":{"__isSmartRef__":true,"id":14112}},"14183":{"timestamp":{"__isSmartRef__":true,"id":14184},"user":"sebastianwoinar","tags":[]},"14184":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"14185":{"varMapping":{"__isSmartRef__":true,"id":14186},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":14187},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14186":{"this":{"__isSmartRef__":true,"id":14112}},"14187":{"timestamp":{"__isSmartRef__":true,"id":14188},"user":"sebastianwoinar","tags":[]},"14188":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"14189":{"varMapping":{"__isSmartRef__":true,"id":14190},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":14191},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14190":{"this":{"__isSmartRef__":true,"id":14112}},"14191":{"timestamp":{"__isSmartRef__":true,"id":14192},"user":"sebastianwoinar","tags":[]},"14192":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"14193":{"varMapping":{"__isSmartRef__":true,"id":14194},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":14195},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14194":{"this":{"__isSmartRef__":true,"id":14112}},"14195":{"timestamp":{"__isSmartRef__":true,"id":14196},"user":"sebastianwoinar","tags":[]},"14196":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"14197":{"varMapping":{"__isSmartRef__":true,"id":14198},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":14199},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14198":{"this":{"__isSmartRef__":true,"id":14112}},"14199":{"timestamp":{"__isSmartRef__":true,"id":14200},"user":"sebastianwoinar","tags":[]},"14200":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"14201":{"varMapping":{"__isSmartRef__":true,"id":14202},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":14207},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14202":{"this":{"__isSmartRef__":true,"id":14112},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14203}},"14203":{"$super":{"__isSmartRef__":true,"id":14204}},"14204":{"varMapping":{"__isSmartRef__":true,"id":14205},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":14206},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14205":{"obj":{"__isSmartRef__":true,"id":14112},"name":"onMouseDown"},"14206":{},"14207":{"timestamp":{"__isSmartRef__":true,"id":14208},"user":"sebastianwoinar","tags":[]},"14208":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"14209":{"varMapping":{"__isSmartRef__":true,"id":14210},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":14211},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14210":{"this":{"__isSmartRef__":true,"id":14112}},"14211":{"timestamp":{"__isSmartRef__":true,"id":14212},"user":"sebastianwoinar","tags":[]},"14212":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"14213":{"varMapping":{"__isSmartRef__":true,"id":14214},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":14215},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14214":{"this":{"__isSmartRef__":true,"id":14112}},"14215":{"timestamp":{"__isSmartRef__":true,"id":14216},"user":"sebastianwoinar","tags":[]},"14216":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"14217":{"varMapping":{"__isSmartRef__":true,"id":14218},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":14219},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14218":{"this":{"__isSmartRef__":true,"id":14112}},"14219":{"timestamp":{"__isSmartRef__":true,"id":14220},"user":"sebastianwoinar","tags":[]},"14220":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"14221":{"varMapping":{"__isSmartRef__":true,"id":14222},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":14223},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14222":{"this":{"__isSmartRef__":true,"id":14112}},"14223":{"timestamp":{"__isSmartRef__":true,"id":14224},"user":"sebastianwoinar","tags":[]},"14224":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"14225":{"varMapping":{"__isSmartRef__":true,"id":14226},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":14227},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14226":{"this":{"__isSmartRef__":true,"id":14112}},"14227":{"timestamp":{"__isSmartRef__":true,"id":14228},"user":"sebastianwoinar","tags":[]},"14228":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"14229":{"varMapping":{"__isSmartRef__":true,"id":14230},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14231},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14230":{"this":{"__isSmartRef__":true,"id":14112}},"14231":{"timestamp":{"__isSmartRef__":true,"id":14232},"user":"sebastianwoinar","tags":[]},"14232":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"14233":{"varMapping":{"__isSmartRef__":true,"id":14234},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":14235},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14234":{"this":{"__isSmartRef__":true,"id":14112}},"14235":{"timestamp":{"__isSmartRef__":true,"id":14236},"user":"sebastianwoinar","tags":[]},"14236":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"14237":{"varMapping":{"__isSmartRef__":true,"id":14238},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14239},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14238":{"this":{"__isSmartRef__":true,"id":14112}},"14239":{"timestamp":{"__isSmartRef__":true,"id":14240},"user":"sebastianwoinar","tags":[]},"14240":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"14241":{"submorphs":[{"__isSmartRef__":true,"id":14242}],"scripts":[],"shape":{"__isSmartRef__":true,"id":14259},"id":"EF787D21-FA8B-484E-ABCB-90651240D575","eventHandler":{"__isSmartRef__":true,"id":14260},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":14261},"name":"node69","partsBinMetaInfo":{"__isSmartRef__":true,"id":14262},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5567},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":13572},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14265},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(321.5,210.0)"},"14242":{"submorphs":[],"scripts":[],"id":"30D878CD-56AD-460A-A3B3-A6888FCFFC42","shape":{"__isSmartRef__":true,"id":14243},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":14244},"textChunks":[{"__isSmartRef__":true,"id":14256}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":14258},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":14241},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"14243":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"14244":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":14245},{"__isSmartRef__":true,"id":14247},{"__isSmartRef__":true,"id":14249},{"__isSmartRef__":true,"id":14251},{"__isSmartRef__":true,"id":14253}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":14255},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"14245":{"date":{"__isSmartRef__":true,"id":14246},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"14246":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"14247":{"date":{"__isSmartRef__":true,"id":14248},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"14248":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"14249":{"date":{"__isSmartRef__":true,"id":14250},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"14250":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"14251":{"date":{"__isSmartRef__":true,"id":14252},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"14252":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"14253":{"date":{"__isSmartRef__":true,"id":14254},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"14254":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"14255":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"14256":{"style":{"__isSmartRef__":true,"id":14257},"morph":{"__isSmartRef__":true,"id":14242},"chunkOwner":{"__isSmartRef__":true,"id":14242},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14257":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14258":{"morph":{"__isSmartRef__":true,"id":14242},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14259":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"14260":{"morph":{"__isSmartRef__":true,"id":14241},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14261":{},"14262":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":14263}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"14263":{"date":{"__isSmartRef__":true,"id":14264},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"14264":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"14265":{"buildChildNodes":{"__isSmartRef__":true,"id":14266},"getGameTree":{"__isSmartRef__":true,"id":14270},"getLevel":{"__isSmartRef__":true,"id":14274},"getLevelWeight":{"__isSmartRef__":true,"id":14278},"getWeight":{"__isSmartRef__":true,"id":14282},"setNode":{"__isSmartRef__":true,"id":14286},"setParent":{"__isSmartRef__":true,"id":14290},"getParent":{"__isSmartRef__":true,"id":14294},"deactivate":{"__isSmartRef__":true,"id":14298},"blink":{"__isSmartRef__":true,"id":14302},"ABPreturn":{"__isSmartRef__":true,"id":14306},"ABPstart":{"__isSmartRef__":true,"id":14310},"ABPcontinue":{"__isSmartRef__":true,"id":14314},"ABPshowValue":{"__isSmartRef__":true,"id":14318},"ABPgetValue":{"__isSmartRef__":true,"id":14322},"ABPhasChildNodes":{"__isSmartRef__":true,"id":14326},"onMouseDown":{"__isSmartRef__":true,"id":14330},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":14338},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":14342},"ABPmarkAsDone":{"__isSmartRef__":true,"id":14346},"ABPmarkAsActive":{"__isSmartRef__":true,"id":14350},"getStateMorph":{"__isSmartRef__":true,"id":14354},"showState":{"__isSmartRef__":true,"id":14358},"ABPfailHard":{"__isSmartRef__":true,"id":14362},"markFinalDrawWith":{"__isSmartRef__":true,"id":14366}},"14266":{"varMapping":{"__isSmartRef__":true,"id":14267},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":14268},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14267":{"this":{"__isSmartRef__":true,"id":14241}},"14268":{"timestamp":{"__isSmartRef__":true,"id":14269},"user":"sebastianwoinar","tags":[]},"14269":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"14270":{"varMapping":{"__isSmartRef__":true,"id":14271},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":14272},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14271":{"this":{"__isSmartRef__":true,"id":14241}},"14272":{"timestamp":{"__isSmartRef__":true,"id":14273},"user":"sebastianwoinar","tags":[]},"14273":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14274":{"varMapping":{"__isSmartRef__":true,"id":14275},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":14276},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14275":{"this":{"__isSmartRef__":true,"id":14241}},"14276":{"timestamp":{"__isSmartRef__":true,"id":14277},"user":"sebastianwoinar","tags":[]},"14277":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14278":{"varMapping":{"__isSmartRef__":true,"id":14279},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14280},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14279":{"this":{"__isSmartRef__":true,"id":14241}},"14280":{"timestamp":{"__isSmartRef__":true,"id":14281},"user":"sebastianwoinar","tags":[]},"14281":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14282":{"varMapping":{"__isSmartRef__":true,"id":14283},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":14284},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14283":{"this":{"__isSmartRef__":true,"id":14241}},"14284":{"timestamp":{"__isSmartRef__":true,"id":14285},"user":"sebastianwoinar","tags":[]},"14285":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14286":{"varMapping":{"__isSmartRef__":true,"id":14287},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":14288},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14287":{"this":{"__isSmartRef__":true,"id":14241}},"14288":{"timestamp":{"__isSmartRef__":true,"id":14289},"user":"sebastianwoinar","tags":[]},"14289":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14290":{"varMapping":{"__isSmartRef__":true,"id":14291},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":14292},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14291":{"this":{"__isSmartRef__":true,"id":14241}},"14292":{"timestamp":{"__isSmartRef__":true,"id":14293},"user":"sebastianwoinar","tags":[]},"14293":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14294":{"varMapping":{"__isSmartRef__":true,"id":14295},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":14296},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14295":{"this":{"__isSmartRef__":true,"id":14241}},"14296":{"timestamp":{"__isSmartRef__":true,"id":14297},"user":"sebastianwoinar","tags":[]},"14297":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"14298":{"varMapping":{"__isSmartRef__":true,"id":14299},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":14300},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14299":{"this":{"__isSmartRef__":true,"id":14241}},"14300":{"timestamp":{"__isSmartRef__":true,"id":14301},"user":"sebastianwoinar","tags":[]},"14301":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"14302":{"varMapping":{"__isSmartRef__":true,"id":14303},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":14304},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14303":{"this":{"__isSmartRef__":true,"id":14241}},"14304":{"timestamp":{"__isSmartRef__":true,"id":14305},"user":"sebastianwoinar","tags":[]},"14305":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"14306":{"varMapping":{"__isSmartRef__":true,"id":14307},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":14308},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14307":{"this":{"__isSmartRef__":true,"id":14241}},"14308":{"timestamp":{"__isSmartRef__":true,"id":14309},"user":"sebastianwoinar","tags":[]},"14309":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"14310":{"varMapping":{"__isSmartRef__":true,"id":14311},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":14312},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14311":{"this":{"__isSmartRef__":true,"id":14241}},"14312":{"timestamp":{"__isSmartRef__":true,"id":14313},"user":"sebastianwoinar","tags":[]},"14313":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"14314":{"varMapping":{"__isSmartRef__":true,"id":14315},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":14316},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14315":{"this":{"__isSmartRef__":true,"id":14241}},"14316":{"timestamp":{"__isSmartRef__":true,"id":14317},"user":"sebastianwoinar","tags":[]},"14317":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"14318":{"varMapping":{"__isSmartRef__":true,"id":14319},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":14320},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14319":{"this":{"__isSmartRef__":true,"id":14241}},"14320":{"timestamp":{"__isSmartRef__":true,"id":14321},"user":"sebastianwoinar","tags":[]},"14321":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"14322":{"varMapping":{"__isSmartRef__":true,"id":14323},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":14324},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14323":{"this":{"__isSmartRef__":true,"id":14241}},"14324":{"timestamp":{"__isSmartRef__":true,"id":14325},"user":"sebastianwoinar","tags":[]},"14325":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"14326":{"varMapping":{"__isSmartRef__":true,"id":14327},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":14328},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14327":{"this":{"__isSmartRef__":true,"id":14241}},"14328":{"timestamp":{"__isSmartRef__":true,"id":14329},"user":"sebastianwoinar","tags":[]},"14329":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"14330":{"varMapping":{"__isSmartRef__":true,"id":14331},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":14336},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14331":{"this":{"__isSmartRef__":true,"id":14241},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14332}},"14332":{"$super":{"__isSmartRef__":true,"id":14333}},"14333":{"varMapping":{"__isSmartRef__":true,"id":14334},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":14335},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14334":{"obj":{"__isSmartRef__":true,"id":14241},"name":"onMouseDown"},"14335":{},"14336":{"timestamp":{"__isSmartRef__":true,"id":14337},"user":"sebastianwoinar","tags":[]},"14337":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"14338":{"varMapping":{"__isSmartRef__":true,"id":14339},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":14340},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14339":{"this":{"__isSmartRef__":true,"id":14241}},"14340":{"timestamp":{"__isSmartRef__":true,"id":14341},"user":"sebastianwoinar","tags":[]},"14341":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"14342":{"varMapping":{"__isSmartRef__":true,"id":14343},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":14344},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14343":{"this":{"__isSmartRef__":true,"id":14241}},"14344":{"timestamp":{"__isSmartRef__":true,"id":14345},"user":"sebastianwoinar","tags":[]},"14345":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"14346":{"varMapping":{"__isSmartRef__":true,"id":14347},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":14348},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14347":{"this":{"__isSmartRef__":true,"id":14241}},"14348":{"timestamp":{"__isSmartRef__":true,"id":14349},"user":"sebastianwoinar","tags":[]},"14349":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"14350":{"varMapping":{"__isSmartRef__":true,"id":14351},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":14352},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14351":{"this":{"__isSmartRef__":true,"id":14241}},"14352":{"timestamp":{"__isSmartRef__":true,"id":14353},"user":"sebastianwoinar","tags":[]},"14353":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"14354":{"varMapping":{"__isSmartRef__":true,"id":14355},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":14356},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14355":{"this":{"__isSmartRef__":true,"id":14241}},"14356":{"timestamp":{"__isSmartRef__":true,"id":14357},"user":"sebastianwoinar","tags":[]},"14357":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"14358":{"varMapping":{"__isSmartRef__":true,"id":14359},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14360},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14359":{"this":{"__isSmartRef__":true,"id":14241}},"14360":{"timestamp":{"__isSmartRef__":true,"id":14361},"user":"sebastianwoinar","tags":[]},"14361":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"14362":{"varMapping":{"__isSmartRef__":true,"id":14363},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":14364},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14363":{"this":{"__isSmartRef__":true,"id":14241}},"14364":{"timestamp":{"__isSmartRef__":true,"id":14365},"user":"sebastianwoinar","tags":[]},"14365":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"14366":{"varMapping":{"__isSmartRef__":true,"id":14367},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14368},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14367":{"this":{"__isSmartRef__":true,"id":14241}},"14368":{"timestamp":{"__isSmartRef__":true,"id":14369},"user":"sebastianwoinar","tags":[]},"14369":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"14370":{"submorphs":[{"__isSmartRef__":true,"id":14371}],"scripts":[],"shape":{"__isSmartRef__":true,"id":14388},"id":"9E290931-7928-4A5C-A73F-B7945ABDEA60","eventHandler":{"__isSmartRef__":true,"id":14389},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":14390},"name":"node70","partsBinMetaInfo":{"__isSmartRef__":true,"id":14391},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5569},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":13572},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14394},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(326.7,210.0)"},"14371":{"submorphs":[],"scripts":[],"id":"C4C65E02-2C37-4709-A16A-A692D9614F5B","shape":{"__isSmartRef__":true,"id":14372},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":14373},"textChunks":[{"__isSmartRef__":true,"id":14385}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":14387},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":14370},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"14372":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"14373":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":14374},{"__isSmartRef__":true,"id":14376},{"__isSmartRef__":true,"id":14378},{"__isSmartRef__":true,"id":14380},{"__isSmartRef__":true,"id":14382}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":14384},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"14374":{"date":{"__isSmartRef__":true,"id":14375},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"14375":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"14376":{"date":{"__isSmartRef__":true,"id":14377},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"14377":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"14378":{"date":{"__isSmartRef__":true,"id":14379},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"14379":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"14380":{"date":{"__isSmartRef__":true,"id":14381},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"14381":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"14382":{"date":{"__isSmartRef__":true,"id":14383},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"14383":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"14384":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"14385":{"style":{"__isSmartRef__":true,"id":14386},"morph":{"__isSmartRef__":true,"id":14371},"chunkOwner":{"__isSmartRef__":true,"id":14371},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14386":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14387":{"morph":{"__isSmartRef__":true,"id":14371},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14388":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"14389":{"morph":{"__isSmartRef__":true,"id":14370},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14390":{},"14391":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":14392}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"14392":{"date":{"__isSmartRef__":true,"id":14393},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"14393":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"14394":{"buildChildNodes":{"__isSmartRef__":true,"id":14395},"getGameTree":{"__isSmartRef__":true,"id":14399},"getLevel":{"__isSmartRef__":true,"id":14403},"getLevelWeight":{"__isSmartRef__":true,"id":14407},"getWeight":{"__isSmartRef__":true,"id":14411},"setNode":{"__isSmartRef__":true,"id":14415},"setParent":{"__isSmartRef__":true,"id":14419},"getParent":{"__isSmartRef__":true,"id":14423},"deactivate":{"__isSmartRef__":true,"id":14427},"blink":{"__isSmartRef__":true,"id":14431},"ABPreturn":{"__isSmartRef__":true,"id":14435},"ABPstart":{"__isSmartRef__":true,"id":14439},"ABPcontinue":{"__isSmartRef__":true,"id":14443},"ABPshowValue":{"__isSmartRef__":true,"id":14447},"ABPgetValue":{"__isSmartRef__":true,"id":14451},"ABPhasChildNodes":{"__isSmartRef__":true,"id":14455},"onMouseDown":{"__isSmartRef__":true,"id":14459},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":14467},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":14471},"ABPmarkAsDone":{"__isSmartRef__":true,"id":14475},"ABPmarkAsActive":{"__isSmartRef__":true,"id":14479},"getStateMorph":{"__isSmartRef__":true,"id":14483},"showState":{"__isSmartRef__":true,"id":14487},"ABPfailHard":{"__isSmartRef__":true,"id":14491},"markFinalDrawWith":{"__isSmartRef__":true,"id":14495}},"14395":{"varMapping":{"__isSmartRef__":true,"id":14396},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":14397},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14396":{"this":{"__isSmartRef__":true,"id":14370}},"14397":{"timestamp":{"__isSmartRef__":true,"id":14398},"user":"sebastianwoinar","tags":[]},"14398":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"14399":{"varMapping":{"__isSmartRef__":true,"id":14400},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":14401},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14400":{"this":{"__isSmartRef__":true,"id":14370}},"14401":{"timestamp":{"__isSmartRef__":true,"id":14402},"user":"sebastianwoinar","tags":[]},"14402":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14403":{"varMapping":{"__isSmartRef__":true,"id":14404},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":14405},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14404":{"this":{"__isSmartRef__":true,"id":14370}},"14405":{"timestamp":{"__isSmartRef__":true,"id":14406},"user":"sebastianwoinar","tags":[]},"14406":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14407":{"varMapping":{"__isSmartRef__":true,"id":14408},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14409},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14408":{"this":{"__isSmartRef__":true,"id":14370}},"14409":{"timestamp":{"__isSmartRef__":true,"id":14410},"user":"sebastianwoinar","tags":[]},"14410":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14411":{"varMapping":{"__isSmartRef__":true,"id":14412},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":14413},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14412":{"this":{"__isSmartRef__":true,"id":14370}},"14413":{"timestamp":{"__isSmartRef__":true,"id":14414},"user":"sebastianwoinar","tags":[]},"14414":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14415":{"varMapping":{"__isSmartRef__":true,"id":14416},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":14417},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14416":{"this":{"__isSmartRef__":true,"id":14370}},"14417":{"timestamp":{"__isSmartRef__":true,"id":14418},"user":"sebastianwoinar","tags":[]},"14418":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14419":{"varMapping":{"__isSmartRef__":true,"id":14420},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":14421},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14420":{"this":{"__isSmartRef__":true,"id":14370}},"14421":{"timestamp":{"__isSmartRef__":true,"id":14422},"user":"sebastianwoinar","tags":[]},"14422":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14423":{"varMapping":{"__isSmartRef__":true,"id":14424},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":14425},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14424":{"this":{"__isSmartRef__":true,"id":14370}},"14425":{"timestamp":{"__isSmartRef__":true,"id":14426},"user":"sebastianwoinar","tags":[]},"14426":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"14427":{"varMapping":{"__isSmartRef__":true,"id":14428},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":14429},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14428":{"this":{"__isSmartRef__":true,"id":14370}},"14429":{"timestamp":{"__isSmartRef__":true,"id":14430},"user":"sebastianwoinar","tags":[]},"14430":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"14431":{"varMapping":{"__isSmartRef__":true,"id":14432},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":14433},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14432":{"this":{"__isSmartRef__":true,"id":14370}},"14433":{"timestamp":{"__isSmartRef__":true,"id":14434},"user":"sebastianwoinar","tags":[]},"14434":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"14435":{"varMapping":{"__isSmartRef__":true,"id":14436},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":14437},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14436":{"this":{"__isSmartRef__":true,"id":14370}},"14437":{"timestamp":{"__isSmartRef__":true,"id":14438},"user":"sebastianwoinar","tags":[]},"14438":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"14439":{"varMapping":{"__isSmartRef__":true,"id":14440},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":14441},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14440":{"this":{"__isSmartRef__":true,"id":14370}},"14441":{"timestamp":{"__isSmartRef__":true,"id":14442},"user":"sebastianwoinar","tags":[]},"14442":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"14443":{"varMapping":{"__isSmartRef__":true,"id":14444},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":14445},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14444":{"this":{"__isSmartRef__":true,"id":14370}},"14445":{"timestamp":{"__isSmartRef__":true,"id":14446},"user":"sebastianwoinar","tags":[]},"14446":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"14447":{"varMapping":{"__isSmartRef__":true,"id":14448},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":14449},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14448":{"this":{"__isSmartRef__":true,"id":14370}},"14449":{"timestamp":{"__isSmartRef__":true,"id":14450},"user":"sebastianwoinar","tags":[]},"14450":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"14451":{"varMapping":{"__isSmartRef__":true,"id":14452},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":14453},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14452":{"this":{"__isSmartRef__":true,"id":14370}},"14453":{"timestamp":{"__isSmartRef__":true,"id":14454},"user":"sebastianwoinar","tags":[]},"14454":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"14455":{"varMapping":{"__isSmartRef__":true,"id":14456},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":14457},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14456":{"this":{"__isSmartRef__":true,"id":14370}},"14457":{"timestamp":{"__isSmartRef__":true,"id":14458},"user":"sebastianwoinar","tags":[]},"14458":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"14459":{"varMapping":{"__isSmartRef__":true,"id":14460},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":14465},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14460":{"this":{"__isSmartRef__":true,"id":14370},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14461}},"14461":{"$super":{"__isSmartRef__":true,"id":14462}},"14462":{"varMapping":{"__isSmartRef__":true,"id":14463},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":14464},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14463":{"obj":{"__isSmartRef__":true,"id":14370},"name":"onMouseDown"},"14464":{},"14465":{"timestamp":{"__isSmartRef__":true,"id":14466},"user":"sebastianwoinar","tags":[]},"14466":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"14467":{"varMapping":{"__isSmartRef__":true,"id":14468},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":14469},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14468":{"this":{"__isSmartRef__":true,"id":14370}},"14469":{"timestamp":{"__isSmartRef__":true,"id":14470},"user":"sebastianwoinar","tags":[]},"14470":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"14471":{"varMapping":{"__isSmartRef__":true,"id":14472},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":14473},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14472":{"this":{"__isSmartRef__":true,"id":14370}},"14473":{"timestamp":{"__isSmartRef__":true,"id":14474},"user":"sebastianwoinar","tags":[]},"14474":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"14475":{"varMapping":{"__isSmartRef__":true,"id":14476},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":14477},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14476":{"this":{"__isSmartRef__":true,"id":14370}},"14477":{"timestamp":{"__isSmartRef__":true,"id":14478},"user":"sebastianwoinar","tags":[]},"14478":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"14479":{"varMapping":{"__isSmartRef__":true,"id":14480},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":14481},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14480":{"this":{"__isSmartRef__":true,"id":14370}},"14481":{"timestamp":{"__isSmartRef__":true,"id":14482},"user":"sebastianwoinar","tags":[]},"14482":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"14483":{"varMapping":{"__isSmartRef__":true,"id":14484},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":14485},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14484":{"this":{"__isSmartRef__":true,"id":14370}},"14485":{"timestamp":{"__isSmartRef__":true,"id":14486},"user":"sebastianwoinar","tags":[]},"14486":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"14487":{"varMapping":{"__isSmartRef__":true,"id":14488},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14489},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14488":{"this":{"__isSmartRef__":true,"id":14370}},"14489":{"timestamp":{"__isSmartRef__":true,"id":14490},"user":"sebastianwoinar","tags":[]},"14490":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"14491":{"varMapping":{"__isSmartRef__":true,"id":14492},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":14493},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14492":{"this":{"__isSmartRef__":true,"id":14370}},"14493":{"timestamp":{"__isSmartRef__":true,"id":14494},"user":"sebastianwoinar","tags":[]},"14494":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"14495":{"varMapping":{"__isSmartRef__":true,"id":14496},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14497},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14496":{"this":{"__isSmartRef__":true,"id":14370}},"14497":{"timestamp":{"__isSmartRef__":true,"id":14498},"user":"sebastianwoinar","tags":[]},"14498":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"14499":{"buildChildNodes":{"__isSmartRef__":true,"id":14500},"getGameTree":{"__isSmartRef__":true,"id":14504},"getLevel":{"__isSmartRef__":true,"id":14508},"getLevelWeight":{"__isSmartRef__":true,"id":14512},"getWeight":{"__isSmartRef__":true,"id":14516},"setNode":{"__isSmartRef__":true,"id":14520},"setParent":{"__isSmartRef__":true,"id":14524},"getParent":{"__isSmartRef__":true,"id":14528},"deactivate":{"__isSmartRef__":true,"id":14532},"blink":{"__isSmartRef__":true,"id":14536},"ABPreturn":{"__isSmartRef__":true,"id":14540},"ABPstart":{"__isSmartRef__":true,"id":14544},"ABPcontinue":{"__isSmartRef__":true,"id":14548},"ABPshowValue":{"__isSmartRef__":true,"id":14552},"ABPgetValue":{"__isSmartRef__":true,"id":14556},"ABPhasChildNodes":{"__isSmartRef__":true,"id":14560},"onMouseDown":{"__isSmartRef__":true,"id":14564},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":14572},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":14576},"ABPmarkAsDone":{"__isSmartRef__":true,"id":14580},"ABPmarkAsActive":{"__isSmartRef__":true,"id":14584},"getStateMorph":{"__isSmartRef__":true,"id":14588},"showState":{"__isSmartRef__":true,"id":14592},"ABPfailHard":{"__isSmartRef__":true,"id":14596},"markFinalDrawWith":{"__isSmartRef__":true,"id":14600}},"14500":{"varMapping":{"__isSmartRef__":true,"id":14501},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":14502},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14501":{"this":{"__isSmartRef__":true,"id":13572}},"14502":{"timestamp":{"__isSmartRef__":true,"id":14503},"user":"sebastianwoinar","tags":[]},"14503":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"14504":{"varMapping":{"__isSmartRef__":true,"id":14505},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":14506},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14505":{"this":{"__isSmartRef__":true,"id":13572}},"14506":{"timestamp":{"__isSmartRef__":true,"id":14507},"user":"sebastianwoinar","tags":[]},"14507":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14508":{"varMapping":{"__isSmartRef__":true,"id":14509},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":14510},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14509":{"this":{"__isSmartRef__":true,"id":13572}},"14510":{"timestamp":{"__isSmartRef__":true,"id":14511},"user":"sebastianwoinar","tags":[]},"14511":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14512":{"varMapping":{"__isSmartRef__":true,"id":14513},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14514},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14513":{"this":{"__isSmartRef__":true,"id":13572}},"14514":{"timestamp":{"__isSmartRef__":true,"id":14515},"user":"sebastianwoinar","tags":[]},"14515":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14516":{"varMapping":{"__isSmartRef__":true,"id":14517},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":14518},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14517":{"this":{"__isSmartRef__":true,"id":13572}},"14518":{"timestamp":{"__isSmartRef__":true,"id":14519},"user":"sebastianwoinar","tags":[]},"14519":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14520":{"varMapping":{"__isSmartRef__":true,"id":14521},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":14522},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14521":{"this":{"__isSmartRef__":true,"id":13572}},"14522":{"timestamp":{"__isSmartRef__":true,"id":14523},"user":"sebastianwoinar","tags":[]},"14523":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14524":{"varMapping":{"__isSmartRef__":true,"id":14525},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":14526},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14525":{"this":{"__isSmartRef__":true,"id":13572}},"14526":{"timestamp":{"__isSmartRef__":true,"id":14527},"user":"sebastianwoinar","tags":[]},"14527":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14528":{"varMapping":{"__isSmartRef__":true,"id":14529},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":14530},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14529":{"this":{"__isSmartRef__":true,"id":13572}},"14530":{"timestamp":{"__isSmartRef__":true,"id":14531},"user":"sebastianwoinar","tags":[]},"14531":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"14532":{"varMapping":{"__isSmartRef__":true,"id":14533},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":14534},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14533":{"this":{"__isSmartRef__":true,"id":13572}},"14534":{"timestamp":{"__isSmartRef__":true,"id":14535},"user":"sebastianwoinar","tags":[]},"14535":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"14536":{"varMapping":{"__isSmartRef__":true,"id":14537},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":14538},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14537":{"this":{"__isSmartRef__":true,"id":13572}},"14538":{"timestamp":{"__isSmartRef__":true,"id":14539},"user":"sebastianwoinar","tags":[]},"14539":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"14540":{"varMapping":{"__isSmartRef__":true,"id":14541},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":14542},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14541":{"this":{"__isSmartRef__":true,"id":13572}},"14542":{"timestamp":{"__isSmartRef__":true,"id":14543},"user":"sebastianwoinar","tags":[]},"14543":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"14544":{"varMapping":{"__isSmartRef__":true,"id":14545},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":14546},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14545":{"this":{"__isSmartRef__":true,"id":13572}},"14546":{"timestamp":{"__isSmartRef__":true,"id":14547},"user":"sebastianwoinar","tags":[]},"14547":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"14548":{"varMapping":{"__isSmartRef__":true,"id":14549},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":14550},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14549":{"this":{"__isSmartRef__":true,"id":13572}},"14550":{"timestamp":{"__isSmartRef__":true,"id":14551},"user":"sebastianwoinar","tags":[]},"14551":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"14552":{"varMapping":{"__isSmartRef__":true,"id":14553},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":14554},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14553":{"this":{"__isSmartRef__":true,"id":13572}},"14554":{"timestamp":{"__isSmartRef__":true,"id":14555},"user":"sebastianwoinar","tags":[]},"14555":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"14556":{"varMapping":{"__isSmartRef__":true,"id":14557},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":14558},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14557":{"this":{"__isSmartRef__":true,"id":13572}},"14558":{"timestamp":{"__isSmartRef__":true,"id":14559},"user":"sebastianwoinar","tags":[]},"14559":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"14560":{"varMapping":{"__isSmartRef__":true,"id":14561},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":14562},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14561":{"this":{"__isSmartRef__":true,"id":13572}},"14562":{"timestamp":{"__isSmartRef__":true,"id":14563},"user":"sebastianwoinar","tags":[]},"14563":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"14564":{"varMapping":{"__isSmartRef__":true,"id":14565},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":14570},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14565":{"this":{"__isSmartRef__":true,"id":13572},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14566}},"14566":{"$super":{"__isSmartRef__":true,"id":14567}},"14567":{"varMapping":{"__isSmartRef__":true,"id":14568},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":14569},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14568":{"obj":{"__isSmartRef__":true,"id":13572},"name":"onMouseDown"},"14569":{},"14570":{"timestamp":{"__isSmartRef__":true,"id":14571},"user":"sebastianwoinar","tags":[]},"14571":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"14572":{"varMapping":{"__isSmartRef__":true,"id":14573},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":14574},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14573":{"this":{"__isSmartRef__":true,"id":13572}},"14574":{"timestamp":{"__isSmartRef__":true,"id":14575},"user":"sebastianwoinar","tags":[]},"14575":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"14576":{"varMapping":{"__isSmartRef__":true,"id":14577},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":14578},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14577":{"this":{"__isSmartRef__":true,"id":13572}},"14578":{"timestamp":{"__isSmartRef__":true,"id":14579},"user":"sebastianwoinar","tags":[]},"14579":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"14580":{"varMapping":{"__isSmartRef__":true,"id":14581},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":14582},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14581":{"this":{"__isSmartRef__":true,"id":13572}},"14582":{"timestamp":{"__isSmartRef__":true,"id":14583},"user":"sebastianwoinar","tags":[]},"14583":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"14584":{"varMapping":{"__isSmartRef__":true,"id":14585},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":14586},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14585":{"this":{"__isSmartRef__":true,"id":13572}},"14586":{"timestamp":{"__isSmartRef__":true,"id":14587},"user":"sebastianwoinar","tags":[]},"14587":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"14588":{"varMapping":{"__isSmartRef__":true,"id":14589},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":14590},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14589":{"this":{"__isSmartRef__":true,"id":13572}},"14590":{"timestamp":{"__isSmartRef__":true,"id":14591},"user":"sebastianwoinar","tags":[]},"14591":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"14592":{"varMapping":{"__isSmartRef__":true,"id":14593},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14594},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14593":{"this":{"__isSmartRef__":true,"id":13572}},"14594":{"timestamp":{"__isSmartRef__":true,"id":14595},"user":"sebastianwoinar","tags":[]},"14595":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"14596":{"varMapping":{"__isSmartRef__":true,"id":14597},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":14598},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14597":{"this":{"__isSmartRef__":true,"id":13572}},"14598":{"timestamp":{"__isSmartRef__":true,"id":14599},"user":"sebastianwoinar","tags":[]},"14599":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"14600":{"varMapping":{"__isSmartRef__":true,"id":14601},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14602},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14601":{"this":{"__isSmartRef__":true,"id":13572}},"14602":{"timestamp":{"__isSmartRef__":true,"id":14603},"user":"sebastianwoinar","tags":[]},"14603":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"14604":{"submorphs":[{"__isSmartRef__":true,"id":14605}],"scripts":[],"shape":{"__isSmartRef__":true,"id":14622},"id":"865C1EBF-CA3E-4616-945F-AB757A799828","eventHandler":{"__isSmartRef__":true,"id":14623},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":14624},"name":"node71","partsBinMetaInfo":{"__isSmartRef__":true,"id":14625},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5571},"owner":{"__isSmartRef__":true,"id":5408},"childNodes":[{"__isSmartRef__":true,"id":14628},{"__isSmartRef__":true,"id":14757},{"__isSmartRef__":true,"id":14886},{"__isSmartRef__":true,"id":15015},{"__isSmartRef__":true,"id":15144},{"__isSmartRef__":true,"id":15273}],"parent":{"__isSmartRef__":true,"id":12516},"level":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15402},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(394.0,160.0)"},"14605":{"submorphs":[],"scripts":[],"id":"CDC2B2FC-7779-45A7-8A9A-1597A306DCFE","shape":{"__isSmartRef__":true,"id":14606},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":14607},"textChunks":[{"__isSmartRef__":true,"id":14619}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":14621},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":14604},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"14606":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"14607":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":14608},{"__isSmartRef__":true,"id":14610},{"__isSmartRef__":true,"id":14612},{"__isSmartRef__":true,"id":14614},{"__isSmartRef__":true,"id":14616}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":14618},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"14608":{"date":{"__isSmartRef__":true,"id":14609},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"14609":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"14610":{"date":{"__isSmartRef__":true,"id":14611},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"14611":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"14612":{"date":{"__isSmartRef__":true,"id":14613},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"14613":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"14614":{"date":{"__isSmartRef__":true,"id":14615},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"14615":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"14616":{"date":{"__isSmartRef__":true,"id":14617},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"14617":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"14618":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"14619":{"style":{"__isSmartRef__":true,"id":14620},"morph":{"__isSmartRef__":true,"id":14605},"chunkOwner":{"__isSmartRef__":true,"id":14605},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14620":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14621":{"morph":{"__isSmartRef__":true,"id":14605},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14622":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"14623":{"morph":{"__isSmartRef__":true,"id":14604},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14624":{},"14625":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":14626}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"14626":{"date":{"__isSmartRef__":true,"id":14627},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"14627":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"14628":{"submorphs":[{"__isSmartRef__":true,"id":14629}],"scripts":[],"shape":{"__isSmartRef__":true,"id":14646},"id":"5EDE6ED2-0B93-41BB-9C80-32EA4DCE7C74","eventHandler":{"__isSmartRef__":true,"id":14647},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":14648},"name":"node72","partsBinMetaInfo":{"__isSmartRef__":true,"id":14649},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5573},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":14604},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14652},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(331.8,210.0)"},"14629":{"submorphs":[],"scripts":[],"id":"690470D4-4736-44D0-8FB8-93B99CFE8B8F","shape":{"__isSmartRef__":true,"id":14630},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":14631},"textChunks":[{"__isSmartRef__":true,"id":14643}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":14645},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":14628},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"14630":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"14631":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":14632},{"__isSmartRef__":true,"id":14634},{"__isSmartRef__":true,"id":14636},{"__isSmartRef__":true,"id":14638},{"__isSmartRef__":true,"id":14640}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":14642},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"14632":{"date":{"__isSmartRef__":true,"id":14633},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"14633":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"14634":{"date":{"__isSmartRef__":true,"id":14635},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"14635":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"14636":{"date":{"__isSmartRef__":true,"id":14637},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"14637":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"14638":{"date":{"__isSmartRef__":true,"id":14639},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"14639":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"14640":{"date":{"__isSmartRef__":true,"id":14641},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"14641":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"14642":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"14643":{"style":{"__isSmartRef__":true,"id":14644},"morph":{"__isSmartRef__":true,"id":14629},"chunkOwner":{"__isSmartRef__":true,"id":14629},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14644":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14645":{"morph":{"__isSmartRef__":true,"id":14629},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14646":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"14647":{"morph":{"__isSmartRef__":true,"id":14628},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14648":{},"14649":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":14650}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"14650":{"date":{"__isSmartRef__":true,"id":14651},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"14651":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"14652":{"buildChildNodes":{"__isSmartRef__":true,"id":14653},"getGameTree":{"__isSmartRef__":true,"id":14657},"getLevel":{"__isSmartRef__":true,"id":14661},"getLevelWeight":{"__isSmartRef__":true,"id":14665},"getWeight":{"__isSmartRef__":true,"id":14669},"setNode":{"__isSmartRef__":true,"id":14673},"setParent":{"__isSmartRef__":true,"id":14677},"getParent":{"__isSmartRef__":true,"id":14681},"deactivate":{"__isSmartRef__":true,"id":14685},"blink":{"__isSmartRef__":true,"id":14689},"ABPreturn":{"__isSmartRef__":true,"id":14693},"ABPstart":{"__isSmartRef__":true,"id":14697},"ABPcontinue":{"__isSmartRef__":true,"id":14701},"ABPshowValue":{"__isSmartRef__":true,"id":14705},"ABPgetValue":{"__isSmartRef__":true,"id":14709},"ABPhasChildNodes":{"__isSmartRef__":true,"id":14713},"onMouseDown":{"__isSmartRef__":true,"id":14717},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":14725},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":14729},"ABPmarkAsDone":{"__isSmartRef__":true,"id":14733},"ABPmarkAsActive":{"__isSmartRef__":true,"id":14737},"getStateMorph":{"__isSmartRef__":true,"id":14741},"showState":{"__isSmartRef__":true,"id":14745},"ABPfailHard":{"__isSmartRef__":true,"id":14749},"markFinalDrawWith":{"__isSmartRef__":true,"id":14753}},"14653":{"varMapping":{"__isSmartRef__":true,"id":14654},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":14655},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14654":{"this":{"__isSmartRef__":true,"id":14628}},"14655":{"timestamp":{"__isSmartRef__":true,"id":14656},"user":"sebastianwoinar","tags":[]},"14656":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"14657":{"varMapping":{"__isSmartRef__":true,"id":14658},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":14659},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14658":{"this":{"__isSmartRef__":true,"id":14628}},"14659":{"timestamp":{"__isSmartRef__":true,"id":14660},"user":"sebastianwoinar","tags":[]},"14660":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14661":{"varMapping":{"__isSmartRef__":true,"id":14662},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":14663},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14662":{"this":{"__isSmartRef__":true,"id":14628}},"14663":{"timestamp":{"__isSmartRef__":true,"id":14664},"user":"sebastianwoinar","tags":[]},"14664":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14665":{"varMapping":{"__isSmartRef__":true,"id":14666},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14667},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14666":{"this":{"__isSmartRef__":true,"id":14628}},"14667":{"timestamp":{"__isSmartRef__":true,"id":14668},"user":"sebastianwoinar","tags":[]},"14668":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14669":{"varMapping":{"__isSmartRef__":true,"id":14670},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":14671},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14670":{"this":{"__isSmartRef__":true,"id":14628}},"14671":{"timestamp":{"__isSmartRef__":true,"id":14672},"user":"sebastianwoinar","tags":[]},"14672":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14673":{"varMapping":{"__isSmartRef__":true,"id":14674},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":14675},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14674":{"this":{"__isSmartRef__":true,"id":14628}},"14675":{"timestamp":{"__isSmartRef__":true,"id":14676},"user":"sebastianwoinar","tags":[]},"14676":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14677":{"varMapping":{"__isSmartRef__":true,"id":14678},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":14679},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14678":{"this":{"__isSmartRef__":true,"id":14628}},"14679":{"timestamp":{"__isSmartRef__":true,"id":14680},"user":"sebastianwoinar","tags":[]},"14680":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14681":{"varMapping":{"__isSmartRef__":true,"id":14682},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":14683},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14682":{"this":{"__isSmartRef__":true,"id":14628}},"14683":{"timestamp":{"__isSmartRef__":true,"id":14684},"user":"sebastianwoinar","tags":[]},"14684":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"14685":{"varMapping":{"__isSmartRef__":true,"id":14686},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":14687},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14686":{"this":{"__isSmartRef__":true,"id":14628}},"14687":{"timestamp":{"__isSmartRef__":true,"id":14688},"user":"sebastianwoinar","tags":[]},"14688":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"14689":{"varMapping":{"__isSmartRef__":true,"id":14690},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":14691},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14690":{"this":{"__isSmartRef__":true,"id":14628}},"14691":{"timestamp":{"__isSmartRef__":true,"id":14692},"user":"sebastianwoinar","tags":[]},"14692":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"14693":{"varMapping":{"__isSmartRef__":true,"id":14694},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":14695},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14694":{"this":{"__isSmartRef__":true,"id":14628}},"14695":{"timestamp":{"__isSmartRef__":true,"id":14696},"user":"sebastianwoinar","tags":[]},"14696":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"14697":{"varMapping":{"__isSmartRef__":true,"id":14698},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":14699},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14698":{"this":{"__isSmartRef__":true,"id":14628}},"14699":{"timestamp":{"__isSmartRef__":true,"id":14700},"user":"sebastianwoinar","tags":[]},"14700":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"14701":{"varMapping":{"__isSmartRef__":true,"id":14702},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":14703},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14702":{"this":{"__isSmartRef__":true,"id":14628}},"14703":{"timestamp":{"__isSmartRef__":true,"id":14704},"user":"sebastianwoinar","tags":[]},"14704":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"14705":{"varMapping":{"__isSmartRef__":true,"id":14706},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":14707},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14706":{"this":{"__isSmartRef__":true,"id":14628}},"14707":{"timestamp":{"__isSmartRef__":true,"id":14708},"user":"sebastianwoinar","tags":[]},"14708":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"14709":{"varMapping":{"__isSmartRef__":true,"id":14710},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":14711},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14710":{"this":{"__isSmartRef__":true,"id":14628}},"14711":{"timestamp":{"__isSmartRef__":true,"id":14712},"user":"sebastianwoinar","tags":[]},"14712":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"14713":{"varMapping":{"__isSmartRef__":true,"id":14714},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":14715},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14714":{"this":{"__isSmartRef__":true,"id":14628}},"14715":{"timestamp":{"__isSmartRef__":true,"id":14716},"user":"sebastianwoinar","tags":[]},"14716":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"14717":{"varMapping":{"__isSmartRef__":true,"id":14718},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":14723},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14718":{"this":{"__isSmartRef__":true,"id":14628},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14719}},"14719":{"$super":{"__isSmartRef__":true,"id":14720}},"14720":{"varMapping":{"__isSmartRef__":true,"id":14721},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":14722},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14721":{"obj":{"__isSmartRef__":true,"id":14628},"name":"onMouseDown"},"14722":{},"14723":{"timestamp":{"__isSmartRef__":true,"id":14724},"user":"sebastianwoinar","tags":[]},"14724":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"14725":{"varMapping":{"__isSmartRef__":true,"id":14726},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":14727},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14726":{"this":{"__isSmartRef__":true,"id":14628}},"14727":{"timestamp":{"__isSmartRef__":true,"id":14728},"user":"sebastianwoinar","tags":[]},"14728":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"14729":{"varMapping":{"__isSmartRef__":true,"id":14730},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":14731},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14730":{"this":{"__isSmartRef__":true,"id":14628}},"14731":{"timestamp":{"__isSmartRef__":true,"id":14732},"user":"sebastianwoinar","tags":[]},"14732":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"14733":{"varMapping":{"__isSmartRef__":true,"id":14734},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":14735},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14734":{"this":{"__isSmartRef__":true,"id":14628}},"14735":{"timestamp":{"__isSmartRef__":true,"id":14736},"user":"sebastianwoinar","tags":[]},"14736":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"14737":{"varMapping":{"__isSmartRef__":true,"id":14738},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":14739},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14738":{"this":{"__isSmartRef__":true,"id":14628}},"14739":{"timestamp":{"__isSmartRef__":true,"id":14740},"user":"sebastianwoinar","tags":[]},"14740":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"14741":{"varMapping":{"__isSmartRef__":true,"id":14742},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":14743},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14742":{"this":{"__isSmartRef__":true,"id":14628}},"14743":{"timestamp":{"__isSmartRef__":true,"id":14744},"user":"sebastianwoinar","tags":[]},"14744":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"14745":{"varMapping":{"__isSmartRef__":true,"id":14746},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14747},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14746":{"this":{"__isSmartRef__":true,"id":14628}},"14747":{"timestamp":{"__isSmartRef__":true,"id":14748},"user":"sebastianwoinar","tags":[]},"14748":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"14749":{"varMapping":{"__isSmartRef__":true,"id":14750},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":14751},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14750":{"this":{"__isSmartRef__":true,"id":14628}},"14751":{"timestamp":{"__isSmartRef__":true,"id":14752},"user":"sebastianwoinar","tags":[]},"14752":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"14753":{"varMapping":{"__isSmartRef__":true,"id":14754},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14755},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14754":{"this":{"__isSmartRef__":true,"id":14628}},"14755":{"timestamp":{"__isSmartRef__":true,"id":14756},"user":"sebastianwoinar","tags":[]},"14756":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"14757":{"submorphs":[{"__isSmartRef__":true,"id":14758}],"scripts":[],"shape":{"__isSmartRef__":true,"id":14775},"id":"C1C9B6E3-C49A-49DC-8F1A-F20E0333536B","eventHandler":{"__isSmartRef__":true,"id":14776},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":14777},"name":"node73","partsBinMetaInfo":{"__isSmartRef__":true,"id":14778},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5575},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":14604},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14781},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(337.0,210.0)"},"14758":{"submorphs":[],"scripts":[],"id":"995A452A-5DC4-4840-BA47-8EC23B42B585","shape":{"__isSmartRef__":true,"id":14759},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":14760},"textChunks":[{"__isSmartRef__":true,"id":14772}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":14774},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":14757},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"14759":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"14760":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":14761},{"__isSmartRef__":true,"id":14763},{"__isSmartRef__":true,"id":14765},{"__isSmartRef__":true,"id":14767},{"__isSmartRef__":true,"id":14769}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":14771},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"14761":{"date":{"__isSmartRef__":true,"id":14762},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"14762":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"14763":{"date":{"__isSmartRef__":true,"id":14764},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"14764":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"14765":{"date":{"__isSmartRef__":true,"id":14766},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"14766":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"14767":{"date":{"__isSmartRef__":true,"id":14768},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"14768":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"14769":{"date":{"__isSmartRef__":true,"id":14770},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"14770":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"14771":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"14772":{"style":{"__isSmartRef__":true,"id":14773},"morph":{"__isSmartRef__":true,"id":14758},"chunkOwner":{"__isSmartRef__":true,"id":14758},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14773":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14774":{"morph":{"__isSmartRef__":true,"id":14758},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14775":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"14776":{"morph":{"__isSmartRef__":true,"id":14757},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14777":{},"14778":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":14779}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"14779":{"date":{"__isSmartRef__":true,"id":14780},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"14780":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"14781":{"buildChildNodes":{"__isSmartRef__":true,"id":14782},"getGameTree":{"__isSmartRef__":true,"id":14786},"getLevel":{"__isSmartRef__":true,"id":14790},"getLevelWeight":{"__isSmartRef__":true,"id":14794},"getWeight":{"__isSmartRef__":true,"id":14798},"setNode":{"__isSmartRef__":true,"id":14802},"setParent":{"__isSmartRef__":true,"id":14806},"getParent":{"__isSmartRef__":true,"id":14810},"deactivate":{"__isSmartRef__":true,"id":14814},"blink":{"__isSmartRef__":true,"id":14818},"ABPreturn":{"__isSmartRef__":true,"id":14822},"ABPstart":{"__isSmartRef__":true,"id":14826},"ABPcontinue":{"__isSmartRef__":true,"id":14830},"ABPshowValue":{"__isSmartRef__":true,"id":14834},"ABPgetValue":{"__isSmartRef__":true,"id":14838},"ABPhasChildNodes":{"__isSmartRef__":true,"id":14842},"onMouseDown":{"__isSmartRef__":true,"id":14846},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":14854},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":14858},"ABPmarkAsDone":{"__isSmartRef__":true,"id":14862},"ABPmarkAsActive":{"__isSmartRef__":true,"id":14866},"getStateMorph":{"__isSmartRef__":true,"id":14870},"showState":{"__isSmartRef__":true,"id":14874},"ABPfailHard":{"__isSmartRef__":true,"id":14878},"markFinalDrawWith":{"__isSmartRef__":true,"id":14882}},"14782":{"varMapping":{"__isSmartRef__":true,"id":14783},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":14784},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14783":{"this":{"__isSmartRef__":true,"id":14757}},"14784":{"timestamp":{"__isSmartRef__":true,"id":14785},"user":"sebastianwoinar","tags":[]},"14785":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"14786":{"varMapping":{"__isSmartRef__":true,"id":14787},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":14788},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14787":{"this":{"__isSmartRef__":true,"id":14757}},"14788":{"timestamp":{"__isSmartRef__":true,"id":14789},"user":"sebastianwoinar","tags":[]},"14789":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14790":{"varMapping":{"__isSmartRef__":true,"id":14791},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":14792},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14791":{"this":{"__isSmartRef__":true,"id":14757}},"14792":{"timestamp":{"__isSmartRef__":true,"id":14793},"user":"sebastianwoinar","tags":[]},"14793":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14794":{"varMapping":{"__isSmartRef__":true,"id":14795},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14796},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14795":{"this":{"__isSmartRef__":true,"id":14757}},"14796":{"timestamp":{"__isSmartRef__":true,"id":14797},"user":"sebastianwoinar","tags":[]},"14797":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14798":{"varMapping":{"__isSmartRef__":true,"id":14799},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":14800},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14799":{"this":{"__isSmartRef__":true,"id":14757}},"14800":{"timestamp":{"__isSmartRef__":true,"id":14801},"user":"sebastianwoinar","tags":[]},"14801":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14802":{"varMapping":{"__isSmartRef__":true,"id":14803},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":14804},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14803":{"this":{"__isSmartRef__":true,"id":14757}},"14804":{"timestamp":{"__isSmartRef__":true,"id":14805},"user":"sebastianwoinar","tags":[]},"14805":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14806":{"varMapping":{"__isSmartRef__":true,"id":14807},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":14808},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14807":{"this":{"__isSmartRef__":true,"id":14757}},"14808":{"timestamp":{"__isSmartRef__":true,"id":14809},"user":"sebastianwoinar","tags":[]},"14809":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14810":{"varMapping":{"__isSmartRef__":true,"id":14811},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":14812},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14811":{"this":{"__isSmartRef__":true,"id":14757}},"14812":{"timestamp":{"__isSmartRef__":true,"id":14813},"user":"sebastianwoinar","tags":[]},"14813":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"14814":{"varMapping":{"__isSmartRef__":true,"id":14815},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":14816},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14815":{"this":{"__isSmartRef__":true,"id":14757}},"14816":{"timestamp":{"__isSmartRef__":true,"id":14817},"user":"sebastianwoinar","tags":[]},"14817":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"14818":{"varMapping":{"__isSmartRef__":true,"id":14819},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":14820},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14819":{"this":{"__isSmartRef__":true,"id":14757}},"14820":{"timestamp":{"__isSmartRef__":true,"id":14821},"user":"sebastianwoinar","tags":[]},"14821":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"14822":{"varMapping":{"__isSmartRef__":true,"id":14823},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":14824},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14823":{"this":{"__isSmartRef__":true,"id":14757}},"14824":{"timestamp":{"__isSmartRef__":true,"id":14825},"user":"sebastianwoinar","tags":[]},"14825":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"14826":{"varMapping":{"__isSmartRef__":true,"id":14827},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":14828},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14827":{"this":{"__isSmartRef__":true,"id":14757}},"14828":{"timestamp":{"__isSmartRef__":true,"id":14829},"user":"sebastianwoinar","tags":[]},"14829":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"14830":{"varMapping":{"__isSmartRef__":true,"id":14831},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":14832},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14831":{"this":{"__isSmartRef__":true,"id":14757}},"14832":{"timestamp":{"__isSmartRef__":true,"id":14833},"user":"sebastianwoinar","tags":[]},"14833":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"14834":{"varMapping":{"__isSmartRef__":true,"id":14835},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":14836},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14835":{"this":{"__isSmartRef__":true,"id":14757}},"14836":{"timestamp":{"__isSmartRef__":true,"id":14837},"user":"sebastianwoinar","tags":[]},"14837":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"14838":{"varMapping":{"__isSmartRef__":true,"id":14839},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":14840},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14839":{"this":{"__isSmartRef__":true,"id":14757}},"14840":{"timestamp":{"__isSmartRef__":true,"id":14841},"user":"sebastianwoinar","tags":[]},"14841":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"14842":{"varMapping":{"__isSmartRef__":true,"id":14843},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":14844},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14843":{"this":{"__isSmartRef__":true,"id":14757}},"14844":{"timestamp":{"__isSmartRef__":true,"id":14845},"user":"sebastianwoinar","tags":[]},"14845":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"14846":{"varMapping":{"__isSmartRef__":true,"id":14847},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":14852},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14847":{"this":{"__isSmartRef__":true,"id":14757},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14848}},"14848":{"$super":{"__isSmartRef__":true,"id":14849}},"14849":{"varMapping":{"__isSmartRef__":true,"id":14850},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":14851},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14850":{"obj":{"__isSmartRef__":true,"id":14757},"name":"onMouseDown"},"14851":{},"14852":{"timestamp":{"__isSmartRef__":true,"id":14853},"user":"sebastianwoinar","tags":[]},"14853":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"14854":{"varMapping":{"__isSmartRef__":true,"id":14855},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":14856},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14855":{"this":{"__isSmartRef__":true,"id":14757}},"14856":{"timestamp":{"__isSmartRef__":true,"id":14857},"user":"sebastianwoinar","tags":[]},"14857":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"14858":{"varMapping":{"__isSmartRef__":true,"id":14859},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":14860},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14859":{"this":{"__isSmartRef__":true,"id":14757}},"14860":{"timestamp":{"__isSmartRef__":true,"id":14861},"user":"sebastianwoinar","tags":[]},"14861":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"14862":{"varMapping":{"__isSmartRef__":true,"id":14863},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":14864},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14863":{"this":{"__isSmartRef__":true,"id":14757}},"14864":{"timestamp":{"__isSmartRef__":true,"id":14865},"user":"sebastianwoinar","tags":[]},"14865":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"14866":{"varMapping":{"__isSmartRef__":true,"id":14867},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":14868},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14867":{"this":{"__isSmartRef__":true,"id":14757}},"14868":{"timestamp":{"__isSmartRef__":true,"id":14869},"user":"sebastianwoinar","tags":[]},"14869":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"14870":{"varMapping":{"__isSmartRef__":true,"id":14871},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":14872},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14871":{"this":{"__isSmartRef__":true,"id":14757}},"14872":{"timestamp":{"__isSmartRef__":true,"id":14873},"user":"sebastianwoinar","tags":[]},"14873":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"14874":{"varMapping":{"__isSmartRef__":true,"id":14875},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14876},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14875":{"this":{"__isSmartRef__":true,"id":14757}},"14876":{"timestamp":{"__isSmartRef__":true,"id":14877},"user":"sebastianwoinar","tags":[]},"14877":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"14878":{"varMapping":{"__isSmartRef__":true,"id":14879},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":14880},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14879":{"this":{"__isSmartRef__":true,"id":14757}},"14880":{"timestamp":{"__isSmartRef__":true,"id":14881},"user":"sebastianwoinar","tags":[]},"14881":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"14882":{"varMapping":{"__isSmartRef__":true,"id":14883},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14884},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14883":{"this":{"__isSmartRef__":true,"id":14757}},"14884":{"timestamp":{"__isSmartRef__":true,"id":14885},"user":"sebastianwoinar","tags":[]},"14885":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"14886":{"submorphs":[{"__isSmartRef__":true,"id":14887}],"scripts":[],"shape":{"__isSmartRef__":true,"id":14904},"id":"8952973E-5D5E-41EB-88C9-F0C0CC2E2276","eventHandler":{"__isSmartRef__":true,"id":14905},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":14906},"name":"node74","partsBinMetaInfo":{"__isSmartRef__":true,"id":14907},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5577},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":14604},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14910},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(342.2,210.0)"},"14887":{"submorphs":[],"scripts":[],"id":"3D0427D5-86D3-4DBA-A86F-8C4B484AACA9","shape":{"__isSmartRef__":true,"id":14888},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":14889},"textChunks":[{"__isSmartRef__":true,"id":14901}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":14903},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":14886},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"14888":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"14889":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":14890},{"__isSmartRef__":true,"id":14892},{"__isSmartRef__":true,"id":14894},{"__isSmartRef__":true,"id":14896},{"__isSmartRef__":true,"id":14898}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":14900},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"14890":{"date":{"__isSmartRef__":true,"id":14891},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"14891":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"14892":{"date":{"__isSmartRef__":true,"id":14893},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"14893":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"14894":{"date":{"__isSmartRef__":true,"id":14895},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"14895":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"14896":{"date":{"__isSmartRef__":true,"id":14897},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"14897":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"14898":{"date":{"__isSmartRef__":true,"id":14899},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"14899":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"14900":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"14901":{"style":{"__isSmartRef__":true,"id":14902},"morph":{"__isSmartRef__":true,"id":14887},"chunkOwner":{"__isSmartRef__":true,"id":14887},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14902":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14903":{"morph":{"__isSmartRef__":true,"id":14887},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14904":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"14905":{"morph":{"__isSmartRef__":true,"id":14886},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14906":{},"14907":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":14908}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"14908":{"date":{"__isSmartRef__":true,"id":14909},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"14909":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"14910":{"buildChildNodes":{"__isSmartRef__":true,"id":14911},"getGameTree":{"__isSmartRef__":true,"id":14915},"getLevel":{"__isSmartRef__":true,"id":14919},"getLevelWeight":{"__isSmartRef__":true,"id":14923},"getWeight":{"__isSmartRef__":true,"id":14927},"setNode":{"__isSmartRef__":true,"id":14931},"setParent":{"__isSmartRef__":true,"id":14935},"getParent":{"__isSmartRef__":true,"id":14939},"deactivate":{"__isSmartRef__":true,"id":14943},"blink":{"__isSmartRef__":true,"id":14947},"ABPreturn":{"__isSmartRef__":true,"id":14951},"ABPstart":{"__isSmartRef__":true,"id":14955},"ABPcontinue":{"__isSmartRef__":true,"id":14959},"ABPshowValue":{"__isSmartRef__":true,"id":14963},"ABPgetValue":{"__isSmartRef__":true,"id":14967},"ABPhasChildNodes":{"__isSmartRef__":true,"id":14971},"onMouseDown":{"__isSmartRef__":true,"id":14975},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":14983},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":14987},"ABPmarkAsDone":{"__isSmartRef__":true,"id":14991},"ABPmarkAsActive":{"__isSmartRef__":true,"id":14995},"getStateMorph":{"__isSmartRef__":true,"id":14999},"showState":{"__isSmartRef__":true,"id":15003},"ABPfailHard":{"__isSmartRef__":true,"id":15007},"markFinalDrawWith":{"__isSmartRef__":true,"id":15011}},"14911":{"varMapping":{"__isSmartRef__":true,"id":14912},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":14913},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14912":{"this":{"__isSmartRef__":true,"id":14886}},"14913":{"timestamp":{"__isSmartRef__":true,"id":14914},"user":"sebastianwoinar","tags":[]},"14914":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"14915":{"varMapping":{"__isSmartRef__":true,"id":14916},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":14917},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14916":{"this":{"__isSmartRef__":true,"id":14886}},"14917":{"timestamp":{"__isSmartRef__":true,"id":14918},"user":"sebastianwoinar","tags":[]},"14918":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14919":{"varMapping":{"__isSmartRef__":true,"id":14920},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":14921},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14920":{"this":{"__isSmartRef__":true,"id":14886}},"14921":{"timestamp":{"__isSmartRef__":true,"id":14922},"user":"sebastianwoinar","tags":[]},"14922":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14923":{"varMapping":{"__isSmartRef__":true,"id":14924},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14925},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14924":{"this":{"__isSmartRef__":true,"id":14886}},"14925":{"timestamp":{"__isSmartRef__":true,"id":14926},"user":"sebastianwoinar","tags":[]},"14926":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14927":{"varMapping":{"__isSmartRef__":true,"id":14928},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":14929},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14928":{"this":{"__isSmartRef__":true,"id":14886}},"14929":{"timestamp":{"__isSmartRef__":true,"id":14930},"user":"sebastianwoinar","tags":[]},"14930":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14931":{"varMapping":{"__isSmartRef__":true,"id":14932},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":14933},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14932":{"this":{"__isSmartRef__":true,"id":14886}},"14933":{"timestamp":{"__isSmartRef__":true,"id":14934},"user":"sebastianwoinar","tags":[]},"14934":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14935":{"varMapping":{"__isSmartRef__":true,"id":14936},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":14937},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14936":{"this":{"__isSmartRef__":true,"id":14886}},"14937":{"timestamp":{"__isSmartRef__":true,"id":14938},"user":"sebastianwoinar","tags":[]},"14938":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"14939":{"varMapping":{"__isSmartRef__":true,"id":14940},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":14941},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14940":{"this":{"__isSmartRef__":true,"id":14886}},"14941":{"timestamp":{"__isSmartRef__":true,"id":14942},"user":"sebastianwoinar","tags":[]},"14942":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"14943":{"varMapping":{"__isSmartRef__":true,"id":14944},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":14945},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14944":{"this":{"__isSmartRef__":true,"id":14886}},"14945":{"timestamp":{"__isSmartRef__":true,"id":14946},"user":"sebastianwoinar","tags":[]},"14946":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"14947":{"varMapping":{"__isSmartRef__":true,"id":14948},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":14949},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14948":{"this":{"__isSmartRef__":true,"id":14886}},"14949":{"timestamp":{"__isSmartRef__":true,"id":14950},"user":"sebastianwoinar","tags":[]},"14950":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"14951":{"varMapping":{"__isSmartRef__":true,"id":14952},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":14953},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14952":{"this":{"__isSmartRef__":true,"id":14886}},"14953":{"timestamp":{"__isSmartRef__":true,"id":14954},"user":"sebastianwoinar","tags":[]},"14954":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"14955":{"varMapping":{"__isSmartRef__":true,"id":14956},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":14957},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14956":{"this":{"__isSmartRef__":true,"id":14886}},"14957":{"timestamp":{"__isSmartRef__":true,"id":14958},"user":"sebastianwoinar","tags":[]},"14958":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"14959":{"varMapping":{"__isSmartRef__":true,"id":14960},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":14961},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14960":{"this":{"__isSmartRef__":true,"id":14886}},"14961":{"timestamp":{"__isSmartRef__":true,"id":14962},"user":"sebastianwoinar","tags":[]},"14962":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"14963":{"varMapping":{"__isSmartRef__":true,"id":14964},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":14965},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14964":{"this":{"__isSmartRef__":true,"id":14886}},"14965":{"timestamp":{"__isSmartRef__":true,"id":14966},"user":"sebastianwoinar","tags":[]},"14966":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"14967":{"varMapping":{"__isSmartRef__":true,"id":14968},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":14969},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14968":{"this":{"__isSmartRef__":true,"id":14886}},"14969":{"timestamp":{"__isSmartRef__":true,"id":14970},"user":"sebastianwoinar","tags":[]},"14970":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"14971":{"varMapping":{"__isSmartRef__":true,"id":14972},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":14973},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14972":{"this":{"__isSmartRef__":true,"id":14886}},"14973":{"timestamp":{"__isSmartRef__":true,"id":14974},"user":"sebastianwoinar","tags":[]},"14974":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"14975":{"varMapping":{"__isSmartRef__":true,"id":14976},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":14981},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14976":{"this":{"__isSmartRef__":true,"id":14886},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14977}},"14977":{"$super":{"__isSmartRef__":true,"id":14978}},"14978":{"varMapping":{"__isSmartRef__":true,"id":14979},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":14980},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14979":{"obj":{"__isSmartRef__":true,"id":14886},"name":"onMouseDown"},"14980":{},"14981":{"timestamp":{"__isSmartRef__":true,"id":14982},"user":"sebastianwoinar","tags":[]},"14982":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"14983":{"varMapping":{"__isSmartRef__":true,"id":14984},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":14985},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14984":{"this":{"__isSmartRef__":true,"id":14886}},"14985":{"timestamp":{"__isSmartRef__":true,"id":14986},"user":"sebastianwoinar","tags":[]},"14986":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"14987":{"varMapping":{"__isSmartRef__":true,"id":14988},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":14989},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14988":{"this":{"__isSmartRef__":true,"id":14886}},"14989":{"timestamp":{"__isSmartRef__":true,"id":14990},"user":"sebastianwoinar","tags":[]},"14990":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"14991":{"varMapping":{"__isSmartRef__":true,"id":14992},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":14993},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14992":{"this":{"__isSmartRef__":true,"id":14886}},"14993":{"timestamp":{"__isSmartRef__":true,"id":14994},"user":"sebastianwoinar","tags":[]},"14994":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"14995":{"varMapping":{"__isSmartRef__":true,"id":14996},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":14997},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14996":{"this":{"__isSmartRef__":true,"id":14886}},"14997":{"timestamp":{"__isSmartRef__":true,"id":14998},"user":"sebastianwoinar","tags":[]},"14998":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"14999":{"varMapping":{"__isSmartRef__":true,"id":15000},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":15001},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15000":{"this":{"__isSmartRef__":true,"id":14886}},"15001":{"timestamp":{"__isSmartRef__":true,"id":15002},"user":"sebastianwoinar","tags":[]},"15002":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"15003":{"varMapping":{"__isSmartRef__":true,"id":15004},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15005},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15004":{"this":{"__isSmartRef__":true,"id":14886}},"15005":{"timestamp":{"__isSmartRef__":true,"id":15006},"user":"sebastianwoinar","tags":[]},"15006":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"15007":{"varMapping":{"__isSmartRef__":true,"id":15008},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":15009},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15008":{"this":{"__isSmartRef__":true,"id":14886}},"15009":{"timestamp":{"__isSmartRef__":true,"id":15010},"user":"sebastianwoinar","tags":[]},"15010":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"15011":{"varMapping":{"__isSmartRef__":true,"id":15012},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15013},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15012":{"this":{"__isSmartRef__":true,"id":14886}},"15013":{"timestamp":{"__isSmartRef__":true,"id":15014},"user":"sebastianwoinar","tags":[]},"15014":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"15015":{"submorphs":[{"__isSmartRef__":true,"id":15016}],"scripts":[],"shape":{"__isSmartRef__":true,"id":15033},"id":"F2488F5E-951F-4CAA-B9DA-07AA9C2FE48F","eventHandler":{"__isSmartRef__":true,"id":15034},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":15035},"name":"node75","partsBinMetaInfo":{"__isSmartRef__":true,"id":15036},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5579},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":14604},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15039},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(347.4,210.0)"},"15016":{"submorphs":[],"scripts":[],"id":"05E6C1A8-C546-449B-B8DD-F3045F335CCD","shape":{"__isSmartRef__":true,"id":15017},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":15018},"textChunks":[{"__isSmartRef__":true,"id":15030}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":15032},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":15015},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"15017":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"15018":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":15019},{"__isSmartRef__":true,"id":15021},{"__isSmartRef__":true,"id":15023},{"__isSmartRef__":true,"id":15025},{"__isSmartRef__":true,"id":15027}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":15029},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15019":{"date":{"__isSmartRef__":true,"id":15020},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"15020":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"15021":{"date":{"__isSmartRef__":true,"id":15022},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"15022":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"15023":{"date":{"__isSmartRef__":true,"id":15024},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"15024":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"15025":{"date":{"__isSmartRef__":true,"id":15026},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"15026":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"15027":{"date":{"__isSmartRef__":true,"id":15028},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"15028":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"15029":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"15030":{"style":{"__isSmartRef__":true,"id":15031},"morph":{"__isSmartRef__":true,"id":15016},"chunkOwner":{"__isSmartRef__":true,"id":15016},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15031":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15032":{"morph":{"__isSmartRef__":true,"id":15016},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15033":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"15034":{"morph":{"__isSmartRef__":true,"id":15015},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15035":{},"15036":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":15037}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15037":{"date":{"__isSmartRef__":true,"id":15038},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"15038":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"15039":{"buildChildNodes":{"__isSmartRef__":true,"id":15040},"getGameTree":{"__isSmartRef__":true,"id":15044},"getLevel":{"__isSmartRef__":true,"id":15048},"getLevelWeight":{"__isSmartRef__":true,"id":15052},"getWeight":{"__isSmartRef__":true,"id":15056},"setNode":{"__isSmartRef__":true,"id":15060},"setParent":{"__isSmartRef__":true,"id":15064},"getParent":{"__isSmartRef__":true,"id":15068},"deactivate":{"__isSmartRef__":true,"id":15072},"blink":{"__isSmartRef__":true,"id":15076},"ABPreturn":{"__isSmartRef__":true,"id":15080},"ABPstart":{"__isSmartRef__":true,"id":15084},"ABPcontinue":{"__isSmartRef__":true,"id":15088},"ABPshowValue":{"__isSmartRef__":true,"id":15092},"ABPgetValue":{"__isSmartRef__":true,"id":15096},"ABPhasChildNodes":{"__isSmartRef__":true,"id":15100},"onMouseDown":{"__isSmartRef__":true,"id":15104},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":15112},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":15116},"ABPmarkAsDone":{"__isSmartRef__":true,"id":15120},"ABPmarkAsActive":{"__isSmartRef__":true,"id":15124},"getStateMorph":{"__isSmartRef__":true,"id":15128},"showState":{"__isSmartRef__":true,"id":15132},"ABPfailHard":{"__isSmartRef__":true,"id":15136},"markFinalDrawWith":{"__isSmartRef__":true,"id":15140}},"15040":{"varMapping":{"__isSmartRef__":true,"id":15041},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":15042},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15041":{"this":{"__isSmartRef__":true,"id":15015}},"15042":{"timestamp":{"__isSmartRef__":true,"id":15043},"user":"sebastianwoinar","tags":[]},"15043":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"15044":{"varMapping":{"__isSmartRef__":true,"id":15045},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":15046},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15045":{"this":{"__isSmartRef__":true,"id":15015}},"15046":{"timestamp":{"__isSmartRef__":true,"id":15047},"user":"sebastianwoinar","tags":[]},"15047":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15048":{"varMapping":{"__isSmartRef__":true,"id":15049},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":15050},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15049":{"this":{"__isSmartRef__":true,"id":15015}},"15050":{"timestamp":{"__isSmartRef__":true,"id":15051},"user":"sebastianwoinar","tags":[]},"15051":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15052":{"varMapping":{"__isSmartRef__":true,"id":15053},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15054},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15053":{"this":{"__isSmartRef__":true,"id":15015}},"15054":{"timestamp":{"__isSmartRef__":true,"id":15055},"user":"sebastianwoinar","tags":[]},"15055":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15056":{"varMapping":{"__isSmartRef__":true,"id":15057},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":15058},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15057":{"this":{"__isSmartRef__":true,"id":15015}},"15058":{"timestamp":{"__isSmartRef__":true,"id":15059},"user":"sebastianwoinar","tags":[]},"15059":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15060":{"varMapping":{"__isSmartRef__":true,"id":15061},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":15062},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15061":{"this":{"__isSmartRef__":true,"id":15015}},"15062":{"timestamp":{"__isSmartRef__":true,"id":15063},"user":"sebastianwoinar","tags":[]},"15063":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15064":{"varMapping":{"__isSmartRef__":true,"id":15065},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":15066},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15065":{"this":{"__isSmartRef__":true,"id":15015}},"15066":{"timestamp":{"__isSmartRef__":true,"id":15067},"user":"sebastianwoinar","tags":[]},"15067":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15068":{"varMapping":{"__isSmartRef__":true,"id":15069},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":15070},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15069":{"this":{"__isSmartRef__":true,"id":15015}},"15070":{"timestamp":{"__isSmartRef__":true,"id":15071},"user":"sebastianwoinar","tags":[]},"15071":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"15072":{"varMapping":{"__isSmartRef__":true,"id":15073},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":15074},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15073":{"this":{"__isSmartRef__":true,"id":15015}},"15074":{"timestamp":{"__isSmartRef__":true,"id":15075},"user":"sebastianwoinar","tags":[]},"15075":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"15076":{"varMapping":{"__isSmartRef__":true,"id":15077},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":15078},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15077":{"this":{"__isSmartRef__":true,"id":15015}},"15078":{"timestamp":{"__isSmartRef__":true,"id":15079},"user":"sebastianwoinar","tags":[]},"15079":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"15080":{"varMapping":{"__isSmartRef__":true,"id":15081},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":15082},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15081":{"this":{"__isSmartRef__":true,"id":15015}},"15082":{"timestamp":{"__isSmartRef__":true,"id":15083},"user":"sebastianwoinar","tags":[]},"15083":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"15084":{"varMapping":{"__isSmartRef__":true,"id":15085},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":15086},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15085":{"this":{"__isSmartRef__":true,"id":15015}},"15086":{"timestamp":{"__isSmartRef__":true,"id":15087},"user":"sebastianwoinar","tags":[]},"15087":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"15088":{"varMapping":{"__isSmartRef__":true,"id":15089},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":15090},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15089":{"this":{"__isSmartRef__":true,"id":15015}},"15090":{"timestamp":{"__isSmartRef__":true,"id":15091},"user":"sebastianwoinar","tags":[]},"15091":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"15092":{"varMapping":{"__isSmartRef__":true,"id":15093},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":15094},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15093":{"this":{"__isSmartRef__":true,"id":15015}},"15094":{"timestamp":{"__isSmartRef__":true,"id":15095},"user":"sebastianwoinar","tags":[]},"15095":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"15096":{"varMapping":{"__isSmartRef__":true,"id":15097},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":15098},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15097":{"this":{"__isSmartRef__":true,"id":15015}},"15098":{"timestamp":{"__isSmartRef__":true,"id":15099},"user":"sebastianwoinar","tags":[]},"15099":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"15100":{"varMapping":{"__isSmartRef__":true,"id":15101},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":15102},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15101":{"this":{"__isSmartRef__":true,"id":15015}},"15102":{"timestamp":{"__isSmartRef__":true,"id":15103},"user":"sebastianwoinar","tags":[]},"15103":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"15104":{"varMapping":{"__isSmartRef__":true,"id":15105},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":15110},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15105":{"this":{"__isSmartRef__":true,"id":15015},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15106}},"15106":{"$super":{"__isSmartRef__":true,"id":15107}},"15107":{"varMapping":{"__isSmartRef__":true,"id":15108},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":15109},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15108":{"obj":{"__isSmartRef__":true,"id":15015},"name":"onMouseDown"},"15109":{},"15110":{"timestamp":{"__isSmartRef__":true,"id":15111},"user":"sebastianwoinar","tags":[]},"15111":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"15112":{"varMapping":{"__isSmartRef__":true,"id":15113},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":15114},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15113":{"this":{"__isSmartRef__":true,"id":15015}},"15114":{"timestamp":{"__isSmartRef__":true,"id":15115},"user":"sebastianwoinar","tags":[]},"15115":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"15116":{"varMapping":{"__isSmartRef__":true,"id":15117},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":15118},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15117":{"this":{"__isSmartRef__":true,"id":15015}},"15118":{"timestamp":{"__isSmartRef__":true,"id":15119},"user":"sebastianwoinar","tags":[]},"15119":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"15120":{"varMapping":{"__isSmartRef__":true,"id":15121},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":15122},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15121":{"this":{"__isSmartRef__":true,"id":15015}},"15122":{"timestamp":{"__isSmartRef__":true,"id":15123},"user":"sebastianwoinar","tags":[]},"15123":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"15124":{"varMapping":{"__isSmartRef__":true,"id":15125},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":15126},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15125":{"this":{"__isSmartRef__":true,"id":15015}},"15126":{"timestamp":{"__isSmartRef__":true,"id":15127},"user":"sebastianwoinar","tags":[]},"15127":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"15128":{"varMapping":{"__isSmartRef__":true,"id":15129},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":15130},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15129":{"this":{"__isSmartRef__":true,"id":15015}},"15130":{"timestamp":{"__isSmartRef__":true,"id":15131},"user":"sebastianwoinar","tags":[]},"15131":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"15132":{"varMapping":{"__isSmartRef__":true,"id":15133},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15134},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15133":{"this":{"__isSmartRef__":true,"id":15015}},"15134":{"timestamp":{"__isSmartRef__":true,"id":15135},"user":"sebastianwoinar","tags":[]},"15135":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"15136":{"varMapping":{"__isSmartRef__":true,"id":15137},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":15138},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15137":{"this":{"__isSmartRef__":true,"id":15015}},"15138":{"timestamp":{"__isSmartRef__":true,"id":15139},"user":"sebastianwoinar","tags":[]},"15139":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"15140":{"varMapping":{"__isSmartRef__":true,"id":15141},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15142},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15141":{"this":{"__isSmartRef__":true,"id":15015}},"15142":{"timestamp":{"__isSmartRef__":true,"id":15143},"user":"sebastianwoinar","tags":[]},"15143":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"15144":{"submorphs":[{"__isSmartRef__":true,"id":15145}],"scripts":[],"shape":{"__isSmartRef__":true,"id":15162},"id":"8A0821E1-F517-4682-922B-6E046C5C725A","eventHandler":{"__isSmartRef__":true,"id":15163},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":15164},"name":"node76","partsBinMetaInfo":{"__isSmartRef__":true,"id":15165},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5581},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":14604},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15168},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(352.6,210.0)"},"15145":{"submorphs":[],"scripts":[],"id":"C5D43F74-AC1D-48A0-8DC8-5A4FA64D5DDF","shape":{"__isSmartRef__":true,"id":15146},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":15147},"textChunks":[{"__isSmartRef__":true,"id":15159}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":15161},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":15144},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"15146":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"15147":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":15148},{"__isSmartRef__":true,"id":15150},{"__isSmartRef__":true,"id":15152},{"__isSmartRef__":true,"id":15154},{"__isSmartRef__":true,"id":15156}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":15158},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15148":{"date":{"__isSmartRef__":true,"id":15149},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"15149":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"15150":{"date":{"__isSmartRef__":true,"id":15151},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"15151":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"15152":{"date":{"__isSmartRef__":true,"id":15153},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"15153":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"15154":{"date":{"__isSmartRef__":true,"id":15155},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"15155":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"15156":{"date":{"__isSmartRef__":true,"id":15157},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"15157":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"15158":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"15159":{"style":{"__isSmartRef__":true,"id":15160},"morph":{"__isSmartRef__":true,"id":15145},"chunkOwner":{"__isSmartRef__":true,"id":15145},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15160":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15161":{"morph":{"__isSmartRef__":true,"id":15145},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15162":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"15163":{"morph":{"__isSmartRef__":true,"id":15144},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15164":{},"15165":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":15166}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15166":{"date":{"__isSmartRef__":true,"id":15167},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"15167":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"15168":{"buildChildNodes":{"__isSmartRef__":true,"id":15169},"getGameTree":{"__isSmartRef__":true,"id":15173},"getLevel":{"__isSmartRef__":true,"id":15177},"getLevelWeight":{"__isSmartRef__":true,"id":15181},"getWeight":{"__isSmartRef__":true,"id":15185},"setNode":{"__isSmartRef__":true,"id":15189},"setParent":{"__isSmartRef__":true,"id":15193},"getParent":{"__isSmartRef__":true,"id":15197},"deactivate":{"__isSmartRef__":true,"id":15201},"blink":{"__isSmartRef__":true,"id":15205},"ABPreturn":{"__isSmartRef__":true,"id":15209},"ABPstart":{"__isSmartRef__":true,"id":15213},"ABPcontinue":{"__isSmartRef__":true,"id":15217},"ABPshowValue":{"__isSmartRef__":true,"id":15221},"ABPgetValue":{"__isSmartRef__":true,"id":15225},"ABPhasChildNodes":{"__isSmartRef__":true,"id":15229},"onMouseDown":{"__isSmartRef__":true,"id":15233},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":15241},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":15245},"ABPmarkAsDone":{"__isSmartRef__":true,"id":15249},"ABPmarkAsActive":{"__isSmartRef__":true,"id":15253},"getStateMorph":{"__isSmartRef__":true,"id":15257},"showState":{"__isSmartRef__":true,"id":15261},"ABPfailHard":{"__isSmartRef__":true,"id":15265},"markFinalDrawWith":{"__isSmartRef__":true,"id":15269}},"15169":{"varMapping":{"__isSmartRef__":true,"id":15170},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":15171},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15170":{"this":{"__isSmartRef__":true,"id":15144}},"15171":{"timestamp":{"__isSmartRef__":true,"id":15172},"user":"sebastianwoinar","tags":[]},"15172":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"15173":{"varMapping":{"__isSmartRef__":true,"id":15174},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":15175},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15174":{"this":{"__isSmartRef__":true,"id":15144}},"15175":{"timestamp":{"__isSmartRef__":true,"id":15176},"user":"sebastianwoinar","tags":[]},"15176":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15177":{"varMapping":{"__isSmartRef__":true,"id":15178},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":15179},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15178":{"this":{"__isSmartRef__":true,"id":15144}},"15179":{"timestamp":{"__isSmartRef__":true,"id":15180},"user":"sebastianwoinar","tags":[]},"15180":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15181":{"varMapping":{"__isSmartRef__":true,"id":15182},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15183},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15182":{"this":{"__isSmartRef__":true,"id":15144}},"15183":{"timestamp":{"__isSmartRef__":true,"id":15184},"user":"sebastianwoinar","tags":[]},"15184":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15185":{"varMapping":{"__isSmartRef__":true,"id":15186},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":15187},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15186":{"this":{"__isSmartRef__":true,"id":15144}},"15187":{"timestamp":{"__isSmartRef__":true,"id":15188},"user":"sebastianwoinar","tags":[]},"15188":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15189":{"varMapping":{"__isSmartRef__":true,"id":15190},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":15191},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15190":{"this":{"__isSmartRef__":true,"id":15144}},"15191":{"timestamp":{"__isSmartRef__":true,"id":15192},"user":"sebastianwoinar","tags":[]},"15192":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15193":{"varMapping":{"__isSmartRef__":true,"id":15194},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":15195},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15194":{"this":{"__isSmartRef__":true,"id":15144}},"15195":{"timestamp":{"__isSmartRef__":true,"id":15196},"user":"sebastianwoinar","tags":[]},"15196":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15197":{"varMapping":{"__isSmartRef__":true,"id":15198},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":15199},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15198":{"this":{"__isSmartRef__":true,"id":15144}},"15199":{"timestamp":{"__isSmartRef__":true,"id":15200},"user":"sebastianwoinar","tags":[]},"15200":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"15201":{"varMapping":{"__isSmartRef__":true,"id":15202},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":15203},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15202":{"this":{"__isSmartRef__":true,"id":15144}},"15203":{"timestamp":{"__isSmartRef__":true,"id":15204},"user":"sebastianwoinar","tags":[]},"15204":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"15205":{"varMapping":{"__isSmartRef__":true,"id":15206},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":15207},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15206":{"this":{"__isSmartRef__":true,"id":15144}},"15207":{"timestamp":{"__isSmartRef__":true,"id":15208},"user":"sebastianwoinar","tags":[]},"15208":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"15209":{"varMapping":{"__isSmartRef__":true,"id":15210},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":15211},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15210":{"this":{"__isSmartRef__":true,"id":15144}},"15211":{"timestamp":{"__isSmartRef__":true,"id":15212},"user":"sebastianwoinar","tags":[]},"15212":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"15213":{"varMapping":{"__isSmartRef__":true,"id":15214},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":15215},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15214":{"this":{"__isSmartRef__":true,"id":15144}},"15215":{"timestamp":{"__isSmartRef__":true,"id":15216},"user":"sebastianwoinar","tags":[]},"15216":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"15217":{"varMapping":{"__isSmartRef__":true,"id":15218},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":15219},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15218":{"this":{"__isSmartRef__":true,"id":15144}},"15219":{"timestamp":{"__isSmartRef__":true,"id":15220},"user":"sebastianwoinar","tags":[]},"15220":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"15221":{"varMapping":{"__isSmartRef__":true,"id":15222},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":15223},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15222":{"this":{"__isSmartRef__":true,"id":15144}},"15223":{"timestamp":{"__isSmartRef__":true,"id":15224},"user":"sebastianwoinar","tags":[]},"15224":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"15225":{"varMapping":{"__isSmartRef__":true,"id":15226},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":15227},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15226":{"this":{"__isSmartRef__":true,"id":15144}},"15227":{"timestamp":{"__isSmartRef__":true,"id":15228},"user":"sebastianwoinar","tags":[]},"15228":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"15229":{"varMapping":{"__isSmartRef__":true,"id":15230},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":15231},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15230":{"this":{"__isSmartRef__":true,"id":15144}},"15231":{"timestamp":{"__isSmartRef__":true,"id":15232},"user":"sebastianwoinar","tags":[]},"15232":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"15233":{"varMapping":{"__isSmartRef__":true,"id":15234},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":15239},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15234":{"this":{"__isSmartRef__":true,"id":15144},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15235}},"15235":{"$super":{"__isSmartRef__":true,"id":15236}},"15236":{"varMapping":{"__isSmartRef__":true,"id":15237},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":15238},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15237":{"obj":{"__isSmartRef__":true,"id":15144},"name":"onMouseDown"},"15238":{},"15239":{"timestamp":{"__isSmartRef__":true,"id":15240},"user":"sebastianwoinar","tags":[]},"15240":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"15241":{"varMapping":{"__isSmartRef__":true,"id":15242},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":15243},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15242":{"this":{"__isSmartRef__":true,"id":15144}},"15243":{"timestamp":{"__isSmartRef__":true,"id":15244},"user":"sebastianwoinar","tags":[]},"15244":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"15245":{"varMapping":{"__isSmartRef__":true,"id":15246},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":15247},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15246":{"this":{"__isSmartRef__":true,"id":15144}},"15247":{"timestamp":{"__isSmartRef__":true,"id":15248},"user":"sebastianwoinar","tags":[]},"15248":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"15249":{"varMapping":{"__isSmartRef__":true,"id":15250},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":15251},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15250":{"this":{"__isSmartRef__":true,"id":15144}},"15251":{"timestamp":{"__isSmartRef__":true,"id":15252},"user":"sebastianwoinar","tags":[]},"15252":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"15253":{"varMapping":{"__isSmartRef__":true,"id":15254},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":15255},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15254":{"this":{"__isSmartRef__":true,"id":15144}},"15255":{"timestamp":{"__isSmartRef__":true,"id":15256},"user":"sebastianwoinar","tags":[]},"15256":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"15257":{"varMapping":{"__isSmartRef__":true,"id":15258},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":15259},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15258":{"this":{"__isSmartRef__":true,"id":15144}},"15259":{"timestamp":{"__isSmartRef__":true,"id":15260},"user":"sebastianwoinar","tags":[]},"15260":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"15261":{"varMapping":{"__isSmartRef__":true,"id":15262},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15263},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15262":{"this":{"__isSmartRef__":true,"id":15144}},"15263":{"timestamp":{"__isSmartRef__":true,"id":15264},"user":"sebastianwoinar","tags":[]},"15264":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"15265":{"varMapping":{"__isSmartRef__":true,"id":15266},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":15267},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15266":{"this":{"__isSmartRef__":true,"id":15144}},"15267":{"timestamp":{"__isSmartRef__":true,"id":15268},"user":"sebastianwoinar","tags":[]},"15268":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"15269":{"varMapping":{"__isSmartRef__":true,"id":15270},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15271},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15270":{"this":{"__isSmartRef__":true,"id":15144}},"15271":{"timestamp":{"__isSmartRef__":true,"id":15272},"user":"sebastianwoinar","tags":[]},"15272":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"15273":{"submorphs":[{"__isSmartRef__":true,"id":15274}],"scripts":[],"shape":{"__isSmartRef__":true,"id":15291},"id":"3FE65B01-B193-428F-99F1-5A3DD18D9151","eventHandler":{"__isSmartRef__":true,"id":15292},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":15293},"name":"node77","partsBinMetaInfo":{"__isSmartRef__":true,"id":15294},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5583},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":14604},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15297},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(357.7,210.0)"},"15274":{"submorphs":[],"scripts":[],"id":"1B7F8B32-C449-4094-9AC5-DD7B3EC6704F","shape":{"__isSmartRef__":true,"id":15275},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":15276},"textChunks":[{"__isSmartRef__":true,"id":15288}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":15290},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":15273},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"15275":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"15276":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":15277},{"__isSmartRef__":true,"id":15279},{"__isSmartRef__":true,"id":15281},{"__isSmartRef__":true,"id":15283},{"__isSmartRef__":true,"id":15285}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":15287},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15277":{"date":{"__isSmartRef__":true,"id":15278},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"15278":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"15279":{"date":{"__isSmartRef__":true,"id":15280},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"15280":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"15281":{"date":{"__isSmartRef__":true,"id":15282},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"15282":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"15283":{"date":{"__isSmartRef__":true,"id":15284},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"15284":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"15285":{"date":{"__isSmartRef__":true,"id":15286},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"15286":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"15287":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"15288":{"style":{"__isSmartRef__":true,"id":15289},"morph":{"__isSmartRef__":true,"id":15274},"chunkOwner":{"__isSmartRef__":true,"id":15274},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15289":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15290":{"morph":{"__isSmartRef__":true,"id":15274},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15291":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"15292":{"morph":{"__isSmartRef__":true,"id":15273},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15293":{},"15294":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":15295}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15295":{"date":{"__isSmartRef__":true,"id":15296},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"15296":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"15297":{"buildChildNodes":{"__isSmartRef__":true,"id":15298},"getGameTree":{"__isSmartRef__":true,"id":15302},"getLevel":{"__isSmartRef__":true,"id":15306},"getLevelWeight":{"__isSmartRef__":true,"id":15310},"getWeight":{"__isSmartRef__":true,"id":15314},"setNode":{"__isSmartRef__":true,"id":15318},"setParent":{"__isSmartRef__":true,"id":15322},"getParent":{"__isSmartRef__":true,"id":15326},"deactivate":{"__isSmartRef__":true,"id":15330},"blink":{"__isSmartRef__":true,"id":15334},"ABPreturn":{"__isSmartRef__":true,"id":15338},"ABPstart":{"__isSmartRef__":true,"id":15342},"ABPcontinue":{"__isSmartRef__":true,"id":15346},"ABPshowValue":{"__isSmartRef__":true,"id":15350},"ABPgetValue":{"__isSmartRef__":true,"id":15354},"ABPhasChildNodes":{"__isSmartRef__":true,"id":15358},"onMouseDown":{"__isSmartRef__":true,"id":15362},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":15370},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":15374},"ABPmarkAsDone":{"__isSmartRef__":true,"id":15378},"ABPmarkAsActive":{"__isSmartRef__":true,"id":15382},"getStateMorph":{"__isSmartRef__":true,"id":15386},"showState":{"__isSmartRef__":true,"id":15390},"ABPfailHard":{"__isSmartRef__":true,"id":15394},"markFinalDrawWith":{"__isSmartRef__":true,"id":15398}},"15298":{"varMapping":{"__isSmartRef__":true,"id":15299},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":15300},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15299":{"this":{"__isSmartRef__":true,"id":15273}},"15300":{"timestamp":{"__isSmartRef__":true,"id":15301},"user":"sebastianwoinar","tags":[]},"15301":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"15302":{"varMapping":{"__isSmartRef__":true,"id":15303},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":15304},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15303":{"this":{"__isSmartRef__":true,"id":15273}},"15304":{"timestamp":{"__isSmartRef__":true,"id":15305},"user":"sebastianwoinar","tags":[]},"15305":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15306":{"varMapping":{"__isSmartRef__":true,"id":15307},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":15308},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15307":{"this":{"__isSmartRef__":true,"id":15273}},"15308":{"timestamp":{"__isSmartRef__":true,"id":15309},"user":"sebastianwoinar","tags":[]},"15309":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15310":{"varMapping":{"__isSmartRef__":true,"id":15311},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15312},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15311":{"this":{"__isSmartRef__":true,"id":15273}},"15312":{"timestamp":{"__isSmartRef__":true,"id":15313},"user":"sebastianwoinar","tags":[]},"15313":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15314":{"varMapping":{"__isSmartRef__":true,"id":15315},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":15316},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15315":{"this":{"__isSmartRef__":true,"id":15273}},"15316":{"timestamp":{"__isSmartRef__":true,"id":15317},"user":"sebastianwoinar","tags":[]},"15317":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15318":{"varMapping":{"__isSmartRef__":true,"id":15319},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":15320},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15319":{"this":{"__isSmartRef__":true,"id":15273}},"15320":{"timestamp":{"__isSmartRef__":true,"id":15321},"user":"sebastianwoinar","tags":[]},"15321":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15322":{"varMapping":{"__isSmartRef__":true,"id":15323},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":15324},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15323":{"this":{"__isSmartRef__":true,"id":15273}},"15324":{"timestamp":{"__isSmartRef__":true,"id":15325},"user":"sebastianwoinar","tags":[]},"15325":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15326":{"varMapping":{"__isSmartRef__":true,"id":15327},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":15328},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15327":{"this":{"__isSmartRef__":true,"id":15273}},"15328":{"timestamp":{"__isSmartRef__":true,"id":15329},"user":"sebastianwoinar","tags":[]},"15329":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"15330":{"varMapping":{"__isSmartRef__":true,"id":15331},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":15332},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15331":{"this":{"__isSmartRef__":true,"id":15273}},"15332":{"timestamp":{"__isSmartRef__":true,"id":15333},"user":"sebastianwoinar","tags":[]},"15333":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"15334":{"varMapping":{"__isSmartRef__":true,"id":15335},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":15336},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15335":{"this":{"__isSmartRef__":true,"id":15273}},"15336":{"timestamp":{"__isSmartRef__":true,"id":15337},"user":"sebastianwoinar","tags":[]},"15337":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"15338":{"varMapping":{"__isSmartRef__":true,"id":15339},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":15340},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15339":{"this":{"__isSmartRef__":true,"id":15273}},"15340":{"timestamp":{"__isSmartRef__":true,"id":15341},"user":"sebastianwoinar","tags":[]},"15341":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"15342":{"varMapping":{"__isSmartRef__":true,"id":15343},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":15344},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15343":{"this":{"__isSmartRef__":true,"id":15273}},"15344":{"timestamp":{"__isSmartRef__":true,"id":15345},"user":"sebastianwoinar","tags":[]},"15345":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"15346":{"varMapping":{"__isSmartRef__":true,"id":15347},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":15348},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15347":{"this":{"__isSmartRef__":true,"id":15273}},"15348":{"timestamp":{"__isSmartRef__":true,"id":15349},"user":"sebastianwoinar","tags":[]},"15349":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"15350":{"varMapping":{"__isSmartRef__":true,"id":15351},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":15352},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15351":{"this":{"__isSmartRef__":true,"id":15273}},"15352":{"timestamp":{"__isSmartRef__":true,"id":15353},"user":"sebastianwoinar","tags":[]},"15353":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"15354":{"varMapping":{"__isSmartRef__":true,"id":15355},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":15356},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15355":{"this":{"__isSmartRef__":true,"id":15273}},"15356":{"timestamp":{"__isSmartRef__":true,"id":15357},"user":"sebastianwoinar","tags":[]},"15357":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"15358":{"varMapping":{"__isSmartRef__":true,"id":15359},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":15360},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15359":{"this":{"__isSmartRef__":true,"id":15273}},"15360":{"timestamp":{"__isSmartRef__":true,"id":15361},"user":"sebastianwoinar","tags":[]},"15361":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"15362":{"varMapping":{"__isSmartRef__":true,"id":15363},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":15368},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15363":{"this":{"__isSmartRef__":true,"id":15273},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15364}},"15364":{"$super":{"__isSmartRef__":true,"id":15365}},"15365":{"varMapping":{"__isSmartRef__":true,"id":15366},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":15367},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15366":{"obj":{"__isSmartRef__":true,"id":15273},"name":"onMouseDown"},"15367":{},"15368":{"timestamp":{"__isSmartRef__":true,"id":15369},"user":"sebastianwoinar","tags":[]},"15369":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"15370":{"varMapping":{"__isSmartRef__":true,"id":15371},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":15372},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15371":{"this":{"__isSmartRef__":true,"id":15273}},"15372":{"timestamp":{"__isSmartRef__":true,"id":15373},"user":"sebastianwoinar","tags":[]},"15373":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"15374":{"varMapping":{"__isSmartRef__":true,"id":15375},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":15376},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15375":{"this":{"__isSmartRef__":true,"id":15273}},"15376":{"timestamp":{"__isSmartRef__":true,"id":15377},"user":"sebastianwoinar","tags":[]},"15377":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"15378":{"varMapping":{"__isSmartRef__":true,"id":15379},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":15380},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15379":{"this":{"__isSmartRef__":true,"id":15273}},"15380":{"timestamp":{"__isSmartRef__":true,"id":15381},"user":"sebastianwoinar","tags":[]},"15381":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"15382":{"varMapping":{"__isSmartRef__":true,"id":15383},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":15384},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15383":{"this":{"__isSmartRef__":true,"id":15273}},"15384":{"timestamp":{"__isSmartRef__":true,"id":15385},"user":"sebastianwoinar","tags":[]},"15385":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"15386":{"varMapping":{"__isSmartRef__":true,"id":15387},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":15388},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15387":{"this":{"__isSmartRef__":true,"id":15273}},"15388":{"timestamp":{"__isSmartRef__":true,"id":15389},"user":"sebastianwoinar","tags":[]},"15389":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"15390":{"varMapping":{"__isSmartRef__":true,"id":15391},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15392},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15391":{"this":{"__isSmartRef__":true,"id":15273}},"15392":{"timestamp":{"__isSmartRef__":true,"id":15393},"user":"sebastianwoinar","tags":[]},"15393":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"15394":{"varMapping":{"__isSmartRef__":true,"id":15395},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":15396},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15395":{"this":{"__isSmartRef__":true,"id":15273}},"15396":{"timestamp":{"__isSmartRef__":true,"id":15397},"user":"sebastianwoinar","tags":[]},"15397":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"15398":{"varMapping":{"__isSmartRef__":true,"id":15399},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15400},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15399":{"this":{"__isSmartRef__":true,"id":15273}},"15400":{"timestamp":{"__isSmartRef__":true,"id":15401},"user":"sebastianwoinar","tags":[]},"15401":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"15402":{"buildChildNodes":{"__isSmartRef__":true,"id":15403},"getGameTree":{"__isSmartRef__":true,"id":15407},"getLevel":{"__isSmartRef__":true,"id":15411},"getLevelWeight":{"__isSmartRef__":true,"id":15415},"getWeight":{"__isSmartRef__":true,"id":15419},"setNode":{"__isSmartRef__":true,"id":15423},"setParent":{"__isSmartRef__":true,"id":15427},"getParent":{"__isSmartRef__":true,"id":15431},"deactivate":{"__isSmartRef__":true,"id":15435},"blink":{"__isSmartRef__":true,"id":15439},"ABPreturn":{"__isSmartRef__":true,"id":15443},"ABPstart":{"__isSmartRef__":true,"id":15447},"ABPcontinue":{"__isSmartRef__":true,"id":15451},"ABPshowValue":{"__isSmartRef__":true,"id":15455},"ABPgetValue":{"__isSmartRef__":true,"id":15459},"ABPhasChildNodes":{"__isSmartRef__":true,"id":15463},"onMouseDown":{"__isSmartRef__":true,"id":15467},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":15475},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":15479},"ABPmarkAsDone":{"__isSmartRef__":true,"id":15483},"ABPmarkAsActive":{"__isSmartRef__":true,"id":15487},"getStateMorph":{"__isSmartRef__":true,"id":15491},"showState":{"__isSmartRef__":true,"id":15495},"ABPfailHard":{"__isSmartRef__":true,"id":15499},"markFinalDrawWith":{"__isSmartRef__":true,"id":15503}},"15403":{"varMapping":{"__isSmartRef__":true,"id":15404},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":15405},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15404":{"this":{"__isSmartRef__":true,"id":14604}},"15405":{"timestamp":{"__isSmartRef__":true,"id":15406},"user":"sebastianwoinar","tags":[]},"15406":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"15407":{"varMapping":{"__isSmartRef__":true,"id":15408},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":15409},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15408":{"this":{"__isSmartRef__":true,"id":14604}},"15409":{"timestamp":{"__isSmartRef__":true,"id":15410},"user":"sebastianwoinar","tags":[]},"15410":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15411":{"varMapping":{"__isSmartRef__":true,"id":15412},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":15413},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15412":{"this":{"__isSmartRef__":true,"id":14604}},"15413":{"timestamp":{"__isSmartRef__":true,"id":15414},"user":"sebastianwoinar","tags":[]},"15414":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15415":{"varMapping":{"__isSmartRef__":true,"id":15416},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15417},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15416":{"this":{"__isSmartRef__":true,"id":14604}},"15417":{"timestamp":{"__isSmartRef__":true,"id":15418},"user":"sebastianwoinar","tags":[]},"15418":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15419":{"varMapping":{"__isSmartRef__":true,"id":15420},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":15421},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15420":{"this":{"__isSmartRef__":true,"id":14604}},"15421":{"timestamp":{"__isSmartRef__":true,"id":15422},"user":"sebastianwoinar","tags":[]},"15422":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15423":{"varMapping":{"__isSmartRef__":true,"id":15424},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":15425},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15424":{"this":{"__isSmartRef__":true,"id":14604}},"15425":{"timestamp":{"__isSmartRef__":true,"id":15426},"user":"sebastianwoinar","tags":[]},"15426":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15427":{"varMapping":{"__isSmartRef__":true,"id":15428},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":15429},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15428":{"this":{"__isSmartRef__":true,"id":14604}},"15429":{"timestamp":{"__isSmartRef__":true,"id":15430},"user":"sebastianwoinar","tags":[]},"15430":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15431":{"varMapping":{"__isSmartRef__":true,"id":15432},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":15433},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15432":{"this":{"__isSmartRef__":true,"id":14604}},"15433":{"timestamp":{"__isSmartRef__":true,"id":15434},"user":"sebastianwoinar","tags":[]},"15434":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"15435":{"varMapping":{"__isSmartRef__":true,"id":15436},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":15437},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15436":{"this":{"__isSmartRef__":true,"id":14604}},"15437":{"timestamp":{"__isSmartRef__":true,"id":15438},"user":"sebastianwoinar","tags":[]},"15438":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"15439":{"varMapping":{"__isSmartRef__":true,"id":15440},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":15441},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15440":{"this":{"__isSmartRef__":true,"id":14604}},"15441":{"timestamp":{"__isSmartRef__":true,"id":15442},"user":"sebastianwoinar","tags":[]},"15442":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"15443":{"varMapping":{"__isSmartRef__":true,"id":15444},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":15445},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15444":{"this":{"__isSmartRef__":true,"id":14604}},"15445":{"timestamp":{"__isSmartRef__":true,"id":15446},"user":"sebastianwoinar","tags":[]},"15446":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"15447":{"varMapping":{"__isSmartRef__":true,"id":15448},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":15449},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15448":{"this":{"__isSmartRef__":true,"id":14604}},"15449":{"timestamp":{"__isSmartRef__":true,"id":15450},"user":"sebastianwoinar","tags":[]},"15450":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"15451":{"varMapping":{"__isSmartRef__":true,"id":15452},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":15453},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15452":{"this":{"__isSmartRef__":true,"id":14604}},"15453":{"timestamp":{"__isSmartRef__":true,"id":15454},"user":"sebastianwoinar","tags":[]},"15454":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"15455":{"varMapping":{"__isSmartRef__":true,"id":15456},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":15457},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15456":{"this":{"__isSmartRef__":true,"id":14604}},"15457":{"timestamp":{"__isSmartRef__":true,"id":15458},"user":"sebastianwoinar","tags":[]},"15458":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"15459":{"varMapping":{"__isSmartRef__":true,"id":15460},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":15461},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15460":{"this":{"__isSmartRef__":true,"id":14604}},"15461":{"timestamp":{"__isSmartRef__":true,"id":15462},"user":"sebastianwoinar","tags":[]},"15462":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"15463":{"varMapping":{"__isSmartRef__":true,"id":15464},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":15465},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15464":{"this":{"__isSmartRef__":true,"id":14604}},"15465":{"timestamp":{"__isSmartRef__":true,"id":15466},"user":"sebastianwoinar","tags":[]},"15466":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"15467":{"varMapping":{"__isSmartRef__":true,"id":15468},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":15473},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15468":{"this":{"__isSmartRef__":true,"id":14604},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15469}},"15469":{"$super":{"__isSmartRef__":true,"id":15470}},"15470":{"varMapping":{"__isSmartRef__":true,"id":15471},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":15472},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15471":{"obj":{"__isSmartRef__":true,"id":14604},"name":"onMouseDown"},"15472":{},"15473":{"timestamp":{"__isSmartRef__":true,"id":15474},"user":"sebastianwoinar","tags":[]},"15474":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"15475":{"varMapping":{"__isSmartRef__":true,"id":15476},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":15477},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15476":{"this":{"__isSmartRef__":true,"id":14604}},"15477":{"timestamp":{"__isSmartRef__":true,"id":15478},"user":"sebastianwoinar","tags":[]},"15478":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"15479":{"varMapping":{"__isSmartRef__":true,"id":15480},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":15481},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15480":{"this":{"__isSmartRef__":true,"id":14604}},"15481":{"timestamp":{"__isSmartRef__":true,"id":15482},"user":"sebastianwoinar","tags":[]},"15482":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"15483":{"varMapping":{"__isSmartRef__":true,"id":15484},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":15485},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15484":{"this":{"__isSmartRef__":true,"id":14604}},"15485":{"timestamp":{"__isSmartRef__":true,"id":15486},"user":"sebastianwoinar","tags":[]},"15486":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"15487":{"varMapping":{"__isSmartRef__":true,"id":15488},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":15489},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15488":{"this":{"__isSmartRef__":true,"id":14604}},"15489":{"timestamp":{"__isSmartRef__":true,"id":15490},"user":"sebastianwoinar","tags":[]},"15490":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"15491":{"varMapping":{"__isSmartRef__":true,"id":15492},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":15493},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15492":{"this":{"__isSmartRef__":true,"id":14604}},"15493":{"timestamp":{"__isSmartRef__":true,"id":15494},"user":"sebastianwoinar","tags":[]},"15494":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"15495":{"varMapping":{"__isSmartRef__":true,"id":15496},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15497},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15496":{"this":{"__isSmartRef__":true,"id":14604}},"15497":{"timestamp":{"__isSmartRef__":true,"id":15498},"user":"sebastianwoinar","tags":[]},"15498":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"15499":{"varMapping":{"__isSmartRef__":true,"id":15500},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":15501},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15500":{"this":{"__isSmartRef__":true,"id":14604}},"15501":{"timestamp":{"__isSmartRef__":true,"id":15502},"user":"sebastianwoinar","tags":[]},"15502":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"15503":{"varMapping":{"__isSmartRef__":true,"id":15504},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15505},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15504":{"this":{"__isSmartRef__":true,"id":14604}},"15505":{"timestamp":{"__isSmartRef__":true,"id":15506},"user":"sebastianwoinar","tags":[]},"15506":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"15507":{"submorphs":[{"__isSmartRef__":true,"id":15508}],"scripts":[],"shape":{"__isSmartRef__":true,"id":15525},"id":"1C6433A6-4665-44B7-8C01-AB02EF169A56","eventHandler":{"__isSmartRef__":true,"id":15526},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":15527},"name":"node78","partsBinMetaInfo":{"__isSmartRef__":true,"id":15528},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5585},"owner":{"__isSmartRef__":true,"id":5408},"childNodes":[{"__isSmartRef__":true,"id":15531},{"__isSmartRef__":true,"id":15660},{"__isSmartRef__":true,"id":15789},{"__isSmartRef__":true,"id":15918},{"__isSmartRef__":true,"id":16047},{"__isSmartRef__":true,"id":16176},{"__isSmartRef__":true,"id":16305},{"__isSmartRef__":true,"id":16434},{"__isSmartRef__":true,"id":16563}],"parent":{"__isSmartRef__":true,"id":12516},"level":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16692},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(430.2,160.0)"},"15508":{"submorphs":[],"scripts":[],"id":"62ABCDA8-D811-45ED-896B-3AA4D6B89FE3","shape":{"__isSmartRef__":true,"id":15509},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":15510},"textChunks":[{"__isSmartRef__":true,"id":15522}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":15524},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":15507},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"15509":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"15510":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":15511},{"__isSmartRef__":true,"id":15513},{"__isSmartRef__":true,"id":15515},{"__isSmartRef__":true,"id":15517},{"__isSmartRef__":true,"id":15519}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":15521},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15511":{"date":{"__isSmartRef__":true,"id":15512},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"15512":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"15513":{"date":{"__isSmartRef__":true,"id":15514},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"15514":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"15515":{"date":{"__isSmartRef__":true,"id":15516},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"15516":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"15517":{"date":{"__isSmartRef__":true,"id":15518},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"15518":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"15519":{"date":{"__isSmartRef__":true,"id":15520},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"15520":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"15521":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"15522":{"style":{"__isSmartRef__":true,"id":15523},"morph":{"__isSmartRef__":true,"id":15508},"chunkOwner":{"__isSmartRef__":true,"id":15508},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15523":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15524":{"morph":{"__isSmartRef__":true,"id":15508},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15525":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"15526":{"morph":{"__isSmartRef__":true,"id":15507},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15527":{},"15528":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":15529}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15529":{"date":{"__isSmartRef__":true,"id":15530},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"15530":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"15531":{"submorphs":[{"__isSmartRef__":true,"id":15532}],"scripts":[],"shape":{"__isSmartRef__":true,"id":15549},"id":"F1A49F79-0CBB-451C-B22A-6DAFE7BF76AD","eventHandler":{"__isSmartRef__":true,"id":15550},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":15551},"name":"node79","partsBinMetaInfo":{"__isSmartRef__":true,"id":15552},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5587},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":15507},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15555},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(362.9,210.0)"},"15532":{"submorphs":[],"scripts":[],"id":"BAC45D2B-4031-4BDC-96C5-462ADCEABE07","shape":{"__isSmartRef__":true,"id":15533},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":15534},"textChunks":[{"__isSmartRef__":true,"id":15546}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":15548},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":15531},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"15533":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"15534":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":15535},{"__isSmartRef__":true,"id":15537},{"__isSmartRef__":true,"id":15539},{"__isSmartRef__":true,"id":15541},{"__isSmartRef__":true,"id":15543}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":15545},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15535":{"date":{"__isSmartRef__":true,"id":15536},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"15536":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"15537":{"date":{"__isSmartRef__":true,"id":15538},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"15538":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"15539":{"date":{"__isSmartRef__":true,"id":15540},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"15540":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"15541":{"date":{"__isSmartRef__":true,"id":15542},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"15542":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"15543":{"date":{"__isSmartRef__":true,"id":15544},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"15544":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"15545":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"15546":{"style":{"__isSmartRef__":true,"id":15547},"morph":{"__isSmartRef__":true,"id":15532},"chunkOwner":{"__isSmartRef__":true,"id":15532},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15547":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15548":{"morph":{"__isSmartRef__":true,"id":15532},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15549":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"15550":{"morph":{"__isSmartRef__":true,"id":15531},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15551":{},"15552":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":15553}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15553":{"date":{"__isSmartRef__":true,"id":15554},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"15554":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"15555":{"buildChildNodes":{"__isSmartRef__":true,"id":15556},"getGameTree":{"__isSmartRef__":true,"id":15560},"getLevel":{"__isSmartRef__":true,"id":15564},"getLevelWeight":{"__isSmartRef__":true,"id":15568},"getWeight":{"__isSmartRef__":true,"id":15572},"setNode":{"__isSmartRef__":true,"id":15576},"setParent":{"__isSmartRef__":true,"id":15580},"getParent":{"__isSmartRef__":true,"id":15584},"deactivate":{"__isSmartRef__":true,"id":15588},"blink":{"__isSmartRef__":true,"id":15592},"ABPreturn":{"__isSmartRef__":true,"id":15596},"ABPstart":{"__isSmartRef__":true,"id":15600},"ABPcontinue":{"__isSmartRef__":true,"id":15604},"ABPshowValue":{"__isSmartRef__":true,"id":15608},"ABPgetValue":{"__isSmartRef__":true,"id":15612},"ABPhasChildNodes":{"__isSmartRef__":true,"id":15616},"onMouseDown":{"__isSmartRef__":true,"id":15620},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":15628},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":15632},"ABPmarkAsDone":{"__isSmartRef__":true,"id":15636},"ABPmarkAsActive":{"__isSmartRef__":true,"id":15640},"getStateMorph":{"__isSmartRef__":true,"id":15644},"showState":{"__isSmartRef__":true,"id":15648},"ABPfailHard":{"__isSmartRef__":true,"id":15652},"markFinalDrawWith":{"__isSmartRef__":true,"id":15656}},"15556":{"varMapping":{"__isSmartRef__":true,"id":15557},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":15558},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15557":{"this":{"__isSmartRef__":true,"id":15531}},"15558":{"timestamp":{"__isSmartRef__":true,"id":15559},"user":"sebastianwoinar","tags":[]},"15559":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"15560":{"varMapping":{"__isSmartRef__":true,"id":15561},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":15562},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15561":{"this":{"__isSmartRef__":true,"id":15531}},"15562":{"timestamp":{"__isSmartRef__":true,"id":15563},"user":"sebastianwoinar","tags":[]},"15563":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15564":{"varMapping":{"__isSmartRef__":true,"id":15565},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":15566},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15565":{"this":{"__isSmartRef__":true,"id":15531}},"15566":{"timestamp":{"__isSmartRef__":true,"id":15567},"user":"sebastianwoinar","tags":[]},"15567":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15568":{"varMapping":{"__isSmartRef__":true,"id":15569},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15570},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15569":{"this":{"__isSmartRef__":true,"id":15531}},"15570":{"timestamp":{"__isSmartRef__":true,"id":15571},"user":"sebastianwoinar","tags":[]},"15571":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15572":{"varMapping":{"__isSmartRef__":true,"id":15573},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":15574},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15573":{"this":{"__isSmartRef__":true,"id":15531}},"15574":{"timestamp":{"__isSmartRef__":true,"id":15575},"user":"sebastianwoinar","tags":[]},"15575":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15576":{"varMapping":{"__isSmartRef__":true,"id":15577},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":15578},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15577":{"this":{"__isSmartRef__":true,"id":15531}},"15578":{"timestamp":{"__isSmartRef__":true,"id":15579},"user":"sebastianwoinar","tags":[]},"15579":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15580":{"varMapping":{"__isSmartRef__":true,"id":15581},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":15582},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15581":{"this":{"__isSmartRef__":true,"id":15531}},"15582":{"timestamp":{"__isSmartRef__":true,"id":15583},"user":"sebastianwoinar","tags":[]},"15583":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15584":{"varMapping":{"__isSmartRef__":true,"id":15585},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":15586},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15585":{"this":{"__isSmartRef__":true,"id":15531}},"15586":{"timestamp":{"__isSmartRef__":true,"id":15587},"user":"sebastianwoinar","tags":[]},"15587":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"15588":{"varMapping":{"__isSmartRef__":true,"id":15589},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":15590},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15589":{"this":{"__isSmartRef__":true,"id":15531}},"15590":{"timestamp":{"__isSmartRef__":true,"id":15591},"user":"sebastianwoinar","tags":[]},"15591":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"15592":{"varMapping":{"__isSmartRef__":true,"id":15593},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":15594},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15593":{"this":{"__isSmartRef__":true,"id":15531}},"15594":{"timestamp":{"__isSmartRef__":true,"id":15595},"user":"sebastianwoinar","tags":[]},"15595":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"15596":{"varMapping":{"__isSmartRef__":true,"id":15597},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":15598},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15597":{"this":{"__isSmartRef__":true,"id":15531}},"15598":{"timestamp":{"__isSmartRef__":true,"id":15599},"user":"sebastianwoinar","tags":[]},"15599":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"15600":{"varMapping":{"__isSmartRef__":true,"id":15601},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":15602},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15601":{"this":{"__isSmartRef__":true,"id":15531}},"15602":{"timestamp":{"__isSmartRef__":true,"id":15603},"user":"sebastianwoinar","tags":[]},"15603":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"15604":{"varMapping":{"__isSmartRef__":true,"id":15605},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":15606},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15605":{"this":{"__isSmartRef__":true,"id":15531}},"15606":{"timestamp":{"__isSmartRef__":true,"id":15607},"user":"sebastianwoinar","tags":[]},"15607":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"15608":{"varMapping":{"__isSmartRef__":true,"id":15609},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":15610},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15609":{"this":{"__isSmartRef__":true,"id":15531}},"15610":{"timestamp":{"__isSmartRef__":true,"id":15611},"user":"sebastianwoinar","tags":[]},"15611":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"15612":{"varMapping":{"__isSmartRef__":true,"id":15613},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":15614},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15613":{"this":{"__isSmartRef__":true,"id":15531}},"15614":{"timestamp":{"__isSmartRef__":true,"id":15615},"user":"sebastianwoinar","tags":[]},"15615":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"15616":{"varMapping":{"__isSmartRef__":true,"id":15617},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":15618},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15617":{"this":{"__isSmartRef__":true,"id":15531}},"15618":{"timestamp":{"__isSmartRef__":true,"id":15619},"user":"sebastianwoinar","tags":[]},"15619":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"15620":{"varMapping":{"__isSmartRef__":true,"id":15621},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":15626},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15621":{"this":{"__isSmartRef__":true,"id":15531},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15622}},"15622":{"$super":{"__isSmartRef__":true,"id":15623}},"15623":{"varMapping":{"__isSmartRef__":true,"id":15624},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":15625},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15624":{"obj":{"__isSmartRef__":true,"id":15531},"name":"onMouseDown"},"15625":{},"15626":{"timestamp":{"__isSmartRef__":true,"id":15627},"user":"sebastianwoinar","tags":[]},"15627":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"15628":{"varMapping":{"__isSmartRef__":true,"id":15629},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":15630},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15629":{"this":{"__isSmartRef__":true,"id":15531}},"15630":{"timestamp":{"__isSmartRef__":true,"id":15631},"user":"sebastianwoinar","tags":[]},"15631":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"15632":{"varMapping":{"__isSmartRef__":true,"id":15633},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":15634},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15633":{"this":{"__isSmartRef__":true,"id":15531}},"15634":{"timestamp":{"__isSmartRef__":true,"id":15635},"user":"sebastianwoinar","tags":[]},"15635":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"15636":{"varMapping":{"__isSmartRef__":true,"id":15637},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":15638},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15637":{"this":{"__isSmartRef__":true,"id":15531}},"15638":{"timestamp":{"__isSmartRef__":true,"id":15639},"user":"sebastianwoinar","tags":[]},"15639":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"15640":{"varMapping":{"__isSmartRef__":true,"id":15641},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":15642},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15641":{"this":{"__isSmartRef__":true,"id":15531}},"15642":{"timestamp":{"__isSmartRef__":true,"id":15643},"user":"sebastianwoinar","tags":[]},"15643":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"15644":{"varMapping":{"__isSmartRef__":true,"id":15645},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":15646},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15645":{"this":{"__isSmartRef__":true,"id":15531}},"15646":{"timestamp":{"__isSmartRef__":true,"id":15647},"user":"sebastianwoinar","tags":[]},"15647":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"15648":{"varMapping":{"__isSmartRef__":true,"id":15649},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15650},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15649":{"this":{"__isSmartRef__":true,"id":15531}},"15650":{"timestamp":{"__isSmartRef__":true,"id":15651},"user":"sebastianwoinar","tags":[]},"15651":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"15652":{"varMapping":{"__isSmartRef__":true,"id":15653},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":15654},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15653":{"this":{"__isSmartRef__":true,"id":15531}},"15654":{"timestamp":{"__isSmartRef__":true,"id":15655},"user":"sebastianwoinar","tags":[]},"15655":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"15656":{"varMapping":{"__isSmartRef__":true,"id":15657},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15658},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15657":{"this":{"__isSmartRef__":true,"id":15531}},"15658":{"timestamp":{"__isSmartRef__":true,"id":15659},"user":"sebastianwoinar","tags":[]},"15659":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"15660":{"submorphs":[{"__isSmartRef__":true,"id":15661}],"scripts":[],"shape":{"__isSmartRef__":true,"id":15678},"id":"91D1B439-9FEC-4471-A5DC-4833FC2A66A2","eventHandler":{"__isSmartRef__":true,"id":15679},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":15680},"name":"node80","partsBinMetaInfo":{"__isSmartRef__":true,"id":15681},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5589},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":15507},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15684},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(368.1,210.0)"},"15661":{"submorphs":[],"scripts":[],"id":"6090EA5F-0473-4BB1-BAA5-A5E1091BF364","shape":{"__isSmartRef__":true,"id":15662},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":15663},"textChunks":[{"__isSmartRef__":true,"id":15675}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":15677},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":15660},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"15662":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"15663":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":15664},{"__isSmartRef__":true,"id":15666},{"__isSmartRef__":true,"id":15668},{"__isSmartRef__":true,"id":15670},{"__isSmartRef__":true,"id":15672}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":15674},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15664":{"date":{"__isSmartRef__":true,"id":15665},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"15665":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"15666":{"date":{"__isSmartRef__":true,"id":15667},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"15667":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"15668":{"date":{"__isSmartRef__":true,"id":15669},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"15669":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"15670":{"date":{"__isSmartRef__":true,"id":15671},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"15671":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"15672":{"date":{"__isSmartRef__":true,"id":15673},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"15673":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"15674":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"15675":{"style":{"__isSmartRef__":true,"id":15676},"morph":{"__isSmartRef__":true,"id":15661},"chunkOwner":{"__isSmartRef__":true,"id":15661},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15676":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15677":{"morph":{"__isSmartRef__":true,"id":15661},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15678":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"15679":{"morph":{"__isSmartRef__":true,"id":15660},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15680":{},"15681":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":15682}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15682":{"date":{"__isSmartRef__":true,"id":15683},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"15683":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"15684":{"buildChildNodes":{"__isSmartRef__":true,"id":15685},"getGameTree":{"__isSmartRef__":true,"id":15689},"getLevel":{"__isSmartRef__":true,"id":15693},"getLevelWeight":{"__isSmartRef__":true,"id":15697},"getWeight":{"__isSmartRef__":true,"id":15701},"setNode":{"__isSmartRef__":true,"id":15705},"setParent":{"__isSmartRef__":true,"id":15709},"getParent":{"__isSmartRef__":true,"id":15713},"deactivate":{"__isSmartRef__":true,"id":15717},"blink":{"__isSmartRef__":true,"id":15721},"ABPreturn":{"__isSmartRef__":true,"id":15725},"ABPstart":{"__isSmartRef__":true,"id":15729},"ABPcontinue":{"__isSmartRef__":true,"id":15733},"ABPshowValue":{"__isSmartRef__":true,"id":15737},"ABPgetValue":{"__isSmartRef__":true,"id":15741},"ABPhasChildNodes":{"__isSmartRef__":true,"id":15745},"onMouseDown":{"__isSmartRef__":true,"id":15749},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":15757},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":15761},"ABPmarkAsDone":{"__isSmartRef__":true,"id":15765},"ABPmarkAsActive":{"__isSmartRef__":true,"id":15769},"getStateMorph":{"__isSmartRef__":true,"id":15773},"showState":{"__isSmartRef__":true,"id":15777},"ABPfailHard":{"__isSmartRef__":true,"id":15781},"markFinalDrawWith":{"__isSmartRef__":true,"id":15785}},"15685":{"varMapping":{"__isSmartRef__":true,"id":15686},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":15687},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15686":{"this":{"__isSmartRef__":true,"id":15660}},"15687":{"timestamp":{"__isSmartRef__":true,"id":15688},"user":"sebastianwoinar","tags":[]},"15688":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"15689":{"varMapping":{"__isSmartRef__":true,"id":15690},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":15691},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15690":{"this":{"__isSmartRef__":true,"id":15660}},"15691":{"timestamp":{"__isSmartRef__":true,"id":15692},"user":"sebastianwoinar","tags":[]},"15692":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15693":{"varMapping":{"__isSmartRef__":true,"id":15694},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":15695},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15694":{"this":{"__isSmartRef__":true,"id":15660}},"15695":{"timestamp":{"__isSmartRef__":true,"id":15696},"user":"sebastianwoinar","tags":[]},"15696":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15697":{"varMapping":{"__isSmartRef__":true,"id":15698},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15699},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15698":{"this":{"__isSmartRef__":true,"id":15660}},"15699":{"timestamp":{"__isSmartRef__":true,"id":15700},"user":"sebastianwoinar","tags":[]},"15700":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15701":{"varMapping":{"__isSmartRef__":true,"id":15702},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":15703},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15702":{"this":{"__isSmartRef__":true,"id":15660}},"15703":{"timestamp":{"__isSmartRef__":true,"id":15704},"user":"sebastianwoinar","tags":[]},"15704":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15705":{"varMapping":{"__isSmartRef__":true,"id":15706},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":15707},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15706":{"this":{"__isSmartRef__":true,"id":15660}},"15707":{"timestamp":{"__isSmartRef__":true,"id":15708},"user":"sebastianwoinar","tags":[]},"15708":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15709":{"varMapping":{"__isSmartRef__":true,"id":15710},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":15711},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15710":{"this":{"__isSmartRef__":true,"id":15660}},"15711":{"timestamp":{"__isSmartRef__":true,"id":15712},"user":"sebastianwoinar","tags":[]},"15712":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15713":{"varMapping":{"__isSmartRef__":true,"id":15714},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":15715},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15714":{"this":{"__isSmartRef__":true,"id":15660}},"15715":{"timestamp":{"__isSmartRef__":true,"id":15716},"user":"sebastianwoinar","tags":[]},"15716":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"15717":{"varMapping":{"__isSmartRef__":true,"id":15718},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":15719},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15718":{"this":{"__isSmartRef__":true,"id":15660}},"15719":{"timestamp":{"__isSmartRef__":true,"id":15720},"user":"sebastianwoinar","tags":[]},"15720":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"15721":{"varMapping":{"__isSmartRef__":true,"id":15722},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":15723},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15722":{"this":{"__isSmartRef__":true,"id":15660}},"15723":{"timestamp":{"__isSmartRef__":true,"id":15724},"user":"sebastianwoinar","tags":[]},"15724":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"15725":{"varMapping":{"__isSmartRef__":true,"id":15726},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":15727},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15726":{"this":{"__isSmartRef__":true,"id":15660}},"15727":{"timestamp":{"__isSmartRef__":true,"id":15728},"user":"sebastianwoinar","tags":[]},"15728":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"15729":{"varMapping":{"__isSmartRef__":true,"id":15730},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":15731},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15730":{"this":{"__isSmartRef__":true,"id":15660}},"15731":{"timestamp":{"__isSmartRef__":true,"id":15732},"user":"sebastianwoinar","tags":[]},"15732":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"15733":{"varMapping":{"__isSmartRef__":true,"id":15734},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":15735},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15734":{"this":{"__isSmartRef__":true,"id":15660}},"15735":{"timestamp":{"__isSmartRef__":true,"id":15736},"user":"sebastianwoinar","tags":[]},"15736":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"15737":{"varMapping":{"__isSmartRef__":true,"id":15738},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":15739},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15738":{"this":{"__isSmartRef__":true,"id":15660}},"15739":{"timestamp":{"__isSmartRef__":true,"id":15740},"user":"sebastianwoinar","tags":[]},"15740":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"15741":{"varMapping":{"__isSmartRef__":true,"id":15742},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":15743},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15742":{"this":{"__isSmartRef__":true,"id":15660}},"15743":{"timestamp":{"__isSmartRef__":true,"id":15744},"user":"sebastianwoinar","tags":[]},"15744":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"15745":{"varMapping":{"__isSmartRef__":true,"id":15746},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":15747},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15746":{"this":{"__isSmartRef__":true,"id":15660}},"15747":{"timestamp":{"__isSmartRef__":true,"id":15748},"user":"sebastianwoinar","tags":[]},"15748":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"15749":{"varMapping":{"__isSmartRef__":true,"id":15750},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":15755},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15750":{"this":{"__isSmartRef__":true,"id":15660},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15751}},"15751":{"$super":{"__isSmartRef__":true,"id":15752}},"15752":{"varMapping":{"__isSmartRef__":true,"id":15753},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":15754},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15753":{"obj":{"__isSmartRef__":true,"id":15660},"name":"onMouseDown"},"15754":{},"15755":{"timestamp":{"__isSmartRef__":true,"id":15756},"user":"sebastianwoinar","tags":[]},"15756":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"15757":{"varMapping":{"__isSmartRef__":true,"id":15758},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":15759},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15758":{"this":{"__isSmartRef__":true,"id":15660}},"15759":{"timestamp":{"__isSmartRef__":true,"id":15760},"user":"sebastianwoinar","tags":[]},"15760":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"15761":{"varMapping":{"__isSmartRef__":true,"id":15762},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":15763},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15762":{"this":{"__isSmartRef__":true,"id":15660}},"15763":{"timestamp":{"__isSmartRef__":true,"id":15764},"user":"sebastianwoinar","tags":[]},"15764":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"15765":{"varMapping":{"__isSmartRef__":true,"id":15766},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":15767},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15766":{"this":{"__isSmartRef__":true,"id":15660}},"15767":{"timestamp":{"__isSmartRef__":true,"id":15768},"user":"sebastianwoinar","tags":[]},"15768":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"15769":{"varMapping":{"__isSmartRef__":true,"id":15770},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":15771},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15770":{"this":{"__isSmartRef__":true,"id":15660}},"15771":{"timestamp":{"__isSmartRef__":true,"id":15772},"user":"sebastianwoinar","tags":[]},"15772":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"15773":{"varMapping":{"__isSmartRef__":true,"id":15774},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":15775},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15774":{"this":{"__isSmartRef__":true,"id":15660}},"15775":{"timestamp":{"__isSmartRef__":true,"id":15776},"user":"sebastianwoinar","tags":[]},"15776":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"15777":{"varMapping":{"__isSmartRef__":true,"id":15778},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15779},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15778":{"this":{"__isSmartRef__":true,"id":15660}},"15779":{"timestamp":{"__isSmartRef__":true,"id":15780},"user":"sebastianwoinar","tags":[]},"15780":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"15781":{"varMapping":{"__isSmartRef__":true,"id":15782},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":15783},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15782":{"this":{"__isSmartRef__":true,"id":15660}},"15783":{"timestamp":{"__isSmartRef__":true,"id":15784},"user":"sebastianwoinar","tags":[]},"15784":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"15785":{"varMapping":{"__isSmartRef__":true,"id":15786},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15787},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15786":{"this":{"__isSmartRef__":true,"id":15660}},"15787":{"timestamp":{"__isSmartRef__":true,"id":15788},"user":"sebastianwoinar","tags":[]},"15788":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"15789":{"submorphs":[{"__isSmartRef__":true,"id":15790}],"scripts":[],"shape":{"__isSmartRef__":true,"id":15807},"id":"3EE8B931-9FBE-4FCE-86BB-7FB5CEEF0D29","eventHandler":{"__isSmartRef__":true,"id":15808},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":15809},"name":"node81","partsBinMetaInfo":{"__isSmartRef__":true,"id":15810},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5591},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":15507},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15813},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(373.3,210.0)"},"15790":{"submorphs":[],"scripts":[],"id":"27E7A749-ED9D-4EFB-87E2-CC29B0EFED2D","shape":{"__isSmartRef__":true,"id":15791},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":15792},"textChunks":[{"__isSmartRef__":true,"id":15804}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":15806},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":15789},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"15791":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"15792":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":15793},{"__isSmartRef__":true,"id":15795},{"__isSmartRef__":true,"id":15797},{"__isSmartRef__":true,"id":15799},{"__isSmartRef__":true,"id":15801}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":15803},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15793":{"date":{"__isSmartRef__":true,"id":15794},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"15794":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"15795":{"date":{"__isSmartRef__":true,"id":15796},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"15796":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"15797":{"date":{"__isSmartRef__":true,"id":15798},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"15798":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"15799":{"date":{"__isSmartRef__":true,"id":15800},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"15800":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"15801":{"date":{"__isSmartRef__":true,"id":15802},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"15802":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"15803":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"15804":{"style":{"__isSmartRef__":true,"id":15805},"morph":{"__isSmartRef__":true,"id":15790},"chunkOwner":{"__isSmartRef__":true,"id":15790},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15805":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15806":{"morph":{"__isSmartRef__":true,"id":15790},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15807":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"15808":{"morph":{"__isSmartRef__":true,"id":15789},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15809":{},"15810":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":15811}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15811":{"date":{"__isSmartRef__":true,"id":15812},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"15812":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"15813":{"buildChildNodes":{"__isSmartRef__":true,"id":15814},"getGameTree":{"__isSmartRef__":true,"id":15818},"getLevel":{"__isSmartRef__":true,"id":15822},"getLevelWeight":{"__isSmartRef__":true,"id":15826},"getWeight":{"__isSmartRef__":true,"id":15830},"setNode":{"__isSmartRef__":true,"id":15834},"setParent":{"__isSmartRef__":true,"id":15838},"getParent":{"__isSmartRef__":true,"id":15842},"deactivate":{"__isSmartRef__":true,"id":15846},"blink":{"__isSmartRef__":true,"id":15850},"ABPreturn":{"__isSmartRef__":true,"id":15854},"ABPstart":{"__isSmartRef__":true,"id":15858},"ABPcontinue":{"__isSmartRef__":true,"id":15862},"ABPshowValue":{"__isSmartRef__":true,"id":15866},"ABPgetValue":{"__isSmartRef__":true,"id":15870},"ABPhasChildNodes":{"__isSmartRef__":true,"id":15874},"onMouseDown":{"__isSmartRef__":true,"id":15878},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":15886},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":15890},"ABPmarkAsDone":{"__isSmartRef__":true,"id":15894},"ABPmarkAsActive":{"__isSmartRef__":true,"id":15898},"getStateMorph":{"__isSmartRef__":true,"id":15902},"showState":{"__isSmartRef__":true,"id":15906},"ABPfailHard":{"__isSmartRef__":true,"id":15910},"markFinalDrawWith":{"__isSmartRef__":true,"id":15914}},"15814":{"varMapping":{"__isSmartRef__":true,"id":15815},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":15816},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15815":{"this":{"__isSmartRef__":true,"id":15789}},"15816":{"timestamp":{"__isSmartRef__":true,"id":15817},"user":"sebastianwoinar","tags":[]},"15817":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"15818":{"varMapping":{"__isSmartRef__":true,"id":15819},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":15820},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15819":{"this":{"__isSmartRef__":true,"id":15789}},"15820":{"timestamp":{"__isSmartRef__":true,"id":15821},"user":"sebastianwoinar","tags":[]},"15821":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15822":{"varMapping":{"__isSmartRef__":true,"id":15823},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":15824},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15823":{"this":{"__isSmartRef__":true,"id":15789}},"15824":{"timestamp":{"__isSmartRef__":true,"id":15825},"user":"sebastianwoinar","tags":[]},"15825":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15826":{"varMapping":{"__isSmartRef__":true,"id":15827},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15828},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15827":{"this":{"__isSmartRef__":true,"id":15789}},"15828":{"timestamp":{"__isSmartRef__":true,"id":15829},"user":"sebastianwoinar","tags":[]},"15829":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15830":{"varMapping":{"__isSmartRef__":true,"id":15831},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":15832},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15831":{"this":{"__isSmartRef__":true,"id":15789}},"15832":{"timestamp":{"__isSmartRef__":true,"id":15833},"user":"sebastianwoinar","tags":[]},"15833":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15834":{"varMapping":{"__isSmartRef__":true,"id":15835},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":15836},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15835":{"this":{"__isSmartRef__":true,"id":15789}},"15836":{"timestamp":{"__isSmartRef__":true,"id":15837},"user":"sebastianwoinar","tags":[]},"15837":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15838":{"varMapping":{"__isSmartRef__":true,"id":15839},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":15840},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15839":{"this":{"__isSmartRef__":true,"id":15789}},"15840":{"timestamp":{"__isSmartRef__":true,"id":15841},"user":"sebastianwoinar","tags":[]},"15841":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15842":{"varMapping":{"__isSmartRef__":true,"id":15843},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":15844},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15843":{"this":{"__isSmartRef__":true,"id":15789}},"15844":{"timestamp":{"__isSmartRef__":true,"id":15845},"user":"sebastianwoinar","tags":[]},"15845":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"15846":{"varMapping":{"__isSmartRef__":true,"id":15847},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":15848},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15847":{"this":{"__isSmartRef__":true,"id":15789}},"15848":{"timestamp":{"__isSmartRef__":true,"id":15849},"user":"sebastianwoinar","tags":[]},"15849":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"15850":{"varMapping":{"__isSmartRef__":true,"id":15851},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":15852},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15851":{"this":{"__isSmartRef__":true,"id":15789}},"15852":{"timestamp":{"__isSmartRef__":true,"id":15853},"user":"sebastianwoinar","tags":[]},"15853":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"15854":{"varMapping":{"__isSmartRef__":true,"id":15855},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":15856},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15855":{"this":{"__isSmartRef__":true,"id":15789}},"15856":{"timestamp":{"__isSmartRef__":true,"id":15857},"user":"sebastianwoinar","tags":[]},"15857":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"15858":{"varMapping":{"__isSmartRef__":true,"id":15859},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":15860},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15859":{"this":{"__isSmartRef__":true,"id":15789}},"15860":{"timestamp":{"__isSmartRef__":true,"id":15861},"user":"sebastianwoinar","tags":[]},"15861":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"15862":{"varMapping":{"__isSmartRef__":true,"id":15863},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":15864},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15863":{"this":{"__isSmartRef__":true,"id":15789}},"15864":{"timestamp":{"__isSmartRef__":true,"id":15865},"user":"sebastianwoinar","tags":[]},"15865":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"15866":{"varMapping":{"__isSmartRef__":true,"id":15867},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":15868},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15867":{"this":{"__isSmartRef__":true,"id":15789}},"15868":{"timestamp":{"__isSmartRef__":true,"id":15869},"user":"sebastianwoinar","tags":[]},"15869":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"15870":{"varMapping":{"__isSmartRef__":true,"id":15871},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":15872},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15871":{"this":{"__isSmartRef__":true,"id":15789}},"15872":{"timestamp":{"__isSmartRef__":true,"id":15873},"user":"sebastianwoinar","tags":[]},"15873":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"15874":{"varMapping":{"__isSmartRef__":true,"id":15875},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":15876},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15875":{"this":{"__isSmartRef__":true,"id":15789}},"15876":{"timestamp":{"__isSmartRef__":true,"id":15877},"user":"sebastianwoinar","tags":[]},"15877":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"15878":{"varMapping":{"__isSmartRef__":true,"id":15879},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":15884},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15879":{"this":{"__isSmartRef__":true,"id":15789},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15880}},"15880":{"$super":{"__isSmartRef__":true,"id":15881}},"15881":{"varMapping":{"__isSmartRef__":true,"id":15882},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":15883},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15882":{"obj":{"__isSmartRef__":true,"id":15789},"name":"onMouseDown"},"15883":{},"15884":{"timestamp":{"__isSmartRef__":true,"id":15885},"user":"sebastianwoinar","tags":[]},"15885":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"15886":{"varMapping":{"__isSmartRef__":true,"id":15887},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":15888},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15887":{"this":{"__isSmartRef__":true,"id":15789}},"15888":{"timestamp":{"__isSmartRef__":true,"id":15889},"user":"sebastianwoinar","tags":[]},"15889":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"15890":{"varMapping":{"__isSmartRef__":true,"id":15891},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":15892},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15891":{"this":{"__isSmartRef__":true,"id":15789}},"15892":{"timestamp":{"__isSmartRef__":true,"id":15893},"user":"sebastianwoinar","tags":[]},"15893":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"15894":{"varMapping":{"__isSmartRef__":true,"id":15895},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":15896},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15895":{"this":{"__isSmartRef__":true,"id":15789}},"15896":{"timestamp":{"__isSmartRef__":true,"id":15897},"user":"sebastianwoinar","tags":[]},"15897":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"15898":{"varMapping":{"__isSmartRef__":true,"id":15899},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":15900},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15899":{"this":{"__isSmartRef__":true,"id":15789}},"15900":{"timestamp":{"__isSmartRef__":true,"id":15901},"user":"sebastianwoinar","tags":[]},"15901":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"15902":{"varMapping":{"__isSmartRef__":true,"id":15903},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":15904},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15903":{"this":{"__isSmartRef__":true,"id":15789}},"15904":{"timestamp":{"__isSmartRef__":true,"id":15905},"user":"sebastianwoinar","tags":[]},"15905":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"15906":{"varMapping":{"__isSmartRef__":true,"id":15907},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15908},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15907":{"this":{"__isSmartRef__":true,"id":15789}},"15908":{"timestamp":{"__isSmartRef__":true,"id":15909},"user":"sebastianwoinar","tags":[]},"15909":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"15910":{"varMapping":{"__isSmartRef__":true,"id":15911},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":15912},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15911":{"this":{"__isSmartRef__":true,"id":15789}},"15912":{"timestamp":{"__isSmartRef__":true,"id":15913},"user":"sebastianwoinar","tags":[]},"15913":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"15914":{"varMapping":{"__isSmartRef__":true,"id":15915},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15916},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15915":{"this":{"__isSmartRef__":true,"id":15789}},"15916":{"timestamp":{"__isSmartRef__":true,"id":15917},"user":"sebastianwoinar","tags":[]},"15917":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"15918":{"submorphs":[{"__isSmartRef__":true,"id":15919}],"scripts":[],"shape":{"__isSmartRef__":true,"id":15936},"id":"81E949C4-4B88-422E-8DC0-5C608637C03C","eventHandler":{"__isSmartRef__":true,"id":15937},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":15938},"name":"node82","partsBinMetaInfo":{"__isSmartRef__":true,"id":15939},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5593},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":15507},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15942},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(378.4,210.0)"},"15919":{"submorphs":[],"scripts":[],"id":"092B63E5-48F8-478D-8851-2F776FEA7B06","shape":{"__isSmartRef__":true,"id":15920},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":15921},"textChunks":[{"__isSmartRef__":true,"id":15933}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":15935},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":15918},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"15920":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"15921":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":15922},{"__isSmartRef__":true,"id":15924},{"__isSmartRef__":true,"id":15926},{"__isSmartRef__":true,"id":15928},{"__isSmartRef__":true,"id":15930}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":15932},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15922":{"date":{"__isSmartRef__":true,"id":15923},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"15923":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"15924":{"date":{"__isSmartRef__":true,"id":15925},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"15925":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"15926":{"date":{"__isSmartRef__":true,"id":15927},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"15927":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"15928":{"date":{"__isSmartRef__":true,"id":15929},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"15929":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"15930":{"date":{"__isSmartRef__":true,"id":15931},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"15931":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"15932":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"15933":{"style":{"__isSmartRef__":true,"id":15934},"morph":{"__isSmartRef__":true,"id":15919},"chunkOwner":{"__isSmartRef__":true,"id":15919},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15934":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15935":{"morph":{"__isSmartRef__":true,"id":15919},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15936":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"15937":{"morph":{"__isSmartRef__":true,"id":15918},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15938":{},"15939":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":15940}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15940":{"date":{"__isSmartRef__":true,"id":15941},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"15941":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"15942":{"buildChildNodes":{"__isSmartRef__":true,"id":15943},"getGameTree":{"__isSmartRef__":true,"id":15947},"getLevel":{"__isSmartRef__":true,"id":15951},"getLevelWeight":{"__isSmartRef__":true,"id":15955},"getWeight":{"__isSmartRef__":true,"id":15959},"setNode":{"__isSmartRef__":true,"id":15963},"setParent":{"__isSmartRef__":true,"id":15967},"getParent":{"__isSmartRef__":true,"id":15971},"deactivate":{"__isSmartRef__":true,"id":15975},"blink":{"__isSmartRef__":true,"id":15979},"ABPreturn":{"__isSmartRef__":true,"id":15983},"ABPstart":{"__isSmartRef__":true,"id":15987},"ABPcontinue":{"__isSmartRef__":true,"id":15991},"ABPshowValue":{"__isSmartRef__":true,"id":15995},"ABPgetValue":{"__isSmartRef__":true,"id":15999},"ABPhasChildNodes":{"__isSmartRef__":true,"id":16003},"onMouseDown":{"__isSmartRef__":true,"id":16007},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":16015},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":16019},"ABPmarkAsDone":{"__isSmartRef__":true,"id":16023},"ABPmarkAsActive":{"__isSmartRef__":true,"id":16027},"getStateMorph":{"__isSmartRef__":true,"id":16031},"showState":{"__isSmartRef__":true,"id":16035},"ABPfailHard":{"__isSmartRef__":true,"id":16039},"markFinalDrawWith":{"__isSmartRef__":true,"id":16043}},"15943":{"varMapping":{"__isSmartRef__":true,"id":15944},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":15945},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15944":{"this":{"__isSmartRef__":true,"id":15918}},"15945":{"timestamp":{"__isSmartRef__":true,"id":15946},"user":"sebastianwoinar","tags":[]},"15946":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"15947":{"varMapping":{"__isSmartRef__":true,"id":15948},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":15949},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15948":{"this":{"__isSmartRef__":true,"id":15918}},"15949":{"timestamp":{"__isSmartRef__":true,"id":15950},"user":"sebastianwoinar","tags":[]},"15950":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15951":{"varMapping":{"__isSmartRef__":true,"id":15952},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":15953},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15952":{"this":{"__isSmartRef__":true,"id":15918}},"15953":{"timestamp":{"__isSmartRef__":true,"id":15954},"user":"sebastianwoinar","tags":[]},"15954":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15955":{"varMapping":{"__isSmartRef__":true,"id":15956},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15957},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15956":{"this":{"__isSmartRef__":true,"id":15918}},"15957":{"timestamp":{"__isSmartRef__":true,"id":15958},"user":"sebastianwoinar","tags":[]},"15958":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15959":{"varMapping":{"__isSmartRef__":true,"id":15960},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":15961},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15960":{"this":{"__isSmartRef__":true,"id":15918}},"15961":{"timestamp":{"__isSmartRef__":true,"id":15962},"user":"sebastianwoinar","tags":[]},"15962":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15963":{"varMapping":{"__isSmartRef__":true,"id":15964},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":15965},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15964":{"this":{"__isSmartRef__":true,"id":15918}},"15965":{"timestamp":{"__isSmartRef__":true,"id":15966},"user":"sebastianwoinar","tags":[]},"15966":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15967":{"varMapping":{"__isSmartRef__":true,"id":15968},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":15969},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15968":{"this":{"__isSmartRef__":true,"id":15918}},"15969":{"timestamp":{"__isSmartRef__":true,"id":15970},"user":"sebastianwoinar","tags":[]},"15970":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"15971":{"varMapping":{"__isSmartRef__":true,"id":15972},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":15973},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15972":{"this":{"__isSmartRef__":true,"id":15918}},"15973":{"timestamp":{"__isSmartRef__":true,"id":15974},"user":"sebastianwoinar","tags":[]},"15974":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"15975":{"varMapping":{"__isSmartRef__":true,"id":15976},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":15977},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15976":{"this":{"__isSmartRef__":true,"id":15918}},"15977":{"timestamp":{"__isSmartRef__":true,"id":15978},"user":"sebastianwoinar","tags":[]},"15978":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"15979":{"varMapping":{"__isSmartRef__":true,"id":15980},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":15981},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15980":{"this":{"__isSmartRef__":true,"id":15918}},"15981":{"timestamp":{"__isSmartRef__":true,"id":15982},"user":"sebastianwoinar","tags":[]},"15982":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"15983":{"varMapping":{"__isSmartRef__":true,"id":15984},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":15985},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15984":{"this":{"__isSmartRef__":true,"id":15918}},"15985":{"timestamp":{"__isSmartRef__":true,"id":15986},"user":"sebastianwoinar","tags":[]},"15986":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"15987":{"varMapping":{"__isSmartRef__":true,"id":15988},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":15989},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15988":{"this":{"__isSmartRef__":true,"id":15918}},"15989":{"timestamp":{"__isSmartRef__":true,"id":15990},"user":"sebastianwoinar","tags":[]},"15990":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"15991":{"varMapping":{"__isSmartRef__":true,"id":15992},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":15993},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15992":{"this":{"__isSmartRef__":true,"id":15918}},"15993":{"timestamp":{"__isSmartRef__":true,"id":15994},"user":"sebastianwoinar","tags":[]},"15994":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"15995":{"varMapping":{"__isSmartRef__":true,"id":15996},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":15997},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15996":{"this":{"__isSmartRef__":true,"id":15918}},"15997":{"timestamp":{"__isSmartRef__":true,"id":15998},"user":"sebastianwoinar","tags":[]},"15998":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"15999":{"varMapping":{"__isSmartRef__":true,"id":16000},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":16001},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16000":{"this":{"__isSmartRef__":true,"id":15918}},"16001":{"timestamp":{"__isSmartRef__":true,"id":16002},"user":"sebastianwoinar","tags":[]},"16002":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"16003":{"varMapping":{"__isSmartRef__":true,"id":16004},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":16005},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16004":{"this":{"__isSmartRef__":true,"id":15918}},"16005":{"timestamp":{"__isSmartRef__":true,"id":16006},"user":"sebastianwoinar","tags":[]},"16006":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"16007":{"varMapping":{"__isSmartRef__":true,"id":16008},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":16013},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16008":{"this":{"__isSmartRef__":true,"id":15918},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16009}},"16009":{"$super":{"__isSmartRef__":true,"id":16010}},"16010":{"varMapping":{"__isSmartRef__":true,"id":16011},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":16012},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16011":{"obj":{"__isSmartRef__":true,"id":15918},"name":"onMouseDown"},"16012":{},"16013":{"timestamp":{"__isSmartRef__":true,"id":16014},"user":"sebastianwoinar","tags":[]},"16014":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"16015":{"varMapping":{"__isSmartRef__":true,"id":16016},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":16017},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16016":{"this":{"__isSmartRef__":true,"id":15918}},"16017":{"timestamp":{"__isSmartRef__":true,"id":16018},"user":"sebastianwoinar","tags":[]},"16018":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"16019":{"varMapping":{"__isSmartRef__":true,"id":16020},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":16021},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16020":{"this":{"__isSmartRef__":true,"id":15918}},"16021":{"timestamp":{"__isSmartRef__":true,"id":16022},"user":"sebastianwoinar","tags":[]},"16022":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"16023":{"varMapping":{"__isSmartRef__":true,"id":16024},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":16025},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16024":{"this":{"__isSmartRef__":true,"id":15918}},"16025":{"timestamp":{"__isSmartRef__":true,"id":16026},"user":"sebastianwoinar","tags":[]},"16026":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"16027":{"varMapping":{"__isSmartRef__":true,"id":16028},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":16029},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16028":{"this":{"__isSmartRef__":true,"id":15918}},"16029":{"timestamp":{"__isSmartRef__":true,"id":16030},"user":"sebastianwoinar","tags":[]},"16030":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"16031":{"varMapping":{"__isSmartRef__":true,"id":16032},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":16033},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16032":{"this":{"__isSmartRef__":true,"id":15918}},"16033":{"timestamp":{"__isSmartRef__":true,"id":16034},"user":"sebastianwoinar","tags":[]},"16034":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"16035":{"varMapping":{"__isSmartRef__":true,"id":16036},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16037},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16036":{"this":{"__isSmartRef__":true,"id":15918}},"16037":{"timestamp":{"__isSmartRef__":true,"id":16038},"user":"sebastianwoinar","tags":[]},"16038":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"16039":{"varMapping":{"__isSmartRef__":true,"id":16040},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":16041},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16040":{"this":{"__isSmartRef__":true,"id":15918}},"16041":{"timestamp":{"__isSmartRef__":true,"id":16042},"user":"sebastianwoinar","tags":[]},"16042":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"16043":{"varMapping":{"__isSmartRef__":true,"id":16044},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16045},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16044":{"this":{"__isSmartRef__":true,"id":15918}},"16045":{"timestamp":{"__isSmartRef__":true,"id":16046},"user":"sebastianwoinar","tags":[]},"16046":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"16047":{"submorphs":[{"__isSmartRef__":true,"id":16048}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16065},"id":"2BD48DA9-D0A3-4081-9A9D-560CF3CC389C","eventHandler":{"__isSmartRef__":true,"id":16066},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":16067},"name":"node83","partsBinMetaInfo":{"__isSmartRef__":true,"id":16068},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5595},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":15507},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16071},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(383.6,210.0)"},"16048":{"submorphs":[],"scripts":[],"id":"9A5CD31F-4699-4FF3-BBA1-369DC7F42A02","shape":{"__isSmartRef__":true,"id":16049},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":16050},"textChunks":[{"__isSmartRef__":true,"id":16062}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":16064},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":16047},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"16049":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"16050":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":16051},{"__isSmartRef__":true,"id":16053},{"__isSmartRef__":true,"id":16055},{"__isSmartRef__":true,"id":16057},{"__isSmartRef__":true,"id":16059}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":16061},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"16051":{"date":{"__isSmartRef__":true,"id":16052},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"16052":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"16053":{"date":{"__isSmartRef__":true,"id":16054},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"16054":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"16055":{"date":{"__isSmartRef__":true,"id":16056},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"16056":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"16057":{"date":{"__isSmartRef__":true,"id":16058},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"16058":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"16059":{"date":{"__isSmartRef__":true,"id":16060},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"16060":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"16061":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"16062":{"style":{"__isSmartRef__":true,"id":16063},"morph":{"__isSmartRef__":true,"id":16048},"chunkOwner":{"__isSmartRef__":true,"id":16048},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16063":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16064":{"morph":{"__isSmartRef__":true,"id":16048},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16065":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"16066":{"morph":{"__isSmartRef__":true,"id":16047},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16067":{},"16068":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":16069}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"16069":{"date":{"__isSmartRef__":true,"id":16070},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"16070":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"16071":{"buildChildNodes":{"__isSmartRef__":true,"id":16072},"getGameTree":{"__isSmartRef__":true,"id":16076},"getLevel":{"__isSmartRef__":true,"id":16080},"getLevelWeight":{"__isSmartRef__":true,"id":16084},"getWeight":{"__isSmartRef__":true,"id":16088},"setNode":{"__isSmartRef__":true,"id":16092},"setParent":{"__isSmartRef__":true,"id":16096},"getParent":{"__isSmartRef__":true,"id":16100},"deactivate":{"__isSmartRef__":true,"id":16104},"blink":{"__isSmartRef__":true,"id":16108},"ABPreturn":{"__isSmartRef__":true,"id":16112},"ABPstart":{"__isSmartRef__":true,"id":16116},"ABPcontinue":{"__isSmartRef__":true,"id":16120},"ABPshowValue":{"__isSmartRef__":true,"id":16124},"ABPgetValue":{"__isSmartRef__":true,"id":16128},"ABPhasChildNodes":{"__isSmartRef__":true,"id":16132},"onMouseDown":{"__isSmartRef__":true,"id":16136},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":16144},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":16148},"ABPmarkAsDone":{"__isSmartRef__":true,"id":16152},"ABPmarkAsActive":{"__isSmartRef__":true,"id":16156},"getStateMorph":{"__isSmartRef__":true,"id":16160},"showState":{"__isSmartRef__":true,"id":16164},"ABPfailHard":{"__isSmartRef__":true,"id":16168},"markFinalDrawWith":{"__isSmartRef__":true,"id":16172}},"16072":{"varMapping":{"__isSmartRef__":true,"id":16073},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":16074},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16073":{"this":{"__isSmartRef__":true,"id":16047}},"16074":{"timestamp":{"__isSmartRef__":true,"id":16075},"user":"sebastianwoinar","tags":[]},"16075":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"16076":{"varMapping":{"__isSmartRef__":true,"id":16077},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":16078},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16077":{"this":{"__isSmartRef__":true,"id":16047}},"16078":{"timestamp":{"__isSmartRef__":true,"id":16079},"user":"sebastianwoinar","tags":[]},"16079":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16080":{"varMapping":{"__isSmartRef__":true,"id":16081},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":16082},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16081":{"this":{"__isSmartRef__":true,"id":16047}},"16082":{"timestamp":{"__isSmartRef__":true,"id":16083},"user":"sebastianwoinar","tags":[]},"16083":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16084":{"varMapping":{"__isSmartRef__":true,"id":16085},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16086},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16085":{"this":{"__isSmartRef__":true,"id":16047}},"16086":{"timestamp":{"__isSmartRef__":true,"id":16087},"user":"sebastianwoinar","tags":[]},"16087":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16088":{"varMapping":{"__isSmartRef__":true,"id":16089},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":16090},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16089":{"this":{"__isSmartRef__":true,"id":16047}},"16090":{"timestamp":{"__isSmartRef__":true,"id":16091},"user":"sebastianwoinar","tags":[]},"16091":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16092":{"varMapping":{"__isSmartRef__":true,"id":16093},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":16094},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16093":{"this":{"__isSmartRef__":true,"id":16047}},"16094":{"timestamp":{"__isSmartRef__":true,"id":16095},"user":"sebastianwoinar","tags":[]},"16095":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16096":{"varMapping":{"__isSmartRef__":true,"id":16097},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":16098},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16097":{"this":{"__isSmartRef__":true,"id":16047}},"16098":{"timestamp":{"__isSmartRef__":true,"id":16099},"user":"sebastianwoinar","tags":[]},"16099":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16100":{"varMapping":{"__isSmartRef__":true,"id":16101},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":16102},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16101":{"this":{"__isSmartRef__":true,"id":16047}},"16102":{"timestamp":{"__isSmartRef__":true,"id":16103},"user":"sebastianwoinar","tags":[]},"16103":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"16104":{"varMapping":{"__isSmartRef__":true,"id":16105},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":16106},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16105":{"this":{"__isSmartRef__":true,"id":16047}},"16106":{"timestamp":{"__isSmartRef__":true,"id":16107},"user":"sebastianwoinar","tags":[]},"16107":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"16108":{"varMapping":{"__isSmartRef__":true,"id":16109},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":16110},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16109":{"this":{"__isSmartRef__":true,"id":16047}},"16110":{"timestamp":{"__isSmartRef__":true,"id":16111},"user":"sebastianwoinar","tags":[]},"16111":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"16112":{"varMapping":{"__isSmartRef__":true,"id":16113},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":16114},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16113":{"this":{"__isSmartRef__":true,"id":16047}},"16114":{"timestamp":{"__isSmartRef__":true,"id":16115},"user":"sebastianwoinar","tags":[]},"16115":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"16116":{"varMapping":{"__isSmartRef__":true,"id":16117},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":16118},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16117":{"this":{"__isSmartRef__":true,"id":16047}},"16118":{"timestamp":{"__isSmartRef__":true,"id":16119},"user":"sebastianwoinar","tags":[]},"16119":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"16120":{"varMapping":{"__isSmartRef__":true,"id":16121},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":16122},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16121":{"this":{"__isSmartRef__":true,"id":16047}},"16122":{"timestamp":{"__isSmartRef__":true,"id":16123},"user":"sebastianwoinar","tags":[]},"16123":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"16124":{"varMapping":{"__isSmartRef__":true,"id":16125},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":16126},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16125":{"this":{"__isSmartRef__":true,"id":16047}},"16126":{"timestamp":{"__isSmartRef__":true,"id":16127},"user":"sebastianwoinar","tags":[]},"16127":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"16128":{"varMapping":{"__isSmartRef__":true,"id":16129},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":16130},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16129":{"this":{"__isSmartRef__":true,"id":16047}},"16130":{"timestamp":{"__isSmartRef__":true,"id":16131},"user":"sebastianwoinar","tags":[]},"16131":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"16132":{"varMapping":{"__isSmartRef__":true,"id":16133},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":16134},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16133":{"this":{"__isSmartRef__":true,"id":16047}},"16134":{"timestamp":{"__isSmartRef__":true,"id":16135},"user":"sebastianwoinar","tags":[]},"16135":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"16136":{"varMapping":{"__isSmartRef__":true,"id":16137},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":16142},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16137":{"this":{"__isSmartRef__":true,"id":16047},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16138}},"16138":{"$super":{"__isSmartRef__":true,"id":16139}},"16139":{"varMapping":{"__isSmartRef__":true,"id":16140},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":16141},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16140":{"obj":{"__isSmartRef__":true,"id":16047},"name":"onMouseDown"},"16141":{},"16142":{"timestamp":{"__isSmartRef__":true,"id":16143},"user":"sebastianwoinar","tags":[]},"16143":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"16144":{"varMapping":{"__isSmartRef__":true,"id":16145},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":16146},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16145":{"this":{"__isSmartRef__":true,"id":16047}},"16146":{"timestamp":{"__isSmartRef__":true,"id":16147},"user":"sebastianwoinar","tags":[]},"16147":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"16148":{"varMapping":{"__isSmartRef__":true,"id":16149},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":16150},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16149":{"this":{"__isSmartRef__":true,"id":16047}},"16150":{"timestamp":{"__isSmartRef__":true,"id":16151},"user":"sebastianwoinar","tags":[]},"16151":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"16152":{"varMapping":{"__isSmartRef__":true,"id":16153},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":16154},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16153":{"this":{"__isSmartRef__":true,"id":16047}},"16154":{"timestamp":{"__isSmartRef__":true,"id":16155},"user":"sebastianwoinar","tags":[]},"16155":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"16156":{"varMapping":{"__isSmartRef__":true,"id":16157},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":16158},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16157":{"this":{"__isSmartRef__":true,"id":16047}},"16158":{"timestamp":{"__isSmartRef__":true,"id":16159},"user":"sebastianwoinar","tags":[]},"16159":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"16160":{"varMapping":{"__isSmartRef__":true,"id":16161},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":16162},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16161":{"this":{"__isSmartRef__":true,"id":16047}},"16162":{"timestamp":{"__isSmartRef__":true,"id":16163},"user":"sebastianwoinar","tags":[]},"16163":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"16164":{"varMapping":{"__isSmartRef__":true,"id":16165},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16166},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16165":{"this":{"__isSmartRef__":true,"id":16047}},"16166":{"timestamp":{"__isSmartRef__":true,"id":16167},"user":"sebastianwoinar","tags":[]},"16167":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"16168":{"varMapping":{"__isSmartRef__":true,"id":16169},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":16170},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16169":{"this":{"__isSmartRef__":true,"id":16047}},"16170":{"timestamp":{"__isSmartRef__":true,"id":16171},"user":"sebastianwoinar","tags":[]},"16171":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"16172":{"varMapping":{"__isSmartRef__":true,"id":16173},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16174},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16173":{"this":{"__isSmartRef__":true,"id":16047}},"16174":{"timestamp":{"__isSmartRef__":true,"id":16175},"user":"sebastianwoinar","tags":[]},"16175":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"16176":{"submorphs":[{"__isSmartRef__":true,"id":16177}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16194},"id":"F4F2A7CC-5A65-4158-8FDB-9220C264D086","eventHandler":{"__isSmartRef__":true,"id":16195},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":16196},"name":"node84","partsBinMetaInfo":{"__isSmartRef__":true,"id":16197},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5597},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":15507},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16200},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(388.8,210.0)"},"16177":{"submorphs":[],"scripts":[],"id":"5BF72D34-689B-4AB5-867B-D242B008B407","shape":{"__isSmartRef__":true,"id":16178},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":16179},"textChunks":[{"__isSmartRef__":true,"id":16191}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":16193},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":16176},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"16178":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"16179":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":16180},{"__isSmartRef__":true,"id":16182},{"__isSmartRef__":true,"id":16184},{"__isSmartRef__":true,"id":16186},{"__isSmartRef__":true,"id":16188}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":16190},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"16180":{"date":{"__isSmartRef__":true,"id":16181},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"16181":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"16182":{"date":{"__isSmartRef__":true,"id":16183},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"16183":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"16184":{"date":{"__isSmartRef__":true,"id":16185},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"16185":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"16186":{"date":{"__isSmartRef__":true,"id":16187},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"16187":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"16188":{"date":{"__isSmartRef__":true,"id":16189},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"16189":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"16190":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"16191":{"style":{"__isSmartRef__":true,"id":16192},"morph":{"__isSmartRef__":true,"id":16177},"chunkOwner":{"__isSmartRef__":true,"id":16177},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16192":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16193":{"morph":{"__isSmartRef__":true,"id":16177},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16194":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"16195":{"morph":{"__isSmartRef__":true,"id":16176},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16196":{},"16197":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":16198}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"16198":{"date":{"__isSmartRef__":true,"id":16199},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"16199":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"16200":{"buildChildNodes":{"__isSmartRef__":true,"id":16201},"getGameTree":{"__isSmartRef__":true,"id":16205},"getLevel":{"__isSmartRef__":true,"id":16209},"getLevelWeight":{"__isSmartRef__":true,"id":16213},"getWeight":{"__isSmartRef__":true,"id":16217},"setNode":{"__isSmartRef__":true,"id":16221},"setParent":{"__isSmartRef__":true,"id":16225},"getParent":{"__isSmartRef__":true,"id":16229},"deactivate":{"__isSmartRef__":true,"id":16233},"blink":{"__isSmartRef__":true,"id":16237},"ABPreturn":{"__isSmartRef__":true,"id":16241},"ABPstart":{"__isSmartRef__":true,"id":16245},"ABPcontinue":{"__isSmartRef__":true,"id":16249},"ABPshowValue":{"__isSmartRef__":true,"id":16253},"ABPgetValue":{"__isSmartRef__":true,"id":16257},"ABPhasChildNodes":{"__isSmartRef__":true,"id":16261},"onMouseDown":{"__isSmartRef__":true,"id":16265},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":16273},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":16277},"ABPmarkAsDone":{"__isSmartRef__":true,"id":16281},"ABPmarkAsActive":{"__isSmartRef__":true,"id":16285},"getStateMorph":{"__isSmartRef__":true,"id":16289},"showState":{"__isSmartRef__":true,"id":16293},"ABPfailHard":{"__isSmartRef__":true,"id":16297},"markFinalDrawWith":{"__isSmartRef__":true,"id":16301}},"16201":{"varMapping":{"__isSmartRef__":true,"id":16202},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":16203},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16202":{"this":{"__isSmartRef__":true,"id":16176}},"16203":{"timestamp":{"__isSmartRef__":true,"id":16204},"user":"sebastianwoinar","tags":[]},"16204":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"16205":{"varMapping":{"__isSmartRef__":true,"id":16206},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":16207},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16206":{"this":{"__isSmartRef__":true,"id":16176}},"16207":{"timestamp":{"__isSmartRef__":true,"id":16208},"user":"sebastianwoinar","tags":[]},"16208":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16209":{"varMapping":{"__isSmartRef__":true,"id":16210},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":16211},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16210":{"this":{"__isSmartRef__":true,"id":16176}},"16211":{"timestamp":{"__isSmartRef__":true,"id":16212},"user":"sebastianwoinar","tags":[]},"16212":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16213":{"varMapping":{"__isSmartRef__":true,"id":16214},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16215},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16214":{"this":{"__isSmartRef__":true,"id":16176}},"16215":{"timestamp":{"__isSmartRef__":true,"id":16216},"user":"sebastianwoinar","tags":[]},"16216":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16217":{"varMapping":{"__isSmartRef__":true,"id":16218},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":16219},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16218":{"this":{"__isSmartRef__":true,"id":16176}},"16219":{"timestamp":{"__isSmartRef__":true,"id":16220},"user":"sebastianwoinar","tags":[]},"16220":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16221":{"varMapping":{"__isSmartRef__":true,"id":16222},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":16223},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16222":{"this":{"__isSmartRef__":true,"id":16176}},"16223":{"timestamp":{"__isSmartRef__":true,"id":16224},"user":"sebastianwoinar","tags":[]},"16224":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16225":{"varMapping":{"__isSmartRef__":true,"id":16226},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":16227},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16226":{"this":{"__isSmartRef__":true,"id":16176}},"16227":{"timestamp":{"__isSmartRef__":true,"id":16228},"user":"sebastianwoinar","tags":[]},"16228":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16229":{"varMapping":{"__isSmartRef__":true,"id":16230},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":16231},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16230":{"this":{"__isSmartRef__":true,"id":16176}},"16231":{"timestamp":{"__isSmartRef__":true,"id":16232},"user":"sebastianwoinar","tags":[]},"16232":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"16233":{"varMapping":{"__isSmartRef__":true,"id":16234},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":16235},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16234":{"this":{"__isSmartRef__":true,"id":16176}},"16235":{"timestamp":{"__isSmartRef__":true,"id":16236},"user":"sebastianwoinar","tags":[]},"16236":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"16237":{"varMapping":{"__isSmartRef__":true,"id":16238},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":16239},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16238":{"this":{"__isSmartRef__":true,"id":16176}},"16239":{"timestamp":{"__isSmartRef__":true,"id":16240},"user":"sebastianwoinar","tags":[]},"16240":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"16241":{"varMapping":{"__isSmartRef__":true,"id":16242},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":16243},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16242":{"this":{"__isSmartRef__":true,"id":16176}},"16243":{"timestamp":{"__isSmartRef__":true,"id":16244},"user":"sebastianwoinar","tags":[]},"16244":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"16245":{"varMapping":{"__isSmartRef__":true,"id":16246},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":16247},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16246":{"this":{"__isSmartRef__":true,"id":16176}},"16247":{"timestamp":{"__isSmartRef__":true,"id":16248},"user":"sebastianwoinar","tags":[]},"16248":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"16249":{"varMapping":{"__isSmartRef__":true,"id":16250},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":16251},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16250":{"this":{"__isSmartRef__":true,"id":16176}},"16251":{"timestamp":{"__isSmartRef__":true,"id":16252},"user":"sebastianwoinar","tags":[]},"16252":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"16253":{"varMapping":{"__isSmartRef__":true,"id":16254},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":16255},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16254":{"this":{"__isSmartRef__":true,"id":16176}},"16255":{"timestamp":{"__isSmartRef__":true,"id":16256},"user":"sebastianwoinar","tags":[]},"16256":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"16257":{"varMapping":{"__isSmartRef__":true,"id":16258},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":16259},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16258":{"this":{"__isSmartRef__":true,"id":16176}},"16259":{"timestamp":{"__isSmartRef__":true,"id":16260},"user":"sebastianwoinar","tags":[]},"16260":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"16261":{"varMapping":{"__isSmartRef__":true,"id":16262},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":16263},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16262":{"this":{"__isSmartRef__":true,"id":16176}},"16263":{"timestamp":{"__isSmartRef__":true,"id":16264},"user":"sebastianwoinar","tags":[]},"16264":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"16265":{"varMapping":{"__isSmartRef__":true,"id":16266},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":16271},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16266":{"this":{"__isSmartRef__":true,"id":16176},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16267}},"16267":{"$super":{"__isSmartRef__":true,"id":16268}},"16268":{"varMapping":{"__isSmartRef__":true,"id":16269},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":16270},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16269":{"obj":{"__isSmartRef__":true,"id":16176},"name":"onMouseDown"},"16270":{},"16271":{"timestamp":{"__isSmartRef__":true,"id":16272},"user":"sebastianwoinar","tags":[]},"16272":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"16273":{"varMapping":{"__isSmartRef__":true,"id":16274},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":16275},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16274":{"this":{"__isSmartRef__":true,"id":16176}},"16275":{"timestamp":{"__isSmartRef__":true,"id":16276},"user":"sebastianwoinar","tags":[]},"16276":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"16277":{"varMapping":{"__isSmartRef__":true,"id":16278},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":16279},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16278":{"this":{"__isSmartRef__":true,"id":16176}},"16279":{"timestamp":{"__isSmartRef__":true,"id":16280},"user":"sebastianwoinar","tags":[]},"16280":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"16281":{"varMapping":{"__isSmartRef__":true,"id":16282},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":16283},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16282":{"this":{"__isSmartRef__":true,"id":16176}},"16283":{"timestamp":{"__isSmartRef__":true,"id":16284},"user":"sebastianwoinar","tags":[]},"16284":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"16285":{"varMapping":{"__isSmartRef__":true,"id":16286},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":16287},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16286":{"this":{"__isSmartRef__":true,"id":16176}},"16287":{"timestamp":{"__isSmartRef__":true,"id":16288},"user":"sebastianwoinar","tags":[]},"16288":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"16289":{"varMapping":{"__isSmartRef__":true,"id":16290},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":16291},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16290":{"this":{"__isSmartRef__":true,"id":16176}},"16291":{"timestamp":{"__isSmartRef__":true,"id":16292},"user":"sebastianwoinar","tags":[]},"16292":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"16293":{"varMapping":{"__isSmartRef__":true,"id":16294},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16295},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16294":{"this":{"__isSmartRef__":true,"id":16176}},"16295":{"timestamp":{"__isSmartRef__":true,"id":16296},"user":"sebastianwoinar","tags":[]},"16296":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"16297":{"varMapping":{"__isSmartRef__":true,"id":16298},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":16299},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16298":{"this":{"__isSmartRef__":true,"id":16176}},"16299":{"timestamp":{"__isSmartRef__":true,"id":16300},"user":"sebastianwoinar","tags":[]},"16300":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"16301":{"varMapping":{"__isSmartRef__":true,"id":16302},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16303},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16302":{"this":{"__isSmartRef__":true,"id":16176}},"16303":{"timestamp":{"__isSmartRef__":true,"id":16304},"user":"sebastianwoinar","tags":[]},"16304":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"16305":{"submorphs":[{"__isSmartRef__":true,"id":16306}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16323},"id":"FDB6EEA3-AE12-4C29-9636-89EBF6B3EF2E","eventHandler":{"__isSmartRef__":true,"id":16324},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":16325},"name":"node85","partsBinMetaInfo":{"__isSmartRef__":true,"id":16326},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5599},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":15507},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16329},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(394.0,210.0)"},"16306":{"submorphs":[],"scripts":[],"id":"0734A3E4-0F04-402F-8A40-2F17798595E8","shape":{"__isSmartRef__":true,"id":16307},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":16308},"textChunks":[{"__isSmartRef__":true,"id":16320}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":16322},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":16305},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"16307":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"16308":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":16309},{"__isSmartRef__":true,"id":16311},{"__isSmartRef__":true,"id":16313},{"__isSmartRef__":true,"id":16315},{"__isSmartRef__":true,"id":16317}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":16319},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"16309":{"date":{"__isSmartRef__":true,"id":16310},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"16310":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"16311":{"date":{"__isSmartRef__":true,"id":16312},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"16312":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"16313":{"date":{"__isSmartRef__":true,"id":16314},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"16314":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"16315":{"date":{"__isSmartRef__":true,"id":16316},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"16316":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"16317":{"date":{"__isSmartRef__":true,"id":16318},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"16318":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"16319":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"16320":{"style":{"__isSmartRef__":true,"id":16321},"morph":{"__isSmartRef__":true,"id":16306},"chunkOwner":{"__isSmartRef__":true,"id":16306},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16321":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16322":{"morph":{"__isSmartRef__":true,"id":16306},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16323":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"16324":{"morph":{"__isSmartRef__":true,"id":16305},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16325":{},"16326":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":16327}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"16327":{"date":{"__isSmartRef__":true,"id":16328},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"16328":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"16329":{"buildChildNodes":{"__isSmartRef__":true,"id":16330},"getGameTree":{"__isSmartRef__":true,"id":16334},"getLevel":{"__isSmartRef__":true,"id":16338},"getLevelWeight":{"__isSmartRef__":true,"id":16342},"getWeight":{"__isSmartRef__":true,"id":16346},"setNode":{"__isSmartRef__":true,"id":16350},"setParent":{"__isSmartRef__":true,"id":16354},"getParent":{"__isSmartRef__":true,"id":16358},"deactivate":{"__isSmartRef__":true,"id":16362},"blink":{"__isSmartRef__":true,"id":16366},"ABPreturn":{"__isSmartRef__":true,"id":16370},"ABPstart":{"__isSmartRef__":true,"id":16374},"ABPcontinue":{"__isSmartRef__":true,"id":16378},"ABPshowValue":{"__isSmartRef__":true,"id":16382},"ABPgetValue":{"__isSmartRef__":true,"id":16386},"ABPhasChildNodes":{"__isSmartRef__":true,"id":16390},"onMouseDown":{"__isSmartRef__":true,"id":16394},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":16402},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":16406},"ABPmarkAsDone":{"__isSmartRef__":true,"id":16410},"ABPmarkAsActive":{"__isSmartRef__":true,"id":16414},"getStateMorph":{"__isSmartRef__":true,"id":16418},"showState":{"__isSmartRef__":true,"id":16422},"ABPfailHard":{"__isSmartRef__":true,"id":16426},"markFinalDrawWith":{"__isSmartRef__":true,"id":16430}},"16330":{"varMapping":{"__isSmartRef__":true,"id":16331},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":16332},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16331":{"this":{"__isSmartRef__":true,"id":16305}},"16332":{"timestamp":{"__isSmartRef__":true,"id":16333},"user":"sebastianwoinar","tags":[]},"16333":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"16334":{"varMapping":{"__isSmartRef__":true,"id":16335},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":16336},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16335":{"this":{"__isSmartRef__":true,"id":16305}},"16336":{"timestamp":{"__isSmartRef__":true,"id":16337},"user":"sebastianwoinar","tags":[]},"16337":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16338":{"varMapping":{"__isSmartRef__":true,"id":16339},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":16340},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16339":{"this":{"__isSmartRef__":true,"id":16305}},"16340":{"timestamp":{"__isSmartRef__":true,"id":16341},"user":"sebastianwoinar","tags":[]},"16341":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16342":{"varMapping":{"__isSmartRef__":true,"id":16343},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16344},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16343":{"this":{"__isSmartRef__":true,"id":16305}},"16344":{"timestamp":{"__isSmartRef__":true,"id":16345},"user":"sebastianwoinar","tags":[]},"16345":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16346":{"varMapping":{"__isSmartRef__":true,"id":16347},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":16348},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16347":{"this":{"__isSmartRef__":true,"id":16305}},"16348":{"timestamp":{"__isSmartRef__":true,"id":16349},"user":"sebastianwoinar","tags":[]},"16349":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16350":{"varMapping":{"__isSmartRef__":true,"id":16351},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":16352},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16351":{"this":{"__isSmartRef__":true,"id":16305}},"16352":{"timestamp":{"__isSmartRef__":true,"id":16353},"user":"sebastianwoinar","tags":[]},"16353":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16354":{"varMapping":{"__isSmartRef__":true,"id":16355},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":16356},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16355":{"this":{"__isSmartRef__":true,"id":16305}},"16356":{"timestamp":{"__isSmartRef__":true,"id":16357},"user":"sebastianwoinar","tags":[]},"16357":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16358":{"varMapping":{"__isSmartRef__":true,"id":16359},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":16360},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16359":{"this":{"__isSmartRef__":true,"id":16305}},"16360":{"timestamp":{"__isSmartRef__":true,"id":16361},"user":"sebastianwoinar","tags":[]},"16361":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"16362":{"varMapping":{"__isSmartRef__":true,"id":16363},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":16364},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16363":{"this":{"__isSmartRef__":true,"id":16305}},"16364":{"timestamp":{"__isSmartRef__":true,"id":16365},"user":"sebastianwoinar","tags":[]},"16365":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"16366":{"varMapping":{"__isSmartRef__":true,"id":16367},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":16368},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16367":{"this":{"__isSmartRef__":true,"id":16305}},"16368":{"timestamp":{"__isSmartRef__":true,"id":16369},"user":"sebastianwoinar","tags":[]},"16369":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"16370":{"varMapping":{"__isSmartRef__":true,"id":16371},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":16372},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16371":{"this":{"__isSmartRef__":true,"id":16305}},"16372":{"timestamp":{"__isSmartRef__":true,"id":16373},"user":"sebastianwoinar","tags":[]},"16373":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"16374":{"varMapping":{"__isSmartRef__":true,"id":16375},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":16376},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16375":{"this":{"__isSmartRef__":true,"id":16305}},"16376":{"timestamp":{"__isSmartRef__":true,"id":16377},"user":"sebastianwoinar","tags":[]},"16377":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"16378":{"varMapping":{"__isSmartRef__":true,"id":16379},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":16380},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16379":{"this":{"__isSmartRef__":true,"id":16305}},"16380":{"timestamp":{"__isSmartRef__":true,"id":16381},"user":"sebastianwoinar","tags":[]},"16381":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"16382":{"varMapping":{"__isSmartRef__":true,"id":16383},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":16384},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16383":{"this":{"__isSmartRef__":true,"id":16305}},"16384":{"timestamp":{"__isSmartRef__":true,"id":16385},"user":"sebastianwoinar","tags":[]},"16385":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"16386":{"varMapping":{"__isSmartRef__":true,"id":16387},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":16388},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16387":{"this":{"__isSmartRef__":true,"id":16305}},"16388":{"timestamp":{"__isSmartRef__":true,"id":16389},"user":"sebastianwoinar","tags":[]},"16389":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"16390":{"varMapping":{"__isSmartRef__":true,"id":16391},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":16392},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16391":{"this":{"__isSmartRef__":true,"id":16305}},"16392":{"timestamp":{"__isSmartRef__":true,"id":16393},"user":"sebastianwoinar","tags":[]},"16393":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"16394":{"varMapping":{"__isSmartRef__":true,"id":16395},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":16400},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16395":{"this":{"__isSmartRef__":true,"id":16305},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16396}},"16396":{"$super":{"__isSmartRef__":true,"id":16397}},"16397":{"varMapping":{"__isSmartRef__":true,"id":16398},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":16399},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16398":{"obj":{"__isSmartRef__":true,"id":16305},"name":"onMouseDown"},"16399":{},"16400":{"timestamp":{"__isSmartRef__":true,"id":16401},"user":"sebastianwoinar","tags":[]},"16401":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"16402":{"varMapping":{"__isSmartRef__":true,"id":16403},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":16404},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16403":{"this":{"__isSmartRef__":true,"id":16305}},"16404":{"timestamp":{"__isSmartRef__":true,"id":16405},"user":"sebastianwoinar","tags":[]},"16405":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"16406":{"varMapping":{"__isSmartRef__":true,"id":16407},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":16408},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16407":{"this":{"__isSmartRef__":true,"id":16305}},"16408":{"timestamp":{"__isSmartRef__":true,"id":16409},"user":"sebastianwoinar","tags":[]},"16409":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"16410":{"varMapping":{"__isSmartRef__":true,"id":16411},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":16412},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16411":{"this":{"__isSmartRef__":true,"id":16305}},"16412":{"timestamp":{"__isSmartRef__":true,"id":16413},"user":"sebastianwoinar","tags":[]},"16413":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"16414":{"varMapping":{"__isSmartRef__":true,"id":16415},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":16416},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16415":{"this":{"__isSmartRef__":true,"id":16305}},"16416":{"timestamp":{"__isSmartRef__":true,"id":16417},"user":"sebastianwoinar","tags":[]},"16417":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"16418":{"varMapping":{"__isSmartRef__":true,"id":16419},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":16420},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16419":{"this":{"__isSmartRef__":true,"id":16305}},"16420":{"timestamp":{"__isSmartRef__":true,"id":16421},"user":"sebastianwoinar","tags":[]},"16421":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"16422":{"varMapping":{"__isSmartRef__":true,"id":16423},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16424},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16423":{"this":{"__isSmartRef__":true,"id":16305}},"16424":{"timestamp":{"__isSmartRef__":true,"id":16425},"user":"sebastianwoinar","tags":[]},"16425":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"16426":{"varMapping":{"__isSmartRef__":true,"id":16427},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":16428},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16427":{"this":{"__isSmartRef__":true,"id":16305}},"16428":{"timestamp":{"__isSmartRef__":true,"id":16429},"user":"sebastianwoinar","tags":[]},"16429":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"16430":{"varMapping":{"__isSmartRef__":true,"id":16431},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16432},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16431":{"this":{"__isSmartRef__":true,"id":16305}},"16432":{"timestamp":{"__isSmartRef__":true,"id":16433},"user":"sebastianwoinar","tags":[]},"16433":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"16434":{"submorphs":[{"__isSmartRef__":true,"id":16435}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16452},"id":"9D1783E2-C5C8-49C0-9201-B7193915CCA3","eventHandler":{"__isSmartRef__":true,"id":16453},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":16454},"name":"node86","partsBinMetaInfo":{"__isSmartRef__":true,"id":16455},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5601},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":15507},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16458},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(399.2,210.0)"},"16435":{"submorphs":[],"scripts":[],"id":"89848F59-234D-4164-9F64-158F28471EB6","shape":{"__isSmartRef__":true,"id":16436},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":16437},"textChunks":[{"__isSmartRef__":true,"id":16449}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":16451},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":16434},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"16436":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"16437":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":16438},{"__isSmartRef__":true,"id":16440},{"__isSmartRef__":true,"id":16442},{"__isSmartRef__":true,"id":16444},{"__isSmartRef__":true,"id":16446}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":16448},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"16438":{"date":{"__isSmartRef__":true,"id":16439},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"16439":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"16440":{"date":{"__isSmartRef__":true,"id":16441},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"16441":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"16442":{"date":{"__isSmartRef__":true,"id":16443},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"16443":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"16444":{"date":{"__isSmartRef__":true,"id":16445},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"16445":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"16446":{"date":{"__isSmartRef__":true,"id":16447},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"16447":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"16448":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"16449":{"style":{"__isSmartRef__":true,"id":16450},"morph":{"__isSmartRef__":true,"id":16435},"chunkOwner":{"__isSmartRef__":true,"id":16435},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16450":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16451":{"morph":{"__isSmartRef__":true,"id":16435},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16452":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"16453":{"morph":{"__isSmartRef__":true,"id":16434},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16454":{},"16455":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":16456}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"16456":{"date":{"__isSmartRef__":true,"id":16457},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"16457":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"16458":{"buildChildNodes":{"__isSmartRef__":true,"id":16459},"getGameTree":{"__isSmartRef__":true,"id":16463},"getLevel":{"__isSmartRef__":true,"id":16467},"getLevelWeight":{"__isSmartRef__":true,"id":16471},"getWeight":{"__isSmartRef__":true,"id":16475},"setNode":{"__isSmartRef__":true,"id":16479},"setParent":{"__isSmartRef__":true,"id":16483},"getParent":{"__isSmartRef__":true,"id":16487},"deactivate":{"__isSmartRef__":true,"id":16491},"blink":{"__isSmartRef__":true,"id":16495},"ABPreturn":{"__isSmartRef__":true,"id":16499},"ABPstart":{"__isSmartRef__":true,"id":16503},"ABPcontinue":{"__isSmartRef__":true,"id":16507},"ABPshowValue":{"__isSmartRef__":true,"id":16511},"ABPgetValue":{"__isSmartRef__":true,"id":16515},"ABPhasChildNodes":{"__isSmartRef__":true,"id":16519},"onMouseDown":{"__isSmartRef__":true,"id":16523},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":16531},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":16535},"ABPmarkAsDone":{"__isSmartRef__":true,"id":16539},"ABPmarkAsActive":{"__isSmartRef__":true,"id":16543},"getStateMorph":{"__isSmartRef__":true,"id":16547},"showState":{"__isSmartRef__":true,"id":16551},"ABPfailHard":{"__isSmartRef__":true,"id":16555},"markFinalDrawWith":{"__isSmartRef__":true,"id":16559}},"16459":{"varMapping":{"__isSmartRef__":true,"id":16460},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":16461},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16460":{"this":{"__isSmartRef__":true,"id":16434}},"16461":{"timestamp":{"__isSmartRef__":true,"id":16462},"user":"sebastianwoinar","tags":[]},"16462":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"16463":{"varMapping":{"__isSmartRef__":true,"id":16464},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":16465},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16464":{"this":{"__isSmartRef__":true,"id":16434}},"16465":{"timestamp":{"__isSmartRef__":true,"id":16466},"user":"sebastianwoinar","tags":[]},"16466":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16467":{"varMapping":{"__isSmartRef__":true,"id":16468},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":16469},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16468":{"this":{"__isSmartRef__":true,"id":16434}},"16469":{"timestamp":{"__isSmartRef__":true,"id":16470},"user":"sebastianwoinar","tags":[]},"16470":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16471":{"varMapping":{"__isSmartRef__":true,"id":16472},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16473},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16472":{"this":{"__isSmartRef__":true,"id":16434}},"16473":{"timestamp":{"__isSmartRef__":true,"id":16474},"user":"sebastianwoinar","tags":[]},"16474":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16475":{"varMapping":{"__isSmartRef__":true,"id":16476},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":16477},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16476":{"this":{"__isSmartRef__":true,"id":16434}},"16477":{"timestamp":{"__isSmartRef__":true,"id":16478},"user":"sebastianwoinar","tags":[]},"16478":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16479":{"varMapping":{"__isSmartRef__":true,"id":16480},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":16481},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16480":{"this":{"__isSmartRef__":true,"id":16434}},"16481":{"timestamp":{"__isSmartRef__":true,"id":16482},"user":"sebastianwoinar","tags":[]},"16482":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16483":{"varMapping":{"__isSmartRef__":true,"id":16484},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":16485},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16484":{"this":{"__isSmartRef__":true,"id":16434}},"16485":{"timestamp":{"__isSmartRef__":true,"id":16486},"user":"sebastianwoinar","tags":[]},"16486":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16487":{"varMapping":{"__isSmartRef__":true,"id":16488},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":16489},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16488":{"this":{"__isSmartRef__":true,"id":16434}},"16489":{"timestamp":{"__isSmartRef__":true,"id":16490},"user":"sebastianwoinar","tags":[]},"16490":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"16491":{"varMapping":{"__isSmartRef__":true,"id":16492},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":16493},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16492":{"this":{"__isSmartRef__":true,"id":16434}},"16493":{"timestamp":{"__isSmartRef__":true,"id":16494},"user":"sebastianwoinar","tags":[]},"16494":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"16495":{"varMapping":{"__isSmartRef__":true,"id":16496},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":16497},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16496":{"this":{"__isSmartRef__":true,"id":16434}},"16497":{"timestamp":{"__isSmartRef__":true,"id":16498},"user":"sebastianwoinar","tags":[]},"16498":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"16499":{"varMapping":{"__isSmartRef__":true,"id":16500},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":16501},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16500":{"this":{"__isSmartRef__":true,"id":16434}},"16501":{"timestamp":{"__isSmartRef__":true,"id":16502},"user":"sebastianwoinar","tags":[]},"16502":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"16503":{"varMapping":{"__isSmartRef__":true,"id":16504},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":16505},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16504":{"this":{"__isSmartRef__":true,"id":16434}},"16505":{"timestamp":{"__isSmartRef__":true,"id":16506},"user":"sebastianwoinar","tags":[]},"16506":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"16507":{"varMapping":{"__isSmartRef__":true,"id":16508},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":16509},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16508":{"this":{"__isSmartRef__":true,"id":16434}},"16509":{"timestamp":{"__isSmartRef__":true,"id":16510},"user":"sebastianwoinar","tags":[]},"16510":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"16511":{"varMapping":{"__isSmartRef__":true,"id":16512},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":16513},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16512":{"this":{"__isSmartRef__":true,"id":16434}},"16513":{"timestamp":{"__isSmartRef__":true,"id":16514},"user":"sebastianwoinar","tags":[]},"16514":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"16515":{"varMapping":{"__isSmartRef__":true,"id":16516},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":16517},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16516":{"this":{"__isSmartRef__":true,"id":16434}},"16517":{"timestamp":{"__isSmartRef__":true,"id":16518},"user":"sebastianwoinar","tags":[]},"16518":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"16519":{"varMapping":{"__isSmartRef__":true,"id":16520},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":16521},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16520":{"this":{"__isSmartRef__":true,"id":16434}},"16521":{"timestamp":{"__isSmartRef__":true,"id":16522},"user":"sebastianwoinar","tags":[]},"16522":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"16523":{"varMapping":{"__isSmartRef__":true,"id":16524},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":16529},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16524":{"this":{"__isSmartRef__":true,"id":16434},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16525}},"16525":{"$super":{"__isSmartRef__":true,"id":16526}},"16526":{"varMapping":{"__isSmartRef__":true,"id":16527},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":16528},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16527":{"obj":{"__isSmartRef__":true,"id":16434},"name":"onMouseDown"},"16528":{},"16529":{"timestamp":{"__isSmartRef__":true,"id":16530},"user":"sebastianwoinar","tags":[]},"16530":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"16531":{"varMapping":{"__isSmartRef__":true,"id":16532},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":16533},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16532":{"this":{"__isSmartRef__":true,"id":16434}},"16533":{"timestamp":{"__isSmartRef__":true,"id":16534},"user":"sebastianwoinar","tags":[]},"16534":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"16535":{"varMapping":{"__isSmartRef__":true,"id":16536},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":16537},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16536":{"this":{"__isSmartRef__":true,"id":16434}},"16537":{"timestamp":{"__isSmartRef__":true,"id":16538},"user":"sebastianwoinar","tags":[]},"16538":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"16539":{"varMapping":{"__isSmartRef__":true,"id":16540},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":16541},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16540":{"this":{"__isSmartRef__":true,"id":16434}},"16541":{"timestamp":{"__isSmartRef__":true,"id":16542},"user":"sebastianwoinar","tags":[]},"16542":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"16543":{"varMapping":{"__isSmartRef__":true,"id":16544},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":16545},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16544":{"this":{"__isSmartRef__":true,"id":16434}},"16545":{"timestamp":{"__isSmartRef__":true,"id":16546},"user":"sebastianwoinar","tags":[]},"16546":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"16547":{"varMapping":{"__isSmartRef__":true,"id":16548},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":16549},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16548":{"this":{"__isSmartRef__":true,"id":16434}},"16549":{"timestamp":{"__isSmartRef__":true,"id":16550},"user":"sebastianwoinar","tags":[]},"16550":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"16551":{"varMapping":{"__isSmartRef__":true,"id":16552},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16553},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16552":{"this":{"__isSmartRef__":true,"id":16434}},"16553":{"timestamp":{"__isSmartRef__":true,"id":16554},"user":"sebastianwoinar","tags":[]},"16554":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"16555":{"varMapping":{"__isSmartRef__":true,"id":16556},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":16557},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16556":{"this":{"__isSmartRef__":true,"id":16434}},"16557":{"timestamp":{"__isSmartRef__":true,"id":16558},"user":"sebastianwoinar","tags":[]},"16558":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"16559":{"varMapping":{"__isSmartRef__":true,"id":16560},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16561},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16560":{"this":{"__isSmartRef__":true,"id":16434}},"16561":{"timestamp":{"__isSmartRef__":true,"id":16562},"user":"sebastianwoinar","tags":[]},"16562":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"16563":{"submorphs":[{"__isSmartRef__":true,"id":16564}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16581},"id":"B5AB5612-F933-4149-898B-CA2D3B6FEFF7","eventHandler":{"__isSmartRef__":true,"id":16582},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":16583},"name":"node87","partsBinMetaInfo":{"__isSmartRef__":true,"id":16584},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5603},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":15507},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16587},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(404.3,210.0)"},"16564":{"submorphs":[],"scripts":[],"id":"D9118F39-1D70-4407-99C0-A33DFE7CE5DD","shape":{"__isSmartRef__":true,"id":16565},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":16566},"textChunks":[{"__isSmartRef__":true,"id":16578}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":16580},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":16563},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"16565":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"16566":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":16567},{"__isSmartRef__":true,"id":16569},{"__isSmartRef__":true,"id":16571},{"__isSmartRef__":true,"id":16573},{"__isSmartRef__":true,"id":16575}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":16577},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"16567":{"date":{"__isSmartRef__":true,"id":16568},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"16568":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"16569":{"date":{"__isSmartRef__":true,"id":16570},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"16570":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"16571":{"date":{"__isSmartRef__":true,"id":16572},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"16572":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"16573":{"date":{"__isSmartRef__":true,"id":16574},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"16574":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"16575":{"date":{"__isSmartRef__":true,"id":16576},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"16576":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"16577":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"16578":{"style":{"__isSmartRef__":true,"id":16579},"morph":{"__isSmartRef__":true,"id":16564},"chunkOwner":{"__isSmartRef__":true,"id":16564},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16579":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16580":{"morph":{"__isSmartRef__":true,"id":16564},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16581":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"16582":{"morph":{"__isSmartRef__":true,"id":16563},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16583":{},"16584":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":16585}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"16585":{"date":{"__isSmartRef__":true,"id":16586},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"16586":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"16587":{"buildChildNodes":{"__isSmartRef__":true,"id":16588},"getGameTree":{"__isSmartRef__":true,"id":16592},"getLevel":{"__isSmartRef__":true,"id":16596},"getLevelWeight":{"__isSmartRef__":true,"id":16600},"getWeight":{"__isSmartRef__":true,"id":16604},"setNode":{"__isSmartRef__":true,"id":16608},"setParent":{"__isSmartRef__":true,"id":16612},"getParent":{"__isSmartRef__":true,"id":16616},"deactivate":{"__isSmartRef__":true,"id":16620},"blink":{"__isSmartRef__":true,"id":16624},"ABPreturn":{"__isSmartRef__":true,"id":16628},"ABPstart":{"__isSmartRef__":true,"id":16632},"ABPcontinue":{"__isSmartRef__":true,"id":16636},"ABPshowValue":{"__isSmartRef__":true,"id":16640},"ABPgetValue":{"__isSmartRef__":true,"id":16644},"ABPhasChildNodes":{"__isSmartRef__":true,"id":16648},"onMouseDown":{"__isSmartRef__":true,"id":16652},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":16660},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":16664},"ABPmarkAsDone":{"__isSmartRef__":true,"id":16668},"ABPmarkAsActive":{"__isSmartRef__":true,"id":16672},"getStateMorph":{"__isSmartRef__":true,"id":16676},"showState":{"__isSmartRef__":true,"id":16680},"ABPfailHard":{"__isSmartRef__":true,"id":16684},"markFinalDrawWith":{"__isSmartRef__":true,"id":16688}},"16588":{"varMapping":{"__isSmartRef__":true,"id":16589},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":16590},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16589":{"this":{"__isSmartRef__":true,"id":16563}},"16590":{"timestamp":{"__isSmartRef__":true,"id":16591},"user":"sebastianwoinar","tags":[]},"16591":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"16592":{"varMapping":{"__isSmartRef__":true,"id":16593},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":16594},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16593":{"this":{"__isSmartRef__":true,"id":16563}},"16594":{"timestamp":{"__isSmartRef__":true,"id":16595},"user":"sebastianwoinar","tags":[]},"16595":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16596":{"varMapping":{"__isSmartRef__":true,"id":16597},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":16598},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16597":{"this":{"__isSmartRef__":true,"id":16563}},"16598":{"timestamp":{"__isSmartRef__":true,"id":16599},"user":"sebastianwoinar","tags":[]},"16599":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16600":{"varMapping":{"__isSmartRef__":true,"id":16601},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16602},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16601":{"this":{"__isSmartRef__":true,"id":16563}},"16602":{"timestamp":{"__isSmartRef__":true,"id":16603},"user":"sebastianwoinar","tags":[]},"16603":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16604":{"varMapping":{"__isSmartRef__":true,"id":16605},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":16606},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16605":{"this":{"__isSmartRef__":true,"id":16563}},"16606":{"timestamp":{"__isSmartRef__":true,"id":16607},"user":"sebastianwoinar","tags":[]},"16607":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16608":{"varMapping":{"__isSmartRef__":true,"id":16609},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":16610},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16609":{"this":{"__isSmartRef__":true,"id":16563}},"16610":{"timestamp":{"__isSmartRef__":true,"id":16611},"user":"sebastianwoinar","tags":[]},"16611":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16612":{"varMapping":{"__isSmartRef__":true,"id":16613},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":16614},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16613":{"this":{"__isSmartRef__":true,"id":16563}},"16614":{"timestamp":{"__isSmartRef__":true,"id":16615},"user":"sebastianwoinar","tags":[]},"16615":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16616":{"varMapping":{"__isSmartRef__":true,"id":16617},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":16618},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16617":{"this":{"__isSmartRef__":true,"id":16563}},"16618":{"timestamp":{"__isSmartRef__":true,"id":16619},"user":"sebastianwoinar","tags":[]},"16619":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"16620":{"varMapping":{"__isSmartRef__":true,"id":16621},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":16622},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16621":{"this":{"__isSmartRef__":true,"id":16563}},"16622":{"timestamp":{"__isSmartRef__":true,"id":16623},"user":"sebastianwoinar","tags":[]},"16623":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"16624":{"varMapping":{"__isSmartRef__":true,"id":16625},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":16626},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16625":{"this":{"__isSmartRef__":true,"id":16563}},"16626":{"timestamp":{"__isSmartRef__":true,"id":16627},"user":"sebastianwoinar","tags":[]},"16627":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"16628":{"varMapping":{"__isSmartRef__":true,"id":16629},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":16630},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16629":{"this":{"__isSmartRef__":true,"id":16563}},"16630":{"timestamp":{"__isSmartRef__":true,"id":16631},"user":"sebastianwoinar","tags":[]},"16631":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"16632":{"varMapping":{"__isSmartRef__":true,"id":16633},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":16634},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16633":{"this":{"__isSmartRef__":true,"id":16563}},"16634":{"timestamp":{"__isSmartRef__":true,"id":16635},"user":"sebastianwoinar","tags":[]},"16635":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"16636":{"varMapping":{"__isSmartRef__":true,"id":16637},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":16638},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16637":{"this":{"__isSmartRef__":true,"id":16563}},"16638":{"timestamp":{"__isSmartRef__":true,"id":16639},"user":"sebastianwoinar","tags":[]},"16639":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"16640":{"varMapping":{"__isSmartRef__":true,"id":16641},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":16642},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16641":{"this":{"__isSmartRef__":true,"id":16563}},"16642":{"timestamp":{"__isSmartRef__":true,"id":16643},"user":"sebastianwoinar","tags":[]},"16643":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"16644":{"varMapping":{"__isSmartRef__":true,"id":16645},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":16646},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16645":{"this":{"__isSmartRef__":true,"id":16563}},"16646":{"timestamp":{"__isSmartRef__":true,"id":16647},"user":"sebastianwoinar","tags":[]},"16647":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"16648":{"varMapping":{"__isSmartRef__":true,"id":16649},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":16650},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16649":{"this":{"__isSmartRef__":true,"id":16563}},"16650":{"timestamp":{"__isSmartRef__":true,"id":16651},"user":"sebastianwoinar","tags":[]},"16651":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"16652":{"varMapping":{"__isSmartRef__":true,"id":16653},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":16658},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16653":{"this":{"__isSmartRef__":true,"id":16563},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16654}},"16654":{"$super":{"__isSmartRef__":true,"id":16655}},"16655":{"varMapping":{"__isSmartRef__":true,"id":16656},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":16657},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16656":{"obj":{"__isSmartRef__":true,"id":16563},"name":"onMouseDown"},"16657":{},"16658":{"timestamp":{"__isSmartRef__":true,"id":16659},"user":"sebastianwoinar","tags":[]},"16659":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"16660":{"varMapping":{"__isSmartRef__":true,"id":16661},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":16662},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16661":{"this":{"__isSmartRef__":true,"id":16563}},"16662":{"timestamp":{"__isSmartRef__":true,"id":16663},"user":"sebastianwoinar","tags":[]},"16663":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"16664":{"varMapping":{"__isSmartRef__":true,"id":16665},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":16666},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16665":{"this":{"__isSmartRef__":true,"id":16563}},"16666":{"timestamp":{"__isSmartRef__":true,"id":16667},"user":"sebastianwoinar","tags":[]},"16667":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"16668":{"varMapping":{"__isSmartRef__":true,"id":16669},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":16670},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16669":{"this":{"__isSmartRef__":true,"id":16563}},"16670":{"timestamp":{"__isSmartRef__":true,"id":16671},"user":"sebastianwoinar","tags":[]},"16671":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"16672":{"varMapping":{"__isSmartRef__":true,"id":16673},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":16674},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16673":{"this":{"__isSmartRef__":true,"id":16563}},"16674":{"timestamp":{"__isSmartRef__":true,"id":16675},"user":"sebastianwoinar","tags":[]},"16675":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"16676":{"varMapping":{"__isSmartRef__":true,"id":16677},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":16678},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16677":{"this":{"__isSmartRef__":true,"id":16563}},"16678":{"timestamp":{"__isSmartRef__":true,"id":16679},"user":"sebastianwoinar","tags":[]},"16679":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"16680":{"varMapping":{"__isSmartRef__":true,"id":16681},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16682},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16681":{"this":{"__isSmartRef__":true,"id":16563}},"16682":{"timestamp":{"__isSmartRef__":true,"id":16683},"user":"sebastianwoinar","tags":[]},"16683":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"16684":{"varMapping":{"__isSmartRef__":true,"id":16685},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":16686},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16685":{"this":{"__isSmartRef__":true,"id":16563}},"16686":{"timestamp":{"__isSmartRef__":true,"id":16687},"user":"sebastianwoinar","tags":[]},"16687":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"16688":{"varMapping":{"__isSmartRef__":true,"id":16689},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16690},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16689":{"this":{"__isSmartRef__":true,"id":16563}},"16690":{"timestamp":{"__isSmartRef__":true,"id":16691},"user":"sebastianwoinar","tags":[]},"16691":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"16692":{"buildChildNodes":{"__isSmartRef__":true,"id":16693},"getGameTree":{"__isSmartRef__":true,"id":16697},"getLevel":{"__isSmartRef__":true,"id":16701},"getLevelWeight":{"__isSmartRef__":true,"id":16705},"getWeight":{"__isSmartRef__":true,"id":16709},"setNode":{"__isSmartRef__":true,"id":16713},"setParent":{"__isSmartRef__":true,"id":16717},"getParent":{"__isSmartRef__":true,"id":16721},"deactivate":{"__isSmartRef__":true,"id":16725},"blink":{"__isSmartRef__":true,"id":16729},"ABPreturn":{"__isSmartRef__":true,"id":16733},"ABPstart":{"__isSmartRef__":true,"id":16737},"ABPcontinue":{"__isSmartRef__":true,"id":16741},"ABPshowValue":{"__isSmartRef__":true,"id":16745},"ABPgetValue":{"__isSmartRef__":true,"id":16749},"ABPhasChildNodes":{"__isSmartRef__":true,"id":16753},"onMouseDown":{"__isSmartRef__":true,"id":16757},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":16765},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":16769},"ABPmarkAsDone":{"__isSmartRef__":true,"id":16773},"ABPmarkAsActive":{"__isSmartRef__":true,"id":16777},"getStateMorph":{"__isSmartRef__":true,"id":16781},"showState":{"__isSmartRef__":true,"id":16785},"ABPfailHard":{"__isSmartRef__":true,"id":16789},"markFinalDrawWith":{"__isSmartRef__":true,"id":16793}},"16693":{"varMapping":{"__isSmartRef__":true,"id":16694},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":16695},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16694":{"this":{"__isSmartRef__":true,"id":15507}},"16695":{"timestamp":{"__isSmartRef__":true,"id":16696},"user":"sebastianwoinar","tags":[]},"16696":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"16697":{"varMapping":{"__isSmartRef__":true,"id":16698},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":16699},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16698":{"this":{"__isSmartRef__":true,"id":15507}},"16699":{"timestamp":{"__isSmartRef__":true,"id":16700},"user":"sebastianwoinar","tags":[]},"16700":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16701":{"varMapping":{"__isSmartRef__":true,"id":16702},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":16703},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16702":{"this":{"__isSmartRef__":true,"id":15507}},"16703":{"timestamp":{"__isSmartRef__":true,"id":16704},"user":"sebastianwoinar","tags":[]},"16704":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16705":{"varMapping":{"__isSmartRef__":true,"id":16706},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16707},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16706":{"this":{"__isSmartRef__":true,"id":15507}},"16707":{"timestamp":{"__isSmartRef__":true,"id":16708},"user":"sebastianwoinar","tags":[]},"16708":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16709":{"varMapping":{"__isSmartRef__":true,"id":16710},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":16711},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16710":{"this":{"__isSmartRef__":true,"id":15507}},"16711":{"timestamp":{"__isSmartRef__":true,"id":16712},"user":"sebastianwoinar","tags":[]},"16712":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16713":{"varMapping":{"__isSmartRef__":true,"id":16714},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":16715},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16714":{"this":{"__isSmartRef__":true,"id":15507}},"16715":{"timestamp":{"__isSmartRef__":true,"id":16716},"user":"sebastianwoinar","tags":[]},"16716":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16717":{"varMapping":{"__isSmartRef__":true,"id":16718},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":16719},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16718":{"this":{"__isSmartRef__":true,"id":15507}},"16719":{"timestamp":{"__isSmartRef__":true,"id":16720},"user":"sebastianwoinar","tags":[]},"16720":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16721":{"varMapping":{"__isSmartRef__":true,"id":16722},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":16723},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16722":{"this":{"__isSmartRef__":true,"id":15507}},"16723":{"timestamp":{"__isSmartRef__":true,"id":16724},"user":"sebastianwoinar","tags":[]},"16724":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"16725":{"varMapping":{"__isSmartRef__":true,"id":16726},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":16727},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16726":{"this":{"__isSmartRef__":true,"id":15507}},"16727":{"timestamp":{"__isSmartRef__":true,"id":16728},"user":"sebastianwoinar","tags":[]},"16728":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"16729":{"varMapping":{"__isSmartRef__":true,"id":16730},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":16731},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16730":{"this":{"__isSmartRef__":true,"id":15507}},"16731":{"timestamp":{"__isSmartRef__":true,"id":16732},"user":"sebastianwoinar","tags":[]},"16732":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"16733":{"varMapping":{"__isSmartRef__":true,"id":16734},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":16735},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16734":{"this":{"__isSmartRef__":true,"id":15507}},"16735":{"timestamp":{"__isSmartRef__":true,"id":16736},"user":"sebastianwoinar","tags":[]},"16736":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"16737":{"varMapping":{"__isSmartRef__":true,"id":16738},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":16739},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16738":{"this":{"__isSmartRef__":true,"id":15507}},"16739":{"timestamp":{"__isSmartRef__":true,"id":16740},"user":"sebastianwoinar","tags":[]},"16740":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"16741":{"varMapping":{"__isSmartRef__":true,"id":16742},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":16743},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16742":{"this":{"__isSmartRef__":true,"id":15507}},"16743":{"timestamp":{"__isSmartRef__":true,"id":16744},"user":"sebastianwoinar","tags":[]},"16744":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"16745":{"varMapping":{"__isSmartRef__":true,"id":16746},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":16747},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16746":{"this":{"__isSmartRef__":true,"id":15507}},"16747":{"timestamp":{"__isSmartRef__":true,"id":16748},"user":"sebastianwoinar","tags":[]},"16748":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"16749":{"varMapping":{"__isSmartRef__":true,"id":16750},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":16751},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16750":{"this":{"__isSmartRef__":true,"id":15507}},"16751":{"timestamp":{"__isSmartRef__":true,"id":16752},"user":"sebastianwoinar","tags":[]},"16752":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"16753":{"varMapping":{"__isSmartRef__":true,"id":16754},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":16755},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16754":{"this":{"__isSmartRef__":true,"id":15507}},"16755":{"timestamp":{"__isSmartRef__":true,"id":16756},"user":"sebastianwoinar","tags":[]},"16756":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"16757":{"varMapping":{"__isSmartRef__":true,"id":16758},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":16763},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16758":{"this":{"__isSmartRef__":true,"id":15507},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16759}},"16759":{"$super":{"__isSmartRef__":true,"id":16760}},"16760":{"varMapping":{"__isSmartRef__":true,"id":16761},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":16762},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16761":{"obj":{"__isSmartRef__":true,"id":15507},"name":"onMouseDown"},"16762":{},"16763":{"timestamp":{"__isSmartRef__":true,"id":16764},"user":"sebastianwoinar","tags":[]},"16764":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"16765":{"varMapping":{"__isSmartRef__":true,"id":16766},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":16767},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16766":{"this":{"__isSmartRef__":true,"id":15507}},"16767":{"timestamp":{"__isSmartRef__":true,"id":16768},"user":"sebastianwoinar","tags":[]},"16768":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"16769":{"varMapping":{"__isSmartRef__":true,"id":16770},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":16771},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16770":{"this":{"__isSmartRef__":true,"id":15507}},"16771":{"timestamp":{"__isSmartRef__":true,"id":16772},"user":"sebastianwoinar","tags":[]},"16772":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"16773":{"varMapping":{"__isSmartRef__":true,"id":16774},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":16775},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16774":{"this":{"__isSmartRef__":true,"id":15507}},"16775":{"timestamp":{"__isSmartRef__":true,"id":16776},"user":"sebastianwoinar","tags":[]},"16776":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"16777":{"varMapping":{"__isSmartRef__":true,"id":16778},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":16779},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16778":{"this":{"__isSmartRef__":true,"id":15507}},"16779":{"timestamp":{"__isSmartRef__":true,"id":16780},"user":"sebastianwoinar","tags":[]},"16780":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"16781":{"varMapping":{"__isSmartRef__":true,"id":16782},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":16783},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16782":{"this":{"__isSmartRef__":true,"id":15507}},"16783":{"timestamp":{"__isSmartRef__":true,"id":16784},"user":"sebastianwoinar","tags":[]},"16784":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"16785":{"varMapping":{"__isSmartRef__":true,"id":16786},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16787},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16786":{"this":{"__isSmartRef__":true,"id":15507}},"16787":{"timestamp":{"__isSmartRef__":true,"id":16788},"user":"sebastianwoinar","tags":[]},"16788":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"16789":{"varMapping":{"__isSmartRef__":true,"id":16790},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":16791},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16790":{"this":{"__isSmartRef__":true,"id":15507}},"16791":{"timestamp":{"__isSmartRef__":true,"id":16792},"user":"sebastianwoinar","tags":[]},"16792":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"16793":{"varMapping":{"__isSmartRef__":true,"id":16794},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16795},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16794":{"this":{"__isSmartRef__":true,"id":15507}},"16795":{"timestamp":{"__isSmartRef__":true,"id":16796},"user":"sebastianwoinar","tags":[]},"16796":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"16797":{"submorphs":[{"__isSmartRef__":true,"id":16798}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16815},"id":"CAC8DBA4-3CB7-4ED6-9362-DD01D72D94BD","eventHandler":{"__isSmartRef__":true,"id":16816},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":16817},"name":"node88","partsBinMetaInfo":{"__isSmartRef__":true,"id":16818},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5605},"owner":{"__isSmartRef__":true,"id":5408},"childNodes":[{"__isSmartRef__":true,"id":16821},{"__isSmartRef__":true,"id":16950},{"__isSmartRef__":true,"id":17079},{"__isSmartRef__":true,"id":17208},{"__isSmartRef__":true,"id":17337},{"__isSmartRef__":true,"id":17466}],"parent":{"__isSmartRef__":true,"id":12516},"level":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17595},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(466.5,160.0)"},"16798":{"submorphs":[],"scripts":[],"id":"0AB25B04-B43B-4BE8-8117-40499EF39337","shape":{"__isSmartRef__":true,"id":16799},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":16800},"textChunks":[{"__isSmartRef__":true,"id":16812}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":16814},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":16797},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"16799":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"16800":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":16801},{"__isSmartRef__":true,"id":16803},{"__isSmartRef__":true,"id":16805},{"__isSmartRef__":true,"id":16807},{"__isSmartRef__":true,"id":16809}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":16811},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"16801":{"date":{"__isSmartRef__":true,"id":16802},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"16802":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"16803":{"date":{"__isSmartRef__":true,"id":16804},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"16804":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"16805":{"date":{"__isSmartRef__":true,"id":16806},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"16806":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"16807":{"date":{"__isSmartRef__":true,"id":16808},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"16808":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"16809":{"date":{"__isSmartRef__":true,"id":16810},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"16810":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"16811":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"16812":{"style":{"__isSmartRef__":true,"id":16813},"morph":{"__isSmartRef__":true,"id":16798},"chunkOwner":{"__isSmartRef__":true,"id":16798},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16813":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16814":{"morph":{"__isSmartRef__":true,"id":16798},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16815":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"16816":{"morph":{"__isSmartRef__":true,"id":16797},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16817":{},"16818":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":16819}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"16819":{"date":{"__isSmartRef__":true,"id":16820},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"16820":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"16821":{"submorphs":[{"__isSmartRef__":true,"id":16822}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16839},"id":"720D96E8-AD74-482F-899D-2224B89AF749","eventHandler":{"__isSmartRef__":true,"id":16840},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":16841},"name":"node89","partsBinMetaInfo":{"__isSmartRef__":true,"id":16842},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5607},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":16797},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16845},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(409.5,210.0)"},"16822":{"submorphs":[],"scripts":[],"id":"45547BBB-99E1-41D1-8F9B-AB3DF0A79131","shape":{"__isSmartRef__":true,"id":16823},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":16824},"textChunks":[{"__isSmartRef__":true,"id":16836}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":16838},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":16821},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"16823":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"16824":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":16825},{"__isSmartRef__":true,"id":16827},{"__isSmartRef__":true,"id":16829},{"__isSmartRef__":true,"id":16831},{"__isSmartRef__":true,"id":16833}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":16835},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"16825":{"date":{"__isSmartRef__":true,"id":16826},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"16826":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"16827":{"date":{"__isSmartRef__":true,"id":16828},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"16828":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"16829":{"date":{"__isSmartRef__":true,"id":16830},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"16830":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"16831":{"date":{"__isSmartRef__":true,"id":16832},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"16832":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"16833":{"date":{"__isSmartRef__":true,"id":16834},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"16834":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"16835":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"16836":{"style":{"__isSmartRef__":true,"id":16837},"morph":{"__isSmartRef__":true,"id":16822},"chunkOwner":{"__isSmartRef__":true,"id":16822},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16837":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16838":{"morph":{"__isSmartRef__":true,"id":16822},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16839":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"16840":{"morph":{"__isSmartRef__":true,"id":16821},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16841":{},"16842":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":16843}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"16843":{"date":{"__isSmartRef__":true,"id":16844},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"16844":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"16845":{"buildChildNodes":{"__isSmartRef__":true,"id":16846},"getGameTree":{"__isSmartRef__":true,"id":16850},"getLevel":{"__isSmartRef__":true,"id":16854},"getLevelWeight":{"__isSmartRef__":true,"id":16858},"getWeight":{"__isSmartRef__":true,"id":16862},"setNode":{"__isSmartRef__":true,"id":16866},"setParent":{"__isSmartRef__":true,"id":16870},"getParent":{"__isSmartRef__":true,"id":16874},"deactivate":{"__isSmartRef__":true,"id":16878},"blink":{"__isSmartRef__":true,"id":16882},"ABPreturn":{"__isSmartRef__":true,"id":16886},"ABPstart":{"__isSmartRef__":true,"id":16890},"ABPcontinue":{"__isSmartRef__":true,"id":16894},"ABPshowValue":{"__isSmartRef__":true,"id":16898},"ABPgetValue":{"__isSmartRef__":true,"id":16902},"ABPhasChildNodes":{"__isSmartRef__":true,"id":16906},"onMouseDown":{"__isSmartRef__":true,"id":16910},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":16918},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":16922},"ABPmarkAsDone":{"__isSmartRef__":true,"id":16926},"ABPmarkAsActive":{"__isSmartRef__":true,"id":16930},"getStateMorph":{"__isSmartRef__":true,"id":16934},"showState":{"__isSmartRef__":true,"id":16938},"ABPfailHard":{"__isSmartRef__":true,"id":16942},"markFinalDrawWith":{"__isSmartRef__":true,"id":16946}},"16846":{"varMapping":{"__isSmartRef__":true,"id":16847},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":16848},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16847":{"this":{"__isSmartRef__":true,"id":16821}},"16848":{"timestamp":{"__isSmartRef__":true,"id":16849},"user":"sebastianwoinar","tags":[]},"16849":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"16850":{"varMapping":{"__isSmartRef__":true,"id":16851},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":16852},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16851":{"this":{"__isSmartRef__":true,"id":16821}},"16852":{"timestamp":{"__isSmartRef__":true,"id":16853},"user":"sebastianwoinar","tags":[]},"16853":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16854":{"varMapping":{"__isSmartRef__":true,"id":16855},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":16856},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16855":{"this":{"__isSmartRef__":true,"id":16821}},"16856":{"timestamp":{"__isSmartRef__":true,"id":16857},"user":"sebastianwoinar","tags":[]},"16857":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16858":{"varMapping":{"__isSmartRef__":true,"id":16859},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16860},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16859":{"this":{"__isSmartRef__":true,"id":16821}},"16860":{"timestamp":{"__isSmartRef__":true,"id":16861},"user":"sebastianwoinar","tags":[]},"16861":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16862":{"varMapping":{"__isSmartRef__":true,"id":16863},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":16864},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16863":{"this":{"__isSmartRef__":true,"id":16821}},"16864":{"timestamp":{"__isSmartRef__":true,"id":16865},"user":"sebastianwoinar","tags":[]},"16865":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16866":{"varMapping":{"__isSmartRef__":true,"id":16867},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":16868},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16867":{"this":{"__isSmartRef__":true,"id":16821}},"16868":{"timestamp":{"__isSmartRef__":true,"id":16869},"user":"sebastianwoinar","tags":[]},"16869":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16870":{"varMapping":{"__isSmartRef__":true,"id":16871},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":16872},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16871":{"this":{"__isSmartRef__":true,"id":16821}},"16872":{"timestamp":{"__isSmartRef__":true,"id":16873},"user":"sebastianwoinar","tags":[]},"16873":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16874":{"varMapping":{"__isSmartRef__":true,"id":16875},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":16876},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16875":{"this":{"__isSmartRef__":true,"id":16821}},"16876":{"timestamp":{"__isSmartRef__":true,"id":16877},"user":"sebastianwoinar","tags":[]},"16877":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"16878":{"varMapping":{"__isSmartRef__":true,"id":16879},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":16880},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16879":{"this":{"__isSmartRef__":true,"id":16821}},"16880":{"timestamp":{"__isSmartRef__":true,"id":16881},"user":"sebastianwoinar","tags":[]},"16881":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"16882":{"varMapping":{"__isSmartRef__":true,"id":16883},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":16884},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16883":{"this":{"__isSmartRef__":true,"id":16821}},"16884":{"timestamp":{"__isSmartRef__":true,"id":16885},"user":"sebastianwoinar","tags":[]},"16885":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"16886":{"varMapping":{"__isSmartRef__":true,"id":16887},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":16888},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16887":{"this":{"__isSmartRef__":true,"id":16821}},"16888":{"timestamp":{"__isSmartRef__":true,"id":16889},"user":"sebastianwoinar","tags":[]},"16889":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"16890":{"varMapping":{"__isSmartRef__":true,"id":16891},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":16892},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16891":{"this":{"__isSmartRef__":true,"id":16821}},"16892":{"timestamp":{"__isSmartRef__":true,"id":16893},"user":"sebastianwoinar","tags":[]},"16893":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"16894":{"varMapping":{"__isSmartRef__":true,"id":16895},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":16896},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16895":{"this":{"__isSmartRef__":true,"id":16821}},"16896":{"timestamp":{"__isSmartRef__":true,"id":16897},"user":"sebastianwoinar","tags":[]},"16897":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"16898":{"varMapping":{"__isSmartRef__":true,"id":16899},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":16900},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16899":{"this":{"__isSmartRef__":true,"id":16821}},"16900":{"timestamp":{"__isSmartRef__":true,"id":16901},"user":"sebastianwoinar","tags":[]},"16901":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"16902":{"varMapping":{"__isSmartRef__":true,"id":16903},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":16904},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16903":{"this":{"__isSmartRef__":true,"id":16821}},"16904":{"timestamp":{"__isSmartRef__":true,"id":16905},"user":"sebastianwoinar","tags":[]},"16905":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"16906":{"varMapping":{"__isSmartRef__":true,"id":16907},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":16908},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16907":{"this":{"__isSmartRef__":true,"id":16821}},"16908":{"timestamp":{"__isSmartRef__":true,"id":16909},"user":"sebastianwoinar","tags":[]},"16909":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"16910":{"varMapping":{"__isSmartRef__":true,"id":16911},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":16916},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16911":{"this":{"__isSmartRef__":true,"id":16821},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16912}},"16912":{"$super":{"__isSmartRef__":true,"id":16913}},"16913":{"varMapping":{"__isSmartRef__":true,"id":16914},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":16915},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16914":{"obj":{"__isSmartRef__":true,"id":16821},"name":"onMouseDown"},"16915":{},"16916":{"timestamp":{"__isSmartRef__":true,"id":16917},"user":"sebastianwoinar","tags":[]},"16917":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"16918":{"varMapping":{"__isSmartRef__":true,"id":16919},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":16920},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16919":{"this":{"__isSmartRef__":true,"id":16821}},"16920":{"timestamp":{"__isSmartRef__":true,"id":16921},"user":"sebastianwoinar","tags":[]},"16921":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"16922":{"varMapping":{"__isSmartRef__":true,"id":16923},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":16924},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16923":{"this":{"__isSmartRef__":true,"id":16821}},"16924":{"timestamp":{"__isSmartRef__":true,"id":16925},"user":"sebastianwoinar","tags":[]},"16925":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"16926":{"varMapping":{"__isSmartRef__":true,"id":16927},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":16928},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16927":{"this":{"__isSmartRef__":true,"id":16821}},"16928":{"timestamp":{"__isSmartRef__":true,"id":16929},"user":"sebastianwoinar","tags":[]},"16929":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"16930":{"varMapping":{"__isSmartRef__":true,"id":16931},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":16932},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16931":{"this":{"__isSmartRef__":true,"id":16821}},"16932":{"timestamp":{"__isSmartRef__":true,"id":16933},"user":"sebastianwoinar","tags":[]},"16933":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"16934":{"varMapping":{"__isSmartRef__":true,"id":16935},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":16936},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16935":{"this":{"__isSmartRef__":true,"id":16821}},"16936":{"timestamp":{"__isSmartRef__":true,"id":16937},"user":"sebastianwoinar","tags":[]},"16937":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"16938":{"varMapping":{"__isSmartRef__":true,"id":16939},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16940},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16939":{"this":{"__isSmartRef__":true,"id":16821}},"16940":{"timestamp":{"__isSmartRef__":true,"id":16941},"user":"sebastianwoinar","tags":[]},"16941":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"16942":{"varMapping":{"__isSmartRef__":true,"id":16943},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":16944},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16943":{"this":{"__isSmartRef__":true,"id":16821}},"16944":{"timestamp":{"__isSmartRef__":true,"id":16945},"user":"sebastianwoinar","tags":[]},"16945":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"16946":{"varMapping":{"__isSmartRef__":true,"id":16947},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16948},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16947":{"this":{"__isSmartRef__":true,"id":16821}},"16948":{"timestamp":{"__isSmartRef__":true,"id":16949},"user":"sebastianwoinar","tags":[]},"16949":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"16950":{"submorphs":[{"__isSmartRef__":true,"id":16951}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16968},"id":"5F52A57A-9551-4656-AB5C-223234ED8EFD","eventHandler":{"__isSmartRef__":true,"id":16969},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":16970},"name":"node90","partsBinMetaInfo":{"__isSmartRef__":true,"id":16971},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5609},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":16797},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16974},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(414.7,210.0)"},"16951":{"submorphs":[],"scripts":[],"id":"0F3B4FA3-9E33-493F-82FD-EFA3161E74CE","shape":{"__isSmartRef__":true,"id":16952},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":16953},"textChunks":[{"__isSmartRef__":true,"id":16965}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":16967},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":16950},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"16952":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"16953":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":16954},{"__isSmartRef__":true,"id":16956},{"__isSmartRef__":true,"id":16958},{"__isSmartRef__":true,"id":16960},{"__isSmartRef__":true,"id":16962}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":16964},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"16954":{"date":{"__isSmartRef__":true,"id":16955},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"16955":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"16956":{"date":{"__isSmartRef__":true,"id":16957},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"16957":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"16958":{"date":{"__isSmartRef__":true,"id":16959},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"16959":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"16960":{"date":{"__isSmartRef__":true,"id":16961},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"16961":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"16962":{"date":{"__isSmartRef__":true,"id":16963},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"16963":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"16964":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"16965":{"style":{"__isSmartRef__":true,"id":16966},"morph":{"__isSmartRef__":true,"id":16951},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16966":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16967":{"morph":{"__isSmartRef__":true,"id":16951},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16968":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"16969":{"morph":{"__isSmartRef__":true,"id":16950},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16970":{},"16971":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":16972}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"16972":{"date":{"__isSmartRef__":true,"id":16973},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"16973":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"16974":{"buildChildNodes":{"__isSmartRef__":true,"id":16975},"getGameTree":{"__isSmartRef__":true,"id":16979},"getLevel":{"__isSmartRef__":true,"id":16983},"getLevelWeight":{"__isSmartRef__":true,"id":16987},"getWeight":{"__isSmartRef__":true,"id":16991},"setNode":{"__isSmartRef__":true,"id":16995},"setParent":{"__isSmartRef__":true,"id":16999},"getParent":{"__isSmartRef__":true,"id":17003},"deactivate":{"__isSmartRef__":true,"id":17007},"blink":{"__isSmartRef__":true,"id":17011},"ABPreturn":{"__isSmartRef__":true,"id":17015},"ABPstart":{"__isSmartRef__":true,"id":17019},"ABPcontinue":{"__isSmartRef__":true,"id":17023},"ABPshowValue":{"__isSmartRef__":true,"id":17027},"ABPgetValue":{"__isSmartRef__":true,"id":17031},"ABPhasChildNodes":{"__isSmartRef__":true,"id":17035},"onMouseDown":{"__isSmartRef__":true,"id":17039},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":17047},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":17051},"ABPmarkAsDone":{"__isSmartRef__":true,"id":17055},"ABPmarkAsActive":{"__isSmartRef__":true,"id":17059},"getStateMorph":{"__isSmartRef__":true,"id":17063},"showState":{"__isSmartRef__":true,"id":17067},"ABPfailHard":{"__isSmartRef__":true,"id":17071},"markFinalDrawWith":{"__isSmartRef__":true,"id":17075}},"16975":{"varMapping":{"__isSmartRef__":true,"id":16976},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":16977},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16976":{"this":{"__isSmartRef__":true,"id":16950}},"16977":{"timestamp":{"__isSmartRef__":true,"id":16978},"user":"sebastianwoinar","tags":[]},"16978":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"16979":{"varMapping":{"__isSmartRef__":true,"id":16980},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":16981},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16980":{"this":{"__isSmartRef__":true,"id":16950}},"16981":{"timestamp":{"__isSmartRef__":true,"id":16982},"user":"sebastianwoinar","tags":[]},"16982":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16983":{"varMapping":{"__isSmartRef__":true,"id":16984},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":16985},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16984":{"this":{"__isSmartRef__":true,"id":16950}},"16985":{"timestamp":{"__isSmartRef__":true,"id":16986},"user":"sebastianwoinar","tags":[]},"16986":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16987":{"varMapping":{"__isSmartRef__":true,"id":16988},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16989},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16988":{"this":{"__isSmartRef__":true,"id":16950}},"16989":{"timestamp":{"__isSmartRef__":true,"id":16990},"user":"sebastianwoinar","tags":[]},"16990":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16991":{"varMapping":{"__isSmartRef__":true,"id":16992},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":16993},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16992":{"this":{"__isSmartRef__":true,"id":16950}},"16993":{"timestamp":{"__isSmartRef__":true,"id":16994},"user":"sebastianwoinar","tags":[]},"16994":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16995":{"varMapping":{"__isSmartRef__":true,"id":16996},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":16997},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16996":{"this":{"__isSmartRef__":true,"id":16950}},"16997":{"timestamp":{"__isSmartRef__":true,"id":16998},"user":"sebastianwoinar","tags":[]},"16998":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"16999":{"varMapping":{"__isSmartRef__":true,"id":17000},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":17001},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17000":{"this":{"__isSmartRef__":true,"id":16950}},"17001":{"timestamp":{"__isSmartRef__":true,"id":17002},"user":"sebastianwoinar","tags":[]},"17002":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17003":{"varMapping":{"__isSmartRef__":true,"id":17004},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":17005},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17004":{"this":{"__isSmartRef__":true,"id":16950}},"17005":{"timestamp":{"__isSmartRef__":true,"id":17006},"user":"sebastianwoinar","tags":[]},"17006":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"17007":{"varMapping":{"__isSmartRef__":true,"id":17008},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":17009},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17008":{"this":{"__isSmartRef__":true,"id":16950}},"17009":{"timestamp":{"__isSmartRef__":true,"id":17010},"user":"sebastianwoinar","tags":[]},"17010":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"17011":{"varMapping":{"__isSmartRef__":true,"id":17012},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":17013},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17012":{"this":{"__isSmartRef__":true,"id":16950}},"17013":{"timestamp":{"__isSmartRef__":true,"id":17014},"user":"sebastianwoinar","tags":[]},"17014":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"17015":{"varMapping":{"__isSmartRef__":true,"id":17016},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":17017},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17016":{"this":{"__isSmartRef__":true,"id":16950}},"17017":{"timestamp":{"__isSmartRef__":true,"id":17018},"user":"sebastianwoinar","tags":[]},"17018":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"17019":{"varMapping":{"__isSmartRef__":true,"id":17020},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":17021},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17020":{"this":{"__isSmartRef__":true,"id":16950}},"17021":{"timestamp":{"__isSmartRef__":true,"id":17022},"user":"sebastianwoinar","tags":[]},"17022":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"17023":{"varMapping":{"__isSmartRef__":true,"id":17024},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":17025},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17024":{"this":{"__isSmartRef__":true,"id":16950}},"17025":{"timestamp":{"__isSmartRef__":true,"id":17026},"user":"sebastianwoinar","tags":[]},"17026":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"17027":{"varMapping":{"__isSmartRef__":true,"id":17028},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":17029},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17028":{"this":{"__isSmartRef__":true,"id":16950}},"17029":{"timestamp":{"__isSmartRef__":true,"id":17030},"user":"sebastianwoinar","tags":[]},"17030":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"17031":{"varMapping":{"__isSmartRef__":true,"id":17032},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":17033},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17032":{"this":{"__isSmartRef__":true,"id":16950}},"17033":{"timestamp":{"__isSmartRef__":true,"id":17034},"user":"sebastianwoinar","tags":[]},"17034":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"17035":{"varMapping":{"__isSmartRef__":true,"id":17036},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":17037},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17036":{"this":{"__isSmartRef__":true,"id":16950}},"17037":{"timestamp":{"__isSmartRef__":true,"id":17038},"user":"sebastianwoinar","tags":[]},"17038":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"17039":{"varMapping":{"__isSmartRef__":true,"id":17040},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":17045},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17040":{"this":{"__isSmartRef__":true,"id":16950},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17041}},"17041":{"$super":{"__isSmartRef__":true,"id":17042}},"17042":{"varMapping":{"__isSmartRef__":true,"id":17043},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17044},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17043":{"obj":{"__isSmartRef__":true,"id":16950},"name":"onMouseDown"},"17044":{},"17045":{"timestamp":{"__isSmartRef__":true,"id":17046},"user":"sebastianwoinar","tags":[]},"17046":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"17047":{"varMapping":{"__isSmartRef__":true,"id":17048},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":17049},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17048":{"this":{"__isSmartRef__":true,"id":16950}},"17049":{"timestamp":{"__isSmartRef__":true,"id":17050},"user":"sebastianwoinar","tags":[]},"17050":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"17051":{"varMapping":{"__isSmartRef__":true,"id":17052},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":17053},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17052":{"this":{"__isSmartRef__":true,"id":16950}},"17053":{"timestamp":{"__isSmartRef__":true,"id":17054},"user":"sebastianwoinar","tags":[]},"17054":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"17055":{"varMapping":{"__isSmartRef__":true,"id":17056},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":17057},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17056":{"this":{"__isSmartRef__":true,"id":16950}},"17057":{"timestamp":{"__isSmartRef__":true,"id":17058},"user":"sebastianwoinar","tags":[]},"17058":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"17059":{"varMapping":{"__isSmartRef__":true,"id":17060},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":17061},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17060":{"this":{"__isSmartRef__":true,"id":16950}},"17061":{"timestamp":{"__isSmartRef__":true,"id":17062},"user":"sebastianwoinar","tags":[]},"17062":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"17063":{"varMapping":{"__isSmartRef__":true,"id":17064},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":17065},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17064":{"this":{"__isSmartRef__":true,"id":16950}},"17065":{"timestamp":{"__isSmartRef__":true,"id":17066},"user":"sebastianwoinar","tags":[]},"17066":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"17067":{"varMapping":{"__isSmartRef__":true,"id":17068},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":17069},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17068":{"this":{"__isSmartRef__":true,"id":16950}},"17069":{"timestamp":{"__isSmartRef__":true,"id":17070},"user":"sebastianwoinar","tags":[]},"17070":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"17071":{"varMapping":{"__isSmartRef__":true,"id":17072},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":17073},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17072":{"this":{"__isSmartRef__":true,"id":16950}},"17073":{"timestamp":{"__isSmartRef__":true,"id":17074},"user":"sebastianwoinar","tags":[]},"17074":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"17075":{"varMapping":{"__isSmartRef__":true,"id":17076},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":17077},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17076":{"this":{"__isSmartRef__":true,"id":16950}},"17077":{"timestamp":{"__isSmartRef__":true,"id":17078},"user":"sebastianwoinar","tags":[]},"17078":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"17079":{"submorphs":[{"__isSmartRef__":true,"id":17080}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17097},"id":"A4C81DCC-74BE-4366-AB33-BC12CB255A43","eventHandler":{"__isSmartRef__":true,"id":17098},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":17099},"name":"node91","partsBinMetaInfo":{"__isSmartRef__":true,"id":17100},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5611},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":16797},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17103},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(419.9,210.0)"},"17080":{"submorphs":[],"scripts":[],"id":"26BCFCC2-5DC9-4653-BD69-40C4374C2363","shape":{"__isSmartRef__":true,"id":17081},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":17082},"textChunks":[{"__isSmartRef__":true,"id":17094}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":17096},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":17079},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"17081":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"17082":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":17083},{"__isSmartRef__":true,"id":17085},{"__isSmartRef__":true,"id":17087},{"__isSmartRef__":true,"id":17089},{"__isSmartRef__":true,"id":17091}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":17093},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"17083":{"date":{"__isSmartRef__":true,"id":17084},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"17084":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"17085":{"date":{"__isSmartRef__":true,"id":17086},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"17086":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"17087":{"date":{"__isSmartRef__":true,"id":17088},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"17088":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"17089":{"date":{"__isSmartRef__":true,"id":17090},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"17090":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"17091":{"date":{"__isSmartRef__":true,"id":17092},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"17092":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"17093":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"17094":{"style":{"__isSmartRef__":true,"id":17095},"morph":{"__isSmartRef__":true,"id":17080},"chunkOwner":{"__isSmartRef__":true,"id":17080},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17095":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17096":{"morph":{"__isSmartRef__":true,"id":17080},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17097":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"17098":{"morph":{"__isSmartRef__":true,"id":17079},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17099":{},"17100":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":17101}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"17101":{"date":{"__isSmartRef__":true,"id":17102},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"17102":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"17103":{"buildChildNodes":{"__isSmartRef__":true,"id":17104},"getGameTree":{"__isSmartRef__":true,"id":17108},"getLevel":{"__isSmartRef__":true,"id":17112},"getLevelWeight":{"__isSmartRef__":true,"id":17116},"getWeight":{"__isSmartRef__":true,"id":17120},"setNode":{"__isSmartRef__":true,"id":17124},"setParent":{"__isSmartRef__":true,"id":17128},"getParent":{"__isSmartRef__":true,"id":17132},"deactivate":{"__isSmartRef__":true,"id":17136},"blink":{"__isSmartRef__":true,"id":17140},"ABPreturn":{"__isSmartRef__":true,"id":17144},"ABPstart":{"__isSmartRef__":true,"id":17148},"ABPcontinue":{"__isSmartRef__":true,"id":17152},"ABPshowValue":{"__isSmartRef__":true,"id":17156},"ABPgetValue":{"__isSmartRef__":true,"id":17160},"ABPhasChildNodes":{"__isSmartRef__":true,"id":17164},"onMouseDown":{"__isSmartRef__":true,"id":17168},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":17176},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":17180},"ABPmarkAsDone":{"__isSmartRef__":true,"id":17184},"ABPmarkAsActive":{"__isSmartRef__":true,"id":17188},"getStateMorph":{"__isSmartRef__":true,"id":17192},"showState":{"__isSmartRef__":true,"id":17196},"ABPfailHard":{"__isSmartRef__":true,"id":17200},"markFinalDrawWith":{"__isSmartRef__":true,"id":17204}},"17104":{"varMapping":{"__isSmartRef__":true,"id":17105},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":17106},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17105":{"this":{"__isSmartRef__":true,"id":17079}},"17106":{"timestamp":{"__isSmartRef__":true,"id":17107},"user":"sebastianwoinar","tags":[]},"17107":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"17108":{"varMapping":{"__isSmartRef__":true,"id":17109},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":17110},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17109":{"this":{"__isSmartRef__":true,"id":17079}},"17110":{"timestamp":{"__isSmartRef__":true,"id":17111},"user":"sebastianwoinar","tags":[]},"17111":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17112":{"varMapping":{"__isSmartRef__":true,"id":17113},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":17114},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17113":{"this":{"__isSmartRef__":true,"id":17079}},"17114":{"timestamp":{"__isSmartRef__":true,"id":17115},"user":"sebastianwoinar","tags":[]},"17115":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17116":{"varMapping":{"__isSmartRef__":true,"id":17117},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":17118},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17117":{"this":{"__isSmartRef__":true,"id":17079}},"17118":{"timestamp":{"__isSmartRef__":true,"id":17119},"user":"sebastianwoinar","tags":[]},"17119":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17120":{"varMapping":{"__isSmartRef__":true,"id":17121},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":17122},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17121":{"this":{"__isSmartRef__":true,"id":17079}},"17122":{"timestamp":{"__isSmartRef__":true,"id":17123},"user":"sebastianwoinar","tags":[]},"17123":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17124":{"varMapping":{"__isSmartRef__":true,"id":17125},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":17126},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17125":{"this":{"__isSmartRef__":true,"id":17079}},"17126":{"timestamp":{"__isSmartRef__":true,"id":17127},"user":"sebastianwoinar","tags":[]},"17127":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17128":{"varMapping":{"__isSmartRef__":true,"id":17129},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":17130},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17129":{"this":{"__isSmartRef__":true,"id":17079}},"17130":{"timestamp":{"__isSmartRef__":true,"id":17131},"user":"sebastianwoinar","tags":[]},"17131":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17132":{"varMapping":{"__isSmartRef__":true,"id":17133},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":17134},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17133":{"this":{"__isSmartRef__":true,"id":17079}},"17134":{"timestamp":{"__isSmartRef__":true,"id":17135},"user":"sebastianwoinar","tags":[]},"17135":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"17136":{"varMapping":{"__isSmartRef__":true,"id":17137},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":17138},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17137":{"this":{"__isSmartRef__":true,"id":17079}},"17138":{"timestamp":{"__isSmartRef__":true,"id":17139},"user":"sebastianwoinar","tags":[]},"17139":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"17140":{"varMapping":{"__isSmartRef__":true,"id":17141},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":17142},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17141":{"this":{"__isSmartRef__":true,"id":17079}},"17142":{"timestamp":{"__isSmartRef__":true,"id":17143},"user":"sebastianwoinar","tags":[]},"17143":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"17144":{"varMapping":{"__isSmartRef__":true,"id":17145},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":17146},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17145":{"this":{"__isSmartRef__":true,"id":17079}},"17146":{"timestamp":{"__isSmartRef__":true,"id":17147},"user":"sebastianwoinar","tags":[]},"17147":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"17148":{"varMapping":{"__isSmartRef__":true,"id":17149},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":17150},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17149":{"this":{"__isSmartRef__":true,"id":17079}},"17150":{"timestamp":{"__isSmartRef__":true,"id":17151},"user":"sebastianwoinar","tags":[]},"17151":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"17152":{"varMapping":{"__isSmartRef__":true,"id":17153},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":17154},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17153":{"this":{"__isSmartRef__":true,"id":17079}},"17154":{"timestamp":{"__isSmartRef__":true,"id":17155},"user":"sebastianwoinar","tags":[]},"17155":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"17156":{"varMapping":{"__isSmartRef__":true,"id":17157},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":17158},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17157":{"this":{"__isSmartRef__":true,"id":17079}},"17158":{"timestamp":{"__isSmartRef__":true,"id":17159},"user":"sebastianwoinar","tags":[]},"17159":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"17160":{"varMapping":{"__isSmartRef__":true,"id":17161},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":17162},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17161":{"this":{"__isSmartRef__":true,"id":17079}},"17162":{"timestamp":{"__isSmartRef__":true,"id":17163},"user":"sebastianwoinar","tags":[]},"17163":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"17164":{"varMapping":{"__isSmartRef__":true,"id":17165},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":17166},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17165":{"this":{"__isSmartRef__":true,"id":17079}},"17166":{"timestamp":{"__isSmartRef__":true,"id":17167},"user":"sebastianwoinar","tags":[]},"17167":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"17168":{"varMapping":{"__isSmartRef__":true,"id":17169},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":17174},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17169":{"this":{"__isSmartRef__":true,"id":17079},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17170}},"17170":{"$super":{"__isSmartRef__":true,"id":17171}},"17171":{"varMapping":{"__isSmartRef__":true,"id":17172},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17173},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17172":{"obj":{"__isSmartRef__":true,"id":17079},"name":"onMouseDown"},"17173":{},"17174":{"timestamp":{"__isSmartRef__":true,"id":17175},"user":"sebastianwoinar","tags":[]},"17175":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"17176":{"varMapping":{"__isSmartRef__":true,"id":17177},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":17178},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17177":{"this":{"__isSmartRef__":true,"id":17079}},"17178":{"timestamp":{"__isSmartRef__":true,"id":17179},"user":"sebastianwoinar","tags":[]},"17179":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"17180":{"varMapping":{"__isSmartRef__":true,"id":17181},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":17182},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17181":{"this":{"__isSmartRef__":true,"id":17079}},"17182":{"timestamp":{"__isSmartRef__":true,"id":17183},"user":"sebastianwoinar","tags":[]},"17183":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"17184":{"varMapping":{"__isSmartRef__":true,"id":17185},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":17186},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17185":{"this":{"__isSmartRef__":true,"id":17079}},"17186":{"timestamp":{"__isSmartRef__":true,"id":17187},"user":"sebastianwoinar","tags":[]},"17187":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"17188":{"varMapping":{"__isSmartRef__":true,"id":17189},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":17190},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17189":{"this":{"__isSmartRef__":true,"id":17079}},"17190":{"timestamp":{"__isSmartRef__":true,"id":17191},"user":"sebastianwoinar","tags":[]},"17191":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"17192":{"varMapping":{"__isSmartRef__":true,"id":17193},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":17194},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17193":{"this":{"__isSmartRef__":true,"id":17079}},"17194":{"timestamp":{"__isSmartRef__":true,"id":17195},"user":"sebastianwoinar","tags":[]},"17195":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"17196":{"varMapping":{"__isSmartRef__":true,"id":17197},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":17198},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17197":{"this":{"__isSmartRef__":true,"id":17079}},"17198":{"timestamp":{"__isSmartRef__":true,"id":17199},"user":"sebastianwoinar","tags":[]},"17199":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"17200":{"varMapping":{"__isSmartRef__":true,"id":17201},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":17202},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17201":{"this":{"__isSmartRef__":true,"id":17079}},"17202":{"timestamp":{"__isSmartRef__":true,"id":17203},"user":"sebastianwoinar","tags":[]},"17203":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"17204":{"varMapping":{"__isSmartRef__":true,"id":17205},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":17206},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17205":{"this":{"__isSmartRef__":true,"id":17079}},"17206":{"timestamp":{"__isSmartRef__":true,"id":17207},"user":"sebastianwoinar","tags":[]},"17207":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"17208":{"submorphs":[{"__isSmartRef__":true,"id":17209}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17226},"id":"6E11F41B-E6FD-4E71-9430-9F4887247213","eventHandler":{"__isSmartRef__":true,"id":17227},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":17228},"name":"node92","partsBinMetaInfo":{"__isSmartRef__":true,"id":17229},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5613},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":16797},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17232},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(425.1,210.0)"},"17209":{"submorphs":[],"scripts":[],"id":"4D8C6709-476B-41F5-8F6F-0280BEC6CA43","shape":{"__isSmartRef__":true,"id":17210},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":17211},"textChunks":[{"__isSmartRef__":true,"id":17223}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":17225},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":17208},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"17210":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"17211":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":17212},{"__isSmartRef__":true,"id":17214},{"__isSmartRef__":true,"id":17216},{"__isSmartRef__":true,"id":17218},{"__isSmartRef__":true,"id":17220}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":17222},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"17212":{"date":{"__isSmartRef__":true,"id":17213},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"17213":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"17214":{"date":{"__isSmartRef__":true,"id":17215},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"17215":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"17216":{"date":{"__isSmartRef__":true,"id":17217},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"17217":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"17218":{"date":{"__isSmartRef__":true,"id":17219},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"17219":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"17220":{"date":{"__isSmartRef__":true,"id":17221},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"17221":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"17222":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"17223":{"style":{"__isSmartRef__":true,"id":17224},"morph":{"__isSmartRef__":true,"id":17209},"chunkOwner":{"__isSmartRef__":true,"id":17209},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17224":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17225":{"morph":{"__isSmartRef__":true,"id":17209},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17226":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"17227":{"morph":{"__isSmartRef__":true,"id":17208},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17228":{},"17229":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":17230}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"17230":{"date":{"__isSmartRef__":true,"id":17231},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"17231":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"17232":{"buildChildNodes":{"__isSmartRef__":true,"id":17233},"getGameTree":{"__isSmartRef__":true,"id":17237},"getLevel":{"__isSmartRef__":true,"id":17241},"getLevelWeight":{"__isSmartRef__":true,"id":17245},"getWeight":{"__isSmartRef__":true,"id":17249},"setNode":{"__isSmartRef__":true,"id":17253},"setParent":{"__isSmartRef__":true,"id":17257},"getParent":{"__isSmartRef__":true,"id":17261},"deactivate":{"__isSmartRef__":true,"id":17265},"blink":{"__isSmartRef__":true,"id":17269},"ABPreturn":{"__isSmartRef__":true,"id":17273},"ABPstart":{"__isSmartRef__":true,"id":17277},"ABPcontinue":{"__isSmartRef__":true,"id":17281},"ABPshowValue":{"__isSmartRef__":true,"id":17285},"ABPgetValue":{"__isSmartRef__":true,"id":17289},"ABPhasChildNodes":{"__isSmartRef__":true,"id":17293},"onMouseDown":{"__isSmartRef__":true,"id":17297},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":17305},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":17309},"ABPmarkAsDone":{"__isSmartRef__":true,"id":17313},"ABPmarkAsActive":{"__isSmartRef__":true,"id":17317},"getStateMorph":{"__isSmartRef__":true,"id":17321},"showState":{"__isSmartRef__":true,"id":17325},"ABPfailHard":{"__isSmartRef__":true,"id":17329},"markFinalDrawWith":{"__isSmartRef__":true,"id":17333}},"17233":{"varMapping":{"__isSmartRef__":true,"id":17234},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":17235},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17234":{"this":{"__isSmartRef__":true,"id":17208}},"17235":{"timestamp":{"__isSmartRef__":true,"id":17236},"user":"sebastianwoinar","tags":[]},"17236":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"17237":{"varMapping":{"__isSmartRef__":true,"id":17238},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":17239},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17238":{"this":{"__isSmartRef__":true,"id":17208}},"17239":{"timestamp":{"__isSmartRef__":true,"id":17240},"user":"sebastianwoinar","tags":[]},"17240":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17241":{"varMapping":{"__isSmartRef__":true,"id":17242},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":17243},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17242":{"this":{"__isSmartRef__":true,"id":17208}},"17243":{"timestamp":{"__isSmartRef__":true,"id":17244},"user":"sebastianwoinar","tags":[]},"17244":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17245":{"varMapping":{"__isSmartRef__":true,"id":17246},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":17247},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17246":{"this":{"__isSmartRef__":true,"id":17208}},"17247":{"timestamp":{"__isSmartRef__":true,"id":17248},"user":"sebastianwoinar","tags":[]},"17248":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17249":{"varMapping":{"__isSmartRef__":true,"id":17250},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":17251},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17250":{"this":{"__isSmartRef__":true,"id":17208}},"17251":{"timestamp":{"__isSmartRef__":true,"id":17252},"user":"sebastianwoinar","tags":[]},"17252":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17253":{"varMapping":{"__isSmartRef__":true,"id":17254},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":17255},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17254":{"this":{"__isSmartRef__":true,"id":17208}},"17255":{"timestamp":{"__isSmartRef__":true,"id":17256},"user":"sebastianwoinar","tags":[]},"17256":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17257":{"varMapping":{"__isSmartRef__":true,"id":17258},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":17259},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17258":{"this":{"__isSmartRef__":true,"id":17208}},"17259":{"timestamp":{"__isSmartRef__":true,"id":17260},"user":"sebastianwoinar","tags":[]},"17260":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17261":{"varMapping":{"__isSmartRef__":true,"id":17262},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":17263},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17262":{"this":{"__isSmartRef__":true,"id":17208}},"17263":{"timestamp":{"__isSmartRef__":true,"id":17264},"user":"sebastianwoinar","tags":[]},"17264":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"17265":{"varMapping":{"__isSmartRef__":true,"id":17266},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":17267},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17266":{"this":{"__isSmartRef__":true,"id":17208}},"17267":{"timestamp":{"__isSmartRef__":true,"id":17268},"user":"sebastianwoinar","tags":[]},"17268":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"17269":{"varMapping":{"__isSmartRef__":true,"id":17270},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":17271},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17270":{"this":{"__isSmartRef__":true,"id":17208}},"17271":{"timestamp":{"__isSmartRef__":true,"id":17272},"user":"sebastianwoinar","tags":[]},"17272":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"17273":{"varMapping":{"__isSmartRef__":true,"id":17274},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":17275},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17274":{"this":{"__isSmartRef__":true,"id":17208}},"17275":{"timestamp":{"__isSmartRef__":true,"id":17276},"user":"sebastianwoinar","tags":[]},"17276":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"17277":{"varMapping":{"__isSmartRef__":true,"id":17278},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":17279},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17278":{"this":{"__isSmartRef__":true,"id":17208}},"17279":{"timestamp":{"__isSmartRef__":true,"id":17280},"user":"sebastianwoinar","tags":[]},"17280":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"17281":{"varMapping":{"__isSmartRef__":true,"id":17282},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":17283},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17282":{"this":{"__isSmartRef__":true,"id":17208}},"17283":{"timestamp":{"__isSmartRef__":true,"id":17284},"user":"sebastianwoinar","tags":[]},"17284":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"17285":{"varMapping":{"__isSmartRef__":true,"id":17286},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":17287},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17286":{"this":{"__isSmartRef__":true,"id":17208}},"17287":{"timestamp":{"__isSmartRef__":true,"id":17288},"user":"sebastianwoinar","tags":[]},"17288":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"17289":{"varMapping":{"__isSmartRef__":true,"id":17290},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":17291},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17290":{"this":{"__isSmartRef__":true,"id":17208}},"17291":{"timestamp":{"__isSmartRef__":true,"id":17292},"user":"sebastianwoinar","tags":[]},"17292":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"17293":{"varMapping":{"__isSmartRef__":true,"id":17294},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":17295},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17294":{"this":{"__isSmartRef__":true,"id":17208}},"17295":{"timestamp":{"__isSmartRef__":true,"id":17296},"user":"sebastianwoinar","tags":[]},"17296":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"17297":{"varMapping":{"__isSmartRef__":true,"id":17298},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":17303},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17298":{"this":{"__isSmartRef__":true,"id":17208},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17299}},"17299":{"$super":{"__isSmartRef__":true,"id":17300}},"17300":{"varMapping":{"__isSmartRef__":true,"id":17301},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17302},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17301":{"obj":{"__isSmartRef__":true,"id":17208},"name":"onMouseDown"},"17302":{},"17303":{"timestamp":{"__isSmartRef__":true,"id":17304},"user":"sebastianwoinar","tags":[]},"17304":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"17305":{"varMapping":{"__isSmartRef__":true,"id":17306},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":17307},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17306":{"this":{"__isSmartRef__":true,"id":17208}},"17307":{"timestamp":{"__isSmartRef__":true,"id":17308},"user":"sebastianwoinar","tags":[]},"17308":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"17309":{"varMapping":{"__isSmartRef__":true,"id":17310},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":17311},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17310":{"this":{"__isSmartRef__":true,"id":17208}},"17311":{"timestamp":{"__isSmartRef__":true,"id":17312},"user":"sebastianwoinar","tags":[]},"17312":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"17313":{"varMapping":{"__isSmartRef__":true,"id":17314},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":17315},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17314":{"this":{"__isSmartRef__":true,"id":17208}},"17315":{"timestamp":{"__isSmartRef__":true,"id":17316},"user":"sebastianwoinar","tags":[]},"17316":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"17317":{"varMapping":{"__isSmartRef__":true,"id":17318},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":17319},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17318":{"this":{"__isSmartRef__":true,"id":17208}},"17319":{"timestamp":{"__isSmartRef__":true,"id":17320},"user":"sebastianwoinar","tags":[]},"17320":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"17321":{"varMapping":{"__isSmartRef__":true,"id":17322},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":17323},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17322":{"this":{"__isSmartRef__":true,"id":17208}},"17323":{"timestamp":{"__isSmartRef__":true,"id":17324},"user":"sebastianwoinar","tags":[]},"17324":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"17325":{"varMapping":{"__isSmartRef__":true,"id":17326},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":17327},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17326":{"this":{"__isSmartRef__":true,"id":17208}},"17327":{"timestamp":{"__isSmartRef__":true,"id":17328},"user":"sebastianwoinar","tags":[]},"17328":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"17329":{"varMapping":{"__isSmartRef__":true,"id":17330},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":17331},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17330":{"this":{"__isSmartRef__":true,"id":17208}},"17331":{"timestamp":{"__isSmartRef__":true,"id":17332},"user":"sebastianwoinar","tags":[]},"17332":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"17333":{"varMapping":{"__isSmartRef__":true,"id":17334},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":17335},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17334":{"this":{"__isSmartRef__":true,"id":17208}},"17335":{"timestamp":{"__isSmartRef__":true,"id":17336},"user":"sebastianwoinar","tags":[]},"17336":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"17337":{"submorphs":[{"__isSmartRef__":true,"id":17338}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17355},"id":"1B52ED7C-62C6-4FDC-A433-752E1CC35366","eventHandler":{"__isSmartRef__":true,"id":17356},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":17357},"name":"node93","partsBinMetaInfo":{"__isSmartRef__":true,"id":17358},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5615},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":16797},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17361},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(430.2,210.0)"},"17338":{"submorphs":[],"scripts":[],"id":"05085DF3-EDA4-4BD1-B6A7-B5468827FDF4","shape":{"__isSmartRef__":true,"id":17339},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":17340},"textChunks":[{"__isSmartRef__":true,"id":17352}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":17354},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":17337},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"17339":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"17340":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":17341},{"__isSmartRef__":true,"id":17343},{"__isSmartRef__":true,"id":17345},{"__isSmartRef__":true,"id":17347},{"__isSmartRef__":true,"id":17349}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":17351},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"17341":{"date":{"__isSmartRef__":true,"id":17342},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"17342":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"17343":{"date":{"__isSmartRef__":true,"id":17344},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"17344":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"17345":{"date":{"__isSmartRef__":true,"id":17346},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"17346":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"17347":{"date":{"__isSmartRef__":true,"id":17348},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"17348":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"17349":{"date":{"__isSmartRef__":true,"id":17350},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"17350":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"17351":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"17352":{"style":{"__isSmartRef__":true,"id":17353},"morph":{"__isSmartRef__":true,"id":17338},"chunkOwner":{"__isSmartRef__":true,"id":17338},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17353":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17354":{"morph":{"__isSmartRef__":true,"id":17338},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17355":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"17356":{"morph":{"__isSmartRef__":true,"id":17337},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17357":{},"17358":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":17359}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"17359":{"date":{"__isSmartRef__":true,"id":17360},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"17360":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"17361":{"buildChildNodes":{"__isSmartRef__":true,"id":17362},"getGameTree":{"__isSmartRef__":true,"id":17366},"getLevel":{"__isSmartRef__":true,"id":17370},"getLevelWeight":{"__isSmartRef__":true,"id":17374},"getWeight":{"__isSmartRef__":true,"id":17378},"setNode":{"__isSmartRef__":true,"id":17382},"setParent":{"__isSmartRef__":true,"id":17386},"getParent":{"__isSmartRef__":true,"id":17390},"deactivate":{"__isSmartRef__":true,"id":17394},"blink":{"__isSmartRef__":true,"id":17398},"ABPreturn":{"__isSmartRef__":true,"id":17402},"ABPstart":{"__isSmartRef__":true,"id":17406},"ABPcontinue":{"__isSmartRef__":true,"id":17410},"ABPshowValue":{"__isSmartRef__":true,"id":17414},"ABPgetValue":{"__isSmartRef__":true,"id":17418},"ABPhasChildNodes":{"__isSmartRef__":true,"id":17422},"onMouseDown":{"__isSmartRef__":true,"id":17426},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":17434},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":17438},"ABPmarkAsDone":{"__isSmartRef__":true,"id":17442},"ABPmarkAsActive":{"__isSmartRef__":true,"id":17446},"getStateMorph":{"__isSmartRef__":true,"id":17450},"showState":{"__isSmartRef__":true,"id":17454},"ABPfailHard":{"__isSmartRef__":true,"id":17458},"markFinalDrawWith":{"__isSmartRef__":true,"id":17462}},"17362":{"varMapping":{"__isSmartRef__":true,"id":17363},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":17364},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17363":{"this":{"__isSmartRef__":true,"id":17337}},"17364":{"timestamp":{"__isSmartRef__":true,"id":17365},"user":"sebastianwoinar","tags":[]},"17365":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"17366":{"varMapping":{"__isSmartRef__":true,"id":17367},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":17368},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17367":{"this":{"__isSmartRef__":true,"id":17337}},"17368":{"timestamp":{"__isSmartRef__":true,"id":17369},"user":"sebastianwoinar","tags":[]},"17369":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17370":{"varMapping":{"__isSmartRef__":true,"id":17371},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":17372},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17371":{"this":{"__isSmartRef__":true,"id":17337}},"17372":{"timestamp":{"__isSmartRef__":true,"id":17373},"user":"sebastianwoinar","tags":[]},"17373":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17374":{"varMapping":{"__isSmartRef__":true,"id":17375},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":17376},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17375":{"this":{"__isSmartRef__":true,"id":17337}},"17376":{"timestamp":{"__isSmartRef__":true,"id":17377},"user":"sebastianwoinar","tags":[]},"17377":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17378":{"varMapping":{"__isSmartRef__":true,"id":17379},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":17380},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17379":{"this":{"__isSmartRef__":true,"id":17337}},"17380":{"timestamp":{"__isSmartRef__":true,"id":17381},"user":"sebastianwoinar","tags":[]},"17381":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17382":{"varMapping":{"__isSmartRef__":true,"id":17383},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":17384},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17383":{"this":{"__isSmartRef__":true,"id":17337}},"17384":{"timestamp":{"__isSmartRef__":true,"id":17385},"user":"sebastianwoinar","tags":[]},"17385":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17386":{"varMapping":{"__isSmartRef__":true,"id":17387},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":17388},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17387":{"this":{"__isSmartRef__":true,"id":17337}},"17388":{"timestamp":{"__isSmartRef__":true,"id":17389},"user":"sebastianwoinar","tags":[]},"17389":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17390":{"varMapping":{"__isSmartRef__":true,"id":17391},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":17392},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17391":{"this":{"__isSmartRef__":true,"id":17337}},"17392":{"timestamp":{"__isSmartRef__":true,"id":17393},"user":"sebastianwoinar","tags":[]},"17393":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"17394":{"varMapping":{"__isSmartRef__":true,"id":17395},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":17396},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17395":{"this":{"__isSmartRef__":true,"id":17337}},"17396":{"timestamp":{"__isSmartRef__":true,"id":17397},"user":"sebastianwoinar","tags":[]},"17397":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"17398":{"varMapping":{"__isSmartRef__":true,"id":17399},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":17400},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17399":{"this":{"__isSmartRef__":true,"id":17337}},"17400":{"timestamp":{"__isSmartRef__":true,"id":17401},"user":"sebastianwoinar","tags":[]},"17401":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"17402":{"varMapping":{"__isSmartRef__":true,"id":17403},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":17404},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17403":{"this":{"__isSmartRef__":true,"id":17337}},"17404":{"timestamp":{"__isSmartRef__":true,"id":17405},"user":"sebastianwoinar","tags":[]},"17405":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"17406":{"varMapping":{"__isSmartRef__":true,"id":17407},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":17408},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17407":{"this":{"__isSmartRef__":true,"id":17337}},"17408":{"timestamp":{"__isSmartRef__":true,"id":17409},"user":"sebastianwoinar","tags":[]},"17409":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"17410":{"varMapping":{"__isSmartRef__":true,"id":17411},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":17412},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17411":{"this":{"__isSmartRef__":true,"id":17337}},"17412":{"timestamp":{"__isSmartRef__":true,"id":17413},"user":"sebastianwoinar","tags":[]},"17413":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"17414":{"varMapping":{"__isSmartRef__":true,"id":17415},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":17416},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17415":{"this":{"__isSmartRef__":true,"id":17337}},"17416":{"timestamp":{"__isSmartRef__":true,"id":17417},"user":"sebastianwoinar","tags":[]},"17417":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"17418":{"varMapping":{"__isSmartRef__":true,"id":17419},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":17420},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17419":{"this":{"__isSmartRef__":true,"id":17337}},"17420":{"timestamp":{"__isSmartRef__":true,"id":17421},"user":"sebastianwoinar","tags":[]},"17421":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"17422":{"varMapping":{"__isSmartRef__":true,"id":17423},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":17424},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17423":{"this":{"__isSmartRef__":true,"id":17337}},"17424":{"timestamp":{"__isSmartRef__":true,"id":17425},"user":"sebastianwoinar","tags":[]},"17425":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"17426":{"varMapping":{"__isSmartRef__":true,"id":17427},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":17432},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17427":{"this":{"__isSmartRef__":true,"id":17337},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17428}},"17428":{"$super":{"__isSmartRef__":true,"id":17429}},"17429":{"varMapping":{"__isSmartRef__":true,"id":17430},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17431},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17430":{"obj":{"__isSmartRef__":true,"id":17337},"name":"onMouseDown"},"17431":{},"17432":{"timestamp":{"__isSmartRef__":true,"id":17433},"user":"sebastianwoinar","tags":[]},"17433":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"17434":{"varMapping":{"__isSmartRef__":true,"id":17435},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":17436},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17435":{"this":{"__isSmartRef__":true,"id":17337}},"17436":{"timestamp":{"__isSmartRef__":true,"id":17437},"user":"sebastianwoinar","tags":[]},"17437":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"17438":{"varMapping":{"__isSmartRef__":true,"id":17439},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":17440},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17439":{"this":{"__isSmartRef__":true,"id":17337}},"17440":{"timestamp":{"__isSmartRef__":true,"id":17441},"user":"sebastianwoinar","tags":[]},"17441":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"17442":{"varMapping":{"__isSmartRef__":true,"id":17443},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":17444},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17443":{"this":{"__isSmartRef__":true,"id":17337}},"17444":{"timestamp":{"__isSmartRef__":true,"id":17445},"user":"sebastianwoinar","tags":[]},"17445":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"17446":{"varMapping":{"__isSmartRef__":true,"id":17447},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":17448},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17447":{"this":{"__isSmartRef__":true,"id":17337}},"17448":{"timestamp":{"__isSmartRef__":true,"id":17449},"user":"sebastianwoinar","tags":[]},"17449":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"17450":{"varMapping":{"__isSmartRef__":true,"id":17451},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":17452},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17451":{"this":{"__isSmartRef__":true,"id":17337}},"17452":{"timestamp":{"__isSmartRef__":true,"id":17453},"user":"sebastianwoinar","tags":[]},"17453":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"17454":{"varMapping":{"__isSmartRef__":true,"id":17455},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":17456},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17455":{"this":{"__isSmartRef__":true,"id":17337}},"17456":{"timestamp":{"__isSmartRef__":true,"id":17457},"user":"sebastianwoinar","tags":[]},"17457":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"17458":{"varMapping":{"__isSmartRef__":true,"id":17459},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":17460},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17459":{"this":{"__isSmartRef__":true,"id":17337}},"17460":{"timestamp":{"__isSmartRef__":true,"id":17461},"user":"sebastianwoinar","tags":[]},"17461":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"17462":{"varMapping":{"__isSmartRef__":true,"id":17463},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":17464},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17463":{"this":{"__isSmartRef__":true,"id":17337}},"17464":{"timestamp":{"__isSmartRef__":true,"id":17465},"user":"sebastianwoinar","tags":[]},"17465":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"17466":{"submorphs":[{"__isSmartRef__":true,"id":17467}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17484},"id":"477E4F35-CEBD-439D-A91B-EB65499D708B","eventHandler":{"__isSmartRef__":true,"id":17485},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":17486},"name":"node94","partsBinMetaInfo":{"__isSmartRef__":true,"id":17487},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5617},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":16797},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17490},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(435.4,210.0)"},"17467":{"submorphs":[],"scripts":[],"id":"8F0B69BE-2308-41F1-8F6B-8913FDE81F0F","shape":{"__isSmartRef__":true,"id":17468},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":17469},"textChunks":[{"__isSmartRef__":true,"id":17481}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":17483},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":17466},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"17468":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"17469":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":17470},{"__isSmartRef__":true,"id":17472},{"__isSmartRef__":true,"id":17474},{"__isSmartRef__":true,"id":17476},{"__isSmartRef__":true,"id":17478}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":17480},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"17470":{"date":{"__isSmartRef__":true,"id":17471},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"17471":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"17472":{"date":{"__isSmartRef__":true,"id":17473},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"17473":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"17474":{"date":{"__isSmartRef__":true,"id":17475},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"17475":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"17476":{"date":{"__isSmartRef__":true,"id":17477},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"17477":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"17478":{"date":{"__isSmartRef__":true,"id":17479},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"17479":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"17480":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"17481":{"style":{"__isSmartRef__":true,"id":17482},"morph":{"__isSmartRef__":true,"id":17467},"chunkOwner":{"__isSmartRef__":true,"id":17467},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17482":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17483":{"morph":{"__isSmartRef__":true,"id":17467},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17484":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"17485":{"morph":{"__isSmartRef__":true,"id":17466},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17486":{},"17487":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":17488}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"17488":{"date":{"__isSmartRef__":true,"id":17489},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"17489":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"17490":{"buildChildNodes":{"__isSmartRef__":true,"id":17491},"getGameTree":{"__isSmartRef__":true,"id":17495},"getLevel":{"__isSmartRef__":true,"id":17499},"getLevelWeight":{"__isSmartRef__":true,"id":17503},"getWeight":{"__isSmartRef__":true,"id":17507},"setNode":{"__isSmartRef__":true,"id":17511},"setParent":{"__isSmartRef__":true,"id":17515},"getParent":{"__isSmartRef__":true,"id":17519},"deactivate":{"__isSmartRef__":true,"id":17523},"blink":{"__isSmartRef__":true,"id":17527},"ABPreturn":{"__isSmartRef__":true,"id":17531},"ABPstart":{"__isSmartRef__":true,"id":17535},"ABPcontinue":{"__isSmartRef__":true,"id":17539},"ABPshowValue":{"__isSmartRef__":true,"id":17543},"ABPgetValue":{"__isSmartRef__":true,"id":17547},"ABPhasChildNodes":{"__isSmartRef__":true,"id":17551},"onMouseDown":{"__isSmartRef__":true,"id":17555},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":17563},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":17567},"ABPmarkAsDone":{"__isSmartRef__":true,"id":17571},"ABPmarkAsActive":{"__isSmartRef__":true,"id":17575},"getStateMorph":{"__isSmartRef__":true,"id":17579},"showState":{"__isSmartRef__":true,"id":17583},"ABPfailHard":{"__isSmartRef__":true,"id":17587},"markFinalDrawWith":{"__isSmartRef__":true,"id":17591}},"17491":{"varMapping":{"__isSmartRef__":true,"id":17492},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":17493},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17492":{"this":{"__isSmartRef__":true,"id":17466}},"17493":{"timestamp":{"__isSmartRef__":true,"id":17494},"user":"sebastianwoinar","tags":[]},"17494":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"17495":{"varMapping":{"__isSmartRef__":true,"id":17496},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":17497},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17496":{"this":{"__isSmartRef__":true,"id":17466}},"17497":{"timestamp":{"__isSmartRef__":true,"id":17498},"user":"sebastianwoinar","tags":[]},"17498":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17499":{"varMapping":{"__isSmartRef__":true,"id":17500},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":17501},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17500":{"this":{"__isSmartRef__":true,"id":17466}},"17501":{"timestamp":{"__isSmartRef__":true,"id":17502},"user":"sebastianwoinar","tags":[]},"17502":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17503":{"varMapping":{"__isSmartRef__":true,"id":17504},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":17505},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17504":{"this":{"__isSmartRef__":true,"id":17466}},"17505":{"timestamp":{"__isSmartRef__":true,"id":17506},"user":"sebastianwoinar","tags":[]},"17506":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17507":{"varMapping":{"__isSmartRef__":true,"id":17508},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":17509},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17508":{"this":{"__isSmartRef__":true,"id":17466}},"17509":{"timestamp":{"__isSmartRef__":true,"id":17510},"user":"sebastianwoinar","tags":[]},"17510":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17511":{"varMapping":{"__isSmartRef__":true,"id":17512},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":17513},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17512":{"this":{"__isSmartRef__":true,"id":17466}},"17513":{"timestamp":{"__isSmartRef__":true,"id":17514},"user":"sebastianwoinar","tags":[]},"17514":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17515":{"varMapping":{"__isSmartRef__":true,"id":17516},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":17517},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17516":{"this":{"__isSmartRef__":true,"id":17466}},"17517":{"timestamp":{"__isSmartRef__":true,"id":17518},"user":"sebastianwoinar","tags":[]},"17518":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17519":{"varMapping":{"__isSmartRef__":true,"id":17520},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":17521},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17520":{"this":{"__isSmartRef__":true,"id":17466}},"17521":{"timestamp":{"__isSmartRef__":true,"id":17522},"user":"sebastianwoinar","tags":[]},"17522":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"17523":{"varMapping":{"__isSmartRef__":true,"id":17524},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":17525},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17524":{"this":{"__isSmartRef__":true,"id":17466}},"17525":{"timestamp":{"__isSmartRef__":true,"id":17526},"user":"sebastianwoinar","tags":[]},"17526":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"17527":{"varMapping":{"__isSmartRef__":true,"id":17528},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":17529},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17528":{"this":{"__isSmartRef__":true,"id":17466}},"17529":{"timestamp":{"__isSmartRef__":true,"id":17530},"user":"sebastianwoinar","tags":[]},"17530":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"17531":{"varMapping":{"__isSmartRef__":true,"id":17532},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":17533},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17532":{"this":{"__isSmartRef__":true,"id":17466}},"17533":{"timestamp":{"__isSmartRef__":true,"id":17534},"user":"sebastianwoinar","tags":[]},"17534":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"17535":{"varMapping":{"__isSmartRef__":true,"id":17536},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":17537},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17536":{"this":{"__isSmartRef__":true,"id":17466}},"17537":{"timestamp":{"__isSmartRef__":true,"id":17538},"user":"sebastianwoinar","tags":[]},"17538":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"17539":{"varMapping":{"__isSmartRef__":true,"id":17540},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":17541},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17540":{"this":{"__isSmartRef__":true,"id":17466}},"17541":{"timestamp":{"__isSmartRef__":true,"id":17542},"user":"sebastianwoinar","tags":[]},"17542":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"17543":{"varMapping":{"__isSmartRef__":true,"id":17544},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":17545},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17544":{"this":{"__isSmartRef__":true,"id":17466}},"17545":{"timestamp":{"__isSmartRef__":true,"id":17546},"user":"sebastianwoinar","tags":[]},"17546":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"17547":{"varMapping":{"__isSmartRef__":true,"id":17548},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":17549},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17548":{"this":{"__isSmartRef__":true,"id":17466}},"17549":{"timestamp":{"__isSmartRef__":true,"id":17550},"user":"sebastianwoinar","tags":[]},"17550":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"17551":{"varMapping":{"__isSmartRef__":true,"id":17552},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":17553},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17552":{"this":{"__isSmartRef__":true,"id":17466}},"17553":{"timestamp":{"__isSmartRef__":true,"id":17554},"user":"sebastianwoinar","tags":[]},"17554":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"17555":{"varMapping":{"__isSmartRef__":true,"id":17556},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":17561},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17556":{"this":{"__isSmartRef__":true,"id":17466},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17557}},"17557":{"$super":{"__isSmartRef__":true,"id":17558}},"17558":{"varMapping":{"__isSmartRef__":true,"id":17559},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17560},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17559":{"obj":{"__isSmartRef__":true,"id":17466},"name":"onMouseDown"},"17560":{},"17561":{"timestamp":{"__isSmartRef__":true,"id":17562},"user":"sebastianwoinar","tags":[]},"17562":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"17563":{"varMapping":{"__isSmartRef__":true,"id":17564},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":17565},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17564":{"this":{"__isSmartRef__":true,"id":17466}},"17565":{"timestamp":{"__isSmartRef__":true,"id":17566},"user":"sebastianwoinar","tags":[]},"17566":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"17567":{"varMapping":{"__isSmartRef__":true,"id":17568},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":17569},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17568":{"this":{"__isSmartRef__":true,"id":17466}},"17569":{"timestamp":{"__isSmartRef__":true,"id":17570},"user":"sebastianwoinar","tags":[]},"17570":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"17571":{"varMapping":{"__isSmartRef__":true,"id":17572},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":17573},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17572":{"this":{"__isSmartRef__":true,"id":17466}},"17573":{"timestamp":{"__isSmartRef__":true,"id":17574},"user":"sebastianwoinar","tags":[]},"17574":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"17575":{"varMapping":{"__isSmartRef__":true,"id":17576},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":17577},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17576":{"this":{"__isSmartRef__":true,"id":17466}},"17577":{"timestamp":{"__isSmartRef__":true,"id":17578},"user":"sebastianwoinar","tags":[]},"17578":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"17579":{"varMapping":{"__isSmartRef__":true,"id":17580},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":17581},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17580":{"this":{"__isSmartRef__":true,"id":17466}},"17581":{"timestamp":{"__isSmartRef__":true,"id":17582},"user":"sebastianwoinar","tags":[]},"17582":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"17583":{"varMapping":{"__isSmartRef__":true,"id":17584},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":17585},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17584":{"this":{"__isSmartRef__":true,"id":17466}},"17585":{"timestamp":{"__isSmartRef__":true,"id":17586},"user":"sebastianwoinar","tags":[]},"17586":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"17587":{"varMapping":{"__isSmartRef__":true,"id":17588},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":17589},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17588":{"this":{"__isSmartRef__":true,"id":17466}},"17589":{"timestamp":{"__isSmartRef__":true,"id":17590},"user":"sebastianwoinar","tags":[]},"17590":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"17591":{"varMapping":{"__isSmartRef__":true,"id":17592},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":17593},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17592":{"this":{"__isSmartRef__":true,"id":17466}},"17593":{"timestamp":{"__isSmartRef__":true,"id":17594},"user":"sebastianwoinar","tags":[]},"17594":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"17595":{"buildChildNodes":{"__isSmartRef__":true,"id":17596},"getGameTree":{"__isSmartRef__":true,"id":17600},"getLevel":{"__isSmartRef__":true,"id":17604},"getLevelWeight":{"__isSmartRef__":true,"id":17608},"getWeight":{"__isSmartRef__":true,"id":17612},"setNode":{"__isSmartRef__":true,"id":17616},"setParent":{"__isSmartRef__":true,"id":17620},"getParent":{"__isSmartRef__":true,"id":17624},"deactivate":{"__isSmartRef__":true,"id":17628},"blink":{"__isSmartRef__":true,"id":17632},"ABPreturn":{"__isSmartRef__":true,"id":17636},"ABPstart":{"__isSmartRef__":true,"id":17640},"ABPcontinue":{"__isSmartRef__":true,"id":17644},"ABPshowValue":{"__isSmartRef__":true,"id":17648},"ABPgetValue":{"__isSmartRef__":true,"id":17652},"ABPhasChildNodes":{"__isSmartRef__":true,"id":17656},"onMouseDown":{"__isSmartRef__":true,"id":17660},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":17668},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":17672},"ABPmarkAsDone":{"__isSmartRef__":true,"id":17676},"ABPmarkAsActive":{"__isSmartRef__":true,"id":17680},"getStateMorph":{"__isSmartRef__":true,"id":17684},"showState":{"__isSmartRef__":true,"id":17688},"ABPfailHard":{"__isSmartRef__":true,"id":17692},"markFinalDrawWith":{"__isSmartRef__":true,"id":17696}},"17596":{"varMapping":{"__isSmartRef__":true,"id":17597},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":17598},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17597":{"this":{"__isSmartRef__":true,"id":16797}},"17598":{"timestamp":{"__isSmartRef__":true,"id":17599},"user":"sebastianwoinar","tags":[]},"17599":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"17600":{"varMapping":{"__isSmartRef__":true,"id":17601},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":17602},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17601":{"this":{"__isSmartRef__":true,"id":16797}},"17602":{"timestamp":{"__isSmartRef__":true,"id":17603},"user":"sebastianwoinar","tags":[]},"17603":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17604":{"varMapping":{"__isSmartRef__":true,"id":17605},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":17606},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17605":{"this":{"__isSmartRef__":true,"id":16797}},"17606":{"timestamp":{"__isSmartRef__":true,"id":17607},"user":"sebastianwoinar","tags":[]},"17607":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17608":{"varMapping":{"__isSmartRef__":true,"id":17609},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":17610},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17609":{"this":{"__isSmartRef__":true,"id":16797}},"17610":{"timestamp":{"__isSmartRef__":true,"id":17611},"user":"sebastianwoinar","tags":[]},"17611":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17612":{"varMapping":{"__isSmartRef__":true,"id":17613},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":17614},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17613":{"this":{"__isSmartRef__":true,"id":16797}},"17614":{"timestamp":{"__isSmartRef__":true,"id":17615},"user":"sebastianwoinar","tags":[]},"17615":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17616":{"varMapping":{"__isSmartRef__":true,"id":17617},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":17618},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17617":{"this":{"__isSmartRef__":true,"id":16797}},"17618":{"timestamp":{"__isSmartRef__":true,"id":17619},"user":"sebastianwoinar","tags":[]},"17619":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17620":{"varMapping":{"__isSmartRef__":true,"id":17621},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":17622},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17621":{"this":{"__isSmartRef__":true,"id":16797}},"17622":{"timestamp":{"__isSmartRef__":true,"id":17623},"user":"sebastianwoinar","tags":[]},"17623":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17624":{"varMapping":{"__isSmartRef__":true,"id":17625},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":17626},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17625":{"this":{"__isSmartRef__":true,"id":16797}},"17626":{"timestamp":{"__isSmartRef__":true,"id":17627},"user":"sebastianwoinar","tags":[]},"17627":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"17628":{"varMapping":{"__isSmartRef__":true,"id":17629},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":17630},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17629":{"this":{"__isSmartRef__":true,"id":16797}},"17630":{"timestamp":{"__isSmartRef__":true,"id":17631},"user":"sebastianwoinar","tags":[]},"17631":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"17632":{"varMapping":{"__isSmartRef__":true,"id":17633},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":17634},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17633":{"this":{"__isSmartRef__":true,"id":16797}},"17634":{"timestamp":{"__isSmartRef__":true,"id":17635},"user":"sebastianwoinar","tags":[]},"17635":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"17636":{"varMapping":{"__isSmartRef__":true,"id":17637},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":17638},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17637":{"this":{"__isSmartRef__":true,"id":16797}},"17638":{"timestamp":{"__isSmartRef__":true,"id":17639},"user":"sebastianwoinar","tags":[]},"17639":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"17640":{"varMapping":{"__isSmartRef__":true,"id":17641},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":17642},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17641":{"this":{"__isSmartRef__":true,"id":16797}},"17642":{"timestamp":{"__isSmartRef__":true,"id":17643},"user":"sebastianwoinar","tags":[]},"17643":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"17644":{"varMapping":{"__isSmartRef__":true,"id":17645},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":17646},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17645":{"this":{"__isSmartRef__":true,"id":16797}},"17646":{"timestamp":{"__isSmartRef__":true,"id":17647},"user":"sebastianwoinar","tags":[]},"17647":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"17648":{"varMapping":{"__isSmartRef__":true,"id":17649},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":17650},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17649":{"this":{"__isSmartRef__":true,"id":16797}},"17650":{"timestamp":{"__isSmartRef__":true,"id":17651},"user":"sebastianwoinar","tags":[]},"17651":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"17652":{"varMapping":{"__isSmartRef__":true,"id":17653},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":17654},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17653":{"this":{"__isSmartRef__":true,"id":16797}},"17654":{"timestamp":{"__isSmartRef__":true,"id":17655},"user":"sebastianwoinar","tags":[]},"17655":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"17656":{"varMapping":{"__isSmartRef__":true,"id":17657},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":17658},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17657":{"this":{"__isSmartRef__":true,"id":16797}},"17658":{"timestamp":{"__isSmartRef__":true,"id":17659},"user":"sebastianwoinar","tags":[]},"17659":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"17660":{"varMapping":{"__isSmartRef__":true,"id":17661},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":17666},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17661":{"this":{"__isSmartRef__":true,"id":16797},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17662}},"17662":{"$super":{"__isSmartRef__":true,"id":17663}},"17663":{"varMapping":{"__isSmartRef__":true,"id":17664},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17665},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17664":{"obj":{"__isSmartRef__":true,"id":16797},"name":"onMouseDown"},"17665":{},"17666":{"timestamp":{"__isSmartRef__":true,"id":17667},"user":"sebastianwoinar","tags":[]},"17667":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"17668":{"varMapping":{"__isSmartRef__":true,"id":17669},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":17670},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17669":{"this":{"__isSmartRef__":true,"id":16797}},"17670":{"timestamp":{"__isSmartRef__":true,"id":17671},"user":"sebastianwoinar","tags":[]},"17671":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"17672":{"varMapping":{"__isSmartRef__":true,"id":17673},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":17674},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17673":{"this":{"__isSmartRef__":true,"id":16797}},"17674":{"timestamp":{"__isSmartRef__":true,"id":17675},"user":"sebastianwoinar","tags":[]},"17675":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"17676":{"varMapping":{"__isSmartRef__":true,"id":17677},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":17678},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17677":{"this":{"__isSmartRef__":true,"id":16797}},"17678":{"timestamp":{"__isSmartRef__":true,"id":17679},"user":"sebastianwoinar","tags":[]},"17679":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"17680":{"varMapping":{"__isSmartRef__":true,"id":17681},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":17682},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17681":{"this":{"__isSmartRef__":true,"id":16797}},"17682":{"timestamp":{"__isSmartRef__":true,"id":17683},"user":"sebastianwoinar","tags":[]},"17683":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"17684":{"varMapping":{"__isSmartRef__":true,"id":17685},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":17686},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17685":{"this":{"__isSmartRef__":true,"id":16797}},"17686":{"timestamp":{"__isSmartRef__":true,"id":17687},"user":"sebastianwoinar","tags":[]},"17687":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"17688":{"varMapping":{"__isSmartRef__":true,"id":17689},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":17690},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17689":{"this":{"__isSmartRef__":true,"id":16797}},"17690":{"timestamp":{"__isSmartRef__":true,"id":17691},"user":"sebastianwoinar","tags":[]},"17691":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"17692":{"varMapping":{"__isSmartRef__":true,"id":17693},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":17694},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17693":{"this":{"__isSmartRef__":true,"id":16797}},"17694":{"timestamp":{"__isSmartRef__":true,"id":17695},"user":"sebastianwoinar","tags":[]},"17695":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"17696":{"varMapping":{"__isSmartRef__":true,"id":17697},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":17698},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17697":{"this":{"__isSmartRef__":true,"id":16797}},"17698":{"timestamp":{"__isSmartRef__":true,"id":17699},"user":"sebastianwoinar","tags":[]},"17699":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"17700":{"buildChildNodes":{"__isSmartRef__":true,"id":17701},"getGameTree":{"__isSmartRef__":true,"id":17705},"getLevel":{"__isSmartRef__":true,"id":17709},"getLevelWeight":{"__isSmartRef__":true,"id":17713},"getWeight":{"__isSmartRef__":true,"id":17717},"setNode":{"__isSmartRef__":true,"id":17721},"setParent":{"__isSmartRef__":true,"id":17725},"getParent":{"__isSmartRef__":true,"id":17729},"deactivate":{"__isSmartRef__":true,"id":17733},"blink":{"__isSmartRef__":true,"id":17737},"ABPreturn":{"__isSmartRef__":true,"id":17741},"ABPstart":{"__isSmartRef__":true,"id":17745},"ABPcontinue":{"__isSmartRef__":true,"id":17749},"ABPshowValue":{"__isSmartRef__":true,"id":17753},"ABPgetValue":{"__isSmartRef__":true,"id":17757},"ABPhasChildNodes":{"__isSmartRef__":true,"id":17761},"onMouseDown":{"__isSmartRef__":true,"id":17765},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":17773},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":17777},"ABPmarkAsDone":{"__isSmartRef__":true,"id":17781},"ABPmarkAsActive":{"__isSmartRef__":true,"id":17785},"getStateMorph":{"__isSmartRef__":true,"id":17789},"showState":{"__isSmartRef__":true,"id":17793},"ABPfailHard":{"__isSmartRef__":true,"id":17797},"markFinalDrawWith":{"__isSmartRef__":true,"id":17801}},"17701":{"varMapping":{"__isSmartRef__":true,"id":17702},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":17703},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17702":{"this":{"__isSmartRef__":true,"id":12516}},"17703":{"timestamp":{"__isSmartRef__":true,"id":17704},"user":"sebastianwoinar","tags":[]},"17704":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"17705":{"varMapping":{"__isSmartRef__":true,"id":17706},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":17707},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17706":{"this":{"__isSmartRef__":true,"id":12516}},"17707":{"timestamp":{"__isSmartRef__":true,"id":17708},"user":"sebastianwoinar","tags":[]},"17708":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17709":{"varMapping":{"__isSmartRef__":true,"id":17710},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":17711},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17710":{"this":{"__isSmartRef__":true,"id":12516}},"17711":{"timestamp":{"__isSmartRef__":true,"id":17712},"user":"sebastianwoinar","tags":[]},"17712":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17713":{"varMapping":{"__isSmartRef__":true,"id":17714},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":17715},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17714":{"this":{"__isSmartRef__":true,"id":12516}},"17715":{"timestamp":{"__isSmartRef__":true,"id":17716},"user":"sebastianwoinar","tags":[]},"17716":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17717":{"varMapping":{"__isSmartRef__":true,"id":17718},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":17719},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17718":{"this":{"__isSmartRef__":true,"id":12516}},"17719":{"timestamp":{"__isSmartRef__":true,"id":17720},"user":"sebastianwoinar","tags":[]},"17720":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17721":{"varMapping":{"__isSmartRef__":true,"id":17722},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":17723},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17722":{"this":{"__isSmartRef__":true,"id":12516}},"17723":{"timestamp":{"__isSmartRef__":true,"id":17724},"user":"sebastianwoinar","tags":[]},"17724":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17725":{"varMapping":{"__isSmartRef__":true,"id":17726},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":17727},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17726":{"this":{"__isSmartRef__":true,"id":12516}},"17727":{"timestamp":{"__isSmartRef__":true,"id":17728},"user":"sebastianwoinar","tags":[]},"17728":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17729":{"varMapping":{"__isSmartRef__":true,"id":17730},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":17731},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17730":{"this":{"__isSmartRef__":true,"id":12516}},"17731":{"timestamp":{"__isSmartRef__":true,"id":17732},"user":"sebastianwoinar","tags":[]},"17732":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"17733":{"varMapping":{"__isSmartRef__":true,"id":17734},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":17735},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17734":{"this":{"__isSmartRef__":true,"id":12516}},"17735":{"timestamp":{"__isSmartRef__":true,"id":17736},"user":"sebastianwoinar","tags":[]},"17736":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"17737":{"varMapping":{"__isSmartRef__":true,"id":17738},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":17739},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17738":{"this":{"__isSmartRef__":true,"id":12516}},"17739":{"timestamp":{"__isSmartRef__":true,"id":17740},"user":"sebastianwoinar","tags":[]},"17740":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"17741":{"varMapping":{"__isSmartRef__":true,"id":17742},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":17743},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17742":{"this":{"__isSmartRef__":true,"id":12516}},"17743":{"timestamp":{"__isSmartRef__":true,"id":17744},"user":"sebastianwoinar","tags":[]},"17744":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"17745":{"varMapping":{"__isSmartRef__":true,"id":17746},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":17747},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17746":{"this":{"__isSmartRef__":true,"id":12516}},"17747":{"timestamp":{"__isSmartRef__":true,"id":17748},"user":"sebastianwoinar","tags":[]},"17748":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"17749":{"varMapping":{"__isSmartRef__":true,"id":17750},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":17751},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17750":{"this":{"__isSmartRef__":true,"id":12516}},"17751":{"timestamp":{"__isSmartRef__":true,"id":17752},"user":"sebastianwoinar","tags":[]},"17752":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"17753":{"varMapping":{"__isSmartRef__":true,"id":17754},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":17755},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17754":{"this":{"__isSmartRef__":true,"id":12516}},"17755":{"timestamp":{"__isSmartRef__":true,"id":17756},"user":"sebastianwoinar","tags":[]},"17756":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"17757":{"varMapping":{"__isSmartRef__":true,"id":17758},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":17759},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17758":{"this":{"__isSmartRef__":true,"id":12516}},"17759":{"timestamp":{"__isSmartRef__":true,"id":17760},"user":"sebastianwoinar","tags":[]},"17760":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"17761":{"varMapping":{"__isSmartRef__":true,"id":17762},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":17763},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17762":{"this":{"__isSmartRef__":true,"id":12516}},"17763":{"timestamp":{"__isSmartRef__":true,"id":17764},"user":"sebastianwoinar","tags":[]},"17764":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"17765":{"varMapping":{"__isSmartRef__":true,"id":17766},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":17771},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17766":{"this":{"__isSmartRef__":true,"id":12516},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17767}},"17767":{"$super":{"__isSmartRef__":true,"id":17768}},"17768":{"varMapping":{"__isSmartRef__":true,"id":17769},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17770},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17769":{"obj":{"__isSmartRef__":true,"id":12516},"name":"onMouseDown"},"17770":{},"17771":{"timestamp":{"__isSmartRef__":true,"id":17772},"user":"sebastianwoinar","tags":[]},"17772":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"17773":{"varMapping":{"__isSmartRef__":true,"id":17774},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":17775},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17774":{"this":{"__isSmartRef__":true,"id":12516}},"17775":{"timestamp":{"__isSmartRef__":true,"id":17776},"user":"sebastianwoinar","tags":[]},"17776":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"17777":{"varMapping":{"__isSmartRef__":true,"id":17778},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":17779},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17778":{"this":{"__isSmartRef__":true,"id":12516}},"17779":{"timestamp":{"__isSmartRef__":true,"id":17780},"user":"sebastianwoinar","tags":[]},"17780":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"17781":{"varMapping":{"__isSmartRef__":true,"id":17782},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":17783},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17782":{"this":{"__isSmartRef__":true,"id":12516}},"17783":{"timestamp":{"__isSmartRef__":true,"id":17784},"user":"sebastianwoinar","tags":[]},"17784":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"17785":{"varMapping":{"__isSmartRef__":true,"id":17786},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":17787},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17786":{"this":{"__isSmartRef__":true,"id":12516}},"17787":{"timestamp":{"__isSmartRef__":true,"id":17788},"user":"sebastianwoinar","tags":[]},"17788":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"17789":{"varMapping":{"__isSmartRef__":true,"id":17790},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":17791},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17790":{"this":{"__isSmartRef__":true,"id":12516}},"17791":{"timestamp":{"__isSmartRef__":true,"id":17792},"user":"sebastianwoinar","tags":[]},"17792":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"17793":{"varMapping":{"__isSmartRef__":true,"id":17794},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":17795},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17794":{"this":{"__isSmartRef__":true,"id":12516}},"17795":{"timestamp":{"__isSmartRef__":true,"id":17796},"user":"sebastianwoinar","tags":[]},"17796":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"17797":{"varMapping":{"__isSmartRef__":true,"id":17798},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":17799},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17798":{"this":{"__isSmartRef__":true,"id":12516}},"17799":{"timestamp":{"__isSmartRef__":true,"id":17800},"user":"sebastianwoinar","tags":[]},"17800":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"17801":{"varMapping":{"__isSmartRef__":true,"id":17802},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":17803},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17802":{"this":{"__isSmartRef__":true,"id":12516}},"17803":{"timestamp":{"__isSmartRef__":true,"id":17804},"user":"sebastianwoinar","tags":[]},"17804":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"17805":{"submorphs":[{"__isSmartRef__":true,"id":17806}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17823},"id":"377CC602-6C9E-43D9-981C-4C4A580D3207","eventHandler":{"__isSmartRef__":true,"id":17824},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":17825},"name":"node95","partsBinMetaInfo":{"__isSmartRef__":true,"id":17826},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5619},"owner":{"__isSmartRef__":true,"id":5408},"childNodes":[{"__isSmartRef__":true,"id":17829},{"__isSmartRef__":true,"id":18861},{"__isSmartRef__":true,"id":20022},{"__isSmartRef__":true,"id":21312},{"__isSmartRef__":true,"id":22602},{"__isSmartRef__":true,"id":23892}],"parent":{"__isSmartRef__":true,"id":5409},"level":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":25182},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(593.4,110.0)"},"17806":{"submorphs":[],"scripts":[],"id":"282D0A0E-C430-4CCB-925E-E07984A915CE","shape":{"__isSmartRef__":true,"id":17807},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":17808},"textChunks":[{"__isSmartRef__":true,"id":17820}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":17822},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":17805},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"17807":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"17808":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":17809},{"__isSmartRef__":true,"id":17811},{"__isSmartRef__":true,"id":17813},{"__isSmartRef__":true,"id":17815},{"__isSmartRef__":true,"id":17817}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":17819},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"17809":{"date":{"__isSmartRef__":true,"id":17810},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"17810":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"17811":{"date":{"__isSmartRef__":true,"id":17812},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"17812":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"17813":{"date":{"__isSmartRef__":true,"id":17814},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"17814":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"17815":{"date":{"__isSmartRef__":true,"id":17816},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"17816":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"17817":{"date":{"__isSmartRef__":true,"id":17818},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"17818":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"17819":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"17820":{"style":{"__isSmartRef__":true,"id":17821},"morph":{"__isSmartRef__":true,"id":17806},"chunkOwner":{"__isSmartRef__":true,"id":17806},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17821":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17822":{"morph":{"__isSmartRef__":true,"id":17806},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17823":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"17824":{"morph":{"__isSmartRef__":true,"id":17805},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17825":{},"17826":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":17827}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"17827":{"date":{"__isSmartRef__":true,"id":17828},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"17828":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"17829":{"submorphs":[{"__isSmartRef__":true,"id":17830}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17847},"id":"51AD51B5-CE52-4633-8816-84D63E7780E7","eventHandler":{"__isSmartRef__":true,"id":17848},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":17849},"name":"node96","partsBinMetaInfo":{"__isSmartRef__":true,"id":17850},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5621},"owner":{"__isSmartRef__":true,"id":5408},"childNodes":[{"__isSmartRef__":true,"id":17853},{"__isSmartRef__":true,"id":17982},{"__isSmartRef__":true,"id":18111},{"__isSmartRef__":true,"id":18240},{"__isSmartRef__":true,"id":18369},{"__isSmartRef__":true,"id":18498},{"__isSmartRef__":true,"id":18627}],"parent":{"__isSmartRef__":true,"id":17805},"level":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18756},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(502.7,160.0)"},"17830":{"submorphs":[],"scripts":[],"id":"FC334A65-7F31-4A40-B305-2D5221B3BD2C","shape":{"__isSmartRef__":true,"id":17831},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":17832},"textChunks":[{"__isSmartRef__":true,"id":17844}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":17846},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":17829},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"17831":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"17832":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":17833},{"__isSmartRef__":true,"id":17835},{"__isSmartRef__":true,"id":17837},{"__isSmartRef__":true,"id":17839},{"__isSmartRef__":true,"id":17841}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":17843},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"17833":{"date":{"__isSmartRef__":true,"id":17834},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"17834":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"17835":{"date":{"__isSmartRef__":true,"id":17836},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"17836":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"17837":{"date":{"__isSmartRef__":true,"id":17838},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"17838":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"17839":{"date":{"__isSmartRef__":true,"id":17840},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"17840":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"17841":{"date":{"__isSmartRef__":true,"id":17842},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"17842":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"17843":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"17844":{"style":{"__isSmartRef__":true,"id":17845},"morph":{"__isSmartRef__":true,"id":17830},"chunkOwner":{"__isSmartRef__":true,"id":17830},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17845":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17846":{"morph":{"__isSmartRef__":true,"id":17830},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17847":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"17848":{"morph":{"__isSmartRef__":true,"id":17829},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17849":{},"17850":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":17851}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"17851":{"date":{"__isSmartRef__":true,"id":17852},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"17852":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"17853":{"submorphs":[{"__isSmartRef__":true,"id":17854}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17871},"id":"0A0FC0D9-1A2B-4BBC-B9D1-3D68CA4A110F","eventHandler":{"__isSmartRef__":true,"id":17872},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":17873},"name":"node97","partsBinMetaInfo":{"__isSmartRef__":true,"id":17874},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5623},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":17829},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17877},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(440.6,210.0)"},"17854":{"submorphs":[],"scripts":[],"id":"233DBEFE-4C18-41DB-9964-4661E8E24DA0","shape":{"__isSmartRef__":true,"id":17855},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":17856},"textChunks":[{"__isSmartRef__":true,"id":17868}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":17870},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":17853},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"17855":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"17856":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":17857},{"__isSmartRef__":true,"id":17859},{"__isSmartRef__":true,"id":17861},{"__isSmartRef__":true,"id":17863},{"__isSmartRef__":true,"id":17865}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":17867},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"17857":{"date":{"__isSmartRef__":true,"id":17858},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"17858":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"17859":{"date":{"__isSmartRef__":true,"id":17860},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"17860":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"17861":{"date":{"__isSmartRef__":true,"id":17862},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"17862":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"17863":{"date":{"__isSmartRef__":true,"id":17864},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"17864":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"17865":{"date":{"__isSmartRef__":true,"id":17866},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"17866":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"17867":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"17868":{"style":{"__isSmartRef__":true,"id":17869},"morph":{"__isSmartRef__":true,"id":17854},"chunkOwner":{"__isSmartRef__":true,"id":17854},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17869":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17870":{"morph":{"__isSmartRef__":true,"id":17854},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17871":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"17872":{"morph":{"__isSmartRef__":true,"id":17853},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17873":{},"17874":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":17875}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"17875":{"date":{"__isSmartRef__":true,"id":17876},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"17876":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"17877":{"buildChildNodes":{"__isSmartRef__":true,"id":17878},"getGameTree":{"__isSmartRef__":true,"id":17882},"getLevel":{"__isSmartRef__":true,"id":17886},"getLevelWeight":{"__isSmartRef__":true,"id":17890},"getWeight":{"__isSmartRef__":true,"id":17894},"setNode":{"__isSmartRef__":true,"id":17898},"setParent":{"__isSmartRef__":true,"id":17902},"getParent":{"__isSmartRef__":true,"id":17906},"deactivate":{"__isSmartRef__":true,"id":17910},"blink":{"__isSmartRef__":true,"id":17914},"ABPreturn":{"__isSmartRef__":true,"id":17918},"ABPstart":{"__isSmartRef__":true,"id":17922},"ABPcontinue":{"__isSmartRef__":true,"id":17926},"ABPshowValue":{"__isSmartRef__":true,"id":17930},"ABPgetValue":{"__isSmartRef__":true,"id":17934},"ABPhasChildNodes":{"__isSmartRef__":true,"id":17938},"onMouseDown":{"__isSmartRef__":true,"id":17942},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":17950},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":17954},"ABPmarkAsDone":{"__isSmartRef__":true,"id":17958},"ABPmarkAsActive":{"__isSmartRef__":true,"id":17962},"getStateMorph":{"__isSmartRef__":true,"id":17966},"showState":{"__isSmartRef__":true,"id":17970},"ABPfailHard":{"__isSmartRef__":true,"id":17974},"markFinalDrawWith":{"__isSmartRef__":true,"id":17978}},"17878":{"varMapping":{"__isSmartRef__":true,"id":17879},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":17880},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17879":{"this":{"__isSmartRef__":true,"id":17853}},"17880":{"timestamp":{"__isSmartRef__":true,"id":17881},"user":"sebastianwoinar","tags":[]},"17881":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"17882":{"varMapping":{"__isSmartRef__":true,"id":17883},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":17884},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17883":{"this":{"__isSmartRef__":true,"id":17853}},"17884":{"timestamp":{"__isSmartRef__":true,"id":17885},"user":"sebastianwoinar","tags":[]},"17885":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17886":{"varMapping":{"__isSmartRef__":true,"id":17887},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":17888},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17887":{"this":{"__isSmartRef__":true,"id":17853}},"17888":{"timestamp":{"__isSmartRef__":true,"id":17889},"user":"sebastianwoinar","tags":[]},"17889":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17890":{"varMapping":{"__isSmartRef__":true,"id":17891},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":17892},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17891":{"this":{"__isSmartRef__":true,"id":17853}},"17892":{"timestamp":{"__isSmartRef__":true,"id":17893},"user":"sebastianwoinar","tags":[]},"17893":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17894":{"varMapping":{"__isSmartRef__":true,"id":17895},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":17896},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17895":{"this":{"__isSmartRef__":true,"id":17853}},"17896":{"timestamp":{"__isSmartRef__":true,"id":17897},"user":"sebastianwoinar","tags":[]},"17897":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17898":{"varMapping":{"__isSmartRef__":true,"id":17899},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":17900},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17899":{"this":{"__isSmartRef__":true,"id":17853}},"17900":{"timestamp":{"__isSmartRef__":true,"id":17901},"user":"sebastianwoinar","tags":[]},"17901":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17902":{"varMapping":{"__isSmartRef__":true,"id":17903},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":17904},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17903":{"this":{"__isSmartRef__":true,"id":17853}},"17904":{"timestamp":{"__isSmartRef__":true,"id":17905},"user":"sebastianwoinar","tags":[]},"17905":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"17906":{"varMapping":{"__isSmartRef__":true,"id":17907},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":17908},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17907":{"this":{"__isSmartRef__":true,"id":17853}},"17908":{"timestamp":{"__isSmartRef__":true,"id":17909},"user":"sebastianwoinar","tags":[]},"17909":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"17910":{"varMapping":{"__isSmartRef__":true,"id":17911},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":17912},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17911":{"this":{"__isSmartRef__":true,"id":17853}},"17912":{"timestamp":{"__isSmartRef__":true,"id":17913},"user":"sebastianwoinar","tags":[]},"17913":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"17914":{"varMapping":{"__isSmartRef__":true,"id":17915},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":17916},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17915":{"this":{"__isSmartRef__":true,"id":17853}},"17916":{"timestamp":{"__isSmartRef__":true,"id":17917},"user":"sebastianwoinar","tags":[]},"17917":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"17918":{"varMapping":{"__isSmartRef__":true,"id":17919},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":17920},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17919":{"this":{"__isSmartRef__":true,"id":17853}},"17920":{"timestamp":{"__isSmartRef__":true,"id":17921},"user":"sebastianwoinar","tags":[]},"17921":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"17922":{"varMapping":{"__isSmartRef__":true,"id":17923},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":17924},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17923":{"this":{"__isSmartRef__":true,"id":17853}},"17924":{"timestamp":{"__isSmartRef__":true,"id":17925},"user":"sebastianwoinar","tags":[]},"17925":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"17926":{"varMapping":{"__isSmartRef__":true,"id":17927},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":17928},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17927":{"this":{"__isSmartRef__":true,"id":17853}},"17928":{"timestamp":{"__isSmartRef__":true,"id":17929},"user":"sebastianwoinar","tags":[]},"17929":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"17930":{"varMapping":{"__isSmartRef__":true,"id":17931},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":17932},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17931":{"this":{"__isSmartRef__":true,"id":17853}},"17932":{"timestamp":{"__isSmartRef__":true,"id":17933},"user":"sebastianwoinar","tags":[]},"17933":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"17934":{"varMapping":{"__isSmartRef__":true,"id":17935},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":17936},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17935":{"this":{"__isSmartRef__":true,"id":17853}},"17936":{"timestamp":{"__isSmartRef__":true,"id":17937},"user":"sebastianwoinar","tags":[]},"17937":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"17938":{"varMapping":{"__isSmartRef__":true,"id":17939},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":17940},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17939":{"this":{"__isSmartRef__":true,"id":17853}},"17940":{"timestamp":{"__isSmartRef__":true,"id":17941},"user":"sebastianwoinar","tags":[]},"17941":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"17942":{"varMapping":{"__isSmartRef__":true,"id":17943},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":17948},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17943":{"this":{"__isSmartRef__":true,"id":17853},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17944}},"17944":{"$super":{"__isSmartRef__":true,"id":17945}},"17945":{"varMapping":{"__isSmartRef__":true,"id":17946},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17947},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17946":{"obj":{"__isSmartRef__":true,"id":17853},"name":"onMouseDown"},"17947":{},"17948":{"timestamp":{"__isSmartRef__":true,"id":17949},"user":"sebastianwoinar","tags":[]},"17949":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"17950":{"varMapping":{"__isSmartRef__":true,"id":17951},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":17952},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17951":{"this":{"__isSmartRef__":true,"id":17853}},"17952":{"timestamp":{"__isSmartRef__":true,"id":17953},"user":"sebastianwoinar","tags":[]},"17953":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"17954":{"varMapping":{"__isSmartRef__":true,"id":17955},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":17956},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17955":{"this":{"__isSmartRef__":true,"id":17853}},"17956":{"timestamp":{"__isSmartRef__":true,"id":17957},"user":"sebastianwoinar","tags":[]},"17957":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"17958":{"varMapping":{"__isSmartRef__":true,"id":17959},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":17960},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17959":{"this":{"__isSmartRef__":true,"id":17853}},"17960":{"timestamp":{"__isSmartRef__":true,"id":17961},"user":"sebastianwoinar","tags":[]},"17961":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"17962":{"varMapping":{"__isSmartRef__":true,"id":17963},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":17964},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17963":{"this":{"__isSmartRef__":true,"id":17853}},"17964":{"timestamp":{"__isSmartRef__":true,"id":17965},"user":"sebastianwoinar","tags":[]},"17965":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"17966":{"varMapping":{"__isSmartRef__":true,"id":17967},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":17968},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17967":{"this":{"__isSmartRef__":true,"id":17853}},"17968":{"timestamp":{"__isSmartRef__":true,"id":17969},"user":"sebastianwoinar","tags":[]},"17969":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"17970":{"varMapping":{"__isSmartRef__":true,"id":17971},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":17972},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17971":{"this":{"__isSmartRef__":true,"id":17853}},"17972":{"timestamp":{"__isSmartRef__":true,"id":17973},"user":"sebastianwoinar","tags":[]},"17973":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"17974":{"varMapping":{"__isSmartRef__":true,"id":17975},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":17976},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17975":{"this":{"__isSmartRef__":true,"id":17853}},"17976":{"timestamp":{"__isSmartRef__":true,"id":17977},"user":"sebastianwoinar","tags":[]},"17977":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"17978":{"varMapping":{"__isSmartRef__":true,"id":17979},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":17980},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17979":{"this":{"__isSmartRef__":true,"id":17853}},"17980":{"timestamp":{"__isSmartRef__":true,"id":17981},"user":"sebastianwoinar","tags":[]},"17981":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"17982":{"submorphs":[{"__isSmartRef__":true,"id":17983}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18000},"id":"E513758B-8CF0-48B6-A27D-7810FD9E2B23","eventHandler":{"__isSmartRef__":true,"id":18001},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":18002},"name":"node98","partsBinMetaInfo":{"__isSmartRef__":true,"id":18003},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5625},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":17829},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18006},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(445.8,210.0)"},"17983":{"submorphs":[],"scripts":[],"id":"A4778CCE-D172-4607-913B-545A25A6D851","shape":{"__isSmartRef__":true,"id":17984},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":17985},"textChunks":[{"__isSmartRef__":true,"id":17997}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":17999},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":17982},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"17984":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"17985":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":17986},{"__isSmartRef__":true,"id":17988},{"__isSmartRef__":true,"id":17990},{"__isSmartRef__":true,"id":17992},{"__isSmartRef__":true,"id":17994}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":17996},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"17986":{"date":{"__isSmartRef__":true,"id":17987},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"17987":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"17988":{"date":{"__isSmartRef__":true,"id":17989},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"17989":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"17990":{"date":{"__isSmartRef__":true,"id":17991},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"17991":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"17992":{"date":{"__isSmartRef__":true,"id":17993},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"17993":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"17994":{"date":{"__isSmartRef__":true,"id":17995},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"17995":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"17996":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"17997":{"style":{"__isSmartRef__":true,"id":17998},"morph":{"__isSmartRef__":true,"id":17983},"chunkOwner":{"__isSmartRef__":true,"id":17983},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17998":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17999":{"morph":{"__isSmartRef__":true,"id":17983},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18000":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"18001":{"morph":{"__isSmartRef__":true,"id":17982},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18002":{},"18003":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":18004}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"18004":{"date":{"__isSmartRef__":true,"id":18005},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"18005":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"18006":{"buildChildNodes":{"__isSmartRef__":true,"id":18007},"getGameTree":{"__isSmartRef__":true,"id":18011},"getLevel":{"__isSmartRef__":true,"id":18015},"getLevelWeight":{"__isSmartRef__":true,"id":18019},"getWeight":{"__isSmartRef__":true,"id":18023},"setNode":{"__isSmartRef__":true,"id":18027},"setParent":{"__isSmartRef__":true,"id":18031},"getParent":{"__isSmartRef__":true,"id":18035},"deactivate":{"__isSmartRef__":true,"id":18039},"blink":{"__isSmartRef__":true,"id":18043},"ABPreturn":{"__isSmartRef__":true,"id":18047},"ABPstart":{"__isSmartRef__":true,"id":18051},"ABPcontinue":{"__isSmartRef__":true,"id":18055},"ABPshowValue":{"__isSmartRef__":true,"id":18059},"ABPgetValue":{"__isSmartRef__":true,"id":18063},"ABPhasChildNodes":{"__isSmartRef__":true,"id":18067},"onMouseDown":{"__isSmartRef__":true,"id":18071},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":18079},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":18083},"ABPmarkAsDone":{"__isSmartRef__":true,"id":18087},"ABPmarkAsActive":{"__isSmartRef__":true,"id":18091},"getStateMorph":{"__isSmartRef__":true,"id":18095},"showState":{"__isSmartRef__":true,"id":18099},"ABPfailHard":{"__isSmartRef__":true,"id":18103},"markFinalDrawWith":{"__isSmartRef__":true,"id":18107}},"18007":{"varMapping":{"__isSmartRef__":true,"id":18008},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":18009},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18008":{"this":{"__isSmartRef__":true,"id":17982}},"18009":{"timestamp":{"__isSmartRef__":true,"id":18010},"user":"sebastianwoinar","tags":[]},"18010":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"18011":{"varMapping":{"__isSmartRef__":true,"id":18012},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":18013},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18012":{"this":{"__isSmartRef__":true,"id":17982}},"18013":{"timestamp":{"__isSmartRef__":true,"id":18014},"user":"sebastianwoinar","tags":[]},"18014":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18015":{"varMapping":{"__isSmartRef__":true,"id":18016},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":18017},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18016":{"this":{"__isSmartRef__":true,"id":17982}},"18017":{"timestamp":{"__isSmartRef__":true,"id":18018},"user":"sebastianwoinar","tags":[]},"18018":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18019":{"varMapping":{"__isSmartRef__":true,"id":18020},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18021},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18020":{"this":{"__isSmartRef__":true,"id":17982}},"18021":{"timestamp":{"__isSmartRef__":true,"id":18022},"user":"sebastianwoinar","tags":[]},"18022":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18023":{"varMapping":{"__isSmartRef__":true,"id":18024},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":18025},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18024":{"this":{"__isSmartRef__":true,"id":17982}},"18025":{"timestamp":{"__isSmartRef__":true,"id":18026},"user":"sebastianwoinar","tags":[]},"18026":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18027":{"varMapping":{"__isSmartRef__":true,"id":18028},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":18029},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18028":{"this":{"__isSmartRef__":true,"id":17982}},"18029":{"timestamp":{"__isSmartRef__":true,"id":18030},"user":"sebastianwoinar","tags":[]},"18030":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18031":{"varMapping":{"__isSmartRef__":true,"id":18032},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":18033},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18032":{"this":{"__isSmartRef__":true,"id":17982}},"18033":{"timestamp":{"__isSmartRef__":true,"id":18034},"user":"sebastianwoinar","tags":[]},"18034":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18035":{"varMapping":{"__isSmartRef__":true,"id":18036},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":18037},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18036":{"this":{"__isSmartRef__":true,"id":17982}},"18037":{"timestamp":{"__isSmartRef__":true,"id":18038},"user":"sebastianwoinar","tags":[]},"18038":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"18039":{"varMapping":{"__isSmartRef__":true,"id":18040},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":18041},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18040":{"this":{"__isSmartRef__":true,"id":17982}},"18041":{"timestamp":{"__isSmartRef__":true,"id":18042},"user":"sebastianwoinar","tags":[]},"18042":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"18043":{"varMapping":{"__isSmartRef__":true,"id":18044},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":18045},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18044":{"this":{"__isSmartRef__":true,"id":17982}},"18045":{"timestamp":{"__isSmartRef__":true,"id":18046},"user":"sebastianwoinar","tags":[]},"18046":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"18047":{"varMapping":{"__isSmartRef__":true,"id":18048},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":18049},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18048":{"this":{"__isSmartRef__":true,"id":17982}},"18049":{"timestamp":{"__isSmartRef__":true,"id":18050},"user":"sebastianwoinar","tags":[]},"18050":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"18051":{"varMapping":{"__isSmartRef__":true,"id":18052},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":18053},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18052":{"this":{"__isSmartRef__":true,"id":17982}},"18053":{"timestamp":{"__isSmartRef__":true,"id":18054},"user":"sebastianwoinar","tags":[]},"18054":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"18055":{"varMapping":{"__isSmartRef__":true,"id":18056},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":18057},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18056":{"this":{"__isSmartRef__":true,"id":17982}},"18057":{"timestamp":{"__isSmartRef__":true,"id":18058},"user":"sebastianwoinar","tags":[]},"18058":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"18059":{"varMapping":{"__isSmartRef__":true,"id":18060},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":18061},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18060":{"this":{"__isSmartRef__":true,"id":17982}},"18061":{"timestamp":{"__isSmartRef__":true,"id":18062},"user":"sebastianwoinar","tags":[]},"18062":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"18063":{"varMapping":{"__isSmartRef__":true,"id":18064},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":18065},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18064":{"this":{"__isSmartRef__":true,"id":17982}},"18065":{"timestamp":{"__isSmartRef__":true,"id":18066},"user":"sebastianwoinar","tags":[]},"18066":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"18067":{"varMapping":{"__isSmartRef__":true,"id":18068},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":18069},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18068":{"this":{"__isSmartRef__":true,"id":17982}},"18069":{"timestamp":{"__isSmartRef__":true,"id":18070},"user":"sebastianwoinar","tags":[]},"18070":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"18071":{"varMapping":{"__isSmartRef__":true,"id":18072},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":18077},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18072":{"this":{"__isSmartRef__":true,"id":17982},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18073}},"18073":{"$super":{"__isSmartRef__":true,"id":18074}},"18074":{"varMapping":{"__isSmartRef__":true,"id":18075},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18076},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18075":{"obj":{"__isSmartRef__":true,"id":17982},"name":"onMouseDown"},"18076":{},"18077":{"timestamp":{"__isSmartRef__":true,"id":18078},"user":"sebastianwoinar","tags":[]},"18078":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"18079":{"varMapping":{"__isSmartRef__":true,"id":18080},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":18081},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18080":{"this":{"__isSmartRef__":true,"id":17982}},"18081":{"timestamp":{"__isSmartRef__":true,"id":18082},"user":"sebastianwoinar","tags":[]},"18082":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"18083":{"varMapping":{"__isSmartRef__":true,"id":18084},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":18085},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18084":{"this":{"__isSmartRef__":true,"id":17982}},"18085":{"timestamp":{"__isSmartRef__":true,"id":18086},"user":"sebastianwoinar","tags":[]},"18086":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"18087":{"varMapping":{"__isSmartRef__":true,"id":18088},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":18089},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18088":{"this":{"__isSmartRef__":true,"id":17982}},"18089":{"timestamp":{"__isSmartRef__":true,"id":18090},"user":"sebastianwoinar","tags":[]},"18090":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"18091":{"varMapping":{"__isSmartRef__":true,"id":18092},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":18093},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18092":{"this":{"__isSmartRef__":true,"id":17982}},"18093":{"timestamp":{"__isSmartRef__":true,"id":18094},"user":"sebastianwoinar","tags":[]},"18094":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"18095":{"varMapping":{"__isSmartRef__":true,"id":18096},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":18097},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18096":{"this":{"__isSmartRef__":true,"id":17982}},"18097":{"timestamp":{"__isSmartRef__":true,"id":18098},"user":"sebastianwoinar","tags":[]},"18098":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"18099":{"varMapping":{"__isSmartRef__":true,"id":18100},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18101},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18100":{"this":{"__isSmartRef__":true,"id":17982}},"18101":{"timestamp":{"__isSmartRef__":true,"id":18102},"user":"sebastianwoinar","tags":[]},"18102":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"18103":{"varMapping":{"__isSmartRef__":true,"id":18104},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":18105},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18104":{"this":{"__isSmartRef__":true,"id":17982}},"18105":{"timestamp":{"__isSmartRef__":true,"id":18106},"user":"sebastianwoinar","tags":[]},"18106":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"18107":{"varMapping":{"__isSmartRef__":true,"id":18108},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18109},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18108":{"this":{"__isSmartRef__":true,"id":17982}},"18109":{"timestamp":{"__isSmartRef__":true,"id":18110},"user":"sebastianwoinar","tags":[]},"18110":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"18111":{"submorphs":[{"__isSmartRef__":true,"id":18112}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18129},"id":"036BAC82-DB06-4613-BA63-CE749D4F78C0","eventHandler":{"__isSmartRef__":true,"id":18130},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":18131},"name":"node99","partsBinMetaInfo":{"__isSmartRef__":true,"id":18132},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5627},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":17829},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18135},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(450.9,210.0)"},"18112":{"submorphs":[],"scripts":[],"id":"F253D3CD-D5D5-426F-8F42-631A8F208CE5","shape":{"__isSmartRef__":true,"id":18113},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":18114},"textChunks":[{"__isSmartRef__":true,"id":18126}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":18128},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":18111},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"18113":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"18114":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":18115},{"__isSmartRef__":true,"id":18117},{"__isSmartRef__":true,"id":18119},{"__isSmartRef__":true,"id":18121},{"__isSmartRef__":true,"id":18123}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":18125},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"18115":{"date":{"__isSmartRef__":true,"id":18116},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"18116":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"18117":{"date":{"__isSmartRef__":true,"id":18118},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"18118":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"18119":{"date":{"__isSmartRef__":true,"id":18120},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"18120":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"18121":{"date":{"__isSmartRef__":true,"id":18122},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"18122":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"18123":{"date":{"__isSmartRef__":true,"id":18124},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"18124":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"18125":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"18126":{"style":{"__isSmartRef__":true,"id":18127},"morph":{"__isSmartRef__":true,"id":18112},"chunkOwner":{"__isSmartRef__":true,"id":18112},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18127":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18128":{"morph":{"__isSmartRef__":true,"id":18112},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18129":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"18130":{"morph":{"__isSmartRef__":true,"id":18111},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18131":{},"18132":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":18133}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"18133":{"date":{"__isSmartRef__":true,"id":18134},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"18134":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"18135":{"buildChildNodes":{"__isSmartRef__":true,"id":18136},"getGameTree":{"__isSmartRef__":true,"id":18140},"getLevel":{"__isSmartRef__":true,"id":18144},"getLevelWeight":{"__isSmartRef__":true,"id":18148},"getWeight":{"__isSmartRef__":true,"id":18152},"setNode":{"__isSmartRef__":true,"id":18156},"setParent":{"__isSmartRef__":true,"id":18160},"getParent":{"__isSmartRef__":true,"id":18164},"deactivate":{"__isSmartRef__":true,"id":18168},"blink":{"__isSmartRef__":true,"id":18172},"ABPreturn":{"__isSmartRef__":true,"id":18176},"ABPstart":{"__isSmartRef__":true,"id":18180},"ABPcontinue":{"__isSmartRef__":true,"id":18184},"ABPshowValue":{"__isSmartRef__":true,"id":18188},"ABPgetValue":{"__isSmartRef__":true,"id":18192},"ABPhasChildNodes":{"__isSmartRef__":true,"id":18196},"onMouseDown":{"__isSmartRef__":true,"id":18200},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":18208},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":18212},"ABPmarkAsDone":{"__isSmartRef__":true,"id":18216},"ABPmarkAsActive":{"__isSmartRef__":true,"id":18220},"getStateMorph":{"__isSmartRef__":true,"id":18224},"showState":{"__isSmartRef__":true,"id":18228},"ABPfailHard":{"__isSmartRef__":true,"id":18232},"markFinalDrawWith":{"__isSmartRef__":true,"id":18236}},"18136":{"varMapping":{"__isSmartRef__":true,"id":18137},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":18138},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18137":{"this":{"__isSmartRef__":true,"id":18111}},"18138":{"timestamp":{"__isSmartRef__":true,"id":18139},"user":"sebastianwoinar","tags":[]},"18139":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"18140":{"varMapping":{"__isSmartRef__":true,"id":18141},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":18142},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18141":{"this":{"__isSmartRef__":true,"id":18111}},"18142":{"timestamp":{"__isSmartRef__":true,"id":18143},"user":"sebastianwoinar","tags":[]},"18143":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18144":{"varMapping":{"__isSmartRef__":true,"id":18145},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":18146},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18145":{"this":{"__isSmartRef__":true,"id":18111}},"18146":{"timestamp":{"__isSmartRef__":true,"id":18147},"user":"sebastianwoinar","tags":[]},"18147":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18148":{"varMapping":{"__isSmartRef__":true,"id":18149},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18150},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18149":{"this":{"__isSmartRef__":true,"id":18111}},"18150":{"timestamp":{"__isSmartRef__":true,"id":18151},"user":"sebastianwoinar","tags":[]},"18151":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18152":{"varMapping":{"__isSmartRef__":true,"id":18153},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":18154},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18153":{"this":{"__isSmartRef__":true,"id":18111}},"18154":{"timestamp":{"__isSmartRef__":true,"id":18155},"user":"sebastianwoinar","tags":[]},"18155":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18156":{"varMapping":{"__isSmartRef__":true,"id":18157},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":18158},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18157":{"this":{"__isSmartRef__":true,"id":18111}},"18158":{"timestamp":{"__isSmartRef__":true,"id":18159},"user":"sebastianwoinar","tags":[]},"18159":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18160":{"varMapping":{"__isSmartRef__":true,"id":18161},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":18162},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18161":{"this":{"__isSmartRef__":true,"id":18111}},"18162":{"timestamp":{"__isSmartRef__":true,"id":18163},"user":"sebastianwoinar","tags":[]},"18163":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18164":{"varMapping":{"__isSmartRef__":true,"id":18165},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":18166},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18165":{"this":{"__isSmartRef__":true,"id":18111}},"18166":{"timestamp":{"__isSmartRef__":true,"id":18167},"user":"sebastianwoinar","tags":[]},"18167":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"18168":{"varMapping":{"__isSmartRef__":true,"id":18169},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":18170},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18169":{"this":{"__isSmartRef__":true,"id":18111}},"18170":{"timestamp":{"__isSmartRef__":true,"id":18171},"user":"sebastianwoinar","tags":[]},"18171":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"18172":{"varMapping":{"__isSmartRef__":true,"id":18173},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":18174},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18173":{"this":{"__isSmartRef__":true,"id":18111}},"18174":{"timestamp":{"__isSmartRef__":true,"id":18175},"user":"sebastianwoinar","tags":[]},"18175":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"18176":{"varMapping":{"__isSmartRef__":true,"id":18177},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":18178},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18177":{"this":{"__isSmartRef__":true,"id":18111}},"18178":{"timestamp":{"__isSmartRef__":true,"id":18179},"user":"sebastianwoinar","tags":[]},"18179":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"18180":{"varMapping":{"__isSmartRef__":true,"id":18181},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":18182},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18181":{"this":{"__isSmartRef__":true,"id":18111}},"18182":{"timestamp":{"__isSmartRef__":true,"id":18183},"user":"sebastianwoinar","tags":[]},"18183":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"18184":{"varMapping":{"__isSmartRef__":true,"id":18185},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":18186},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18185":{"this":{"__isSmartRef__":true,"id":18111}},"18186":{"timestamp":{"__isSmartRef__":true,"id":18187},"user":"sebastianwoinar","tags":[]},"18187":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"18188":{"varMapping":{"__isSmartRef__":true,"id":18189},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":18190},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18189":{"this":{"__isSmartRef__":true,"id":18111}},"18190":{"timestamp":{"__isSmartRef__":true,"id":18191},"user":"sebastianwoinar","tags":[]},"18191":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"18192":{"varMapping":{"__isSmartRef__":true,"id":18193},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":18194},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18193":{"this":{"__isSmartRef__":true,"id":18111}},"18194":{"timestamp":{"__isSmartRef__":true,"id":18195},"user":"sebastianwoinar","tags":[]},"18195":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"18196":{"varMapping":{"__isSmartRef__":true,"id":18197},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":18198},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18197":{"this":{"__isSmartRef__":true,"id":18111}},"18198":{"timestamp":{"__isSmartRef__":true,"id":18199},"user":"sebastianwoinar","tags":[]},"18199":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"18200":{"varMapping":{"__isSmartRef__":true,"id":18201},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":18206},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18201":{"this":{"__isSmartRef__":true,"id":18111},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18202}},"18202":{"$super":{"__isSmartRef__":true,"id":18203}},"18203":{"varMapping":{"__isSmartRef__":true,"id":18204},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18205},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18204":{"obj":{"__isSmartRef__":true,"id":18111},"name":"onMouseDown"},"18205":{},"18206":{"timestamp":{"__isSmartRef__":true,"id":18207},"user":"sebastianwoinar","tags":[]},"18207":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"18208":{"varMapping":{"__isSmartRef__":true,"id":18209},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":18210},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18209":{"this":{"__isSmartRef__":true,"id":18111}},"18210":{"timestamp":{"__isSmartRef__":true,"id":18211},"user":"sebastianwoinar","tags":[]},"18211":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"18212":{"varMapping":{"__isSmartRef__":true,"id":18213},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":18214},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18213":{"this":{"__isSmartRef__":true,"id":18111}},"18214":{"timestamp":{"__isSmartRef__":true,"id":18215},"user":"sebastianwoinar","tags":[]},"18215":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"18216":{"varMapping":{"__isSmartRef__":true,"id":18217},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":18218},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18217":{"this":{"__isSmartRef__":true,"id":18111}},"18218":{"timestamp":{"__isSmartRef__":true,"id":18219},"user":"sebastianwoinar","tags":[]},"18219":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"18220":{"varMapping":{"__isSmartRef__":true,"id":18221},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":18222},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18221":{"this":{"__isSmartRef__":true,"id":18111}},"18222":{"timestamp":{"__isSmartRef__":true,"id":18223},"user":"sebastianwoinar","tags":[]},"18223":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"18224":{"varMapping":{"__isSmartRef__":true,"id":18225},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":18226},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18225":{"this":{"__isSmartRef__":true,"id":18111}},"18226":{"timestamp":{"__isSmartRef__":true,"id":18227},"user":"sebastianwoinar","tags":[]},"18227":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"18228":{"varMapping":{"__isSmartRef__":true,"id":18229},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18230},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18229":{"this":{"__isSmartRef__":true,"id":18111}},"18230":{"timestamp":{"__isSmartRef__":true,"id":18231},"user":"sebastianwoinar","tags":[]},"18231":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"18232":{"varMapping":{"__isSmartRef__":true,"id":18233},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":18234},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18233":{"this":{"__isSmartRef__":true,"id":18111}},"18234":{"timestamp":{"__isSmartRef__":true,"id":18235},"user":"sebastianwoinar","tags":[]},"18235":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"18236":{"varMapping":{"__isSmartRef__":true,"id":18237},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18238},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18237":{"this":{"__isSmartRef__":true,"id":18111}},"18238":{"timestamp":{"__isSmartRef__":true,"id":18239},"user":"sebastianwoinar","tags":[]},"18239":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"18240":{"submorphs":[{"__isSmartRef__":true,"id":18241}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18258},"id":"350AE29F-7049-4C6A-B2E2-F2C802F5A6E3","eventHandler":{"__isSmartRef__":true,"id":18259},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":18260},"name":"node100","partsBinMetaInfo":{"__isSmartRef__":true,"id":18261},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5629},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":17829},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18264},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(456.1,210.0)"},"18241":{"submorphs":[],"scripts":[],"id":"86D2397B-E5E8-4543-B47B-3AF362FED5E4","shape":{"__isSmartRef__":true,"id":18242},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":18243},"textChunks":[{"__isSmartRef__":true,"id":18255}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":18257},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":18240},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"18242":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"18243":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":18244},{"__isSmartRef__":true,"id":18246},{"__isSmartRef__":true,"id":18248},{"__isSmartRef__":true,"id":18250},{"__isSmartRef__":true,"id":18252}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":18254},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"18244":{"date":{"__isSmartRef__":true,"id":18245},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"18245":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"18246":{"date":{"__isSmartRef__":true,"id":18247},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"18247":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"18248":{"date":{"__isSmartRef__":true,"id":18249},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"18249":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"18250":{"date":{"__isSmartRef__":true,"id":18251},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"18251":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"18252":{"date":{"__isSmartRef__":true,"id":18253},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"18253":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"18254":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"18255":{"style":{"__isSmartRef__":true,"id":18256},"morph":{"__isSmartRef__":true,"id":18241},"chunkOwner":{"__isSmartRef__":true,"id":18241},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18256":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18257":{"morph":{"__isSmartRef__":true,"id":18241},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18258":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"18259":{"morph":{"__isSmartRef__":true,"id":18240},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18260":{},"18261":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":18262}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"18262":{"date":{"__isSmartRef__":true,"id":18263},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"18263":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"18264":{"buildChildNodes":{"__isSmartRef__":true,"id":18265},"getGameTree":{"__isSmartRef__":true,"id":18269},"getLevel":{"__isSmartRef__":true,"id":18273},"getLevelWeight":{"__isSmartRef__":true,"id":18277},"getWeight":{"__isSmartRef__":true,"id":18281},"setNode":{"__isSmartRef__":true,"id":18285},"setParent":{"__isSmartRef__":true,"id":18289},"getParent":{"__isSmartRef__":true,"id":18293},"deactivate":{"__isSmartRef__":true,"id":18297},"blink":{"__isSmartRef__":true,"id":18301},"ABPreturn":{"__isSmartRef__":true,"id":18305},"ABPstart":{"__isSmartRef__":true,"id":18309},"ABPcontinue":{"__isSmartRef__":true,"id":18313},"ABPshowValue":{"__isSmartRef__":true,"id":18317},"ABPgetValue":{"__isSmartRef__":true,"id":18321},"ABPhasChildNodes":{"__isSmartRef__":true,"id":18325},"onMouseDown":{"__isSmartRef__":true,"id":18329},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":18337},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":18341},"ABPmarkAsDone":{"__isSmartRef__":true,"id":18345},"ABPmarkAsActive":{"__isSmartRef__":true,"id":18349},"getStateMorph":{"__isSmartRef__":true,"id":18353},"showState":{"__isSmartRef__":true,"id":18357},"ABPfailHard":{"__isSmartRef__":true,"id":18361},"markFinalDrawWith":{"__isSmartRef__":true,"id":18365}},"18265":{"varMapping":{"__isSmartRef__":true,"id":18266},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":18267},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18266":{"this":{"__isSmartRef__":true,"id":18240}},"18267":{"timestamp":{"__isSmartRef__":true,"id":18268},"user":"sebastianwoinar","tags":[]},"18268":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"18269":{"varMapping":{"__isSmartRef__":true,"id":18270},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":18271},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18270":{"this":{"__isSmartRef__":true,"id":18240}},"18271":{"timestamp":{"__isSmartRef__":true,"id":18272},"user":"sebastianwoinar","tags":[]},"18272":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18273":{"varMapping":{"__isSmartRef__":true,"id":18274},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":18275},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18274":{"this":{"__isSmartRef__":true,"id":18240}},"18275":{"timestamp":{"__isSmartRef__":true,"id":18276},"user":"sebastianwoinar","tags":[]},"18276":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18277":{"varMapping":{"__isSmartRef__":true,"id":18278},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18279},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18278":{"this":{"__isSmartRef__":true,"id":18240}},"18279":{"timestamp":{"__isSmartRef__":true,"id":18280},"user":"sebastianwoinar","tags":[]},"18280":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18281":{"varMapping":{"__isSmartRef__":true,"id":18282},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":18283},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18282":{"this":{"__isSmartRef__":true,"id":18240}},"18283":{"timestamp":{"__isSmartRef__":true,"id":18284},"user":"sebastianwoinar","tags":[]},"18284":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18285":{"varMapping":{"__isSmartRef__":true,"id":18286},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":18287},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18286":{"this":{"__isSmartRef__":true,"id":18240}},"18287":{"timestamp":{"__isSmartRef__":true,"id":18288},"user":"sebastianwoinar","tags":[]},"18288":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18289":{"varMapping":{"__isSmartRef__":true,"id":18290},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":18291},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18290":{"this":{"__isSmartRef__":true,"id":18240}},"18291":{"timestamp":{"__isSmartRef__":true,"id":18292},"user":"sebastianwoinar","tags":[]},"18292":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18293":{"varMapping":{"__isSmartRef__":true,"id":18294},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":18295},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18294":{"this":{"__isSmartRef__":true,"id":18240}},"18295":{"timestamp":{"__isSmartRef__":true,"id":18296},"user":"sebastianwoinar","tags":[]},"18296":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"18297":{"varMapping":{"__isSmartRef__":true,"id":18298},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":18299},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18298":{"this":{"__isSmartRef__":true,"id":18240}},"18299":{"timestamp":{"__isSmartRef__":true,"id":18300},"user":"sebastianwoinar","tags":[]},"18300":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"18301":{"varMapping":{"__isSmartRef__":true,"id":18302},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":18303},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18302":{"this":{"__isSmartRef__":true,"id":18240}},"18303":{"timestamp":{"__isSmartRef__":true,"id":18304},"user":"sebastianwoinar","tags":[]},"18304":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"18305":{"varMapping":{"__isSmartRef__":true,"id":18306},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":18307},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18306":{"this":{"__isSmartRef__":true,"id":18240}},"18307":{"timestamp":{"__isSmartRef__":true,"id":18308},"user":"sebastianwoinar","tags":[]},"18308":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"18309":{"varMapping":{"__isSmartRef__":true,"id":18310},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":18311},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18310":{"this":{"__isSmartRef__":true,"id":18240}},"18311":{"timestamp":{"__isSmartRef__":true,"id":18312},"user":"sebastianwoinar","tags":[]},"18312":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"18313":{"varMapping":{"__isSmartRef__":true,"id":18314},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":18315},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18314":{"this":{"__isSmartRef__":true,"id":18240}},"18315":{"timestamp":{"__isSmartRef__":true,"id":18316},"user":"sebastianwoinar","tags":[]},"18316":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"18317":{"varMapping":{"__isSmartRef__":true,"id":18318},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":18319},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18318":{"this":{"__isSmartRef__":true,"id":18240}},"18319":{"timestamp":{"__isSmartRef__":true,"id":18320},"user":"sebastianwoinar","tags":[]},"18320":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"18321":{"varMapping":{"__isSmartRef__":true,"id":18322},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":18323},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18322":{"this":{"__isSmartRef__":true,"id":18240}},"18323":{"timestamp":{"__isSmartRef__":true,"id":18324},"user":"sebastianwoinar","tags":[]},"18324":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"18325":{"varMapping":{"__isSmartRef__":true,"id":18326},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":18327},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18326":{"this":{"__isSmartRef__":true,"id":18240}},"18327":{"timestamp":{"__isSmartRef__":true,"id":18328},"user":"sebastianwoinar","tags":[]},"18328":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"18329":{"varMapping":{"__isSmartRef__":true,"id":18330},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":18335},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18330":{"this":{"__isSmartRef__":true,"id":18240},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18331}},"18331":{"$super":{"__isSmartRef__":true,"id":18332}},"18332":{"varMapping":{"__isSmartRef__":true,"id":18333},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18334},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18333":{"obj":{"__isSmartRef__":true,"id":18240},"name":"onMouseDown"},"18334":{},"18335":{"timestamp":{"__isSmartRef__":true,"id":18336},"user":"sebastianwoinar","tags":[]},"18336":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"18337":{"varMapping":{"__isSmartRef__":true,"id":18338},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":18339},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18338":{"this":{"__isSmartRef__":true,"id":18240}},"18339":{"timestamp":{"__isSmartRef__":true,"id":18340},"user":"sebastianwoinar","tags":[]},"18340":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"18341":{"varMapping":{"__isSmartRef__":true,"id":18342},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":18343},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18342":{"this":{"__isSmartRef__":true,"id":18240}},"18343":{"timestamp":{"__isSmartRef__":true,"id":18344},"user":"sebastianwoinar","tags":[]},"18344":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"18345":{"varMapping":{"__isSmartRef__":true,"id":18346},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":18347},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18346":{"this":{"__isSmartRef__":true,"id":18240}},"18347":{"timestamp":{"__isSmartRef__":true,"id":18348},"user":"sebastianwoinar","tags":[]},"18348":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"18349":{"varMapping":{"__isSmartRef__":true,"id":18350},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":18351},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18350":{"this":{"__isSmartRef__":true,"id":18240}},"18351":{"timestamp":{"__isSmartRef__":true,"id":18352},"user":"sebastianwoinar","tags":[]},"18352":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"18353":{"varMapping":{"__isSmartRef__":true,"id":18354},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":18355},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18354":{"this":{"__isSmartRef__":true,"id":18240}},"18355":{"timestamp":{"__isSmartRef__":true,"id":18356},"user":"sebastianwoinar","tags":[]},"18356":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"18357":{"varMapping":{"__isSmartRef__":true,"id":18358},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18359},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18358":{"this":{"__isSmartRef__":true,"id":18240}},"18359":{"timestamp":{"__isSmartRef__":true,"id":18360},"user":"sebastianwoinar","tags":[]},"18360":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"18361":{"varMapping":{"__isSmartRef__":true,"id":18362},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":18363},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18362":{"this":{"__isSmartRef__":true,"id":18240}},"18363":{"timestamp":{"__isSmartRef__":true,"id":18364},"user":"sebastianwoinar","tags":[]},"18364":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"18365":{"varMapping":{"__isSmartRef__":true,"id":18366},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18367},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18366":{"this":{"__isSmartRef__":true,"id":18240}},"18367":{"timestamp":{"__isSmartRef__":true,"id":18368},"user":"sebastianwoinar","tags":[]},"18368":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"18369":{"submorphs":[{"__isSmartRef__":true,"id":18370}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18387},"id":"E8F087D1-76A1-46C4-88D9-1A56A136D116","eventHandler":{"__isSmartRef__":true,"id":18388},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":18389},"name":"node101","partsBinMetaInfo":{"__isSmartRef__":true,"id":18390},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5631},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":17829},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18393},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(461.3,210.0)"},"18370":{"submorphs":[],"scripts":[],"id":"DBC81A06-9B83-47D1-9DDF-5ED9A3FD3A09","shape":{"__isSmartRef__":true,"id":18371},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":18372},"textChunks":[{"__isSmartRef__":true,"id":18384}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":18386},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":18369},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"18371":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"18372":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":18373},{"__isSmartRef__":true,"id":18375},{"__isSmartRef__":true,"id":18377},{"__isSmartRef__":true,"id":18379},{"__isSmartRef__":true,"id":18381}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":18383},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"18373":{"date":{"__isSmartRef__":true,"id":18374},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"18374":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"18375":{"date":{"__isSmartRef__":true,"id":18376},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"18376":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"18377":{"date":{"__isSmartRef__":true,"id":18378},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"18378":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"18379":{"date":{"__isSmartRef__":true,"id":18380},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"18380":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"18381":{"date":{"__isSmartRef__":true,"id":18382},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"18382":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"18383":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"18384":{"style":{"__isSmartRef__":true,"id":18385},"morph":{"__isSmartRef__":true,"id":18370},"chunkOwner":{"__isSmartRef__":true,"id":18370},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18385":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18386":{"morph":{"__isSmartRef__":true,"id":18370},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18387":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"18388":{"morph":{"__isSmartRef__":true,"id":18369},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18389":{},"18390":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":18391}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"18391":{"date":{"__isSmartRef__":true,"id":18392},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"18392":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"18393":{"buildChildNodes":{"__isSmartRef__":true,"id":18394},"getGameTree":{"__isSmartRef__":true,"id":18398},"getLevel":{"__isSmartRef__":true,"id":18402},"getLevelWeight":{"__isSmartRef__":true,"id":18406},"getWeight":{"__isSmartRef__":true,"id":18410},"setNode":{"__isSmartRef__":true,"id":18414},"setParent":{"__isSmartRef__":true,"id":18418},"getParent":{"__isSmartRef__":true,"id":18422},"deactivate":{"__isSmartRef__":true,"id":18426},"blink":{"__isSmartRef__":true,"id":18430},"ABPreturn":{"__isSmartRef__":true,"id":18434},"ABPstart":{"__isSmartRef__":true,"id":18438},"ABPcontinue":{"__isSmartRef__":true,"id":18442},"ABPshowValue":{"__isSmartRef__":true,"id":18446},"ABPgetValue":{"__isSmartRef__":true,"id":18450},"ABPhasChildNodes":{"__isSmartRef__":true,"id":18454},"onMouseDown":{"__isSmartRef__":true,"id":18458},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":18466},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":18470},"ABPmarkAsDone":{"__isSmartRef__":true,"id":18474},"ABPmarkAsActive":{"__isSmartRef__":true,"id":18478},"getStateMorph":{"__isSmartRef__":true,"id":18482},"showState":{"__isSmartRef__":true,"id":18486},"ABPfailHard":{"__isSmartRef__":true,"id":18490},"markFinalDrawWith":{"__isSmartRef__":true,"id":18494}},"18394":{"varMapping":{"__isSmartRef__":true,"id":18395},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":18396},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18395":{"this":{"__isSmartRef__":true,"id":18369}},"18396":{"timestamp":{"__isSmartRef__":true,"id":18397},"user":"sebastianwoinar","tags":[]},"18397":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"18398":{"varMapping":{"__isSmartRef__":true,"id":18399},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":18400},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18399":{"this":{"__isSmartRef__":true,"id":18369}},"18400":{"timestamp":{"__isSmartRef__":true,"id":18401},"user":"sebastianwoinar","tags":[]},"18401":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18402":{"varMapping":{"__isSmartRef__":true,"id":18403},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":18404},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18403":{"this":{"__isSmartRef__":true,"id":18369}},"18404":{"timestamp":{"__isSmartRef__":true,"id":18405},"user":"sebastianwoinar","tags":[]},"18405":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18406":{"varMapping":{"__isSmartRef__":true,"id":18407},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18408},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18407":{"this":{"__isSmartRef__":true,"id":18369}},"18408":{"timestamp":{"__isSmartRef__":true,"id":18409},"user":"sebastianwoinar","tags":[]},"18409":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18410":{"varMapping":{"__isSmartRef__":true,"id":18411},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":18412},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18411":{"this":{"__isSmartRef__":true,"id":18369}},"18412":{"timestamp":{"__isSmartRef__":true,"id":18413},"user":"sebastianwoinar","tags":[]},"18413":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18414":{"varMapping":{"__isSmartRef__":true,"id":18415},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":18416},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18415":{"this":{"__isSmartRef__":true,"id":18369}},"18416":{"timestamp":{"__isSmartRef__":true,"id":18417},"user":"sebastianwoinar","tags":[]},"18417":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18418":{"varMapping":{"__isSmartRef__":true,"id":18419},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":18420},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18419":{"this":{"__isSmartRef__":true,"id":18369}},"18420":{"timestamp":{"__isSmartRef__":true,"id":18421},"user":"sebastianwoinar","tags":[]},"18421":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18422":{"varMapping":{"__isSmartRef__":true,"id":18423},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":18424},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18423":{"this":{"__isSmartRef__":true,"id":18369}},"18424":{"timestamp":{"__isSmartRef__":true,"id":18425},"user":"sebastianwoinar","tags":[]},"18425":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"18426":{"varMapping":{"__isSmartRef__":true,"id":18427},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":18428},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18427":{"this":{"__isSmartRef__":true,"id":18369}},"18428":{"timestamp":{"__isSmartRef__":true,"id":18429},"user":"sebastianwoinar","tags":[]},"18429":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"18430":{"varMapping":{"__isSmartRef__":true,"id":18431},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":18432},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18431":{"this":{"__isSmartRef__":true,"id":18369}},"18432":{"timestamp":{"__isSmartRef__":true,"id":18433},"user":"sebastianwoinar","tags":[]},"18433":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"18434":{"varMapping":{"__isSmartRef__":true,"id":18435},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":18436},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18435":{"this":{"__isSmartRef__":true,"id":18369}},"18436":{"timestamp":{"__isSmartRef__":true,"id":18437},"user":"sebastianwoinar","tags":[]},"18437":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"18438":{"varMapping":{"__isSmartRef__":true,"id":18439},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":18440},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18439":{"this":{"__isSmartRef__":true,"id":18369}},"18440":{"timestamp":{"__isSmartRef__":true,"id":18441},"user":"sebastianwoinar","tags":[]},"18441":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"18442":{"varMapping":{"__isSmartRef__":true,"id":18443},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":18444},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18443":{"this":{"__isSmartRef__":true,"id":18369}},"18444":{"timestamp":{"__isSmartRef__":true,"id":18445},"user":"sebastianwoinar","tags":[]},"18445":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"18446":{"varMapping":{"__isSmartRef__":true,"id":18447},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":18448},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18447":{"this":{"__isSmartRef__":true,"id":18369}},"18448":{"timestamp":{"__isSmartRef__":true,"id":18449},"user":"sebastianwoinar","tags":[]},"18449":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"18450":{"varMapping":{"__isSmartRef__":true,"id":18451},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":18452},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18451":{"this":{"__isSmartRef__":true,"id":18369}},"18452":{"timestamp":{"__isSmartRef__":true,"id":18453},"user":"sebastianwoinar","tags":[]},"18453":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"18454":{"varMapping":{"__isSmartRef__":true,"id":18455},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":18456},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18455":{"this":{"__isSmartRef__":true,"id":18369}},"18456":{"timestamp":{"__isSmartRef__":true,"id":18457},"user":"sebastianwoinar","tags":[]},"18457":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"18458":{"varMapping":{"__isSmartRef__":true,"id":18459},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":18464},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18459":{"this":{"__isSmartRef__":true,"id":18369},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18460}},"18460":{"$super":{"__isSmartRef__":true,"id":18461}},"18461":{"varMapping":{"__isSmartRef__":true,"id":18462},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18463},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18462":{"obj":{"__isSmartRef__":true,"id":18369},"name":"onMouseDown"},"18463":{},"18464":{"timestamp":{"__isSmartRef__":true,"id":18465},"user":"sebastianwoinar","tags":[]},"18465":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"18466":{"varMapping":{"__isSmartRef__":true,"id":18467},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":18468},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18467":{"this":{"__isSmartRef__":true,"id":18369}},"18468":{"timestamp":{"__isSmartRef__":true,"id":18469},"user":"sebastianwoinar","tags":[]},"18469":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"18470":{"varMapping":{"__isSmartRef__":true,"id":18471},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":18472},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18471":{"this":{"__isSmartRef__":true,"id":18369}},"18472":{"timestamp":{"__isSmartRef__":true,"id":18473},"user":"sebastianwoinar","tags":[]},"18473":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"18474":{"varMapping":{"__isSmartRef__":true,"id":18475},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":18476},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18475":{"this":{"__isSmartRef__":true,"id":18369}},"18476":{"timestamp":{"__isSmartRef__":true,"id":18477},"user":"sebastianwoinar","tags":[]},"18477":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"18478":{"varMapping":{"__isSmartRef__":true,"id":18479},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":18480},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18479":{"this":{"__isSmartRef__":true,"id":18369}},"18480":{"timestamp":{"__isSmartRef__":true,"id":18481},"user":"sebastianwoinar","tags":[]},"18481":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"18482":{"varMapping":{"__isSmartRef__":true,"id":18483},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":18484},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18483":{"this":{"__isSmartRef__":true,"id":18369}},"18484":{"timestamp":{"__isSmartRef__":true,"id":18485},"user":"sebastianwoinar","tags":[]},"18485":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"18486":{"varMapping":{"__isSmartRef__":true,"id":18487},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18488},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18487":{"this":{"__isSmartRef__":true,"id":18369}},"18488":{"timestamp":{"__isSmartRef__":true,"id":18489},"user":"sebastianwoinar","tags":[]},"18489":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"18490":{"varMapping":{"__isSmartRef__":true,"id":18491},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":18492},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18491":{"this":{"__isSmartRef__":true,"id":18369}},"18492":{"timestamp":{"__isSmartRef__":true,"id":18493},"user":"sebastianwoinar","tags":[]},"18493":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"18494":{"varMapping":{"__isSmartRef__":true,"id":18495},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18496},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18495":{"this":{"__isSmartRef__":true,"id":18369}},"18496":{"timestamp":{"__isSmartRef__":true,"id":18497},"user":"sebastianwoinar","tags":[]},"18497":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"18498":{"submorphs":[{"__isSmartRef__":true,"id":18499}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18516},"id":"BBF745E7-50C8-4663-A673-A7A8B43263C5","eventHandler":{"__isSmartRef__":true,"id":18517},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":18518},"name":"node102","partsBinMetaInfo":{"__isSmartRef__":true,"id":18519},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5633},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":17829},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18522},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(466.5,210.0)"},"18499":{"submorphs":[],"scripts":[],"id":"4258A9BB-57A5-4B6B-A212-B1DDF88AE85C","shape":{"__isSmartRef__":true,"id":18500},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":18501},"textChunks":[{"__isSmartRef__":true,"id":18513}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":18515},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":18498},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"18500":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"18501":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":18502},{"__isSmartRef__":true,"id":18504},{"__isSmartRef__":true,"id":18506},{"__isSmartRef__":true,"id":18508},{"__isSmartRef__":true,"id":18510}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":18512},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"18502":{"date":{"__isSmartRef__":true,"id":18503},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"18503":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"18504":{"date":{"__isSmartRef__":true,"id":18505},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"18505":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"18506":{"date":{"__isSmartRef__":true,"id":18507},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"18507":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"18508":{"date":{"__isSmartRef__":true,"id":18509},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"18509":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"18510":{"date":{"__isSmartRef__":true,"id":18511},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"18511":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"18512":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"18513":{"style":{"__isSmartRef__":true,"id":18514},"morph":{"__isSmartRef__":true,"id":18499},"chunkOwner":{"__isSmartRef__":true,"id":18499},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18514":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18515":{"morph":{"__isSmartRef__":true,"id":18499},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18516":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"18517":{"morph":{"__isSmartRef__":true,"id":18498},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18518":{},"18519":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":18520}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"18520":{"date":{"__isSmartRef__":true,"id":18521},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"18521":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"18522":{"buildChildNodes":{"__isSmartRef__":true,"id":18523},"getGameTree":{"__isSmartRef__":true,"id":18527},"getLevel":{"__isSmartRef__":true,"id":18531},"getLevelWeight":{"__isSmartRef__":true,"id":18535},"getWeight":{"__isSmartRef__":true,"id":18539},"setNode":{"__isSmartRef__":true,"id":18543},"setParent":{"__isSmartRef__":true,"id":18547},"getParent":{"__isSmartRef__":true,"id":18551},"deactivate":{"__isSmartRef__":true,"id":18555},"blink":{"__isSmartRef__":true,"id":18559},"ABPreturn":{"__isSmartRef__":true,"id":18563},"ABPstart":{"__isSmartRef__":true,"id":18567},"ABPcontinue":{"__isSmartRef__":true,"id":18571},"ABPshowValue":{"__isSmartRef__":true,"id":18575},"ABPgetValue":{"__isSmartRef__":true,"id":18579},"ABPhasChildNodes":{"__isSmartRef__":true,"id":18583},"onMouseDown":{"__isSmartRef__":true,"id":18587},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":18595},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":18599},"ABPmarkAsDone":{"__isSmartRef__":true,"id":18603},"ABPmarkAsActive":{"__isSmartRef__":true,"id":18607},"getStateMorph":{"__isSmartRef__":true,"id":18611},"showState":{"__isSmartRef__":true,"id":18615},"ABPfailHard":{"__isSmartRef__":true,"id":18619},"markFinalDrawWith":{"__isSmartRef__":true,"id":18623}},"18523":{"varMapping":{"__isSmartRef__":true,"id":18524},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":18525},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18524":{"this":{"__isSmartRef__":true,"id":18498}},"18525":{"timestamp":{"__isSmartRef__":true,"id":18526},"user":"sebastianwoinar","tags":[]},"18526":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"18527":{"varMapping":{"__isSmartRef__":true,"id":18528},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":18529},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18528":{"this":{"__isSmartRef__":true,"id":18498}},"18529":{"timestamp":{"__isSmartRef__":true,"id":18530},"user":"sebastianwoinar","tags":[]},"18530":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18531":{"varMapping":{"__isSmartRef__":true,"id":18532},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":18533},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18532":{"this":{"__isSmartRef__":true,"id":18498}},"18533":{"timestamp":{"__isSmartRef__":true,"id":18534},"user":"sebastianwoinar","tags":[]},"18534":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18535":{"varMapping":{"__isSmartRef__":true,"id":18536},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18537},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18536":{"this":{"__isSmartRef__":true,"id":18498}},"18537":{"timestamp":{"__isSmartRef__":true,"id":18538},"user":"sebastianwoinar","tags":[]},"18538":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18539":{"varMapping":{"__isSmartRef__":true,"id":18540},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":18541},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18540":{"this":{"__isSmartRef__":true,"id":18498}},"18541":{"timestamp":{"__isSmartRef__":true,"id":18542},"user":"sebastianwoinar","tags":[]},"18542":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18543":{"varMapping":{"__isSmartRef__":true,"id":18544},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":18545},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18544":{"this":{"__isSmartRef__":true,"id":18498}},"18545":{"timestamp":{"__isSmartRef__":true,"id":18546},"user":"sebastianwoinar","tags":[]},"18546":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18547":{"varMapping":{"__isSmartRef__":true,"id":18548},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":18549},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18548":{"this":{"__isSmartRef__":true,"id":18498}},"18549":{"timestamp":{"__isSmartRef__":true,"id":18550},"user":"sebastianwoinar","tags":[]},"18550":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18551":{"varMapping":{"__isSmartRef__":true,"id":18552},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":18553},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18552":{"this":{"__isSmartRef__":true,"id":18498}},"18553":{"timestamp":{"__isSmartRef__":true,"id":18554},"user":"sebastianwoinar","tags":[]},"18554":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"18555":{"varMapping":{"__isSmartRef__":true,"id":18556},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":18557},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18556":{"this":{"__isSmartRef__":true,"id":18498}},"18557":{"timestamp":{"__isSmartRef__":true,"id":18558},"user":"sebastianwoinar","tags":[]},"18558":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"18559":{"varMapping":{"__isSmartRef__":true,"id":18560},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":18561},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18560":{"this":{"__isSmartRef__":true,"id":18498}},"18561":{"timestamp":{"__isSmartRef__":true,"id":18562},"user":"sebastianwoinar","tags":[]},"18562":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"18563":{"varMapping":{"__isSmartRef__":true,"id":18564},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":18565},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18564":{"this":{"__isSmartRef__":true,"id":18498}},"18565":{"timestamp":{"__isSmartRef__":true,"id":18566},"user":"sebastianwoinar","tags":[]},"18566":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"18567":{"varMapping":{"__isSmartRef__":true,"id":18568},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":18569},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18568":{"this":{"__isSmartRef__":true,"id":18498}},"18569":{"timestamp":{"__isSmartRef__":true,"id":18570},"user":"sebastianwoinar","tags":[]},"18570":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"18571":{"varMapping":{"__isSmartRef__":true,"id":18572},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":18573},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18572":{"this":{"__isSmartRef__":true,"id":18498}},"18573":{"timestamp":{"__isSmartRef__":true,"id":18574},"user":"sebastianwoinar","tags":[]},"18574":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"18575":{"varMapping":{"__isSmartRef__":true,"id":18576},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":18577},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18576":{"this":{"__isSmartRef__":true,"id":18498}},"18577":{"timestamp":{"__isSmartRef__":true,"id":18578},"user":"sebastianwoinar","tags":[]},"18578":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"18579":{"varMapping":{"__isSmartRef__":true,"id":18580},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":18581},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18580":{"this":{"__isSmartRef__":true,"id":18498}},"18581":{"timestamp":{"__isSmartRef__":true,"id":18582},"user":"sebastianwoinar","tags":[]},"18582":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"18583":{"varMapping":{"__isSmartRef__":true,"id":18584},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":18585},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18584":{"this":{"__isSmartRef__":true,"id":18498}},"18585":{"timestamp":{"__isSmartRef__":true,"id":18586},"user":"sebastianwoinar","tags":[]},"18586":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"18587":{"varMapping":{"__isSmartRef__":true,"id":18588},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":18593},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18588":{"this":{"__isSmartRef__":true,"id":18498},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18589}},"18589":{"$super":{"__isSmartRef__":true,"id":18590}},"18590":{"varMapping":{"__isSmartRef__":true,"id":18591},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18592},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18591":{"obj":{"__isSmartRef__":true,"id":18498},"name":"onMouseDown"},"18592":{},"18593":{"timestamp":{"__isSmartRef__":true,"id":18594},"user":"sebastianwoinar","tags":[]},"18594":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"18595":{"varMapping":{"__isSmartRef__":true,"id":18596},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":18597},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18596":{"this":{"__isSmartRef__":true,"id":18498}},"18597":{"timestamp":{"__isSmartRef__":true,"id":18598},"user":"sebastianwoinar","tags":[]},"18598":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"18599":{"varMapping":{"__isSmartRef__":true,"id":18600},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":18601},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18600":{"this":{"__isSmartRef__":true,"id":18498}},"18601":{"timestamp":{"__isSmartRef__":true,"id":18602},"user":"sebastianwoinar","tags":[]},"18602":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"18603":{"varMapping":{"__isSmartRef__":true,"id":18604},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":18605},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18604":{"this":{"__isSmartRef__":true,"id":18498}},"18605":{"timestamp":{"__isSmartRef__":true,"id":18606},"user":"sebastianwoinar","tags":[]},"18606":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"18607":{"varMapping":{"__isSmartRef__":true,"id":18608},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":18609},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18608":{"this":{"__isSmartRef__":true,"id":18498}},"18609":{"timestamp":{"__isSmartRef__":true,"id":18610},"user":"sebastianwoinar","tags":[]},"18610":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"18611":{"varMapping":{"__isSmartRef__":true,"id":18612},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":18613},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18612":{"this":{"__isSmartRef__":true,"id":18498}},"18613":{"timestamp":{"__isSmartRef__":true,"id":18614},"user":"sebastianwoinar","tags":[]},"18614":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"18615":{"varMapping":{"__isSmartRef__":true,"id":18616},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18617},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18616":{"this":{"__isSmartRef__":true,"id":18498}},"18617":{"timestamp":{"__isSmartRef__":true,"id":18618},"user":"sebastianwoinar","tags":[]},"18618":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"18619":{"varMapping":{"__isSmartRef__":true,"id":18620},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":18621},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18620":{"this":{"__isSmartRef__":true,"id":18498}},"18621":{"timestamp":{"__isSmartRef__":true,"id":18622},"user":"sebastianwoinar","tags":[]},"18622":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"18623":{"varMapping":{"__isSmartRef__":true,"id":18624},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18625},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18624":{"this":{"__isSmartRef__":true,"id":18498}},"18625":{"timestamp":{"__isSmartRef__":true,"id":18626},"user":"sebastianwoinar","tags":[]},"18626":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"18627":{"submorphs":[{"__isSmartRef__":true,"id":18628}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18645},"id":"A9A6B182-D91D-4D9D-9A50-7A7D007BADA2","eventHandler":{"__isSmartRef__":true,"id":18646},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":18647},"name":"node103","partsBinMetaInfo":{"__isSmartRef__":true,"id":18648},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5635},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":17829},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18651},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(471.7,210.0)"},"18628":{"submorphs":[],"scripts":[],"id":"42D54E76-9940-4885-AE3E-C13A7C1CE9B0","shape":{"__isSmartRef__":true,"id":18629},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":18630},"textChunks":[{"__isSmartRef__":true,"id":18642}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":18644},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":18627},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"18629":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"18630":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":18631},{"__isSmartRef__":true,"id":18633},{"__isSmartRef__":true,"id":18635},{"__isSmartRef__":true,"id":18637},{"__isSmartRef__":true,"id":18639}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":18641},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"18631":{"date":{"__isSmartRef__":true,"id":18632},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"18632":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"18633":{"date":{"__isSmartRef__":true,"id":18634},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"18634":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"18635":{"date":{"__isSmartRef__":true,"id":18636},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"18636":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"18637":{"date":{"__isSmartRef__":true,"id":18638},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"18638":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"18639":{"date":{"__isSmartRef__":true,"id":18640},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"18640":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"18641":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"18642":{"style":{"__isSmartRef__":true,"id":18643},"morph":{"__isSmartRef__":true,"id":18628},"chunkOwner":{"__isSmartRef__":true,"id":18628},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18643":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18644":{"morph":{"__isSmartRef__":true,"id":18628},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18645":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"18646":{"morph":{"__isSmartRef__":true,"id":18627},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18647":{},"18648":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":18649}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"18649":{"date":{"__isSmartRef__":true,"id":18650},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"18650":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"18651":{"buildChildNodes":{"__isSmartRef__":true,"id":18652},"getGameTree":{"__isSmartRef__":true,"id":18656},"getLevel":{"__isSmartRef__":true,"id":18660},"getLevelWeight":{"__isSmartRef__":true,"id":18664},"getWeight":{"__isSmartRef__":true,"id":18668},"setNode":{"__isSmartRef__":true,"id":18672},"setParent":{"__isSmartRef__":true,"id":18676},"getParent":{"__isSmartRef__":true,"id":18680},"deactivate":{"__isSmartRef__":true,"id":18684},"blink":{"__isSmartRef__":true,"id":18688},"ABPreturn":{"__isSmartRef__":true,"id":18692},"ABPstart":{"__isSmartRef__":true,"id":18696},"ABPcontinue":{"__isSmartRef__":true,"id":18700},"ABPshowValue":{"__isSmartRef__":true,"id":18704},"ABPgetValue":{"__isSmartRef__":true,"id":18708},"ABPhasChildNodes":{"__isSmartRef__":true,"id":18712},"onMouseDown":{"__isSmartRef__":true,"id":18716},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":18724},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":18728},"ABPmarkAsDone":{"__isSmartRef__":true,"id":18732},"ABPmarkAsActive":{"__isSmartRef__":true,"id":18736},"getStateMorph":{"__isSmartRef__":true,"id":18740},"showState":{"__isSmartRef__":true,"id":18744},"ABPfailHard":{"__isSmartRef__":true,"id":18748},"markFinalDrawWith":{"__isSmartRef__":true,"id":18752}},"18652":{"varMapping":{"__isSmartRef__":true,"id":18653},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":18654},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18653":{"this":{"__isSmartRef__":true,"id":18627}},"18654":{"timestamp":{"__isSmartRef__":true,"id":18655},"user":"sebastianwoinar","tags":[]},"18655":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"18656":{"varMapping":{"__isSmartRef__":true,"id":18657},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":18658},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18657":{"this":{"__isSmartRef__":true,"id":18627}},"18658":{"timestamp":{"__isSmartRef__":true,"id":18659},"user":"sebastianwoinar","tags":[]},"18659":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18660":{"varMapping":{"__isSmartRef__":true,"id":18661},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":18662},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18661":{"this":{"__isSmartRef__":true,"id":18627}},"18662":{"timestamp":{"__isSmartRef__":true,"id":18663},"user":"sebastianwoinar","tags":[]},"18663":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18664":{"varMapping":{"__isSmartRef__":true,"id":18665},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18666},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18665":{"this":{"__isSmartRef__":true,"id":18627}},"18666":{"timestamp":{"__isSmartRef__":true,"id":18667},"user":"sebastianwoinar","tags":[]},"18667":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18668":{"varMapping":{"__isSmartRef__":true,"id":18669},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":18670},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18669":{"this":{"__isSmartRef__":true,"id":18627}},"18670":{"timestamp":{"__isSmartRef__":true,"id":18671},"user":"sebastianwoinar","tags":[]},"18671":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18672":{"varMapping":{"__isSmartRef__":true,"id":18673},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":18674},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18673":{"this":{"__isSmartRef__":true,"id":18627}},"18674":{"timestamp":{"__isSmartRef__":true,"id":18675},"user":"sebastianwoinar","tags":[]},"18675":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18676":{"varMapping":{"__isSmartRef__":true,"id":18677},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":18678},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18677":{"this":{"__isSmartRef__":true,"id":18627}},"18678":{"timestamp":{"__isSmartRef__":true,"id":18679},"user":"sebastianwoinar","tags":[]},"18679":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18680":{"varMapping":{"__isSmartRef__":true,"id":18681},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":18682},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18681":{"this":{"__isSmartRef__":true,"id":18627}},"18682":{"timestamp":{"__isSmartRef__":true,"id":18683},"user":"sebastianwoinar","tags":[]},"18683":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"18684":{"varMapping":{"__isSmartRef__":true,"id":18685},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":18686},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18685":{"this":{"__isSmartRef__":true,"id":18627}},"18686":{"timestamp":{"__isSmartRef__":true,"id":18687},"user":"sebastianwoinar","tags":[]},"18687":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"18688":{"varMapping":{"__isSmartRef__":true,"id":18689},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":18690},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18689":{"this":{"__isSmartRef__":true,"id":18627}},"18690":{"timestamp":{"__isSmartRef__":true,"id":18691},"user":"sebastianwoinar","tags":[]},"18691":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"18692":{"varMapping":{"__isSmartRef__":true,"id":18693},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":18694},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18693":{"this":{"__isSmartRef__":true,"id":18627}},"18694":{"timestamp":{"__isSmartRef__":true,"id":18695},"user":"sebastianwoinar","tags":[]},"18695":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"18696":{"varMapping":{"__isSmartRef__":true,"id":18697},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":18698},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18697":{"this":{"__isSmartRef__":true,"id":18627}},"18698":{"timestamp":{"__isSmartRef__":true,"id":18699},"user":"sebastianwoinar","tags":[]},"18699":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"18700":{"varMapping":{"__isSmartRef__":true,"id":18701},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":18702},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18701":{"this":{"__isSmartRef__":true,"id":18627}},"18702":{"timestamp":{"__isSmartRef__":true,"id":18703},"user":"sebastianwoinar","tags":[]},"18703":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"18704":{"varMapping":{"__isSmartRef__":true,"id":18705},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":18706},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18705":{"this":{"__isSmartRef__":true,"id":18627}},"18706":{"timestamp":{"__isSmartRef__":true,"id":18707},"user":"sebastianwoinar","tags":[]},"18707":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"18708":{"varMapping":{"__isSmartRef__":true,"id":18709},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":18710},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18709":{"this":{"__isSmartRef__":true,"id":18627}},"18710":{"timestamp":{"__isSmartRef__":true,"id":18711},"user":"sebastianwoinar","tags":[]},"18711":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"18712":{"varMapping":{"__isSmartRef__":true,"id":18713},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":18714},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18713":{"this":{"__isSmartRef__":true,"id":18627}},"18714":{"timestamp":{"__isSmartRef__":true,"id":18715},"user":"sebastianwoinar","tags":[]},"18715":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"18716":{"varMapping":{"__isSmartRef__":true,"id":18717},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":18722},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18717":{"this":{"__isSmartRef__":true,"id":18627},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18718}},"18718":{"$super":{"__isSmartRef__":true,"id":18719}},"18719":{"varMapping":{"__isSmartRef__":true,"id":18720},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18721},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18720":{"obj":{"__isSmartRef__":true,"id":18627},"name":"onMouseDown"},"18721":{},"18722":{"timestamp":{"__isSmartRef__":true,"id":18723},"user":"sebastianwoinar","tags":[]},"18723":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"18724":{"varMapping":{"__isSmartRef__":true,"id":18725},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":18726},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18725":{"this":{"__isSmartRef__":true,"id":18627}},"18726":{"timestamp":{"__isSmartRef__":true,"id":18727},"user":"sebastianwoinar","tags":[]},"18727":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"18728":{"varMapping":{"__isSmartRef__":true,"id":18729},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":18730},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18729":{"this":{"__isSmartRef__":true,"id":18627}},"18730":{"timestamp":{"__isSmartRef__":true,"id":18731},"user":"sebastianwoinar","tags":[]},"18731":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"18732":{"varMapping":{"__isSmartRef__":true,"id":18733},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":18734},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18733":{"this":{"__isSmartRef__":true,"id":18627}},"18734":{"timestamp":{"__isSmartRef__":true,"id":18735},"user":"sebastianwoinar","tags":[]},"18735":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"18736":{"varMapping":{"__isSmartRef__":true,"id":18737},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":18738},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18737":{"this":{"__isSmartRef__":true,"id":18627}},"18738":{"timestamp":{"__isSmartRef__":true,"id":18739},"user":"sebastianwoinar","tags":[]},"18739":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"18740":{"varMapping":{"__isSmartRef__":true,"id":18741},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":18742},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18741":{"this":{"__isSmartRef__":true,"id":18627}},"18742":{"timestamp":{"__isSmartRef__":true,"id":18743},"user":"sebastianwoinar","tags":[]},"18743":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"18744":{"varMapping":{"__isSmartRef__":true,"id":18745},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18746},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18745":{"this":{"__isSmartRef__":true,"id":18627}},"18746":{"timestamp":{"__isSmartRef__":true,"id":18747},"user":"sebastianwoinar","tags":[]},"18747":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"18748":{"varMapping":{"__isSmartRef__":true,"id":18749},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":18750},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18749":{"this":{"__isSmartRef__":true,"id":18627}},"18750":{"timestamp":{"__isSmartRef__":true,"id":18751},"user":"sebastianwoinar","tags":[]},"18751":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"18752":{"varMapping":{"__isSmartRef__":true,"id":18753},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18754},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18753":{"this":{"__isSmartRef__":true,"id":18627}},"18754":{"timestamp":{"__isSmartRef__":true,"id":18755},"user":"sebastianwoinar","tags":[]},"18755":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"18756":{"buildChildNodes":{"__isSmartRef__":true,"id":18757},"getGameTree":{"__isSmartRef__":true,"id":18761},"getLevel":{"__isSmartRef__":true,"id":18765},"getLevelWeight":{"__isSmartRef__":true,"id":18769},"getWeight":{"__isSmartRef__":true,"id":18773},"setNode":{"__isSmartRef__":true,"id":18777},"setParent":{"__isSmartRef__":true,"id":18781},"getParent":{"__isSmartRef__":true,"id":18785},"deactivate":{"__isSmartRef__":true,"id":18789},"blink":{"__isSmartRef__":true,"id":18793},"ABPreturn":{"__isSmartRef__":true,"id":18797},"ABPstart":{"__isSmartRef__":true,"id":18801},"ABPcontinue":{"__isSmartRef__":true,"id":18805},"ABPshowValue":{"__isSmartRef__":true,"id":18809},"ABPgetValue":{"__isSmartRef__":true,"id":18813},"ABPhasChildNodes":{"__isSmartRef__":true,"id":18817},"onMouseDown":{"__isSmartRef__":true,"id":18821},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":18829},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":18833},"ABPmarkAsDone":{"__isSmartRef__":true,"id":18837},"ABPmarkAsActive":{"__isSmartRef__":true,"id":18841},"getStateMorph":{"__isSmartRef__":true,"id":18845},"showState":{"__isSmartRef__":true,"id":18849},"ABPfailHard":{"__isSmartRef__":true,"id":18853},"markFinalDrawWith":{"__isSmartRef__":true,"id":18857}},"18757":{"varMapping":{"__isSmartRef__":true,"id":18758},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":18759},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18758":{"this":{"__isSmartRef__":true,"id":17829}},"18759":{"timestamp":{"__isSmartRef__":true,"id":18760},"user":"sebastianwoinar","tags":[]},"18760":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"18761":{"varMapping":{"__isSmartRef__":true,"id":18762},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":18763},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18762":{"this":{"__isSmartRef__":true,"id":17829}},"18763":{"timestamp":{"__isSmartRef__":true,"id":18764},"user":"sebastianwoinar","tags":[]},"18764":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18765":{"varMapping":{"__isSmartRef__":true,"id":18766},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":18767},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18766":{"this":{"__isSmartRef__":true,"id":17829}},"18767":{"timestamp":{"__isSmartRef__":true,"id":18768},"user":"sebastianwoinar","tags":[]},"18768":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18769":{"varMapping":{"__isSmartRef__":true,"id":18770},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18771},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18770":{"this":{"__isSmartRef__":true,"id":17829}},"18771":{"timestamp":{"__isSmartRef__":true,"id":18772},"user":"sebastianwoinar","tags":[]},"18772":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18773":{"varMapping":{"__isSmartRef__":true,"id":18774},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":18775},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18774":{"this":{"__isSmartRef__":true,"id":17829}},"18775":{"timestamp":{"__isSmartRef__":true,"id":18776},"user":"sebastianwoinar","tags":[]},"18776":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18777":{"varMapping":{"__isSmartRef__":true,"id":18778},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":18779},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18778":{"this":{"__isSmartRef__":true,"id":17829}},"18779":{"timestamp":{"__isSmartRef__":true,"id":18780},"user":"sebastianwoinar","tags":[]},"18780":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18781":{"varMapping":{"__isSmartRef__":true,"id":18782},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":18783},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18782":{"this":{"__isSmartRef__":true,"id":17829}},"18783":{"timestamp":{"__isSmartRef__":true,"id":18784},"user":"sebastianwoinar","tags":[]},"18784":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18785":{"varMapping":{"__isSmartRef__":true,"id":18786},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":18787},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18786":{"this":{"__isSmartRef__":true,"id":17829}},"18787":{"timestamp":{"__isSmartRef__":true,"id":18788},"user":"sebastianwoinar","tags":[]},"18788":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"18789":{"varMapping":{"__isSmartRef__":true,"id":18790},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":18791},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18790":{"this":{"__isSmartRef__":true,"id":17829}},"18791":{"timestamp":{"__isSmartRef__":true,"id":18792},"user":"sebastianwoinar","tags":[]},"18792":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"18793":{"varMapping":{"__isSmartRef__":true,"id":18794},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":18795},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18794":{"this":{"__isSmartRef__":true,"id":17829}},"18795":{"timestamp":{"__isSmartRef__":true,"id":18796},"user":"sebastianwoinar","tags":[]},"18796":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"18797":{"varMapping":{"__isSmartRef__":true,"id":18798},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":18799},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18798":{"this":{"__isSmartRef__":true,"id":17829}},"18799":{"timestamp":{"__isSmartRef__":true,"id":18800},"user":"sebastianwoinar","tags":[]},"18800":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"18801":{"varMapping":{"__isSmartRef__":true,"id":18802},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":18803},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18802":{"this":{"__isSmartRef__":true,"id":17829}},"18803":{"timestamp":{"__isSmartRef__":true,"id":18804},"user":"sebastianwoinar","tags":[]},"18804":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"18805":{"varMapping":{"__isSmartRef__":true,"id":18806},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":18807},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18806":{"this":{"__isSmartRef__":true,"id":17829}},"18807":{"timestamp":{"__isSmartRef__":true,"id":18808},"user":"sebastianwoinar","tags":[]},"18808":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"18809":{"varMapping":{"__isSmartRef__":true,"id":18810},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":18811},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18810":{"this":{"__isSmartRef__":true,"id":17829}},"18811":{"timestamp":{"__isSmartRef__":true,"id":18812},"user":"sebastianwoinar","tags":[]},"18812":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"18813":{"varMapping":{"__isSmartRef__":true,"id":18814},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":18815},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18814":{"this":{"__isSmartRef__":true,"id":17829}},"18815":{"timestamp":{"__isSmartRef__":true,"id":18816},"user":"sebastianwoinar","tags":[]},"18816":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"18817":{"varMapping":{"__isSmartRef__":true,"id":18818},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":18819},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18818":{"this":{"__isSmartRef__":true,"id":17829}},"18819":{"timestamp":{"__isSmartRef__":true,"id":18820},"user":"sebastianwoinar","tags":[]},"18820":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"18821":{"varMapping":{"__isSmartRef__":true,"id":18822},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":18827},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18822":{"this":{"__isSmartRef__":true,"id":17829},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18823}},"18823":{"$super":{"__isSmartRef__":true,"id":18824}},"18824":{"varMapping":{"__isSmartRef__":true,"id":18825},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18826},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18825":{"obj":{"__isSmartRef__":true,"id":17829},"name":"onMouseDown"},"18826":{},"18827":{"timestamp":{"__isSmartRef__":true,"id":18828},"user":"sebastianwoinar","tags":[]},"18828":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"18829":{"varMapping":{"__isSmartRef__":true,"id":18830},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":18831},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18830":{"this":{"__isSmartRef__":true,"id":17829}},"18831":{"timestamp":{"__isSmartRef__":true,"id":18832},"user":"sebastianwoinar","tags":[]},"18832":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"18833":{"varMapping":{"__isSmartRef__":true,"id":18834},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":18835},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18834":{"this":{"__isSmartRef__":true,"id":17829}},"18835":{"timestamp":{"__isSmartRef__":true,"id":18836},"user":"sebastianwoinar","tags":[]},"18836":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"18837":{"varMapping":{"__isSmartRef__":true,"id":18838},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":18839},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18838":{"this":{"__isSmartRef__":true,"id":17829}},"18839":{"timestamp":{"__isSmartRef__":true,"id":18840},"user":"sebastianwoinar","tags":[]},"18840":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"18841":{"varMapping":{"__isSmartRef__":true,"id":18842},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":18843},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18842":{"this":{"__isSmartRef__":true,"id":17829}},"18843":{"timestamp":{"__isSmartRef__":true,"id":18844},"user":"sebastianwoinar","tags":[]},"18844":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"18845":{"varMapping":{"__isSmartRef__":true,"id":18846},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":18847},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18846":{"this":{"__isSmartRef__":true,"id":17829}},"18847":{"timestamp":{"__isSmartRef__":true,"id":18848},"user":"sebastianwoinar","tags":[]},"18848":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"18849":{"varMapping":{"__isSmartRef__":true,"id":18850},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18851},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18850":{"this":{"__isSmartRef__":true,"id":17829}},"18851":{"timestamp":{"__isSmartRef__":true,"id":18852},"user":"sebastianwoinar","tags":[]},"18852":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"18853":{"varMapping":{"__isSmartRef__":true,"id":18854},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":18855},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18854":{"this":{"__isSmartRef__":true,"id":17829}},"18855":{"timestamp":{"__isSmartRef__":true,"id":18856},"user":"sebastianwoinar","tags":[]},"18856":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"18857":{"varMapping":{"__isSmartRef__":true,"id":18858},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18859},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18858":{"this":{"__isSmartRef__":true,"id":17829}},"18859":{"timestamp":{"__isSmartRef__":true,"id":18860},"user":"sebastianwoinar","tags":[]},"18860":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"18861":{"submorphs":[{"__isSmartRef__":true,"id":18862}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18879},"id":"39C3156D-8E5F-4235-9C52-FE3419E11BB2","eventHandler":{"__isSmartRef__":true,"id":18880},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":18881},"name":"node104","partsBinMetaInfo":{"__isSmartRef__":true,"id":18882},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5637},"owner":{"__isSmartRef__":true,"id":5408},"childNodes":[{"__isSmartRef__":true,"id":18885},{"__isSmartRef__":true,"id":19014},{"__isSmartRef__":true,"id":19143},{"__isSmartRef__":true,"id":19272},{"__isSmartRef__":true,"id":19401},{"__isSmartRef__":true,"id":19530},{"__isSmartRef__":true,"id":19659},{"__isSmartRef__":true,"id":19788}],"parent":{"__isSmartRef__":true,"id":17805},"level":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19917},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(539.0,160.0)"},"18862":{"submorphs":[],"scripts":[],"id":"469FD336-6703-435A-AF16-DD9F581E332E","shape":{"__isSmartRef__":true,"id":18863},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":18864},"textChunks":[{"__isSmartRef__":true,"id":18876}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":18878},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":18861},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"18863":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"18864":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":18865},{"__isSmartRef__":true,"id":18867},{"__isSmartRef__":true,"id":18869},{"__isSmartRef__":true,"id":18871},{"__isSmartRef__":true,"id":18873}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":18875},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"18865":{"date":{"__isSmartRef__":true,"id":18866},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"18866":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"18867":{"date":{"__isSmartRef__":true,"id":18868},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"18868":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"18869":{"date":{"__isSmartRef__":true,"id":18870},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"18870":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"18871":{"date":{"__isSmartRef__":true,"id":18872},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"18872":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"18873":{"date":{"__isSmartRef__":true,"id":18874},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"18874":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"18875":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"18876":{"style":{"__isSmartRef__":true,"id":18877},"morph":{"__isSmartRef__":true,"id":18862},"chunkOwner":{"__isSmartRef__":true,"id":18862},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18877":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18878":{"morph":{"__isSmartRef__":true,"id":18862},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18879":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"18880":{"morph":{"__isSmartRef__":true,"id":18861},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18881":{},"18882":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":18883}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"18883":{"date":{"__isSmartRef__":true,"id":18884},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"18884":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"18885":{"submorphs":[{"__isSmartRef__":true,"id":18886}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18903},"id":"E09DCF6F-A2DD-4605-B76B-ACB8FD2947DC","eventHandler":{"__isSmartRef__":true,"id":18904},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":18905},"name":"node105","partsBinMetaInfo":{"__isSmartRef__":true,"id":18906},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5639},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":18861},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18909},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(476.8,210.0)"},"18886":{"submorphs":[],"scripts":[],"id":"986D4A9E-B09B-4B77-B7E1-B4EA4389E42C","shape":{"__isSmartRef__":true,"id":18887},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":18888},"textChunks":[{"__isSmartRef__":true,"id":18900}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":18902},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":18885},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"18887":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"18888":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":18889},{"__isSmartRef__":true,"id":18891},{"__isSmartRef__":true,"id":18893},{"__isSmartRef__":true,"id":18895},{"__isSmartRef__":true,"id":18897}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":18899},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"18889":{"date":{"__isSmartRef__":true,"id":18890},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"18890":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"18891":{"date":{"__isSmartRef__":true,"id":18892},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"18892":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"18893":{"date":{"__isSmartRef__":true,"id":18894},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"18894":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"18895":{"date":{"__isSmartRef__":true,"id":18896},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"18896":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"18897":{"date":{"__isSmartRef__":true,"id":18898},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"18898":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"18899":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"18900":{"style":{"__isSmartRef__":true,"id":18901},"morph":{"__isSmartRef__":true,"id":18886},"chunkOwner":{"__isSmartRef__":true,"id":18886},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18901":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18902":{"morph":{"__isSmartRef__":true,"id":18886},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18903":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"18904":{"morph":{"__isSmartRef__":true,"id":18885},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18905":{},"18906":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":18907}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"18907":{"date":{"__isSmartRef__":true,"id":18908},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"18908":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"18909":{"buildChildNodes":{"__isSmartRef__":true,"id":18910},"getGameTree":{"__isSmartRef__":true,"id":18914},"getLevel":{"__isSmartRef__":true,"id":18918},"getLevelWeight":{"__isSmartRef__":true,"id":18922},"getWeight":{"__isSmartRef__":true,"id":18926},"setNode":{"__isSmartRef__":true,"id":18930},"setParent":{"__isSmartRef__":true,"id":18934},"getParent":{"__isSmartRef__":true,"id":18938},"deactivate":{"__isSmartRef__":true,"id":18942},"blink":{"__isSmartRef__":true,"id":18946},"ABPreturn":{"__isSmartRef__":true,"id":18950},"ABPstart":{"__isSmartRef__":true,"id":18954},"ABPcontinue":{"__isSmartRef__":true,"id":18958},"ABPshowValue":{"__isSmartRef__":true,"id":18962},"ABPgetValue":{"__isSmartRef__":true,"id":18966},"ABPhasChildNodes":{"__isSmartRef__":true,"id":18970},"onMouseDown":{"__isSmartRef__":true,"id":18974},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":18982},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":18986},"ABPmarkAsDone":{"__isSmartRef__":true,"id":18990},"ABPmarkAsActive":{"__isSmartRef__":true,"id":18994},"getStateMorph":{"__isSmartRef__":true,"id":18998},"showState":{"__isSmartRef__":true,"id":19002},"ABPfailHard":{"__isSmartRef__":true,"id":19006},"markFinalDrawWith":{"__isSmartRef__":true,"id":19010}},"18910":{"varMapping":{"__isSmartRef__":true,"id":18911},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":18912},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18911":{"this":{"__isSmartRef__":true,"id":18885}},"18912":{"timestamp":{"__isSmartRef__":true,"id":18913},"user":"sebastianwoinar","tags":[]},"18913":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"18914":{"varMapping":{"__isSmartRef__":true,"id":18915},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":18916},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18915":{"this":{"__isSmartRef__":true,"id":18885}},"18916":{"timestamp":{"__isSmartRef__":true,"id":18917},"user":"sebastianwoinar","tags":[]},"18917":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18918":{"varMapping":{"__isSmartRef__":true,"id":18919},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":18920},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18919":{"this":{"__isSmartRef__":true,"id":18885}},"18920":{"timestamp":{"__isSmartRef__":true,"id":18921},"user":"sebastianwoinar","tags":[]},"18921":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18922":{"varMapping":{"__isSmartRef__":true,"id":18923},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18924},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18923":{"this":{"__isSmartRef__":true,"id":18885}},"18924":{"timestamp":{"__isSmartRef__":true,"id":18925},"user":"sebastianwoinar","tags":[]},"18925":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18926":{"varMapping":{"__isSmartRef__":true,"id":18927},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":18928},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18927":{"this":{"__isSmartRef__":true,"id":18885}},"18928":{"timestamp":{"__isSmartRef__":true,"id":18929},"user":"sebastianwoinar","tags":[]},"18929":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18930":{"varMapping":{"__isSmartRef__":true,"id":18931},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":18932},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18931":{"this":{"__isSmartRef__":true,"id":18885}},"18932":{"timestamp":{"__isSmartRef__":true,"id":18933},"user":"sebastianwoinar","tags":[]},"18933":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18934":{"varMapping":{"__isSmartRef__":true,"id":18935},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":18936},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18935":{"this":{"__isSmartRef__":true,"id":18885}},"18936":{"timestamp":{"__isSmartRef__":true,"id":18937},"user":"sebastianwoinar","tags":[]},"18937":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"18938":{"varMapping":{"__isSmartRef__":true,"id":18939},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":18940},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18939":{"this":{"__isSmartRef__":true,"id":18885}},"18940":{"timestamp":{"__isSmartRef__":true,"id":18941},"user":"sebastianwoinar","tags":[]},"18941":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"18942":{"varMapping":{"__isSmartRef__":true,"id":18943},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":18944},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18943":{"this":{"__isSmartRef__":true,"id":18885}},"18944":{"timestamp":{"__isSmartRef__":true,"id":18945},"user":"sebastianwoinar","tags":[]},"18945":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"18946":{"varMapping":{"__isSmartRef__":true,"id":18947},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":18948},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18947":{"this":{"__isSmartRef__":true,"id":18885}},"18948":{"timestamp":{"__isSmartRef__":true,"id":18949},"user":"sebastianwoinar","tags":[]},"18949":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"18950":{"varMapping":{"__isSmartRef__":true,"id":18951},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":18952},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18951":{"this":{"__isSmartRef__":true,"id":18885}},"18952":{"timestamp":{"__isSmartRef__":true,"id":18953},"user":"sebastianwoinar","tags":[]},"18953":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"18954":{"varMapping":{"__isSmartRef__":true,"id":18955},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":18956},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18955":{"this":{"__isSmartRef__":true,"id":18885}},"18956":{"timestamp":{"__isSmartRef__":true,"id":18957},"user":"sebastianwoinar","tags":[]},"18957":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"18958":{"varMapping":{"__isSmartRef__":true,"id":18959},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":18960},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18959":{"this":{"__isSmartRef__":true,"id":18885}},"18960":{"timestamp":{"__isSmartRef__":true,"id":18961},"user":"sebastianwoinar","tags":[]},"18961":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"18962":{"varMapping":{"__isSmartRef__":true,"id":18963},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":18964},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18963":{"this":{"__isSmartRef__":true,"id":18885}},"18964":{"timestamp":{"__isSmartRef__":true,"id":18965},"user":"sebastianwoinar","tags":[]},"18965":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"18966":{"varMapping":{"__isSmartRef__":true,"id":18967},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":18968},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18967":{"this":{"__isSmartRef__":true,"id":18885}},"18968":{"timestamp":{"__isSmartRef__":true,"id":18969},"user":"sebastianwoinar","tags":[]},"18969":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"18970":{"varMapping":{"__isSmartRef__":true,"id":18971},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":18972},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18971":{"this":{"__isSmartRef__":true,"id":18885}},"18972":{"timestamp":{"__isSmartRef__":true,"id":18973},"user":"sebastianwoinar","tags":[]},"18973":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"18974":{"varMapping":{"__isSmartRef__":true,"id":18975},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":18980},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18975":{"this":{"__isSmartRef__":true,"id":18885},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18976}},"18976":{"$super":{"__isSmartRef__":true,"id":18977}},"18977":{"varMapping":{"__isSmartRef__":true,"id":18978},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18979},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18978":{"obj":{"__isSmartRef__":true,"id":18885},"name":"onMouseDown"},"18979":{},"18980":{"timestamp":{"__isSmartRef__":true,"id":18981},"user":"sebastianwoinar","tags":[]},"18981":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"18982":{"varMapping":{"__isSmartRef__":true,"id":18983},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":18984},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18983":{"this":{"__isSmartRef__":true,"id":18885}},"18984":{"timestamp":{"__isSmartRef__":true,"id":18985},"user":"sebastianwoinar","tags":[]},"18985":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"18986":{"varMapping":{"__isSmartRef__":true,"id":18987},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":18988},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18987":{"this":{"__isSmartRef__":true,"id":18885}},"18988":{"timestamp":{"__isSmartRef__":true,"id":18989},"user":"sebastianwoinar","tags":[]},"18989":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"18990":{"varMapping":{"__isSmartRef__":true,"id":18991},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":18992},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18991":{"this":{"__isSmartRef__":true,"id":18885}},"18992":{"timestamp":{"__isSmartRef__":true,"id":18993},"user":"sebastianwoinar","tags":[]},"18993":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"18994":{"varMapping":{"__isSmartRef__":true,"id":18995},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":18996},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18995":{"this":{"__isSmartRef__":true,"id":18885}},"18996":{"timestamp":{"__isSmartRef__":true,"id":18997},"user":"sebastianwoinar","tags":[]},"18997":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"18998":{"varMapping":{"__isSmartRef__":true,"id":18999},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":19000},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18999":{"this":{"__isSmartRef__":true,"id":18885}},"19000":{"timestamp":{"__isSmartRef__":true,"id":19001},"user":"sebastianwoinar","tags":[]},"19001":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"19002":{"varMapping":{"__isSmartRef__":true,"id":19003},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":19004},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19003":{"this":{"__isSmartRef__":true,"id":18885}},"19004":{"timestamp":{"__isSmartRef__":true,"id":19005},"user":"sebastianwoinar","tags":[]},"19005":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"19006":{"varMapping":{"__isSmartRef__":true,"id":19007},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":19008},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19007":{"this":{"__isSmartRef__":true,"id":18885}},"19008":{"timestamp":{"__isSmartRef__":true,"id":19009},"user":"sebastianwoinar","tags":[]},"19009":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"19010":{"varMapping":{"__isSmartRef__":true,"id":19011},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":19012},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19011":{"this":{"__isSmartRef__":true,"id":18885}},"19012":{"timestamp":{"__isSmartRef__":true,"id":19013},"user":"sebastianwoinar","tags":[]},"19013":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"19014":{"submorphs":[{"__isSmartRef__":true,"id":19015}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19032},"id":"67D9D920-F063-46EF-9F2A-FF3BC9B9002B","eventHandler":{"__isSmartRef__":true,"id":19033},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":19034},"name":"node106","partsBinMetaInfo":{"__isSmartRef__":true,"id":19035},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5641},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":18861},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19038},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(482.0,210.0)"},"19015":{"submorphs":[],"scripts":[],"id":"401624EB-A0BA-4CEC-840F-86C7B21D683D","shape":{"__isSmartRef__":true,"id":19016},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":19017},"textChunks":[{"__isSmartRef__":true,"id":19029}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":19031},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":19014},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"19016":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"19017":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":19018},{"__isSmartRef__":true,"id":19020},{"__isSmartRef__":true,"id":19022},{"__isSmartRef__":true,"id":19024},{"__isSmartRef__":true,"id":19026}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":19028},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"19018":{"date":{"__isSmartRef__":true,"id":19019},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"19019":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"19020":{"date":{"__isSmartRef__":true,"id":19021},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"19021":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"19022":{"date":{"__isSmartRef__":true,"id":19023},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"19023":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"19024":{"date":{"__isSmartRef__":true,"id":19025},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"19025":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"19026":{"date":{"__isSmartRef__":true,"id":19027},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"19027":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"19028":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"19029":{"style":{"__isSmartRef__":true,"id":19030},"morph":{"__isSmartRef__":true,"id":19015},"chunkOwner":{"__isSmartRef__":true,"id":19015},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19030":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19031":{"morph":{"__isSmartRef__":true,"id":19015},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19032":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"19033":{"morph":{"__isSmartRef__":true,"id":19014},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19034":{},"19035":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":19036}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"19036":{"date":{"__isSmartRef__":true,"id":19037},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"19037":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"19038":{"buildChildNodes":{"__isSmartRef__":true,"id":19039},"getGameTree":{"__isSmartRef__":true,"id":19043},"getLevel":{"__isSmartRef__":true,"id":19047},"getLevelWeight":{"__isSmartRef__":true,"id":19051},"getWeight":{"__isSmartRef__":true,"id":19055},"setNode":{"__isSmartRef__":true,"id":19059},"setParent":{"__isSmartRef__":true,"id":19063},"getParent":{"__isSmartRef__":true,"id":19067},"deactivate":{"__isSmartRef__":true,"id":19071},"blink":{"__isSmartRef__":true,"id":19075},"ABPreturn":{"__isSmartRef__":true,"id":19079},"ABPstart":{"__isSmartRef__":true,"id":19083},"ABPcontinue":{"__isSmartRef__":true,"id":19087},"ABPshowValue":{"__isSmartRef__":true,"id":19091},"ABPgetValue":{"__isSmartRef__":true,"id":19095},"ABPhasChildNodes":{"__isSmartRef__":true,"id":19099},"onMouseDown":{"__isSmartRef__":true,"id":19103},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":19111},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":19115},"ABPmarkAsDone":{"__isSmartRef__":true,"id":19119},"ABPmarkAsActive":{"__isSmartRef__":true,"id":19123},"getStateMorph":{"__isSmartRef__":true,"id":19127},"showState":{"__isSmartRef__":true,"id":19131},"ABPfailHard":{"__isSmartRef__":true,"id":19135},"markFinalDrawWith":{"__isSmartRef__":true,"id":19139}},"19039":{"varMapping":{"__isSmartRef__":true,"id":19040},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":19041},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19040":{"this":{"__isSmartRef__":true,"id":19014}},"19041":{"timestamp":{"__isSmartRef__":true,"id":19042},"user":"sebastianwoinar","tags":[]},"19042":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"19043":{"varMapping":{"__isSmartRef__":true,"id":19044},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":19045},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19044":{"this":{"__isSmartRef__":true,"id":19014}},"19045":{"timestamp":{"__isSmartRef__":true,"id":19046},"user":"sebastianwoinar","tags":[]},"19046":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19047":{"varMapping":{"__isSmartRef__":true,"id":19048},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":19049},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19048":{"this":{"__isSmartRef__":true,"id":19014}},"19049":{"timestamp":{"__isSmartRef__":true,"id":19050},"user":"sebastianwoinar","tags":[]},"19050":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19051":{"varMapping":{"__isSmartRef__":true,"id":19052},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":19053},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19052":{"this":{"__isSmartRef__":true,"id":19014}},"19053":{"timestamp":{"__isSmartRef__":true,"id":19054},"user":"sebastianwoinar","tags":[]},"19054":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19055":{"varMapping":{"__isSmartRef__":true,"id":19056},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":19057},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19056":{"this":{"__isSmartRef__":true,"id":19014}},"19057":{"timestamp":{"__isSmartRef__":true,"id":19058},"user":"sebastianwoinar","tags":[]},"19058":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19059":{"varMapping":{"__isSmartRef__":true,"id":19060},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":19061},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19060":{"this":{"__isSmartRef__":true,"id":19014}},"19061":{"timestamp":{"__isSmartRef__":true,"id":19062},"user":"sebastianwoinar","tags":[]},"19062":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19063":{"varMapping":{"__isSmartRef__":true,"id":19064},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":19065},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19064":{"this":{"__isSmartRef__":true,"id":19014}},"19065":{"timestamp":{"__isSmartRef__":true,"id":19066},"user":"sebastianwoinar","tags":[]},"19066":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19067":{"varMapping":{"__isSmartRef__":true,"id":19068},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":19069},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19068":{"this":{"__isSmartRef__":true,"id":19014}},"19069":{"timestamp":{"__isSmartRef__":true,"id":19070},"user":"sebastianwoinar","tags":[]},"19070":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"19071":{"varMapping":{"__isSmartRef__":true,"id":19072},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":19073},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19072":{"this":{"__isSmartRef__":true,"id":19014}},"19073":{"timestamp":{"__isSmartRef__":true,"id":19074},"user":"sebastianwoinar","tags":[]},"19074":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"19075":{"varMapping":{"__isSmartRef__":true,"id":19076},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":19077},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19076":{"this":{"__isSmartRef__":true,"id":19014}},"19077":{"timestamp":{"__isSmartRef__":true,"id":19078},"user":"sebastianwoinar","tags":[]},"19078":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"19079":{"varMapping":{"__isSmartRef__":true,"id":19080},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":19081},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19080":{"this":{"__isSmartRef__":true,"id":19014}},"19081":{"timestamp":{"__isSmartRef__":true,"id":19082},"user":"sebastianwoinar","tags":[]},"19082":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"19083":{"varMapping":{"__isSmartRef__":true,"id":19084},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":19085},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19084":{"this":{"__isSmartRef__":true,"id":19014}},"19085":{"timestamp":{"__isSmartRef__":true,"id":19086},"user":"sebastianwoinar","tags":[]},"19086":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"19087":{"varMapping":{"__isSmartRef__":true,"id":19088},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":19089},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19088":{"this":{"__isSmartRef__":true,"id":19014}},"19089":{"timestamp":{"__isSmartRef__":true,"id":19090},"user":"sebastianwoinar","tags":[]},"19090":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"19091":{"varMapping":{"__isSmartRef__":true,"id":19092},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":19093},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19092":{"this":{"__isSmartRef__":true,"id":19014}},"19093":{"timestamp":{"__isSmartRef__":true,"id":19094},"user":"sebastianwoinar","tags":[]},"19094":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"19095":{"varMapping":{"__isSmartRef__":true,"id":19096},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":19097},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19096":{"this":{"__isSmartRef__":true,"id":19014}},"19097":{"timestamp":{"__isSmartRef__":true,"id":19098},"user":"sebastianwoinar","tags":[]},"19098":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"19099":{"varMapping":{"__isSmartRef__":true,"id":19100},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":19101},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19100":{"this":{"__isSmartRef__":true,"id":19014}},"19101":{"timestamp":{"__isSmartRef__":true,"id":19102},"user":"sebastianwoinar","tags":[]},"19102":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"19103":{"varMapping":{"__isSmartRef__":true,"id":19104},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":19109},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19104":{"this":{"__isSmartRef__":true,"id":19014},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19105}},"19105":{"$super":{"__isSmartRef__":true,"id":19106}},"19106":{"varMapping":{"__isSmartRef__":true,"id":19107},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19108},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19107":{"obj":{"__isSmartRef__":true,"id":19014},"name":"onMouseDown"},"19108":{},"19109":{"timestamp":{"__isSmartRef__":true,"id":19110},"user":"sebastianwoinar","tags":[]},"19110":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"19111":{"varMapping":{"__isSmartRef__":true,"id":19112},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":19113},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19112":{"this":{"__isSmartRef__":true,"id":19014}},"19113":{"timestamp":{"__isSmartRef__":true,"id":19114},"user":"sebastianwoinar","tags":[]},"19114":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"19115":{"varMapping":{"__isSmartRef__":true,"id":19116},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":19117},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19116":{"this":{"__isSmartRef__":true,"id":19014}},"19117":{"timestamp":{"__isSmartRef__":true,"id":19118},"user":"sebastianwoinar","tags":[]},"19118":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"19119":{"varMapping":{"__isSmartRef__":true,"id":19120},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":19121},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19120":{"this":{"__isSmartRef__":true,"id":19014}},"19121":{"timestamp":{"__isSmartRef__":true,"id":19122},"user":"sebastianwoinar","tags":[]},"19122":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"19123":{"varMapping":{"__isSmartRef__":true,"id":19124},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":19125},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19124":{"this":{"__isSmartRef__":true,"id":19014}},"19125":{"timestamp":{"__isSmartRef__":true,"id":19126},"user":"sebastianwoinar","tags":[]},"19126":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"19127":{"varMapping":{"__isSmartRef__":true,"id":19128},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":19129},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19128":{"this":{"__isSmartRef__":true,"id":19014}},"19129":{"timestamp":{"__isSmartRef__":true,"id":19130},"user":"sebastianwoinar","tags":[]},"19130":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"19131":{"varMapping":{"__isSmartRef__":true,"id":19132},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":19133},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19132":{"this":{"__isSmartRef__":true,"id":19014}},"19133":{"timestamp":{"__isSmartRef__":true,"id":19134},"user":"sebastianwoinar","tags":[]},"19134":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"19135":{"varMapping":{"__isSmartRef__":true,"id":19136},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":19137},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19136":{"this":{"__isSmartRef__":true,"id":19014}},"19137":{"timestamp":{"__isSmartRef__":true,"id":19138},"user":"sebastianwoinar","tags":[]},"19138":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"19139":{"varMapping":{"__isSmartRef__":true,"id":19140},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":19141},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19140":{"this":{"__isSmartRef__":true,"id":19014}},"19141":{"timestamp":{"__isSmartRef__":true,"id":19142},"user":"sebastianwoinar","tags":[]},"19142":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"19143":{"submorphs":[{"__isSmartRef__":true,"id":19144}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19161},"id":"99EE4739-E967-410E-B30D-CB3E939141F4","eventHandler":{"__isSmartRef__":true,"id":19162},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":19163},"name":"node107","partsBinMetaInfo":{"__isSmartRef__":true,"id":19164},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5643},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":18861},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19167},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(487.2,210.0)"},"19144":{"submorphs":[],"scripts":[],"id":"2941BA2D-3764-4A7B-BAFC-41FE3DC48BA0","shape":{"__isSmartRef__":true,"id":19145},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":19146},"textChunks":[{"__isSmartRef__":true,"id":19158}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":19160},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":19143},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"19145":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"19146":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":19147},{"__isSmartRef__":true,"id":19149},{"__isSmartRef__":true,"id":19151},{"__isSmartRef__":true,"id":19153},{"__isSmartRef__":true,"id":19155}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":19157},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"19147":{"date":{"__isSmartRef__":true,"id":19148},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"19148":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"19149":{"date":{"__isSmartRef__":true,"id":19150},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"19150":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"19151":{"date":{"__isSmartRef__":true,"id":19152},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"19152":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"19153":{"date":{"__isSmartRef__":true,"id":19154},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"19154":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"19155":{"date":{"__isSmartRef__":true,"id":19156},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"19156":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"19157":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"19158":{"style":{"__isSmartRef__":true,"id":19159},"morph":{"__isSmartRef__":true,"id":19144},"chunkOwner":{"__isSmartRef__":true,"id":19144},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19159":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19160":{"morph":{"__isSmartRef__":true,"id":19144},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19161":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"19162":{"morph":{"__isSmartRef__":true,"id":19143},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19163":{},"19164":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":19165}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"19165":{"date":{"__isSmartRef__":true,"id":19166},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"19166":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"19167":{"buildChildNodes":{"__isSmartRef__":true,"id":19168},"getGameTree":{"__isSmartRef__":true,"id":19172},"getLevel":{"__isSmartRef__":true,"id":19176},"getLevelWeight":{"__isSmartRef__":true,"id":19180},"getWeight":{"__isSmartRef__":true,"id":19184},"setNode":{"__isSmartRef__":true,"id":19188},"setParent":{"__isSmartRef__":true,"id":19192},"getParent":{"__isSmartRef__":true,"id":19196},"deactivate":{"__isSmartRef__":true,"id":19200},"blink":{"__isSmartRef__":true,"id":19204},"ABPreturn":{"__isSmartRef__":true,"id":19208},"ABPstart":{"__isSmartRef__":true,"id":19212},"ABPcontinue":{"__isSmartRef__":true,"id":19216},"ABPshowValue":{"__isSmartRef__":true,"id":19220},"ABPgetValue":{"__isSmartRef__":true,"id":19224},"ABPhasChildNodes":{"__isSmartRef__":true,"id":19228},"onMouseDown":{"__isSmartRef__":true,"id":19232},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":19240},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":19244},"ABPmarkAsDone":{"__isSmartRef__":true,"id":19248},"ABPmarkAsActive":{"__isSmartRef__":true,"id":19252},"getStateMorph":{"__isSmartRef__":true,"id":19256},"showState":{"__isSmartRef__":true,"id":19260},"ABPfailHard":{"__isSmartRef__":true,"id":19264},"markFinalDrawWith":{"__isSmartRef__":true,"id":19268}},"19168":{"varMapping":{"__isSmartRef__":true,"id":19169},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":19170},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19169":{"this":{"__isSmartRef__":true,"id":19143}},"19170":{"timestamp":{"__isSmartRef__":true,"id":19171},"user":"sebastianwoinar","tags":[]},"19171":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"19172":{"varMapping":{"__isSmartRef__":true,"id":19173},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":19174},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19173":{"this":{"__isSmartRef__":true,"id":19143}},"19174":{"timestamp":{"__isSmartRef__":true,"id":19175},"user":"sebastianwoinar","tags":[]},"19175":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19176":{"varMapping":{"__isSmartRef__":true,"id":19177},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":19178},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19177":{"this":{"__isSmartRef__":true,"id":19143}},"19178":{"timestamp":{"__isSmartRef__":true,"id":19179},"user":"sebastianwoinar","tags":[]},"19179":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19180":{"varMapping":{"__isSmartRef__":true,"id":19181},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":19182},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19181":{"this":{"__isSmartRef__":true,"id":19143}},"19182":{"timestamp":{"__isSmartRef__":true,"id":19183},"user":"sebastianwoinar","tags":[]},"19183":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19184":{"varMapping":{"__isSmartRef__":true,"id":19185},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":19186},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19185":{"this":{"__isSmartRef__":true,"id":19143}},"19186":{"timestamp":{"__isSmartRef__":true,"id":19187},"user":"sebastianwoinar","tags":[]},"19187":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19188":{"varMapping":{"__isSmartRef__":true,"id":19189},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":19190},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19189":{"this":{"__isSmartRef__":true,"id":19143}},"19190":{"timestamp":{"__isSmartRef__":true,"id":19191},"user":"sebastianwoinar","tags":[]},"19191":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19192":{"varMapping":{"__isSmartRef__":true,"id":19193},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":19194},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19193":{"this":{"__isSmartRef__":true,"id":19143}},"19194":{"timestamp":{"__isSmartRef__":true,"id":19195},"user":"sebastianwoinar","tags":[]},"19195":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19196":{"varMapping":{"__isSmartRef__":true,"id":19197},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":19198},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19197":{"this":{"__isSmartRef__":true,"id":19143}},"19198":{"timestamp":{"__isSmartRef__":true,"id":19199},"user":"sebastianwoinar","tags":[]},"19199":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"19200":{"varMapping":{"__isSmartRef__":true,"id":19201},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":19202},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19201":{"this":{"__isSmartRef__":true,"id":19143}},"19202":{"timestamp":{"__isSmartRef__":true,"id":19203},"user":"sebastianwoinar","tags":[]},"19203":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"19204":{"varMapping":{"__isSmartRef__":true,"id":19205},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":19206},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19205":{"this":{"__isSmartRef__":true,"id":19143}},"19206":{"timestamp":{"__isSmartRef__":true,"id":19207},"user":"sebastianwoinar","tags":[]},"19207":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"19208":{"varMapping":{"__isSmartRef__":true,"id":19209},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":19210},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19209":{"this":{"__isSmartRef__":true,"id":19143}},"19210":{"timestamp":{"__isSmartRef__":true,"id":19211},"user":"sebastianwoinar","tags":[]},"19211":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"19212":{"varMapping":{"__isSmartRef__":true,"id":19213},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":19214},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19213":{"this":{"__isSmartRef__":true,"id":19143}},"19214":{"timestamp":{"__isSmartRef__":true,"id":19215},"user":"sebastianwoinar","tags":[]},"19215":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"19216":{"varMapping":{"__isSmartRef__":true,"id":19217},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":19218},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19217":{"this":{"__isSmartRef__":true,"id":19143}},"19218":{"timestamp":{"__isSmartRef__":true,"id":19219},"user":"sebastianwoinar","tags":[]},"19219":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"19220":{"varMapping":{"__isSmartRef__":true,"id":19221},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":19222},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19221":{"this":{"__isSmartRef__":true,"id":19143}},"19222":{"timestamp":{"__isSmartRef__":true,"id":19223},"user":"sebastianwoinar","tags":[]},"19223":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"19224":{"varMapping":{"__isSmartRef__":true,"id":19225},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":19226},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19225":{"this":{"__isSmartRef__":true,"id":19143}},"19226":{"timestamp":{"__isSmartRef__":true,"id":19227},"user":"sebastianwoinar","tags":[]},"19227":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"19228":{"varMapping":{"__isSmartRef__":true,"id":19229},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":19230},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19229":{"this":{"__isSmartRef__":true,"id":19143}},"19230":{"timestamp":{"__isSmartRef__":true,"id":19231},"user":"sebastianwoinar","tags":[]},"19231":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"19232":{"varMapping":{"__isSmartRef__":true,"id":19233},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":19238},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19233":{"this":{"__isSmartRef__":true,"id":19143},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19234}},"19234":{"$super":{"__isSmartRef__":true,"id":19235}},"19235":{"varMapping":{"__isSmartRef__":true,"id":19236},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19237},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19236":{"obj":{"__isSmartRef__":true,"id":19143},"name":"onMouseDown"},"19237":{},"19238":{"timestamp":{"__isSmartRef__":true,"id":19239},"user":"sebastianwoinar","tags":[]},"19239":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"19240":{"varMapping":{"__isSmartRef__":true,"id":19241},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":19242},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19241":{"this":{"__isSmartRef__":true,"id":19143}},"19242":{"timestamp":{"__isSmartRef__":true,"id":19243},"user":"sebastianwoinar","tags":[]},"19243":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"19244":{"varMapping":{"__isSmartRef__":true,"id":19245},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":19246},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19245":{"this":{"__isSmartRef__":true,"id":19143}},"19246":{"timestamp":{"__isSmartRef__":true,"id":19247},"user":"sebastianwoinar","tags":[]},"19247":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"19248":{"varMapping":{"__isSmartRef__":true,"id":19249},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":19250},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19249":{"this":{"__isSmartRef__":true,"id":19143}},"19250":{"timestamp":{"__isSmartRef__":true,"id":19251},"user":"sebastianwoinar","tags":[]},"19251":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"19252":{"varMapping":{"__isSmartRef__":true,"id":19253},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":19254},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19253":{"this":{"__isSmartRef__":true,"id":19143}},"19254":{"timestamp":{"__isSmartRef__":true,"id":19255},"user":"sebastianwoinar","tags":[]},"19255":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"19256":{"varMapping":{"__isSmartRef__":true,"id":19257},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":19258},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19257":{"this":{"__isSmartRef__":true,"id":19143}},"19258":{"timestamp":{"__isSmartRef__":true,"id":19259},"user":"sebastianwoinar","tags":[]},"19259":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"19260":{"varMapping":{"__isSmartRef__":true,"id":19261},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":19262},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19261":{"this":{"__isSmartRef__":true,"id":19143}},"19262":{"timestamp":{"__isSmartRef__":true,"id":19263},"user":"sebastianwoinar","tags":[]},"19263":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"19264":{"varMapping":{"__isSmartRef__":true,"id":19265},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":19266},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19265":{"this":{"__isSmartRef__":true,"id":19143}},"19266":{"timestamp":{"__isSmartRef__":true,"id":19267},"user":"sebastianwoinar","tags":[]},"19267":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"19268":{"varMapping":{"__isSmartRef__":true,"id":19269},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":19270},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19269":{"this":{"__isSmartRef__":true,"id":19143}},"19270":{"timestamp":{"__isSmartRef__":true,"id":19271},"user":"sebastianwoinar","tags":[]},"19271":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"19272":{"submorphs":[{"__isSmartRef__":true,"id":19273}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19290},"id":"8A253CEB-6CEA-4374-AD67-0361FBD8F4F2","eventHandler":{"__isSmartRef__":true,"id":19291},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":19292},"name":"node108","partsBinMetaInfo":{"__isSmartRef__":true,"id":19293},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5645},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":18861},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19296},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(492.4,210.0)"},"19273":{"submorphs":[],"scripts":[],"id":"B3AF86B0-6C0A-4199-A7A1-98A6DDB440DB","shape":{"__isSmartRef__":true,"id":19274},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":19275},"textChunks":[{"__isSmartRef__":true,"id":19287}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":19289},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":19272},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"19274":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"19275":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":19276},{"__isSmartRef__":true,"id":19278},{"__isSmartRef__":true,"id":19280},{"__isSmartRef__":true,"id":19282},{"__isSmartRef__":true,"id":19284}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":19286},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"19276":{"date":{"__isSmartRef__":true,"id":19277},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"19277":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"19278":{"date":{"__isSmartRef__":true,"id":19279},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"19279":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"19280":{"date":{"__isSmartRef__":true,"id":19281},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"19281":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"19282":{"date":{"__isSmartRef__":true,"id":19283},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"19283":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"19284":{"date":{"__isSmartRef__":true,"id":19285},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"19285":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"19286":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"19287":{"style":{"__isSmartRef__":true,"id":19288},"morph":{"__isSmartRef__":true,"id":19273},"chunkOwner":{"__isSmartRef__":true,"id":19273},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19288":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19289":{"morph":{"__isSmartRef__":true,"id":19273},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19290":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"19291":{"morph":{"__isSmartRef__":true,"id":19272},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19292":{},"19293":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":19294}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"19294":{"date":{"__isSmartRef__":true,"id":19295},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"19295":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"19296":{"buildChildNodes":{"__isSmartRef__":true,"id":19297},"getGameTree":{"__isSmartRef__":true,"id":19301},"getLevel":{"__isSmartRef__":true,"id":19305},"getLevelWeight":{"__isSmartRef__":true,"id":19309},"getWeight":{"__isSmartRef__":true,"id":19313},"setNode":{"__isSmartRef__":true,"id":19317},"setParent":{"__isSmartRef__":true,"id":19321},"getParent":{"__isSmartRef__":true,"id":19325},"deactivate":{"__isSmartRef__":true,"id":19329},"blink":{"__isSmartRef__":true,"id":19333},"ABPreturn":{"__isSmartRef__":true,"id":19337},"ABPstart":{"__isSmartRef__":true,"id":19341},"ABPcontinue":{"__isSmartRef__":true,"id":19345},"ABPshowValue":{"__isSmartRef__":true,"id":19349},"ABPgetValue":{"__isSmartRef__":true,"id":19353},"ABPhasChildNodes":{"__isSmartRef__":true,"id":19357},"onMouseDown":{"__isSmartRef__":true,"id":19361},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":19369},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":19373},"ABPmarkAsDone":{"__isSmartRef__":true,"id":19377},"ABPmarkAsActive":{"__isSmartRef__":true,"id":19381},"getStateMorph":{"__isSmartRef__":true,"id":19385},"showState":{"__isSmartRef__":true,"id":19389},"ABPfailHard":{"__isSmartRef__":true,"id":19393},"markFinalDrawWith":{"__isSmartRef__":true,"id":19397}},"19297":{"varMapping":{"__isSmartRef__":true,"id":19298},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":19299},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19298":{"this":{"__isSmartRef__":true,"id":19272}},"19299":{"timestamp":{"__isSmartRef__":true,"id":19300},"user":"sebastianwoinar","tags":[]},"19300":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"19301":{"varMapping":{"__isSmartRef__":true,"id":19302},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":19303},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19302":{"this":{"__isSmartRef__":true,"id":19272}},"19303":{"timestamp":{"__isSmartRef__":true,"id":19304},"user":"sebastianwoinar","tags":[]},"19304":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19305":{"varMapping":{"__isSmartRef__":true,"id":19306},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":19307},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19306":{"this":{"__isSmartRef__":true,"id":19272}},"19307":{"timestamp":{"__isSmartRef__":true,"id":19308},"user":"sebastianwoinar","tags":[]},"19308":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19309":{"varMapping":{"__isSmartRef__":true,"id":19310},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":19311},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19310":{"this":{"__isSmartRef__":true,"id":19272}},"19311":{"timestamp":{"__isSmartRef__":true,"id":19312},"user":"sebastianwoinar","tags":[]},"19312":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19313":{"varMapping":{"__isSmartRef__":true,"id":19314},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":19315},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19314":{"this":{"__isSmartRef__":true,"id":19272}},"19315":{"timestamp":{"__isSmartRef__":true,"id":19316},"user":"sebastianwoinar","tags":[]},"19316":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19317":{"varMapping":{"__isSmartRef__":true,"id":19318},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":19319},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19318":{"this":{"__isSmartRef__":true,"id":19272}},"19319":{"timestamp":{"__isSmartRef__":true,"id":19320},"user":"sebastianwoinar","tags":[]},"19320":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19321":{"varMapping":{"__isSmartRef__":true,"id":19322},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":19323},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19322":{"this":{"__isSmartRef__":true,"id":19272}},"19323":{"timestamp":{"__isSmartRef__":true,"id":19324},"user":"sebastianwoinar","tags":[]},"19324":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19325":{"varMapping":{"__isSmartRef__":true,"id":19326},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":19327},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19326":{"this":{"__isSmartRef__":true,"id":19272}},"19327":{"timestamp":{"__isSmartRef__":true,"id":19328},"user":"sebastianwoinar","tags":[]},"19328":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"19329":{"varMapping":{"__isSmartRef__":true,"id":19330},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":19331},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19330":{"this":{"__isSmartRef__":true,"id":19272}},"19331":{"timestamp":{"__isSmartRef__":true,"id":19332},"user":"sebastianwoinar","tags":[]},"19332":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"19333":{"varMapping":{"__isSmartRef__":true,"id":19334},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":19335},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19334":{"this":{"__isSmartRef__":true,"id":19272}},"19335":{"timestamp":{"__isSmartRef__":true,"id":19336},"user":"sebastianwoinar","tags":[]},"19336":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"19337":{"varMapping":{"__isSmartRef__":true,"id":19338},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":19339},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19338":{"this":{"__isSmartRef__":true,"id":19272}},"19339":{"timestamp":{"__isSmartRef__":true,"id":19340},"user":"sebastianwoinar","tags":[]},"19340":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"19341":{"varMapping":{"__isSmartRef__":true,"id":19342},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":19343},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19342":{"this":{"__isSmartRef__":true,"id":19272}},"19343":{"timestamp":{"__isSmartRef__":true,"id":19344},"user":"sebastianwoinar","tags":[]},"19344":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"19345":{"varMapping":{"__isSmartRef__":true,"id":19346},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":19347},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19346":{"this":{"__isSmartRef__":true,"id":19272}},"19347":{"timestamp":{"__isSmartRef__":true,"id":19348},"user":"sebastianwoinar","tags":[]},"19348":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"19349":{"varMapping":{"__isSmartRef__":true,"id":19350},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":19351},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19350":{"this":{"__isSmartRef__":true,"id":19272}},"19351":{"timestamp":{"__isSmartRef__":true,"id":19352},"user":"sebastianwoinar","tags":[]},"19352":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"19353":{"varMapping":{"__isSmartRef__":true,"id":19354},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":19355},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19354":{"this":{"__isSmartRef__":true,"id":19272}},"19355":{"timestamp":{"__isSmartRef__":true,"id":19356},"user":"sebastianwoinar","tags":[]},"19356":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"19357":{"varMapping":{"__isSmartRef__":true,"id":19358},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":19359},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19358":{"this":{"__isSmartRef__":true,"id":19272}},"19359":{"timestamp":{"__isSmartRef__":true,"id":19360},"user":"sebastianwoinar","tags":[]},"19360":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"19361":{"varMapping":{"__isSmartRef__":true,"id":19362},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":19367},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19362":{"this":{"__isSmartRef__":true,"id":19272},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19363}},"19363":{"$super":{"__isSmartRef__":true,"id":19364}},"19364":{"varMapping":{"__isSmartRef__":true,"id":19365},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19366},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19365":{"obj":{"__isSmartRef__":true,"id":19272},"name":"onMouseDown"},"19366":{},"19367":{"timestamp":{"__isSmartRef__":true,"id":19368},"user":"sebastianwoinar","tags":[]},"19368":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"19369":{"varMapping":{"__isSmartRef__":true,"id":19370},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":19371},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19370":{"this":{"__isSmartRef__":true,"id":19272}},"19371":{"timestamp":{"__isSmartRef__":true,"id":19372},"user":"sebastianwoinar","tags":[]},"19372":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"19373":{"varMapping":{"__isSmartRef__":true,"id":19374},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":19375},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19374":{"this":{"__isSmartRef__":true,"id":19272}},"19375":{"timestamp":{"__isSmartRef__":true,"id":19376},"user":"sebastianwoinar","tags":[]},"19376":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"19377":{"varMapping":{"__isSmartRef__":true,"id":19378},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":19379},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19378":{"this":{"__isSmartRef__":true,"id":19272}},"19379":{"timestamp":{"__isSmartRef__":true,"id":19380},"user":"sebastianwoinar","tags":[]},"19380":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"19381":{"varMapping":{"__isSmartRef__":true,"id":19382},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":19383},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19382":{"this":{"__isSmartRef__":true,"id":19272}},"19383":{"timestamp":{"__isSmartRef__":true,"id":19384},"user":"sebastianwoinar","tags":[]},"19384":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"19385":{"varMapping":{"__isSmartRef__":true,"id":19386},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":19387},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19386":{"this":{"__isSmartRef__":true,"id":19272}},"19387":{"timestamp":{"__isSmartRef__":true,"id":19388},"user":"sebastianwoinar","tags":[]},"19388":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"19389":{"varMapping":{"__isSmartRef__":true,"id":19390},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":19391},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19390":{"this":{"__isSmartRef__":true,"id":19272}},"19391":{"timestamp":{"__isSmartRef__":true,"id":19392},"user":"sebastianwoinar","tags":[]},"19392":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"19393":{"varMapping":{"__isSmartRef__":true,"id":19394},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":19395},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19394":{"this":{"__isSmartRef__":true,"id":19272}},"19395":{"timestamp":{"__isSmartRef__":true,"id":19396},"user":"sebastianwoinar","tags":[]},"19396":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"19397":{"varMapping":{"__isSmartRef__":true,"id":19398},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":19399},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19398":{"this":{"__isSmartRef__":true,"id":19272}},"19399":{"timestamp":{"__isSmartRef__":true,"id":19400},"user":"sebastianwoinar","tags":[]},"19400":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"19401":{"submorphs":[{"__isSmartRef__":true,"id":19402}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19419},"id":"0EF5617C-488C-428C-A36B-6CDB57BA0F69","eventHandler":{"__isSmartRef__":true,"id":19420},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":19421},"name":"node109","partsBinMetaInfo":{"__isSmartRef__":true,"id":19422},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5647},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":18861},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19425},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(497.6,210.0)"},"19402":{"submorphs":[],"scripts":[],"id":"AF39D7BC-6935-4813-B844-8A437BD406F0","shape":{"__isSmartRef__":true,"id":19403},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":19404},"textChunks":[{"__isSmartRef__":true,"id":19416}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":19418},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":19401},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"19403":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"19404":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":19405},{"__isSmartRef__":true,"id":19407},{"__isSmartRef__":true,"id":19409},{"__isSmartRef__":true,"id":19411},{"__isSmartRef__":true,"id":19413}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":19415},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"19405":{"date":{"__isSmartRef__":true,"id":19406},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"19406":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"19407":{"date":{"__isSmartRef__":true,"id":19408},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"19408":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"19409":{"date":{"__isSmartRef__":true,"id":19410},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"19410":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"19411":{"date":{"__isSmartRef__":true,"id":19412},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"19412":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"19413":{"date":{"__isSmartRef__":true,"id":19414},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"19414":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"19415":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"19416":{"style":{"__isSmartRef__":true,"id":19417},"morph":{"__isSmartRef__":true,"id":19402},"chunkOwner":{"__isSmartRef__":true,"id":19402},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19417":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19418":{"morph":{"__isSmartRef__":true,"id":19402},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19419":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"19420":{"morph":{"__isSmartRef__":true,"id":19401},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19421":{},"19422":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":19423}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"19423":{"date":{"__isSmartRef__":true,"id":19424},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"19424":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"19425":{"buildChildNodes":{"__isSmartRef__":true,"id":19426},"getGameTree":{"__isSmartRef__":true,"id":19430},"getLevel":{"__isSmartRef__":true,"id":19434},"getLevelWeight":{"__isSmartRef__":true,"id":19438},"getWeight":{"__isSmartRef__":true,"id":19442},"setNode":{"__isSmartRef__":true,"id":19446},"setParent":{"__isSmartRef__":true,"id":19450},"getParent":{"__isSmartRef__":true,"id":19454},"deactivate":{"__isSmartRef__":true,"id":19458},"blink":{"__isSmartRef__":true,"id":19462},"ABPreturn":{"__isSmartRef__":true,"id":19466},"ABPstart":{"__isSmartRef__":true,"id":19470},"ABPcontinue":{"__isSmartRef__":true,"id":19474},"ABPshowValue":{"__isSmartRef__":true,"id":19478},"ABPgetValue":{"__isSmartRef__":true,"id":19482},"ABPhasChildNodes":{"__isSmartRef__":true,"id":19486},"onMouseDown":{"__isSmartRef__":true,"id":19490},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":19498},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":19502},"ABPmarkAsDone":{"__isSmartRef__":true,"id":19506},"ABPmarkAsActive":{"__isSmartRef__":true,"id":19510},"getStateMorph":{"__isSmartRef__":true,"id":19514},"showState":{"__isSmartRef__":true,"id":19518},"ABPfailHard":{"__isSmartRef__":true,"id":19522},"markFinalDrawWith":{"__isSmartRef__":true,"id":19526}},"19426":{"varMapping":{"__isSmartRef__":true,"id":19427},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":19428},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19427":{"this":{"__isSmartRef__":true,"id":19401}},"19428":{"timestamp":{"__isSmartRef__":true,"id":19429},"user":"sebastianwoinar","tags":[]},"19429":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"19430":{"varMapping":{"__isSmartRef__":true,"id":19431},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":19432},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19431":{"this":{"__isSmartRef__":true,"id":19401}},"19432":{"timestamp":{"__isSmartRef__":true,"id":19433},"user":"sebastianwoinar","tags":[]},"19433":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19434":{"varMapping":{"__isSmartRef__":true,"id":19435},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":19436},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19435":{"this":{"__isSmartRef__":true,"id":19401}},"19436":{"timestamp":{"__isSmartRef__":true,"id":19437},"user":"sebastianwoinar","tags":[]},"19437":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19438":{"varMapping":{"__isSmartRef__":true,"id":19439},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":19440},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19439":{"this":{"__isSmartRef__":true,"id":19401}},"19440":{"timestamp":{"__isSmartRef__":true,"id":19441},"user":"sebastianwoinar","tags":[]},"19441":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19442":{"varMapping":{"__isSmartRef__":true,"id":19443},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":19444},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19443":{"this":{"__isSmartRef__":true,"id":19401}},"19444":{"timestamp":{"__isSmartRef__":true,"id":19445},"user":"sebastianwoinar","tags":[]},"19445":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19446":{"varMapping":{"__isSmartRef__":true,"id":19447},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":19448},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19447":{"this":{"__isSmartRef__":true,"id":19401}},"19448":{"timestamp":{"__isSmartRef__":true,"id":19449},"user":"sebastianwoinar","tags":[]},"19449":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19450":{"varMapping":{"__isSmartRef__":true,"id":19451},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":19452},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19451":{"this":{"__isSmartRef__":true,"id":19401}},"19452":{"timestamp":{"__isSmartRef__":true,"id":19453},"user":"sebastianwoinar","tags":[]},"19453":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19454":{"varMapping":{"__isSmartRef__":true,"id":19455},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":19456},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19455":{"this":{"__isSmartRef__":true,"id":19401}},"19456":{"timestamp":{"__isSmartRef__":true,"id":19457},"user":"sebastianwoinar","tags":[]},"19457":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"19458":{"varMapping":{"__isSmartRef__":true,"id":19459},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":19460},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19459":{"this":{"__isSmartRef__":true,"id":19401}},"19460":{"timestamp":{"__isSmartRef__":true,"id":19461},"user":"sebastianwoinar","tags":[]},"19461":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"19462":{"varMapping":{"__isSmartRef__":true,"id":19463},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":19464},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19463":{"this":{"__isSmartRef__":true,"id":19401}},"19464":{"timestamp":{"__isSmartRef__":true,"id":19465},"user":"sebastianwoinar","tags":[]},"19465":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"19466":{"varMapping":{"__isSmartRef__":true,"id":19467},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":19468},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19467":{"this":{"__isSmartRef__":true,"id":19401}},"19468":{"timestamp":{"__isSmartRef__":true,"id":19469},"user":"sebastianwoinar","tags":[]},"19469":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"19470":{"varMapping":{"__isSmartRef__":true,"id":19471},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":19472},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19471":{"this":{"__isSmartRef__":true,"id":19401}},"19472":{"timestamp":{"__isSmartRef__":true,"id":19473},"user":"sebastianwoinar","tags":[]},"19473":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"19474":{"varMapping":{"__isSmartRef__":true,"id":19475},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":19476},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19475":{"this":{"__isSmartRef__":true,"id":19401}},"19476":{"timestamp":{"__isSmartRef__":true,"id":19477},"user":"sebastianwoinar","tags":[]},"19477":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"19478":{"varMapping":{"__isSmartRef__":true,"id":19479},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":19480},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19479":{"this":{"__isSmartRef__":true,"id":19401}},"19480":{"timestamp":{"__isSmartRef__":true,"id":19481},"user":"sebastianwoinar","tags":[]},"19481":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"19482":{"varMapping":{"__isSmartRef__":true,"id":19483},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":19484},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19483":{"this":{"__isSmartRef__":true,"id":19401}},"19484":{"timestamp":{"__isSmartRef__":true,"id":19485},"user":"sebastianwoinar","tags":[]},"19485":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"19486":{"varMapping":{"__isSmartRef__":true,"id":19487},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":19488},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19487":{"this":{"__isSmartRef__":true,"id":19401}},"19488":{"timestamp":{"__isSmartRef__":true,"id":19489},"user":"sebastianwoinar","tags":[]},"19489":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"19490":{"varMapping":{"__isSmartRef__":true,"id":19491},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":19496},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19491":{"this":{"__isSmartRef__":true,"id":19401},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19492}},"19492":{"$super":{"__isSmartRef__":true,"id":19493}},"19493":{"varMapping":{"__isSmartRef__":true,"id":19494},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19495},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19494":{"obj":{"__isSmartRef__":true,"id":19401},"name":"onMouseDown"},"19495":{},"19496":{"timestamp":{"__isSmartRef__":true,"id":19497},"user":"sebastianwoinar","tags":[]},"19497":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"19498":{"varMapping":{"__isSmartRef__":true,"id":19499},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":19500},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19499":{"this":{"__isSmartRef__":true,"id":19401}},"19500":{"timestamp":{"__isSmartRef__":true,"id":19501},"user":"sebastianwoinar","tags":[]},"19501":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"19502":{"varMapping":{"__isSmartRef__":true,"id":19503},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":19504},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19503":{"this":{"__isSmartRef__":true,"id":19401}},"19504":{"timestamp":{"__isSmartRef__":true,"id":19505},"user":"sebastianwoinar","tags":[]},"19505":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"19506":{"varMapping":{"__isSmartRef__":true,"id":19507},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":19508},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19507":{"this":{"__isSmartRef__":true,"id":19401}},"19508":{"timestamp":{"__isSmartRef__":true,"id":19509},"user":"sebastianwoinar","tags":[]},"19509":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"19510":{"varMapping":{"__isSmartRef__":true,"id":19511},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":19512},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19511":{"this":{"__isSmartRef__":true,"id":19401}},"19512":{"timestamp":{"__isSmartRef__":true,"id":19513},"user":"sebastianwoinar","tags":[]},"19513":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"19514":{"varMapping":{"__isSmartRef__":true,"id":19515},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":19516},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19515":{"this":{"__isSmartRef__":true,"id":19401}},"19516":{"timestamp":{"__isSmartRef__":true,"id":19517},"user":"sebastianwoinar","tags":[]},"19517":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"19518":{"varMapping":{"__isSmartRef__":true,"id":19519},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":19520},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19519":{"this":{"__isSmartRef__":true,"id":19401}},"19520":{"timestamp":{"__isSmartRef__":true,"id":19521},"user":"sebastianwoinar","tags":[]},"19521":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"19522":{"varMapping":{"__isSmartRef__":true,"id":19523},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":19524},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19523":{"this":{"__isSmartRef__":true,"id":19401}},"19524":{"timestamp":{"__isSmartRef__":true,"id":19525},"user":"sebastianwoinar","tags":[]},"19525":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"19526":{"varMapping":{"__isSmartRef__":true,"id":19527},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":19528},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19527":{"this":{"__isSmartRef__":true,"id":19401}},"19528":{"timestamp":{"__isSmartRef__":true,"id":19529},"user":"sebastianwoinar","tags":[]},"19529":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"19530":{"submorphs":[{"__isSmartRef__":true,"id":19531}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19548},"id":"068E9293-3D86-4D70-B762-17605632F9EA","eventHandler":{"__isSmartRef__":true,"id":19549},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":19550},"name":"node110","partsBinMetaInfo":{"__isSmartRef__":true,"id":19551},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5649},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":18861},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19554},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(502.7,210.0)"},"19531":{"submorphs":[],"scripts":[],"id":"2CA36B37-9C14-4E45-A09D-78B7DB1BB5F6","shape":{"__isSmartRef__":true,"id":19532},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":19533},"textChunks":[{"__isSmartRef__":true,"id":19545}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":19547},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":19530},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"19532":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"19533":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":19534},{"__isSmartRef__":true,"id":19536},{"__isSmartRef__":true,"id":19538},{"__isSmartRef__":true,"id":19540},{"__isSmartRef__":true,"id":19542}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":19544},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"19534":{"date":{"__isSmartRef__":true,"id":19535},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"19535":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"19536":{"date":{"__isSmartRef__":true,"id":19537},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"19537":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"19538":{"date":{"__isSmartRef__":true,"id":19539},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"19539":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"19540":{"date":{"__isSmartRef__":true,"id":19541},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"19541":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"19542":{"date":{"__isSmartRef__":true,"id":19543},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"19543":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"19544":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"19545":{"style":{"__isSmartRef__":true,"id":19546},"morph":{"__isSmartRef__":true,"id":19531},"chunkOwner":{"__isSmartRef__":true,"id":19531},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19546":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19547":{"morph":{"__isSmartRef__":true,"id":19531},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19548":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"19549":{"morph":{"__isSmartRef__":true,"id":19530},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19550":{},"19551":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":19552}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"19552":{"date":{"__isSmartRef__":true,"id":19553},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"19553":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"19554":{"buildChildNodes":{"__isSmartRef__":true,"id":19555},"getGameTree":{"__isSmartRef__":true,"id":19559},"getLevel":{"__isSmartRef__":true,"id":19563},"getLevelWeight":{"__isSmartRef__":true,"id":19567},"getWeight":{"__isSmartRef__":true,"id":19571},"setNode":{"__isSmartRef__":true,"id":19575},"setParent":{"__isSmartRef__":true,"id":19579},"getParent":{"__isSmartRef__":true,"id":19583},"deactivate":{"__isSmartRef__":true,"id":19587},"blink":{"__isSmartRef__":true,"id":19591},"ABPreturn":{"__isSmartRef__":true,"id":19595},"ABPstart":{"__isSmartRef__":true,"id":19599},"ABPcontinue":{"__isSmartRef__":true,"id":19603},"ABPshowValue":{"__isSmartRef__":true,"id":19607},"ABPgetValue":{"__isSmartRef__":true,"id":19611},"ABPhasChildNodes":{"__isSmartRef__":true,"id":19615},"onMouseDown":{"__isSmartRef__":true,"id":19619},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":19627},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":19631},"ABPmarkAsDone":{"__isSmartRef__":true,"id":19635},"ABPmarkAsActive":{"__isSmartRef__":true,"id":19639},"getStateMorph":{"__isSmartRef__":true,"id":19643},"showState":{"__isSmartRef__":true,"id":19647},"ABPfailHard":{"__isSmartRef__":true,"id":19651},"markFinalDrawWith":{"__isSmartRef__":true,"id":19655}},"19555":{"varMapping":{"__isSmartRef__":true,"id":19556},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":19557},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19556":{"this":{"__isSmartRef__":true,"id":19530}},"19557":{"timestamp":{"__isSmartRef__":true,"id":19558},"user":"sebastianwoinar","tags":[]},"19558":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"19559":{"varMapping":{"__isSmartRef__":true,"id":19560},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":19561},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19560":{"this":{"__isSmartRef__":true,"id":19530}},"19561":{"timestamp":{"__isSmartRef__":true,"id":19562},"user":"sebastianwoinar","tags":[]},"19562":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19563":{"varMapping":{"__isSmartRef__":true,"id":19564},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":19565},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19564":{"this":{"__isSmartRef__":true,"id":19530}},"19565":{"timestamp":{"__isSmartRef__":true,"id":19566},"user":"sebastianwoinar","tags":[]},"19566":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19567":{"varMapping":{"__isSmartRef__":true,"id":19568},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":19569},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19568":{"this":{"__isSmartRef__":true,"id":19530}},"19569":{"timestamp":{"__isSmartRef__":true,"id":19570},"user":"sebastianwoinar","tags":[]},"19570":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19571":{"varMapping":{"__isSmartRef__":true,"id":19572},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":19573},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19572":{"this":{"__isSmartRef__":true,"id":19530}},"19573":{"timestamp":{"__isSmartRef__":true,"id":19574},"user":"sebastianwoinar","tags":[]},"19574":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19575":{"varMapping":{"__isSmartRef__":true,"id":19576},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":19577},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19576":{"this":{"__isSmartRef__":true,"id":19530}},"19577":{"timestamp":{"__isSmartRef__":true,"id":19578},"user":"sebastianwoinar","tags":[]},"19578":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19579":{"varMapping":{"__isSmartRef__":true,"id":19580},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":19581},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19580":{"this":{"__isSmartRef__":true,"id":19530}},"19581":{"timestamp":{"__isSmartRef__":true,"id":19582},"user":"sebastianwoinar","tags":[]},"19582":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19583":{"varMapping":{"__isSmartRef__":true,"id":19584},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":19585},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19584":{"this":{"__isSmartRef__":true,"id":19530}},"19585":{"timestamp":{"__isSmartRef__":true,"id":19586},"user":"sebastianwoinar","tags":[]},"19586":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"19587":{"varMapping":{"__isSmartRef__":true,"id":19588},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":19589},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19588":{"this":{"__isSmartRef__":true,"id":19530}},"19589":{"timestamp":{"__isSmartRef__":true,"id":19590},"user":"sebastianwoinar","tags":[]},"19590":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"19591":{"varMapping":{"__isSmartRef__":true,"id":19592},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":19593},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19592":{"this":{"__isSmartRef__":true,"id":19530}},"19593":{"timestamp":{"__isSmartRef__":true,"id":19594},"user":"sebastianwoinar","tags":[]},"19594":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"19595":{"varMapping":{"__isSmartRef__":true,"id":19596},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":19597},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19596":{"this":{"__isSmartRef__":true,"id":19530}},"19597":{"timestamp":{"__isSmartRef__":true,"id":19598},"user":"sebastianwoinar","tags":[]},"19598":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"19599":{"varMapping":{"__isSmartRef__":true,"id":19600},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":19601},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19600":{"this":{"__isSmartRef__":true,"id":19530}},"19601":{"timestamp":{"__isSmartRef__":true,"id":19602},"user":"sebastianwoinar","tags":[]},"19602":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"19603":{"varMapping":{"__isSmartRef__":true,"id":19604},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":19605},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19604":{"this":{"__isSmartRef__":true,"id":19530}},"19605":{"timestamp":{"__isSmartRef__":true,"id":19606},"user":"sebastianwoinar","tags":[]},"19606":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"19607":{"varMapping":{"__isSmartRef__":true,"id":19608},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":19609},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19608":{"this":{"__isSmartRef__":true,"id":19530}},"19609":{"timestamp":{"__isSmartRef__":true,"id":19610},"user":"sebastianwoinar","tags":[]},"19610":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"19611":{"varMapping":{"__isSmartRef__":true,"id":19612},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":19613},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19612":{"this":{"__isSmartRef__":true,"id":19530}},"19613":{"timestamp":{"__isSmartRef__":true,"id":19614},"user":"sebastianwoinar","tags":[]},"19614":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"19615":{"varMapping":{"__isSmartRef__":true,"id":19616},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":19617},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19616":{"this":{"__isSmartRef__":true,"id":19530}},"19617":{"timestamp":{"__isSmartRef__":true,"id":19618},"user":"sebastianwoinar","tags":[]},"19618":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"19619":{"varMapping":{"__isSmartRef__":true,"id":19620},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":19625},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19620":{"this":{"__isSmartRef__":true,"id":19530},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19621}},"19621":{"$super":{"__isSmartRef__":true,"id":19622}},"19622":{"varMapping":{"__isSmartRef__":true,"id":19623},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19624},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19623":{"obj":{"__isSmartRef__":true,"id":19530},"name":"onMouseDown"},"19624":{},"19625":{"timestamp":{"__isSmartRef__":true,"id":19626},"user":"sebastianwoinar","tags":[]},"19626":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"19627":{"varMapping":{"__isSmartRef__":true,"id":19628},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":19629},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19628":{"this":{"__isSmartRef__":true,"id":19530}},"19629":{"timestamp":{"__isSmartRef__":true,"id":19630},"user":"sebastianwoinar","tags":[]},"19630":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"19631":{"varMapping":{"__isSmartRef__":true,"id":19632},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":19633},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19632":{"this":{"__isSmartRef__":true,"id":19530}},"19633":{"timestamp":{"__isSmartRef__":true,"id":19634},"user":"sebastianwoinar","tags":[]},"19634":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"19635":{"varMapping":{"__isSmartRef__":true,"id":19636},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":19637},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19636":{"this":{"__isSmartRef__":true,"id":19530}},"19637":{"timestamp":{"__isSmartRef__":true,"id":19638},"user":"sebastianwoinar","tags":[]},"19638":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"19639":{"varMapping":{"__isSmartRef__":true,"id":19640},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":19641},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19640":{"this":{"__isSmartRef__":true,"id":19530}},"19641":{"timestamp":{"__isSmartRef__":true,"id":19642},"user":"sebastianwoinar","tags":[]},"19642":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"19643":{"varMapping":{"__isSmartRef__":true,"id":19644},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":19645},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19644":{"this":{"__isSmartRef__":true,"id":19530}},"19645":{"timestamp":{"__isSmartRef__":true,"id":19646},"user":"sebastianwoinar","tags":[]},"19646":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"19647":{"varMapping":{"__isSmartRef__":true,"id":19648},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":19649},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19648":{"this":{"__isSmartRef__":true,"id":19530}},"19649":{"timestamp":{"__isSmartRef__":true,"id":19650},"user":"sebastianwoinar","tags":[]},"19650":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"19651":{"varMapping":{"__isSmartRef__":true,"id":19652},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":19653},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19652":{"this":{"__isSmartRef__":true,"id":19530}},"19653":{"timestamp":{"__isSmartRef__":true,"id":19654},"user":"sebastianwoinar","tags":[]},"19654":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"19655":{"varMapping":{"__isSmartRef__":true,"id":19656},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":19657},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19656":{"this":{"__isSmartRef__":true,"id":19530}},"19657":{"timestamp":{"__isSmartRef__":true,"id":19658},"user":"sebastianwoinar","tags":[]},"19658":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"19659":{"submorphs":[{"__isSmartRef__":true,"id":19660}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19677},"id":"4730AC88-6E43-4AAD-82D9-23BE5B846567","eventHandler":{"__isSmartRef__":true,"id":19678},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":19679},"name":"node111","partsBinMetaInfo":{"__isSmartRef__":true,"id":19680},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5651},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":18861},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19683},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(507.9,210.0)"},"19660":{"submorphs":[],"scripts":[],"id":"C5B600E6-BAB2-4EED-B03C-3A0FE07E21AE","shape":{"__isSmartRef__":true,"id":19661},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":19662},"textChunks":[{"__isSmartRef__":true,"id":19674}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":19676},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":19659},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"19661":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"19662":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":19663},{"__isSmartRef__":true,"id":19665},{"__isSmartRef__":true,"id":19667},{"__isSmartRef__":true,"id":19669},{"__isSmartRef__":true,"id":19671}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":19673},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"19663":{"date":{"__isSmartRef__":true,"id":19664},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"19664":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"19665":{"date":{"__isSmartRef__":true,"id":19666},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"19666":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"19667":{"date":{"__isSmartRef__":true,"id":19668},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"19668":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"19669":{"date":{"__isSmartRef__":true,"id":19670},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"19670":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"19671":{"date":{"__isSmartRef__":true,"id":19672},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"19672":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"19673":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"19674":{"style":{"__isSmartRef__":true,"id":19675},"morph":{"__isSmartRef__":true,"id":19660},"chunkOwner":{"__isSmartRef__":true,"id":19660},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19675":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19676":{"morph":{"__isSmartRef__":true,"id":19660},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19677":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"19678":{"morph":{"__isSmartRef__":true,"id":19659},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19679":{},"19680":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":19681}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"19681":{"date":{"__isSmartRef__":true,"id":19682},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"19682":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"19683":{"buildChildNodes":{"__isSmartRef__":true,"id":19684},"getGameTree":{"__isSmartRef__":true,"id":19688},"getLevel":{"__isSmartRef__":true,"id":19692},"getLevelWeight":{"__isSmartRef__":true,"id":19696},"getWeight":{"__isSmartRef__":true,"id":19700},"setNode":{"__isSmartRef__":true,"id":19704},"setParent":{"__isSmartRef__":true,"id":19708},"getParent":{"__isSmartRef__":true,"id":19712},"deactivate":{"__isSmartRef__":true,"id":19716},"blink":{"__isSmartRef__":true,"id":19720},"ABPreturn":{"__isSmartRef__":true,"id":19724},"ABPstart":{"__isSmartRef__":true,"id":19728},"ABPcontinue":{"__isSmartRef__":true,"id":19732},"ABPshowValue":{"__isSmartRef__":true,"id":19736},"ABPgetValue":{"__isSmartRef__":true,"id":19740},"ABPhasChildNodes":{"__isSmartRef__":true,"id":19744},"onMouseDown":{"__isSmartRef__":true,"id":19748},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":19756},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":19760},"ABPmarkAsDone":{"__isSmartRef__":true,"id":19764},"ABPmarkAsActive":{"__isSmartRef__":true,"id":19768},"getStateMorph":{"__isSmartRef__":true,"id":19772},"showState":{"__isSmartRef__":true,"id":19776},"ABPfailHard":{"__isSmartRef__":true,"id":19780},"markFinalDrawWith":{"__isSmartRef__":true,"id":19784}},"19684":{"varMapping":{"__isSmartRef__":true,"id":19685},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":19686},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19685":{"this":{"__isSmartRef__":true,"id":19659}},"19686":{"timestamp":{"__isSmartRef__":true,"id":19687},"user":"sebastianwoinar","tags":[]},"19687":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"19688":{"varMapping":{"__isSmartRef__":true,"id":19689},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":19690},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19689":{"this":{"__isSmartRef__":true,"id":19659}},"19690":{"timestamp":{"__isSmartRef__":true,"id":19691},"user":"sebastianwoinar","tags":[]},"19691":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19692":{"varMapping":{"__isSmartRef__":true,"id":19693},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":19694},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19693":{"this":{"__isSmartRef__":true,"id":19659}},"19694":{"timestamp":{"__isSmartRef__":true,"id":19695},"user":"sebastianwoinar","tags":[]},"19695":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19696":{"varMapping":{"__isSmartRef__":true,"id":19697},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":19698},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19697":{"this":{"__isSmartRef__":true,"id":19659}},"19698":{"timestamp":{"__isSmartRef__":true,"id":19699},"user":"sebastianwoinar","tags":[]},"19699":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19700":{"varMapping":{"__isSmartRef__":true,"id":19701},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":19702},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19701":{"this":{"__isSmartRef__":true,"id":19659}},"19702":{"timestamp":{"__isSmartRef__":true,"id":19703},"user":"sebastianwoinar","tags":[]},"19703":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19704":{"varMapping":{"__isSmartRef__":true,"id":19705},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":19706},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19705":{"this":{"__isSmartRef__":true,"id":19659}},"19706":{"timestamp":{"__isSmartRef__":true,"id":19707},"user":"sebastianwoinar","tags":[]},"19707":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19708":{"varMapping":{"__isSmartRef__":true,"id":19709},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":19710},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19709":{"this":{"__isSmartRef__":true,"id":19659}},"19710":{"timestamp":{"__isSmartRef__":true,"id":19711},"user":"sebastianwoinar","tags":[]},"19711":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19712":{"varMapping":{"__isSmartRef__":true,"id":19713},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":19714},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19713":{"this":{"__isSmartRef__":true,"id":19659}},"19714":{"timestamp":{"__isSmartRef__":true,"id":19715},"user":"sebastianwoinar","tags":[]},"19715":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"19716":{"varMapping":{"__isSmartRef__":true,"id":19717},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":19718},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19717":{"this":{"__isSmartRef__":true,"id":19659}},"19718":{"timestamp":{"__isSmartRef__":true,"id":19719},"user":"sebastianwoinar","tags":[]},"19719":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"19720":{"varMapping":{"__isSmartRef__":true,"id":19721},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":19722},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19721":{"this":{"__isSmartRef__":true,"id":19659}},"19722":{"timestamp":{"__isSmartRef__":true,"id":19723},"user":"sebastianwoinar","tags":[]},"19723":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"19724":{"varMapping":{"__isSmartRef__":true,"id":19725},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":19726},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19725":{"this":{"__isSmartRef__":true,"id":19659}},"19726":{"timestamp":{"__isSmartRef__":true,"id":19727},"user":"sebastianwoinar","tags":[]},"19727":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"19728":{"varMapping":{"__isSmartRef__":true,"id":19729},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":19730},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19729":{"this":{"__isSmartRef__":true,"id":19659}},"19730":{"timestamp":{"__isSmartRef__":true,"id":19731},"user":"sebastianwoinar","tags":[]},"19731":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"19732":{"varMapping":{"__isSmartRef__":true,"id":19733},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":19734},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19733":{"this":{"__isSmartRef__":true,"id":19659}},"19734":{"timestamp":{"__isSmartRef__":true,"id":19735},"user":"sebastianwoinar","tags":[]},"19735":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"19736":{"varMapping":{"__isSmartRef__":true,"id":19737},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":19738},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19737":{"this":{"__isSmartRef__":true,"id":19659}},"19738":{"timestamp":{"__isSmartRef__":true,"id":19739},"user":"sebastianwoinar","tags":[]},"19739":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"19740":{"varMapping":{"__isSmartRef__":true,"id":19741},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":19742},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19741":{"this":{"__isSmartRef__":true,"id":19659}},"19742":{"timestamp":{"__isSmartRef__":true,"id":19743},"user":"sebastianwoinar","tags":[]},"19743":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"19744":{"varMapping":{"__isSmartRef__":true,"id":19745},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":19746},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19745":{"this":{"__isSmartRef__":true,"id":19659}},"19746":{"timestamp":{"__isSmartRef__":true,"id":19747},"user":"sebastianwoinar","tags":[]},"19747":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"19748":{"varMapping":{"__isSmartRef__":true,"id":19749},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":19754},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19749":{"this":{"__isSmartRef__":true,"id":19659},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19750}},"19750":{"$super":{"__isSmartRef__":true,"id":19751}},"19751":{"varMapping":{"__isSmartRef__":true,"id":19752},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19753},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19752":{"obj":{"__isSmartRef__":true,"id":19659},"name":"onMouseDown"},"19753":{},"19754":{"timestamp":{"__isSmartRef__":true,"id":19755},"user":"sebastianwoinar","tags":[]},"19755":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"19756":{"varMapping":{"__isSmartRef__":true,"id":19757},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":19758},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19757":{"this":{"__isSmartRef__":true,"id":19659}},"19758":{"timestamp":{"__isSmartRef__":true,"id":19759},"user":"sebastianwoinar","tags":[]},"19759":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"19760":{"varMapping":{"__isSmartRef__":true,"id":19761},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":19762},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19761":{"this":{"__isSmartRef__":true,"id":19659}},"19762":{"timestamp":{"__isSmartRef__":true,"id":19763},"user":"sebastianwoinar","tags":[]},"19763":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"19764":{"varMapping":{"__isSmartRef__":true,"id":19765},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":19766},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19765":{"this":{"__isSmartRef__":true,"id":19659}},"19766":{"timestamp":{"__isSmartRef__":true,"id":19767},"user":"sebastianwoinar","tags":[]},"19767":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"19768":{"varMapping":{"__isSmartRef__":true,"id":19769},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":19770},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19769":{"this":{"__isSmartRef__":true,"id":19659}},"19770":{"timestamp":{"__isSmartRef__":true,"id":19771},"user":"sebastianwoinar","tags":[]},"19771":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"19772":{"varMapping":{"__isSmartRef__":true,"id":19773},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":19774},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19773":{"this":{"__isSmartRef__":true,"id":19659}},"19774":{"timestamp":{"__isSmartRef__":true,"id":19775},"user":"sebastianwoinar","tags":[]},"19775":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"19776":{"varMapping":{"__isSmartRef__":true,"id":19777},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":19778},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19777":{"this":{"__isSmartRef__":true,"id":19659}},"19778":{"timestamp":{"__isSmartRef__":true,"id":19779},"user":"sebastianwoinar","tags":[]},"19779":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"19780":{"varMapping":{"__isSmartRef__":true,"id":19781},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":19782},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19781":{"this":{"__isSmartRef__":true,"id":19659}},"19782":{"timestamp":{"__isSmartRef__":true,"id":19783},"user":"sebastianwoinar","tags":[]},"19783":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"19784":{"varMapping":{"__isSmartRef__":true,"id":19785},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":19786},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19785":{"this":{"__isSmartRef__":true,"id":19659}},"19786":{"timestamp":{"__isSmartRef__":true,"id":19787},"user":"sebastianwoinar","tags":[]},"19787":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"19788":{"submorphs":[{"__isSmartRef__":true,"id":19789}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19806},"id":"ED20F272-1A9E-47FB-9FDF-36987CFD4CE2","eventHandler":{"__isSmartRef__":true,"id":19807},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":19808},"name":"node112","partsBinMetaInfo":{"__isSmartRef__":true,"id":19809},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5653},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":18861},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19812},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(513.1,210.0)"},"19789":{"submorphs":[],"scripts":[],"id":"455764F3-2552-4A0E-A136-93592EEA5CB2","shape":{"__isSmartRef__":true,"id":19790},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":19791},"textChunks":[{"__isSmartRef__":true,"id":19803}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":19805},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":19788},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"19790":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"19791":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":19792},{"__isSmartRef__":true,"id":19794},{"__isSmartRef__":true,"id":19796},{"__isSmartRef__":true,"id":19798},{"__isSmartRef__":true,"id":19800}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":19802},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"19792":{"date":{"__isSmartRef__":true,"id":19793},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"19793":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"19794":{"date":{"__isSmartRef__":true,"id":19795},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"19795":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"19796":{"date":{"__isSmartRef__":true,"id":19797},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"19797":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"19798":{"date":{"__isSmartRef__":true,"id":19799},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"19799":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"19800":{"date":{"__isSmartRef__":true,"id":19801},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"19801":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"19802":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"19803":{"style":{"__isSmartRef__":true,"id":19804},"morph":{"__isSmartRef__":true,"id":19789},"chunkOwner":{"__isSmartRef__":true,"id":19789},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19804":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19805":{"morph":{"__isSmartRef__":true,"id":19789},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19806":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"19807":{"morph":{"__isSmartRef__":true,"id":19788},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19808":{},"19809":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":19810}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"19810":{"date":{"__isSmartRef__":true,"id":19811},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"19811":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"19812":{"buildChildNodes":{"__isSmartRef__":true,"id":19813},"getGameTree":{"__isSmartRef__":true,"id":19817},"getLevel":{"__isSmartRef__":true,"id":19821},"getLevelWeight":{"__isSmartRef__":true,"id":19825},"getWeight":{"__isSmartRef__":true,"id":19829},"setNode":{"__isSmartRef__":true,"id":19833},"setParent":{"__isSmartRef__":true,"id":19837},"getParent":{"__isSmartRef__":true,"id":19841},"deactivate":{"__isSmartRef__":true,"id":19845},"blink":{"__isSmartRef__":true,"id":19849},"ABPreturn":{"__isSmartRef__":true,"id":19853},"ABPstart":{"__isSmartRef__":true,"id":19857},"ABPcontinue":{"__isSmartRef__":true,"id":19861},"ABPshowValue":{"__isSmartRef__":true,"id":19865},"ABPgetValue":{"__isSmartRef__":true,"id":19869},"ABPhasChildNodes":{"__isSmartRef__":true,"id":19873},"onMouseDown":{"__isSmartRef__":true,"id":19877},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":19885},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":19889},"ABPmarkAsDone":{"__isSmartRef__":true,"id":19893},"ABPmarkAsActive":{"__isSmartRef__":true,"id":19897},"getStateMorph":{"__isSmartRef__":true,"id":19901},"showState":{"__isSmartRef__":true,"id":19905},"ABPfailHard":{"__isSmartRef__":true,"id":19909},"markFinalDrawWith":{"__isSmartRef__":true,"id":19913}},"19813":{"varMapping":{"__isSmartRef__":true,"id":19814},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":19815},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19814":{"this":{"__isSmartRef__":true,"id":19788}},"19815":{"timestamp":{"__isSmartRef__":true,"id":19816},"user":"sebastianwoinar","tags":[]},"19816":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"19817":{"varMapping":{"__isSmartRef__":true,"id":19818},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":19819},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19818":{"this":{"__isSmartRef__":true,"id":19788}},"19819":{"timestamp":{"__isSmartRef__":true,"id":19820},"user":"sebastianwoinar","tags":[]},"19820":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19821":{"varMapping":{"__isSmartRef__":true,"id":19822},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":19823},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19822":{"this":{"__isSmartRef__":true,"id":19788}},"19823":{"timestamp":{"__isSmartRef__":true,"id":19824},"user":"sebastianwoinar","tags":[]},"19824":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19825":{"varMapping":{"__isSmartRef__":true,"id":19826},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":19827},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19826":{"this":{"__isSmartRef__":true,"id":19788}},"19827":{"timestamp":{"__isSmartRef__":true,"id":19828},"user":"sebastianwoinar","tags":[]},"19828":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19829":{"varMapping":{"__isSmartRef__":true,"id":19830},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":19831},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19830":{"this":{"__isSmartRef__":true,"id":19788}},"19831":{"timestamp":{"__isSmartRef__":true,"id":19832},"user":"sebastianwoinar","tags":[]},"19832":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19833":{"varMapping":{"__isSmartRef__":true,"id":19834},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":19835},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19834":{"this":{"__isSmartRef__":true,"id":19788}},"19835":{"timestamp":{"__isSmartRef__":true,"id":19836},"user":"sebastianwoinar","tags":[]},"19836":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19837":{"varMapping":{"__isSmartRef__":true,"id":19838},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":19839},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19838":{"this":{"__isSmartRef__":true,"id":19788}},"19839":{"timestamp":{"__isSmartRef__":true,"id":19840},"user":"sebastianwoinar","tags":[]},"19840":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19841":{"varMapping":{"__isSmartRef__":true,"id":19842},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":19843},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19842":{"this":{"__isSmartRef__":true,"id":19788}},"19843":{"timestamp":{"__isSmartRef__":true,"id":19844},"user":"sebastianwoinar","tags":[]},"19844":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"19845":{"varMapping":{"__isSmartRef__":true,"id":19846},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":19847},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19846":{"this":{"__isSmartRef__":true,"id":19788}},"19847":{"timestamp":{"__isSmartRef__":true,"id":19848},"user":"sebastianwoinar","tags":[]},"19848":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"19849":{"varMapping":{"__isSmartRef__":true,"id":19850},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":19851},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19850":{"this":{"__isSmartRef__":true,"id":19788}},"19851":{"timestamp":{"__isSmartRef__":true,"id":19852},"user":"sebastianwoinar","tags":[]},"19852":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"19853":{"varMapping":{"__isSmartRef__":true,"id":19854},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":19855},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19854":{"this":{"__isSmartRef__":true,"id":19788}},"19855":{"timestamp":{"__isSmartRef__":true,"id":19856},"user":"sebastianwoinar","tags":[]},"19856":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"19857":{"varMapping":{"__isSmartRef__":true,"id":19858},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":19859},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19858":{"this":{"__isSmartRef__":true,"id":19788}},"19859":{"timestamp":{"__isSmartRef__":true,"id":19860},"user":"sebastianwoinar","tags":[]},"19860":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"19861":{"varMapping":{"__isSmartRef__":true,"id":19862},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":19863},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19862":{"this":{"__isSmartRef__":true,"id":19788}},"19863":{"timestamp":{"__isSmartRef__":true,"id":19864},"user":"sebastianwoinar","tags":[]},"19864":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"19865":{"varMapping":{"__isSmartRef__":true,"id":19866},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":19867},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19866":{"this":{"__isSmartRef__":true,"id":19788}},"19867":{"timestamp":{"__isSmartRef__":true,"id":19868},"user":"sebastianwoinar","tags":[]},"19868":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"19869":{"varMapping":{"__isSmartRef__":true,"id":19870},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":19871},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19870":{"this":{"__isSmartRef__":true,"id":19788}},"19871":{"timestamp":{"__isSmartRef__":true,"id":19872},"user":"sebastianwoinar","tags":[]},"19872":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"19873":{"varMapping":{"__isSmartRef__":true,"id":19874},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":19875},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19874":{"this":{"__isSmartRef__":true,"id":19788}},"19875":{"timestamp":{"__isSmartRef__":true,"id":19876},"user":"sebastianwoinar","tags":[]},"19876":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"19877":{"varMapping":{"__isSmartRef__":true,"id":19878},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":19883},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19878":{"this":{"__isSmartRef__":true,"id":19788},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19879}},"19879":{"$super":{"__isSmartRef__":true,"id":19880}},"19880":{"varMapping":{"__isSmartRef__":true,"id":19881},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19882},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19881":{"obj":{"__isSmartRef__":true,"id":19788},"name":"onMouseDown"},"19882":{},"19883":{"timestamp":{"__isSmartRef__":true,"id":19884},"user":"sebastianwoinar","tags":[]},"19884":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"19885":{"varMapping":{"__isSmartRef__":true,"id":19886},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":19887},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19886":{"this":{"__isSmartRef__":true,"id":19788}},"19887":{"timestamp":{"__isSmartRef__":true,"id":19888},"user":"sebastianwoinar","tags":[]},"19888":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"19889":{"varMapping":{"__isSmartRef__":true,"id":19890},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":19891},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19890":{"this":{"__isSmartRef__":true,"id":19788}},"19891":{"timestamp":{"__isSmartRef__":true,"id":19892},"user":"sebastianwoinar","tags":[]},"19892":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"19893":{"varMapping":{"__isSmartRef__":true,"id":19894},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":19895},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19894":{"this":{"__isSmartRef__":true,"id":19788}},"19895":{"timestamp":{"__isSmartRef__":true,"id":19896},"user":"sebastianwoinar","tags":[]},"19896":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"19897":{"varMapping":{"__isSmartRef__":true,"id":19898},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":19899},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19898":{"this":{"__isSmartRef__":true,"id":19788}},"19899":{"timestamp":{"__isSmartRef__":true,"id":19900},"user":"sebastianwoinar","tags":[]},"19900":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"19901":{"varMapping":{"__isSmartRef__":true,"id":19902},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":19903},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19902":{"this":{"__isSmartRef__":true,"id":19788}},"19903":{"timestamp":{"__isSmartRef__":true,"id":19904},"user":"sebastianwoinar","tags":[]},"19904":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"19905":{"varMapping":{"__isSmartRef__":true,"id":19906},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":19907},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19906":{"this":{"__isSmartRef__":true,"id":19788}},"19907":{"timestamp":{"__isSmartRef__":true,"id":19908},"user":"sebastianwoinar","tags":[]},"19908":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"19909":{"varMapping":{"__isSmartRef__":true,"id":19910},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":19911},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19910":{"this":{"__isSmartRef__":true,"id":19788}},"19911":{"timestamp":{"__isSmartRef__":true,"id":19912},"user":"sebastianwoinar","tags":[]},"19912":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"19913":{"varMapping":{"__isSmartRef__":true,"id":19914},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":19915},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19914":{"this":{"__isSmartRef__":true,"id":19788}},"19915":{"timestamp":{"__isSmartRef__":true,"id":19916},"user":"sebastianwoinar","tags":[]},"19916":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"19917":{"buildChildNodes":{"__isSmartRef__":true,"id":19918},"getGameTree":{"__isSmartRef__":true,"id":19922},"getLevel":{"__isSmartRef__":true,"id":19926},"getLevelWeight":{"__isSmartRef__":true,"id":19930},"getWeight":{"__isSmartRef__":true,"id":19934},"setNode":{"__isSmartRef__":true,"id":19938},"setParent":{"__isSmartRef__":true,"id":19942},"getParent":{"__isSmartRef__":true,"id":19946},"deactivate":{"__isSmartRef__":true,"id":19950},"blink":{"__isSmartRef__":true,"id":19954},"ABPreturn":{"__isSmartRef__":true,"id":19958},"ABPstart":{"__isSmartRef__":true,"id":19962},"ABPcontinue":{"__isSmartRef__":true,"id":19966},"ABPshowValue":{"__isSmartRef__":true,"id":19970},"ABPgetValue":{"__isSmartRef__":true,"id":19974},"ABPhasChildNodes":{"__isSmartRef__":true,"id":19978},"onMouseDown":{"__isSmartRef__":true,"id":19982},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":19990},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":19994},"ABPmarkAsDone":{"__isSmartRef__":true,"id":19998},"ABPmarkAsActive":{"__isSmartRef__":true,"id":20002},"getStateMorph":{"__isSmartRef__":true,"id":20006},"showState":{"__isSmartRef__":true,"id":20010},"ABPfailHard":{"__isSmartRef__":true,"id":20014},"markFinalDrawWith":{"__isSmartRef__":true,"id":20018}},"19918":{"varMapping":{"__isSmartRef__":true,"id":19919},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":19920},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19919":{"this":{"__isSmartRef__":true,"id":18861}},"19920":{"timestamp":{"__isSmartRef__":true,"id":19921},"user":"sebastianwoinar","tags":[]},"19921":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"19922":{"varMapping":{"__isSmartRef__":true,"id":19923},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":19924},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19923":{"this":{"__isSmartRef__":true,"id":18861}},"19924":{"timestamp":{"__isSmartRef__":true,"id":19925},"user":"sebastianwoinar","tags":[]},"19925":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19926":{"varMapping":{"__isSmartRef__":true,"id":19927},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":19928},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19927":{"this":{"__isSmartRef__":true,"id":18861}},"19928":{"timestamp":{"__isSmartRef__":true,"id":19929},"user":"sebastianwoinar","tags":[]},"19929":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19930":{"varMapping":{"__isSmartRef__":true,"id":19931},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":19932},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19931":{"this":{"__isSmartRef__":true,"id":18861}},"19932":{"timestamp":{"__isSmartRef__":true,"id":19933},"user":"sebastianwoinar","tags":[]},"19933":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19934":{"varMapping":{"__isSmartRef__":true,"id":19935},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":19936},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19935":{"this":{"__isSmartRef__":true,"id":18861}},"19936":{"timestamp":{"__isSmartRef__":true,"id":19937},"user":"sebastianwoinar","tags":[]},"19937":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19938":{"varMapping":{"__isSmartRef__":true,"id":19939},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":19940},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19939":{"this":{"__isSmartRef__":true,"id":18861}},"19940":{"timestamp":{"__isSmartRef__":true,"id":19941},"user":"sebastianwoinar","tags":[]},"19941":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19942":{"varMapping":{"__isSmartRef__":true,"id":19943},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":19944},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19943":{"this":{"__isSmartRef__":true,"id":18861}},"19944":{"timestamp":{"__isSmartRef__":true,"id":19945},"user":"sebastianwoinar","tags":[]},"19945":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"19946":{"varMapping":{"__isSmartRef__":true,"id":19947},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":19948},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19947":{"this":{"__isSmartRef__":true,"id":18861}},"19948":{"timestamp":{"__isSmartRef__":true,"id":19949},"user":"sebastianwoinar","tags":[]},"19949":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"19950":{"varMapping":{"__isSmartRef__":true,"id":19951},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":19952},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19951":{"this":{"__isSmartRef__":true,"id":18861}},"19952":{"timestamp":{"__isSmartRef__":true,"id":19953},"user":"sebastianwoinar","tags":[]},"19953":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"19954":{"varMapping":{"__isSmartRef__":true,"id":19955},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":19956},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19955":{"this":{"__isSmartRef__":true,"id":18861}},"19956":{"timestamp":{"__isSmartRef__":true,"id":19957},"user":"sebastianwoinar","tags":[]},"19957":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"19958":{"varMapping":{"__isSmartRef__":true,"id":19959},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":19960},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19959":{"this":{"__isSmartRef__":true,"id":18861}},"19960":{"timestamp":{"__isSmartRef__":true,"id":19961},"user":"sebastianwoinar","tags":[]},"19961":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"19962":{"varMapping":{"__isSmartRef__":true,"id":19963},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":19964},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19963":{"this":{"__isSmartRef__":true,"id":18861}},"19964":{"timestamp":{"__isSmartRef__":true,"id":19965},"user":"sebastianwoinar","tags":[]},"19965":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"19966":{"varMapping":{"__isSmartRef__":true,"id":19967},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":19968},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19967":{"this":{"__isSmartRef__":true,"id":18861}},"19968":{"timestamp":{"__isSmartRef__":true,"id":19969},"user":"sebastianwoinar","tags":[]},"19969":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"19970":{"varMapping":{"__isSmartRef__":true,"id":19971},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":19972},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19971":{"this":{"__isSmartRef__":true,"id":18861}},"19972":{"timestamp":{"__isSmartRef__":true,"id":19973},"user":"sebastianwoinar","tags":[]},"19973":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"19974":{"varMapping":{"__isSmartRef__":true,"id":19975},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":19976},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19975":{"this":{"__isSmartRef__":true,"id":18861}},"19976":{"timestamp":{"__isSmartRef__":true,"id":19977},"user":"sebastianwoinar","tags":[]},"19977":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"19978":{"varMapping":{"__isSmartRef__":true,"id":19979},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":19980},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19979":{"this":{"__isSmartRef__":true,"id":18861}},"19980":{"timestamp":{"__isSmartRef__":true,"id":19981},"user":"sebastianwoinar","tags":[]},"19981":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"19982":{"varMapping":{"__isSmartRef__":true,"id":19983},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":19988},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19983":{"this":{"__isSmartRef__":true,"id":18861},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19984}},"19984":{"$super":{"__isSmartRef__":true,"id":19985}},"19985":{"varMapping":{"__isSmartRef__":true,"id":19986},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19987},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19986":{"obj":{"__isSmartRef__":true,"id":18861},"name":"onMouseDown"},"19987":{},"19988":{"timestamp":{"__isSmartRef__":true,"id":19989},"user":"sebastianwoinar","tags":[]},"19989":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"19990":{"varMapping":{"__isSmartRef__":true,"id":19991},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":19992},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19991":{"this":{"__isSmartRef__":true,"id":18861}},"19992":{"timestamp":{"__isSmartRef__":true,"id":19993},"user":"sebastianwoinar","tags":[]},"19993":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"19994":{"varMapping":{"__isSmartRef__":true,"id":19995},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":19996},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19995":{"this":{"__isSmartRef__":true,"id":18861}},"19996":{"timestamp":{"__isSmartRef__":true,"id":19997},"user":"sebastianwoinar","tags":[]},"19997":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"19998":{"varMapping":{"__isSmartRef__":true,"id":19999},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":20000},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19999":{"this":{"__isSmartRef__":true,"id":18861}},"20000":{"timestamp":{"__isSmartRef__":true,"id":20001},"user":"sebastianwoinar","tags":[]},"20001":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"20002":{"varMapping":{"__isSmartRef__":true,"id":20003},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":20004},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20003":{"this":{"__isSmartRef__":true,"id":18861}},"20004":{"timestamp":{"__isSmartRef__":true,"id":20005},"user":"sebastianwoinar","tags":[]},"20005":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"20006":{"varMapping":{"__isSmartRef__":true,"id":20007},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":20008},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20007":{"this":{"__isSmartRef__":true,"id":18861}},"20008":{"timestamp":{"__isSmartRef__":true,"id":20009},"user":"sebastianwoinar","tags":[]},"20009":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"20010":{"varMapping":{"__isSmartRef__":true,"id":20011},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":20012},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20011":{"this":{"__isSmartRef__":true,"id":18861}},"20012":{"timestamp":{"__isSmartRef__":true,"id":20013},"user":"sebastianwoinar","tags":[]},"20013":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"20014":{"varMapping":{"__isSmartRef__":true,"id":20015},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":20016},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20015":{"this":{"__isSmartRef__":true,"id":18861}},"20016":{"timestamp":{"__isSmartRef__":true,"id":20017},"user":"sebastianwoinar","tags":[]},"20017":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"20018":{"varMapping":{"__isSmartRef__":true,"id":20019},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":20020},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20019":{"this":{"__isSmartRef__":true,"id":18861}},"20020":{"timestamp":{"__isSmartRef__":true,"id":20021},"user":"sebastianwoinar","tags":[]},"20021":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"20022":{"submorphs":[{"__isSmartRef__":true,"id":20023}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20040},"id":"F3EEE6B1-A841-46E0-A1CD-21E513D0F989","eventHandler":{"__isSmartRef__":true,"id":20041},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":20042},"name":"node113","partsBinMetaInfo":{"__isSmartRef__":true,"id":20043},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5655},"owner":{"__isSmartRef__":true,"id":5408},"childNodes":[{"__isSmartRef__":true,"id":20046},{"__isSmartRef__":true,"id":20175},{"__isSmartRef__":true,"id":20304},{"__isSmartRef__":true,"id":20433},{"__isSmartRef__":true,"id":20562},{"__isSmartRef__":true,"id":20691},{"__isSmartRef__":true,"id":20820},{"__isSmartRef__":true,"id":20949},{"__isSmartRef__":true,"id":21078}],"parent":{"__isSmartRef__":true,"id":17805},"level":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21207},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(575.2,160.0)"},"20023":{"submorphs":[],"scripts":[],"id":"C86415AC-208D-441C-85DE-1BCE7DB3A386","shape":{"__isSmartRef__":true,"id":20024},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":20025},"textChunks":[{"__isSmartRef__":true,"id":20037}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":20039},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":20022},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"20024":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"20025":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":20026},{"__isSmartRef__":true,"id":20028},{"__isSmartRef__":true,"id":20030},{"__isSmartRef__":true,"id":20032},{"__isSmartRef__":true,"id":20034}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":20036},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"20026":{"date":{"__isSmartRef__":true,"id":20027},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"20027":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"20028":{"date":{"__isSmartRef__":true,"id":20029},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"20029":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"20030":{"date":{"__isSmartRef__":true,"id":20031},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"20031":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"20032":{"date":{"__isSmartRef__":true,"id":20033},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"20033":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"20034":{"date":{"__isSmartRef__":true,"id":20035},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"20035":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"20036":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"20037":{"style":{"__isSmartRef__":true,"id":20038},"morph":{"__isSmartRef__":true,"id":20023},"chunkOwner":{"__isSmartRef__":true,"id":20023},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20038":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20039":{"morph":{"__isSmartRef__":true,"id":20023},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20040":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"20041":{"morph":{"__isSmartRef__":true,"id":20022},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20042":{},"20043":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":20044}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"20044":{"date":{"__isSmartRef__":true,"id":20045},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"20045":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"20046":{"submorphs":[{"__isSmartRef__":true,"id":20047}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20064},"id":"EAF6CA19-3104-4C32-AD3A-37DC7C80763D","eventHandler":{"__isSmartRef__":true,"id":20065},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":20066},"name":"node114","partsBinMetaInfo":{"__isSmartRef__":true,"id":20067},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5657},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":20022},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20070},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(518.3,210.0)"},"20047":{"submorphs":[],"scripts":[],"id":"EA4DCC3F-40EF-4A1D-9833-90FFC6E106EB","shape":{"__isSmartRef__":true,"id":20048},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":20049},"textChunks":[{"__isSmartRef__":true,"id":20061}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":20063},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":20046},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"20048":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"20049":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":20050},{"__isSmartRef__":true,"id":20052},{"__isSmartRef__":true,"id":20054},{"__isSmartRef__":true,"id":20056},{"__isSmartRef__":true,"id":20058}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":20060},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"20050":{"date":{"__isSmartRef__":true,"id":20051},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"20051":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"20052":{"date":{"__isSmartRef__":true,"id":20053},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"20053":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"20054":{"date":{"__isSmartRef__":true,"id":20055},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"20055":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"20056":{"date":{"__isSmartRef__":true,"id":20057},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"20057":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"20058":{"date":{"__isSmartRef__":true,"id":20059},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"20059":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"20060":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"20061":{"style":{"__isSmartRef__":true,"id":20062},"morph":{"__isSmartRef__":true,"id":20047},"chunkOwner":{"__isSmartRef__":true,"id":20047},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20062":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20063":{"morph":{"__isSmartRef__":true,"id":20047},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20064":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"20065":{"morph":{"__isSmartRef__":true,"id":20046},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20066":{},"20067":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":20068}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"20068":{"date":{"__isSmartRef__":true,"id":20069},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"20069":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"20070":{"buildChildNodes":{"__isSmartRef__":true,"id":20071},"getGameTree":{"__isSmartRef__":true,"id":20075},"getLevel":{"__isSmartRef__":true,"id":20079},"getLevelWeight":{"__isSmartRef__":true,"id":20083},"getWeight":{"__isSmartRef__":true,"id":20087},"setNode":{"__isSmartRef__":true,"id":20091},"setParent":{"__isSmartRef__":true,"id":20095},"getParent":{"__isSmartRef__":true,"id":20099},"deactivate":{"__isSmartRef__":true,"id":20103},"blink":{"__isSmartRef__":true,"id":20107},"ABPreturn":{"__isSmartRef__":true,"id":20111},"ABPstart":{"__isSmartRef__":true,"id":20115},"ABPcontinue":{"__isSmartRef__":true,"id":20119},"ABPshowValue":{"__isSmartRef__":true,"id":20123},"ABPgetValue":{"__isSmartRef__":true,"id":20127},"ABPhasChildNodes":{"__isSmartRef__":true,"id":20131},"onMouseDown":{"__isSmartRef__":true,"id":20135},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":20143},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":20147},"ABPmarkAsDone":{"__isSmartRef__":true,"id":20151},"ABPmarkAsActive":{"__isSmartRef__":true,"id":20155},"getStateMorph":{"__isSmartRef__":true,"id":20159},"showState":{"__isSmartRef__":true,"id":20163},"ABPfailHard":{"__isSmartRef__":true,"id":20167},"markFinalDrawWith":{"__isSmartRef__":true,"id":20171}},"20071":{"varMapping":{"__isSmartRef__":true,"id":20072},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":20073},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20072":{"this":{"__isSmartRef__":true,"id":20046}},"20073":{"timestamp":{"__isSmartRef__":true,"id":20074},"user":"sebastianwoinar","tags":[]},"20074":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"20075":{"varMapping":{"__isSmartRef__":true,"id":20076},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":20077},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20076":{"this":{"__isSmartRef__":true,"id":20046}},"20077":{"timestamp":{"__isSmartRef__":true,"id":20078},"user":"sebastianwoinar","tags":[]},"20078":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20079":{"varMapping":{"__isSmartRef__":true,"id":20080},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":20081},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20080":{"this":{"__isSmartRef__":true,"id":20046}},"20081":{"timestamp":{"__isSmartRef__":true,"id":20082},"user":"sebastianwoinar","tags":[]},"20082":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20083":{"varMapping":{"__isSmartRef__":true,"id":20084},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":20085},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20084":{"this":{"__isSmartRef__":true,"id":20046}},"20085":{"timestamp":{"__isSmartRef__":true,"id":20086},"user":"sebastianwoinar","tags":[]},"20086":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20087":{"varMapping":{"__isSmartRef__":true,"id":20088},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":20089},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20088":{"this":{"__isSmartRef__":true,"id":20046}},"20089":{"timestamp":{"__isSmartRef__":true,"id":20090},"user":"sebastianwoinar","tags":[]},"20090":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20091":{"varMapping":{"__isSmartRef__":true,"id":20092},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":20093},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20092":{"this":{"__isSmartRef__":true,"id":20046}},"20093":{"timestamp":{"__isSmartRef__":true,"id":20094},"user":"sebastianwoinar","tags":[]},"20094":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20095":{"varMapping":{"__isSmartRef__":true,"id":20096},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":20097},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20096":{"this":{"__isSmartRef__":true,"id":20046}},"20097":{"timestamp":{"__isSmartRef__":true,"id":20098},"user":"sebastianwoinar","tags":[]},"20098":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20099":{"varMapping":{"__isSmartRef__":true,"id":20100},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":20101},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20100":{"this":{"__isSmartRef__":true,"id":20046}},"20101":{"timestamp":{"__isSmartRef__":true,"id":20102},"user":"sebastianwoinar","tags":[]},"20102":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"20103":{"varMapping":{"__isSmartRef__":true,"id":20104},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":20105},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20104":{"this":{"__isSmartRef__":true,"id":20046}},"20105":{"timestamp":{"__isSmartRef__":true,"id":20106},"user":"sebastianwoinar","tags":[]},"20106":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"20107":{"varMapping":{"__isSmartRef__":true,"id":20108},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":20109},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20108":{"this":{"__isSmartRef__":true,"id":20046}},"20109":{"timestamp":{"__isSmartRef__":true,"id":20110},"user":"sebastianwoinar","tags":[]},"20110":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"20111":{"varMapping":{"__isSmartRef__":true,"id":20112},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":20113},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20112":{"this":{"__isSmartRef__":true,"id":20046}},"20113":{"timestamp":{"__isSmartRef__":true,"id":20114},"user":"sebastianwoinar","tags":[]},"20114":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"20115":{"varMapping":{"__isSmartRef__":true,"id":20116},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":20117},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20116":{"this":{"__isSmartRef__":true,"id":20046}},"20117":{"timestamp":{"__isSmartRef__":true,"id":20118},"user":"sebastianwoinar","tags":[]},"20118":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"20119":{"varMapping":{"__isSmartRef__":true,"id":20120},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":20121},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20120":{"this":{"__isSmartRef__":true,"id":20046}},"20121":{"timestamp":{"__isSmartRef__":true,"id":20122},"user":"sebastianwoinar","tags":[]},"20122":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"20123":{"varMapping":{"__isSmartRef__":true,"id":20124},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":20125},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20124":{"this":{"__isSmartRef__":true,"id":20046}},"20125":{"timestamp":{"__isSmartRef__":true,"id":20126},"user":"sebastianwoinar","tags":[]},"20126":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"20127":{"varMapping":{"__isSmartRef__":true,"id":20128},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":20129},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20128":{"this":{"__isSmartRef__":true,"id":20046}},"20129":{"timestamp":{"__isSmartRef__":true,"id":20130},"user":"sebastianwoinar","tags":[]},"20130":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"20131":{"varMapping":{"__isSmartRef__":true,"id":20132},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":20133},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20132":{"this":{"__isSmartRef__":true,"id":20046}},"20133":{"timestamp":{"__isSmartRef__":true,"id":20134},"user":"sebastianwoinar","tags":[]},"20134":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"20135":{"varMapping":{"__isSmartRef__":true,"id":20136},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":20141},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20136":{"this":{"__isSmartRef__":true,"id":20046},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20137}},"20137":{"$super":{"__isSmartRef__":true,"id":20138}},"20138":{"varMapping":{"__isSmartRef__":true,"id":20139},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":20140},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20139":{"obj":{"__isSmartRef__":true,"id":20046},"name":"onMouseDown"},"20140":{},"20141":{"timestamp":{"__isSmartRef__":true,"id":20142},"user":"sebastianwoinar","tags":[]},"20142":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"20143":{"varMapping":{"__isSmartRef__":true,"id":20144},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":20145},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20144":{"this":{"__isSmartRef__":true,"id":20046}},"20145":{"timestamp":{"__isSmartRef__":true,"id":20146},"user":"sebastianwoinar","tags":[]},"20146":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"20147":{"varMapping":{"__isSmartRef__":true,"id":20148},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":20149},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20148":{"this":{"__isSmartRef__":true,"id":20046}},"20149":{"timestamp":{"__isSmartRef__":true,"id":20150},"user":"sebastianwoinar","tags":[]},"20150":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"20151":{"varMapping":{"__isSmartRef__":true,"id":20152},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":20153},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20152":{"this":{"__isSmartRef__":true,"id":20046}},"20153":{"timestamp":{"__isSmartRef__":true,"id":20154},"user":"sebastianwoinar","tags":[]},"20154":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"20155":{"varMapping":{"__isSmartRef__":true,"id":20156},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":20157},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20156":{"this":{"__isSmartRef__":true,"id":20046}},"20157":{"timestamp":{"__isSmartRef__":true,"id":20158},"user":"sebastianwoinar","tags":[]},"20158":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"20159":{"varMapping":{"__isSmartRef__":true,"id":20160},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":20161},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20160":{"this":{"__isSmartRef__":true,"id":20046}},"20161":{"timestamp":{"__isSmartRef__":true,"id":20162},"user":"sebastianwoinar","tags":[]},"20162":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"20163":{"varMapping":{"__isSmartRef__":true,"id":20164},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":20165},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20164":{"this":{"__isSmartRef__":true,"id":20046}},"20165":{"timestamp":{"__isSmartRef__":true,"id":20166},"user":"sebastianwoinar","tags":[]},"20166":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"20167":{"varMapping":{"__isSmartRef__":true,"id":20168},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":20169},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20168":{"this":{"__isSmartRef__":true,"id":20046}},"20169":{"timestamp":{"__isSmartRef__":true,"id":20170},"user":"sebastianwoinar","tags":[]},"20170":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"20171":{"varMapping":{"__isSmartRef__":true,"id":20172},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":20173},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20172":{"this":{"__isSmartRef__":true,"id":20046}},"20173":{"timestamp":{"__isSmartRef__":true,"id":20174},"user":"sebastianwoinar","tags":[]},"20174":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"20175":{"submorphs":[{"__isSmartRef__":true,"id":20176}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20193},"id":"5601F998-344C-49BE-B79F-23255EDDB4CD","eventHandler":{"__isSmartRef__":true,"id":20194},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":20195},"name":"node115","partsBinMetaInfo":{"__isSmartRef__":true,"id":20196},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5659},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":20022},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20199},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(523.4,210.0)"},"20176":{"submorphs":[],"scripts":[],"id":"406F91A1-A889-437C-9885-9AA35F7706F8","shape":{"__isSmartRef__":true,"id":20177},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":20178},"textChunks":[{"__isSmartRef__":true,"id":20190}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":20192},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":20175},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"20177":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"20178":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":20179},{"__isSmartRef__":true,"id":20181},{"__isSmartRef__":true,"id":20183},{"__isSmartRef__":true,"id":20185},{"__isSmartRef__":true,"id":20187}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":20189},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"20179":{"date":{"__isSmartRef__":true,"id":20180},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"20180":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"20181":{"date":{"__isSmartRef__":true,"id":20182},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"20182":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"20183":{"date":{"__isSmartRef__":true,"id":20184},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"20184":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"20185":{"date":{"__isSmartRef__":true,"id":20186},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"20186":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"20187":{"date":{"__isSmartRef__":true,"id":20188},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"20188":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"20189":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"20190":{"style":{"__isSmartRef__":true,"id":20191},"morph":{"__isSmartRef__":true,"id":20176},"chunkOwner":{"__isSmartRef__":true,"id":20176},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20191":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20192":{"morph":{"__isSmartRef__":true,"id":20176},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20193":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"20194":{"morph":{"__isSmartRef__":true,"id":20175},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20195":{},"20196":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":20197}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"20197":{"date":{"__isSmartRef__":true,"id":20198},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"20198":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"20199":{"buildChildNodes":{"__isSmartRef__":true,"id":20200},"getGameTree":{"__isSmartRef__":true,"id":20204},"getLevel":{"__isSmartRef__":true,"id":20208},"getLevelWeight":{"__isSmartRef__":true,"id":20212},"getWeight":{"__isSmartRef__":true,"id":20216},"setNode":{"__isSmartRef__":true,"id":20220},"setParent":{"__isSmartRef__":true,"id":20224},"getParent":{"__isSmartRef__":true,"id":20228},"deactivate":{"__isSmartRef__":true,"id":20232},"blink":{"__isSmartRef__":true,"id":20236},"ABPreturn":{"__isSmartRef__":true,"id":20240},"ABPstart":{"__isSmartRef__":true,"id":20244},"ABPcontinue":{"__isSmartRef__":true,"id":20248},"ABPshowValue":{"__isSmartRef__":true,"id":20252},"ABPgetValue":{"__isSmartRef__":true,"id":20256},"ABPhasChildNodes":{"__isSmartRef__":true,"id":20260},"onMouseDown":{"__isSmartRef__":true,"id":20264},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":20272},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":20276},"ABPmarkAsDone":{"__isSmartRef__":true,"id":20280},"ABPmarkAsActive":{"__isSmartRef__":true,"id":20284},"getStateMorph":{"__isSmartRef__":true,"id":20288},"showState":{"__isSmartRef__":true,"id":20292},"ABPfailHard":{"__isSmartRef__":true,"id":20296},"markFinalDrawWith":{"__isSmartRef__":true,"id":20300}},"20200":{"varMapping":{"__isSmartRef__":true,"id":20201},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":20202},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20201":{"this":{"__isSmartRef__":true,"id":20175}},"20202":{"timestamp":{"__isSmartRef__":true,"id":20203},"user":"sebastianwoinar","tags":[]},"20203":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"20204":{"varMapping":{"__isSmartRef__":true,"id":20205},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":20206},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20205":{"this":{"__isSmartRef__":true,"id":20175}},"20206":{"timestamp":{"__isSmartRef__":true,"id":20207},"user":"sebastianwoinar","tags":[]},"20207":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20208":{"varMapping":{"__isSmartRef__":true,"id":20209},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":20210},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20209":{"this":{"__isSmartRef__":true,"id":20175}},"20210":{"timestamp":{"__isSmartRef__":true,"id":20211},"user":"sebastianwoinar","tags":[]},"20211":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20212":{"varMapping":{"__isSmartRef__":true,"id":20213},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":20214},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20213":{"this":{"__isSmartRef__":true,"id":20175}},"20214":{"timestamp":{"__isSmartRef__":true,"id":20215},"user":"sebastianwoinar","tags":[]},"20215":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20216":{"varMapping":{"__isSmartRef__":true,"id":20217},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":20218},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20217":{"this":{"__isSmartRef__":true,"id":20175}},"20218":{"timestamp":{"__isSmartRef__":true,"id":20219},"user":"sebastianwoinar","tags":[]},"20219":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20220":{"varMapping":{"__isSmartRef__":true,"id":20221},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":20222},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20221":{"this":{"__isSmartRef__":true,"id":20175}},"20222":{"timestamp":{"__isSmartRef__":true,"id":20223},"user":"sebastianwoinar","tags":[]},"20223":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20224":{"varMapping":{"__isSmartRef__":true,"id":20225},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":20226},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20225":{"this":{"__isSmartRef__":true,"id":20175}},"20226":{"timestamp":{"__isSmartRef__":true,"id":20227},"user":"sebastianwoinar","tags":[]},"20227":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20228":{"varMapping":{"__isSmartRef__":true,"id":20229},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":20230},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20229":{"this":{"__isSmartRef__":true,"id":20175}},"20230":{"timestamp":{"__isSmartRef__":true,"id":20231},"user":"sebastianwoinar","tags":[]},"20231":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"20232":{"varMapping":{"__isSmartRef__":true,"id":20233},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":20234},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20233":{"this":{"__isSmartRef__":true,"id":20175}},"20234":{"timestamp":{"__isSmartRef__":true,"id":20235},"user":"sebastianwoinar","tags":[]},"20235":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"20236":{"varMapping":{"__isSmartRef__":true,"id":20237},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":20238},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20237":{"this":{"__isSmartRef__":true,"id":20175}},"20238":{"timestamp":{"__isSmartRef__":true,"id":20239},"user":"sebastianwoinar","tags":[]},"20239":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"20240":{"varMapping":{"__isSmartRef__":true,"id":20241},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":20242},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20241":{"this":{"__isSmartRef__":true,"id":20175}},"20242":{"timestamp":{"__isSmartRef__":true,"id":20243},"user":"sebastianwoinar","tags":[]},"20243":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"20244":{"varMapping":{"__isSmartRef__":true,"id":20245},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":20246},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20245":{"this":{"__isSmartRef__":true,"id":20175}},"20246":{"timestamp":{"__isSmartRef__":true,"id":20247},"user":"sebastianwoinar","tags":[]},"20247":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"20248":{"varMapping":{"__isSmartRef__":true,"id":20249},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":20250},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20249":{"this":{"__isSmartRef__":true,"id":20175}},"20250":{"timestamp":{"__isSmartRef__":true,"id":20251},"user":"sebastianwoinar","tags":[]},"20251":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"20252":{"varMapping":{"__isSmartRef__":true,"id":20253},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":20254},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20253":{"this":{"__isSmartRef__":true,"id":20175}},"20254":{"timestamp":{"__isSmartRef__":true,"id":20255},"user":"sebastianwoinar","tags":[]},"20255":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"20256":{"varMapping":{"__isSmartRef__":true,"id":20257},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":20258},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20257":{"this":{"__isSmartRef__":true,"id":20175}},"20258":{"timestamp":{"__isSmartRef__":true,"id":20259},"user":"sebastianwoinar","tags":[]},"20259":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"20260":{"varMapping":{"__isSmartRef__":true,"id":20261},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":20262},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20261":{"this":{"__isSmartRef__":true,"id":20175}},"20262":{"timestamp":{"__isSmartRef__":true,"id":20263},"user":"sebastianwoinar","tags":[]},"20263":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"20264":{"varMapping":{"__isSmartRef__":true,"id":20265},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":20270},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20265":{"this":{"__isSmartRef__":true,"id":20175},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20266}},"20266":{"$super":{"__isSmartRef__":true,"id":20267}},"20267":{"varMapping":{"__isSmartRef__":true,"id":20268},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":20269},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20268":{"obj":{"__isSmartRef__":true,"id":20175},"name":"onMouseDown"},"20269":{},"20270":{"timestamp":{"__isSmartRef__":true,"id":20271},"user":"sebastianwoinar","tags":[]},"20271":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"20272":{"varMapping":{"__isSmartRef__":true,"id":20273},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":20274},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20273":{"this":{"__isSmartRef__":true,"id":20175}},"20274":{"timestamp":{"__isSmartRef__":true,"id":20275},"user":"sebastianwoinar","tags":[]},"20275":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"20276":{"varMapping":{"__isSmartRef__":true,"id":20277},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":20278},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20277":{"this":{"__isSmartRef__":true,"id":20175}},"20278":{"timestamp":{"__isSmartRef__":true,"id":20279},"user":"sebastianwoinar","tags":[]},"20279":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"20280":{"varMapping":{"__isSmartRef__":true,"id":20281},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":20282},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20281":{"this":{"__isSmartRef__":true,"id":20175}},"20282":{"timestamp":{"__isSmartRef__":true,"id":20283},"user":"sebastianwoinar","tags":[]},"20283":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"20284":{"varMapping":{"__isSmartRef__":true,"id":20285},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":20286},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20285":{"this":{"__isSmartRef__":true,"id":20175}},"20286":{"timestamp":{"__isSmartRef__":true,"id":20287},"user":"sebastianwoinar","tags":[]},"20287":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"20288":{"varMapping":{"__isSmartRef__":true,"id":20289},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":20290},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20289":{"this":{"__isSmartRef__":true,"id":20175}},"20290":{"timestamp":{"__isSmartRef__":true,"id":20291},"user":"sebastianwoinar","tags":[]},"20291":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"20292":{"varMapping":{"__isSmartRef__":true,"id":20293},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":20294},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20293":{"this":{"__isSmartRef__":true,"id":20175}},"20294":{"timestamp":{"__isSmartRef__":true,"id":20295},"user":"sebastianwoinar","tags":[]},"20295":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"20296":{"varMapping":{"__isSmartRef__":true,"id":20297},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":20298},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20297":{"this":{"__isSmartRef__":true,"id":20175}},"20298":{"timestamp":{"__isSmartRef__":true,"id":20299},"user":"sebastianwoinar","tags":[]},"20299":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"20300":{"varMapping":{"__isSmartRef__":true,"id":20301},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":20302},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20301":{"this":{"__isSmartRef__":true,"id":20175}},"20302":{"timestamp":{"__isSmartRef__":true,"id":20303},"user":"sebastianwoinar","tags":[]},"20303":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"20304":{"submorphs":[{"__isSmartRef__":true,"id":20305}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20322},"id":"6D4D8780-271B-419E-B155-DF108B6FF4BE","eventHandler":{"__isSmartRef__":true,"id":20323},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":20324},"name":"node116","partsBinMetaInfo":{"__isSmartRef__":true,"id":20325},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5661},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":20022},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20328},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(528.6,210.0)"},"20305":{"submorphs":[],"scripts":[],"id":"73EBB6C0-EE7E-4FAB-B6CF-8A05296777CF","shape":{"__isSmartRef__":true,"id":20306},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":20307},"textChunks":[{"__isSmartRef__":true,"id":20319}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":20321},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":20304},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"20306":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"20307":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":20308},{"__isSmartRef__":true,"id":20310},{"__isSmartRef__":true,"id":20312},{"__isSmartRef__":true,"id":20314},{"__isSmartRef__":true,"id":20316}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":20318},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"20308":{"date":{"__isSmartRef__":true,"id":20309},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"20309":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"20310":{"date":{"__isSmartRef__":true,"id":20311},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"20311":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"20312":{"date":{"__isSmartRef__":true,"id":20313},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"20313":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"20314":{"date":{"__isSmartRef__":true,"id":20315},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"20315":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"20316":{"date":{"__isSmartRef__":true,"id":20317},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"20317":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"20318":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"20319":{"style":{"__isSmartRef__":true,"id":20320},"morph":{"__isSmartRef__":true,"id":20305},"chunkOwner":{"__isSmartRef__":true,"id":20305},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20320":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20321":{"morph":{"__isSmartRef__":true,"id":20305},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20322":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"20323":{"morph":{"__isSmartRef__":true,"id":20304},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20324":{},"20325":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":20326}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"20326":{"date":{"__isSmartRef__":true,"id":20327},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"20327":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"20328":{"buildChildNodes":{"__isSmartRef__":true,"id":20329},"getGameTree":{"__isSmartRef__":true,"id":20333},"getLevel":{"__isSmartRef__":true,"id":20337},"getLevelWeight":{"__isSmartRef__":true,"id":20341},"getWeight":{"__isSmartRef__":true,"id":20345},"setNode":{"__isSmartRef__":true,"id":20349},"setParent":{"__isSmartRef__":true,"id":20353},"getParent":{"__isSmartRef__":true,"id":20357},"deactivate":{"__isSmartRef__":true,"id":20361},"blink":{"__isSmartRef__":true,"id":20365},"ABPreturn":{"__isSmartRef__":true,"id":20369},"ABPstart":{"__isSmartRef__":true,"id":20373},"ABPcontinue":{"__isSmartRef__":true,"id":20377},"ABPshowValue":{"__isSmartRef__":true,"id":20381},"ABPgetValue":{"__isSmartRef__":true,"id":20385},"ABPhasChildNodes":{"__isSmartRef__":true,"id":20389},"onMouseDown":{"__isSmartRef__":true,"id":20393},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":20401},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":20405},"ABPmarkAsDone":{"__isSmartRef__":true,"id":20409},"ABPmarkAsActive":{"__isSmartRef__":true,"id":20413},"getStateMorph":{"__isSmartRef__":true,"id":20417},"showState":{"__isSmartRef__":true,"id":20421},"ABPfailHard":{"__isSmartRef__":true,"id":20425},"markFinalDrawWith":{"__isSmartRef__":true,"id":20429}},"20329":{"varMapping":{"__isSmartRef__":true,"id":20330},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":20331},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20330":{"this":{"__isSmartRef__":true,"id":20304}},"20331":{"timestamp":{"__isSmartRef__":true,"id":20332},"user":"sebastianwoinar","tags":[]},"20332":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"20333":{"varMapping":{"__isSmartRef__":true,"id":20334},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":20335},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20334":{"this":{"__isSmartRef__":true,"id":20304}},"20335":{"timestamp":{"__isSmartRef__":true,"id":20336},"user":"sebastianwoinar","tags":[]},"20336":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20337":{"varMapping":{"__isSmartRef__":true,"id":20338},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":20339},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20338":{"this":{"__isSmartRef__":true,"id":20304}},"20339":{"timestamp":{"__isSmartRef__":true,"id":20340},"user":"sebastianwoinar","tags":[]},"20340":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20341":{"varMapping":{"__isSmartRef__":true,"id":20342},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":20343},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20342":{"this":{"__isSmartRef__":true,"id":20304}},"20343":{"timestamp":{"__isSmartRef__":true,"id":20344},"user":"sebastianwoinar","tags":[]},"20344":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20345":{"varMapping":{"__isSmartRef__":true,"id":20346},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":20347},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20346":{"this":{"__isSmartRef__":true,"id":20304}},"20347":{"timestamp":{"__isSmartRef__":true,"id":20348},"user":"sebastianwoinar","tags":[]},"20348":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20349":{"varMapping":{"__isSmartRef__":true,"id":20350},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":20351},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20350":{"this":{"__isSmartRef__":true,"id":20304}},"20351":{"timestamp":{"__isSmartRef__":true,"id":20352},"user":"sebastianwoinar","tags":[]},"20352":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20353":{"varMapping":{"__isSmartRef__":true,"id":20354},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":20355},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20354":{"this":{"__isSmartRef__":true,"id":20304}},"20355":{"timestamp":{"__isSmartRef__":true,"id":20356},"user":"sebastianwoinar","tags":[]},"20356":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20357":{"varMapping":{"__isSmartRef__":true,"id":20358},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":20359},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20358":{"this":{"__isSmartRef__":true,"id":20304}},"20359":{"timestamp":{"__isSmartRef__":true,"id":20360},"user":"sebastianwoinar","tags":[]},"20360":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"20361":{"varMapping":{"__isSmartRef__":true,"id":20362},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":20363},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20362":{"this":{"__isSmartRef__":true,"id":20304}},"20363":{"timestamp":{"__isSmartRef__":true,"id":20364},"user":"sebastianwoinar","tags":[]},"20364":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"20365":{"varMapping":{"__isSmartRef__":true,"id":20366},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":20367},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20366":{"this":{"__isSmartRef__":true,"id":20304}},"20367":{"timestamp":{"__isSmartRef__":true,"id":20368},"user":"sebastianwoinar","tags":[]},"20368":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"20369":{"varMapping":{"__isSmartRef__":true,"id":20370},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":20371},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20370":{"this":{"__isSmartRef__":true,"id":20304}},"20371":{"timestamp":{"__isSmartRef__":true,"id":20372},"user":"sebastianwoinar","tags":[]},"20372":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"20373":{"varMapping":{"__isSmartRef__":true,"id":20374},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":20375},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20374":{"this":{"__isSmartRef__":true,"id":20304}},"20375":{"timestamp":{"__isSmartRef__":true,"id":20376},"user":"sebastianwoinar","tags":[]},"20376":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"20377":{"varMapping":{"__isSmartRef__":true,"id":20378},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":20379},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20378":{"this":{"__isSmartRef__":true,"id":20304}},"20379":{"timestamp":{"__isSmartRef__":true,"id":20380},"user":"sebastianwoinar","tags":[]},"20380":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"20381":{"varMapping":{"__isSmartRef__":true,"id":20382},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":20383},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20382":{"this":{"__isSmartRef__":true,"id":20304}},"20383":{"timestamp":{"__isSmartRef__":true,"id":20384},"user":"sebastianwoinar","tags":[]},"20384":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"20385":{"varMapping":{"__isSmartRef__":true,"id":20386},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":20387},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20386":{"this":{"__isSmartRef__":true,"id":20304}},"20387":{"timestamp":{"__isSmartRef__":true,"id":20388},"user":"sebastianwoinar","tags":[]},"20388":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"20389":{"varMapping":{"__isSmartRef__":true,"id":20390},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":20391},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20390":{"this":{"__isSmartRef__":true,"id":20304}},"20391":{"timestamp":{"__isSmartRef__":true,"id":20392},"user":"sebastianwoinar","tags":[]},"20392":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"20393":{"varMapping":{"__isSmartRef__":true,"id":20394},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":20399},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20394":{"this":{"__isSmartRef__":true,"id":20304},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20395}},"20395":{"$super":{"__isSmartRef__":true,"id":20396}},"20396":{"varMapping":{"__isSmartRef__":true,"id":20397},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":20398},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20397":{"obj":{"__isSmartRef__":true,"id":20304},"name":"onMouseDown"},"20398":{},"20399":{"timestamp":{"__isSmartRef__":true,"id":20400},"user":"sebastianwoinar","tags":[]},"20400":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"20401":{"varMapping":{"__isSmartRef__":true,"id":20402},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":20403},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20402":{"this":{"__isSmartRef__":true,"id":20304}},"20403":{"timestamp":{"__isSmartRef__":true,"id":20404},"user":"sebastianwoinar","tags":[]},"20404":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"20405":{"varMapping":{"__isSmartRef__":true,"id":20406},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":20407},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20406":{"this":{"__isSmartRef__":true,"id":20304}},"20407":{"timestamp":{"__isSmartRef__":true,"id":20408},"user":"sebastianwoinar","tags":[]},"20408":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"20409":{"varMapping":{"__isSmartRef__":true,"id":20410},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":20411},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20410":{"this":{"__isSmartRef__":true,"id":20304}},"20411":{"timestamp":{"__isSmartRef__":true,"id":20412},"user":"sebastianwoinar","tags":[]},"20412":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"20413":{"varMapping":{"__isSmartRef__":true,"id":20414},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":20415},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20414":{"this":{"__isSmartRef__":true,"id":20304}},"20415":{"timestamp":{"__isSmartRef__":true,"id":20416},"user":"sebastianwoinar","tags":[]},"20416":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"20417":{"varMapping":{"__isSmartRef__":true,"id":20418},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":20419},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20418":{"this":{"__isSmartRef__":true,"id":20304}},"20419":{"timestamp":{"__isSmartRef__":true,"id":20420},"user":"sebastianwoinar","tags":[]},"20420":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"20421":{"varMapping":{"__isSmartRef__":true,"id":20422},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":20423},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20422":{"this":{"__isSmartRef__":true,"id":20304}},"20423":{"timestamp":{"__isSmartRef__":true,"id":20424},"user":"sebastianwoinar","tags":[]},"20424":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"20425":{"varMapping":{"__isSmartRef__":true,"id":20426},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":20427},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20426":{"this":{"__isSmartRef__":true,"id":20304}},"20427":{"timestamp":{"__isSmartRef__":true,"id":20428},"user":"sebastianwoinar","tags":[]},"20428":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"20429":{"varMapping":{"__isSmartRef__":true,"id":20430},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":20431},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20430":{"this":{"__isSmartRef__":true,"id":20304}},"20431":{"timestamp":{"__isSmartRef__":true,"id":20432},"user":"sebastianwoinar","tags":[]},"20432":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"20433":{"submorphs":[{"__isSmartRef__":true,"id":20434}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20451},"id":"A9574563-4137-4682-91A7-CBAFC775E3C5","eventHandler":{"__isSmartRef__":true,"id":20452},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":20453},"name":"node117","partsBinMetaInfo":{"__isSmartRef__":true,"id":20454},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5663},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":20022},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20457},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(533.8,210.0)"},"20434":{"submorphs":[],"scripts":[],"id":"009729EE-BAA1-4FCE-8F95-87A05B9C9678","shape":{"__isSmartRef__":true,"id":20435},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":20436},"textChunks":[{"__isSmartRef__":true,"id":20448}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":20450},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":20433},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"20435":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"20436":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":20437},{"__isSmartRef__":true,"id":20439},{"__isSmartRef__":true,"id":20441},{"__isSmartRef__":true,"id":20443},{"__isSmartRef__":true,"id":20445}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":20447},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"20437":{"date":{"__isSmartRef__":true,"id":20438},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"20438":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"20439":{"date":{"__isSmartRef__":true,"id":20440},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"20440":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"20441":{"date":{"__isSmartRef__":true,"id":20442},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"20442":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"20443":{"date":{"__isSmartRef__":true,"id":20444},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"20444":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"20445":{"date":{"__isSmartRef__":true,"id":20446},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"20446":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"20447":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"20448":{"style":{"__isSmartRef__":true,"id":20449},"morph":{"__isSmartRef__":true,"id":20434},"chunkOwner":{"__isSmartRef__":true,"id":20434},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20449":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20450":{"morph":{"__isSmartRef__":true,"id":20434},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20451":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"20452":{"morph":{"__isSmartRef__":true,"id":20433},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20453":{},"20454":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":20455}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"20455":{"date":{"__isSmartRef__":true,"id":20456},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"20456":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"20457":{"buildChildNodes":{"__isSmartRef__":true,"id":20458},"getGameTree":{"__isSmartRef__":true,"id":20462},"getLevel":{"__isSmartRef__":true,"id":20466},"getLevelWeight":{"__isSmartRef__":true,"id":20470},"getWeight":{"__isSmartRef__":true,"id":20474},"setNode":{"__isSmartRef__":true,"id":20478},"setParent":{"__isSmartRef__":true,"id":20482},"getParent":{"__isSmartRef__":true,"id":20486},"deactivate":{"__isSmartRef__":true,"id":20490},"blink":{"__isSmartRef__":true,"id":20494},"ABPreturn":{"__isSmartRef__":true,"id":20498},"ABPstart":{"__isSmartRef__":true,"id":20502},"ABPcontinue":{"__isSmartRef__":true,"id":20506},"ABPshowValue":{"__isSmartRef__":true,"id":20510},"ABPgetValue":{"__isSmartRef__":true,"id":20514},"ABPhasChildNodes":{"__isSmartRef__":true,"id":20518},"onMouseDown":{"__isSmartRef__":true,"id":20522},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":20530},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":20534},"ABPmarkAsDone":{"__isSmartRef__":true,"id":20538},"ABPmarkAsActive":{"__isSmartRef__":true,"id":20542},"getStateMorph":{"__isSmartRef__":true,"id":20546},"showState":{"__isSmartRef__":true,"id":20550},"ABPfailHard":{"__isSmartRef__":true,"id":20554},"markFinalDrawWith":{"__isSmartRef__":true,"id":20558}},"20458":{"varMapping":{"__isSmartRef__":true,"id":20459},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":20460},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20459":{"this":{"__isSmartRef__":true,"id":20433}},"20460":{"timestamp":{"__isSmartRef__":true,"id":20461},"user":"sebastianwoinar","tags":[]},"20461":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"20462":{"varMapping":{"__isSmartRef__":true,"id":20463},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":20464},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20463":{"this":{"__isSmartRef__":true,"id":20433}},"20464":{"timestamp":{"__isSmartRef__":true,"id":20465},"user":"sebastianwoinar","tags":[]},"20465":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20466":{"varMapping":{"__isSmartRef__":true,"id":20467},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":20468},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20467":{"this":{"__isSmartRef__":true,"id":20433}},"20468":{"timestamp":{"__isSmartRef__":true,"id":20469},"user":"sebastianwoinar","tags":[]},"20469":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20470":{"varMapping":{"__isSmartRef__":true,"id":20471},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":20472},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20471":{"this":{"__isSmartRef__":true,"id":20433}},"20472":{"timestamp":{"__isSmartRef__":true,"id":20473},"user":"sebastianwoinar","tags":[]},"20473":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20474":{"varMapping":{"__isSmartRef__":true,"id":20475},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":20476},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20475":{"this":{"__isSmartRef__":true,"id":20433}},"20476":{"timestamp":{"__isSmartRef__":true,"id":20477},"user":"sebastianwoinar","tags":[]},"20477":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20478":{"varMapping":{"__isSmartRef__":true,"id":20479},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":20480},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20479":{"this":{"__isSmartRef__":true,"id":20433}},"20480":{"timestamp":{"__isSmartRef__":true,"id":20481},"user":"sebastianwoinar","tags":[]},"20481":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20482":{"varMapping":{"__isSmartRef__":true,"id":20483},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":20484},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20483":{"this":{"__isSmartRef__":true,"id":20433}},"20484":{"timestamp":{"__isSmartRef__":true,"id":20485},"user":"sebastianwoinar","tags":[]},"20485":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20486":{"varMapping":{"__isSmartRef__":true,"id":20487},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":20488},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20487":{"this":{"__isSmartRef__":true,"id":20433}},"20488":{"timestamp":{"__isSmartRef__":true,"id":20489},"user":"sebastianwoinar","tags":[]},"20489":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"20490":{"varMapping":{"__isSmartRef__":true,"id":20491},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":20492},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20491":{"this":{"__isSmartRef__":true,"id":20433}},"20492":{"timestamp":{"__isSmartRef__":true,"id":20493},"user":"sebastianwoinar","tags":[]},"20493":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"20494":{"varMapping":{"__isSmartRef__":true,"id":20495},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":20496},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20495":{"this":{"__isSmartRef__":true,"id":20433}},"20496":{"timestamp":{"__isSmartRef__":true,"id":20497},"user":"sebastianwoinar","tags":[]},"20497":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"20498":{"varMapping":{"__isSmartRef__":true,"id":20499},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":20500},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20499":{"this":{"__isSmartRef__":true,"id":20433}},"20500":{"timestamp":{"__isSmartRef__":true,"id":20501},"user":"sebastianwoinar","tags":[]},"20501":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"20502":{"varMapping":{"__isSmartRef__":true,"id":20503},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":20504},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20503":{"this":{"__isSmartRef__":true,"id":20433}},"20504":{"timestamp":{"__isSmartRef__":true,"id":20505},"user":"sebastianwoinar","tags":[]},"20505":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"20506":{"varMapping":{"__isSmartRef__":true,"id":20507},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":20508},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20507":{"this":{"__isSmartRef__":true,"id":20433}},"20508":{"timestamp":{"__isSmartRef__":true,"id":20509},"user":"sebastianwoinar","tags":[]},"20509":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"20510":{"varMapping":{"__isSmartRef__":true,"id":20511},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":20512},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20511":{"this":{"__isSmartRef__":true,"id":20433}},"20512":{"timestamp":{"__isSmartRef__":true,"id":20513},"user":"sebastianwoinar","tags":[]},"20513":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"20514":{"varMapping":{"__isSmartRef__":true,"id":20515},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":20516},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20515":{"this":{"__isSmartRef__":true,"id":20433}},"20516":{"timestamp":{"__isSmartRef__":true,"id":20517},"user":"sebastianwoinar","tags":[]},"20517":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"20518":{"varMapping":{"__isSmartRef__":true,"id":20519},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":20520},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20519":{"this":{"__isSmartRef__":true,"id":20433}},"20520":{"timestamp":{"__isSmartRef__":true,"id":20521},"user":"sebastianwoinar","tags":[]},"20521":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"20522":{"varMapping":{"__isSmartRef__":true,"id":20523},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":20528},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20523":{"this":{"__isSmartRef__":true,"id":20433},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20524}},"20524":{"$super":{"__isSmartRef__":true,"id":20525}},"20525":{"varMapping":{"__isSmartRef__":true,"id":20526},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":20527},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20526":{"obj":{"__isSmartRef__":true,"id":20433},"name":"onMouseDown"},"20527":{},"20528":{"timestamp":{"__isSmartRef__":true,"id":20529},"user":"sebastianwoinar","tags":[]},"20529":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"20530":{"varMapping":{"__isSmartRef__":true,"id":20531},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":20532},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20531":{"this":{"__isSmartRef__":true,"id":20433}},"20532":{"timestamp":{"__isSmartRef__":true,"id":20533},"user":"sebastianwoinar","tags":[]},"20533":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"20534":{"varMapping":{"__isSmartRef__":true,"id":20535},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":20536},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20535":{"this":{"__isSmartRef__":true,"id":20433}},"20536":{"timestamp":{"__isSmartRef__":true,"id":20537},"user":"sebastianwoinar","tags":[]},"20537":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"20538":{"varMapping":{"__isSmartRef__":true,"id":20539},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":20540},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20539":{"this":{"__isSmartRef__":true,"id":20433}},"20540":{"timestamp":{"__isSmartRef__":true,"id":20541},"user":"sebastianwoinar","tags":[]},"20541":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"20542":{"varMapping":{"__isSmartRef__":true,"id":20543},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":20544},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20543":{"this":{"__isSmartRef__":true,"id":20433}},"20544":{"timestamp":{"__isSmartRef__":true,"id":20545},"user":"sebastianwoinar","tags":[]},"20545":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"20546":{"varMapping":{"__isSmartRef__":true,"id":20547},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":20548},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20547":{"this":{"__isSmartRef__":true,"id":20433}},"20548":{"timestamp":{"__isSmartRef__":true,"id":20549},"user":"sebastianwoinar","tags":[]},"20549":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"20550":{"varMapping":{"__isSmartRef__":true,"id":20551},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":20552},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20551":{"this":{"__isSmartRef__":true,"id":20433}},"20552":{"timestamp":{"__isSmartRef__":true,"id":20553},"user":"sebastianwoinar","tags":[]},"20553":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"20554":{"varMapping":{"__isSmartRef__":true,"id":20555},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":20556},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20555":{"this":{"__isSmartRef__":true,"id":20433}},"20556":{"timestamp":{"__isSmartRef__":true,"id":20557},"user":"sebastianwoinar","tags":[]},"20557":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"20558":{"varMapping":{"__isSmartRef__":true,"id":20559},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":20560},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20559":{"this":{"__isSmartRef__":true,"id":20433}},"20560":{"timestamp":{"__isSmartRef__":true,"id":20561},"user":"sebastianwoinar","tags":[]},"20561":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"20562":{"submorphs":[{"__isSmartRef__":true,"id":20563}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20580},"id":"14183DBC-A29F-4D02-B516-14A789497A68","eventHandler":{"__isSmartRef__":true,"id":20581},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":20582},"name":"node118","partsBinMetaInfo":{"__isSmartRef__":true,"id":20583},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5665},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":20022},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20586},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(539.0,210.0)"},"20563":{"submorphs":[],"scripts":[],"id":"0A9B22DE-348D-4245-B23A-4BBD7DCB0C33","shape":{"__isSmartRef__":true,"id":20564},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":20565},"textChunks":[{"__isSmartRef__":true,"id":20577}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":20579},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":20562},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"20564":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"20565":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":20566},{"__isSmartRef__":true,"id":20568},{"__isSmartRef__":true,"id":20570},{"__isSmartRef__":true,"id":20572},{"__isSmartRef__":true,"id":20574}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":20576},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"20566":{"date":{"__isSmartRef__":true,"id":20567},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"20567":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"20568":{"date":{"__isSmartRef__":true,"id":20569},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"20569":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"20570":{"date":{"__isSmartRef__":true,"id":20571},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"20571":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"20572":{"date":{"__isSmartRef__":true,"id":20573},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"20573":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"20574":{"date":{"__isSmartRef__":true,"id":20575},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"20575":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"20576":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"20577":{"style":{"__isSmartRef__":true,"id":20578},"morph":{"__isSmartRef__":true,"id":20563},"chunkOwner":{"__isSmartRef__":true,"id":20563},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20578":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20579":{"morph":{"__isSmartRef__":true,"id":20563},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20580":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"20581":{"morph":{"__isSmartRef__":true,"id":20562},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20582":{},"20583":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":20584}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"20584":{"date":{"__isSmartRef__":true,"id":20585},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"20585":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"20586":{"buildChildNodes":{"__isSmartRef__":true,"id":20587},"getGameTree":{"__isSmartRef__":true,"id":20591},"getLevel":{"__isSmartRef__":true,"id":20595},"getLevelWeight":{"__isSmartRef__":true,"id":20599},"getWeight":{"__isSmartRef__":true,"id":20603},"setNode":{"__isSmartRef__":true,"id":20607},"setParent":{"__isSmartRef__":true,"id":20611},"getParent":{"__isSmartRef__":true,"id":20615},"deactivate":{"__isSmartRef__":true,"id":20619},"blink":{"__isSmartRef__":true,"id":20623},"ABPreturn":{"__isSmartRef__":true,"id":20627},"ABPstart":{"__isSmartRef__":true,"id":20631},"ABPcontinue":{"__isSmartRef__":true,"id":20635},"ABPshowValue":{"__isSmartRef__":true,"id":20639},"ABPgetValue":{"__isSmartRef__":true,"id":20643},"ABPhasChildNodes":{"__isSmartRef__":true,"id":20647},"onMouseDown":{"__isSmartRef__":true,"id":20651},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":20659},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":20663},"ABPmarkAsDone":{"__isSmartRef__":true,"id":20667},"ABPmarkAsActive":{"__isSmartRef__":true,"id":20671},"getStateMorph":{"__isSmartRef__":true,"id":20675},"showState":{"__isSmartRef__":true,"id":20679},"ABPfailHard":{"__isSmartRef__":true,"id":20683},"markFinalDrawWith":{"__isSmartRef__":true,"id":20687}},"20587":{"varMapping":{"__isSmartRef__":true,"id":20588},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":20589},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20588":{"this":{"__isSmartRef__":true,"id":20562}},"20589":{"timestamp":{"__isSmartRef__":true,"id":20590},"user":"sebastianwoinar","tags":[]},"20590":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"20591":{"varMapping":{"__isSmartRef__":true,"id":20592},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":20593},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20592":{"this":{"__isSmartRef__":true,"id":20562}},"20593":{"timestamp":{"__isSmartRef__":true,"id":20594},"user":"sebastianwoinar","tags":[]},"20594":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20595":{"varMapping":{"__isSmartRef__":true,"id":20596},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":20597},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20596":{"this":{"__isSmartRef__":true,"id":20562}},"20597":{"timestamp":{"__isSmartRef__":true,"id":20598},"user":"sebastianwoinar","tags":[]},"20598":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20599":{"varMapping":{"__isSmartRef__":true,"id":20600},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":20601},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20600":{"this":{"__isSmartRef__":true,"id":20562}},"20601":{"timestamp":{"__isSmartRef__":true,"id":20602},"user":"sebastianwoinar","tags":[]},"20602":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20603":{"varMapping":{"__isSmartRef__":true,"id":20604},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":20605},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20604":{"this":{"__isSmartRef__":true,"id":20562}},"20605":{"timestamp":{"__isSmartRef__":true,"id":20606},"user":"sebastianwoinar","tags":[]},"20606":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20607":{"varMapping":{"__isSmartRef__":true,"id":20608},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":20609},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20608":{"this":{"__isSmartRef__":true,"id":20562}},"20609":{"timestamp":{"__isSmartRef__":true,"id":20610},"user":"sebastianwoinar","tags":[]},"20610":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20611":{"varMapping":{"__isSmartRef__":true,"id":20612},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":20613},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20612":{"this":{"__isSmartRef__":true,"id":20562}},"20613":{"timestamp":{"__isSmartRef__":true,"id":20614},"user":"sebastianwoinar","tags":[]},"20614":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20615":{"varMapping":{"__isSmartRef__":true,"id":20616},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":20617},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20616":{"this":{"__isSmartRef__":true,"id":20562}},"20617":{"timestamp":{"__isSmartRef__":true,"id":20618},"user":"sebastianwoinar","tags":[]},"20618":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"20619":{"varMapping":{"__isSmartRef__":true,"id":20620},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":20621},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20620":{"this":{"__isSmartRef__":true,"id":20562}},"20621":{"timestamp":{"__isSmartRef__":true,"id":20622},"user":"sebastianwoinar","tags":[]},"20622":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"20623":{"varMapping":{"__isSmartRef__":true,"id":20624},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":20625},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20624":{"this":{"__isSmartRef__":true,"id":20562}},"20625":{"timestamp":{"__isSmartRef__":true,"id":20626},"user":"sebastianwoinar","tags":[]},"20626":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"20627":{"varMapping":{"__isSmartRef__":true,"id":20628},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":20629},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20628":{"this":{"__isSmartRef__":true,"id":20562}},"20629":{"timestamp":{"__isSmartRef__":true,"id":20630},"user":"sebastianwoinar","tags":[]},"20630":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"20631":{"varMapping":{"__isSmartRef__":true,"id":20632},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":20633},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20632":{"this":{"__isSmartRef__":true,"id":20562}},"20633":{"timestamp":{"__isSmartRef__":true,"id":20634},"user":"sebastianwoinar","tags":[]},"20634":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"20635":{"varMapping":{"__isSmartRef__":true,"id":20636},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":20637},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20636":{"this":{"__isSmartRef__":true,"id":20562}},"20637":{"timestamp":{"__isSmartRef__":true,"id":20638},"user":"sebastianwoinar","tags":[]},"20638":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"20639":{"varMapping":{"__isSmartRef__":true,"id":20640},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":20641},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20640":{"this":{"__isSmartRef__":true,"id":20562}},"20641":{"timestamp":{"__isSmartRef__":true,"id":20642},"user":"sebastianwoinar","tags":[]},"20642":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"20643":{"varMapping":{"__isSmartRef__":true,"id":20644},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":20645},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20644":{"this":{"__isSmartRef__":true,"id":20562}},"20645":{"timestamp":{"__isSmartRef__":true,"id":20646},"user":"sebastianwoinar","tags":[]},"20646":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"20647":{"varMapping":{"__isSmartRef__":true,"id":20648},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":20649},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20648":{"this":{"__isSmartRef__":true,"id":20562}},"20649":{"timestamp":{"__isSmartRef__":true,"id":20650},"user":"sebastianwoinar","tags":[]},"20650":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"20651":{"varMapping":{"__isSmartRef__":true,"id":20652},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":20657},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20652":{"this":{"__isSmartRef__":true,"id":20562},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20653}},"20653":{"$super":{"__isSmartRef__":true,"id":20654}},"20654":{"varMapping":{"__isSmartRef__":true,"id":20655},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":20656},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20655":{"obj":{"__isSmartRef__":true,"id":20562},"name":"onMouseDown"},"20656":{},"20657":{"timestamp":{"__isSmartRef__":true,"id":20658},"user":"sebastianwoinar","tags":[]},"20658":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"20659":{"varMapping":{"__isSmartRef__":true,"id":20660},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":20661},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20660":{"this":{"__isSmartRef__":true,"id":20562}},"20661":{"timestamp":{"__isSmartRef__":true,"id":20662},"user":"sebastianwoinar","tags":[]},"20662":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"20663":{"varMapping":{"__isSmartRef__":true,"id":20664},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":20665},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20664":{"this":{"__isSmartRef__":true,"id":20562}},"20665":{"timestamp":{"__isSmartRef__":true,"id":20666},"user":"sebastianwoinar","tags":[]},"20666":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"20667":{"varMapping":{"__isSmartRef__":true,"id":20668},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":20669},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20668":{"this":{"__isSmartRef__":true,"id":20562}},"20669":{"timestamp":{"__isSmartRef__":true,"id":20670},"user":"sebastianwoinar","tags":[]},"20670":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"20671":{"varMapping":{"__isSmartRef__":true,"id":20672},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":20673},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20672":{"this":{"__isSmartRef__":true,"id":20562}},"20673":{"timestamp":{"__isSmartRef__":true,"id":20674},"user":"sebastianwoinar","tags":[]},"20674":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"20675":{"varMapping":{"__isSmartRef__":true,"id":20676},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":20677},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20676":{"this":{"__isSmartRef__":true,"id":20562}},"20677":{"timestamp":{"__isSmartRef__":true,"id":20678},"user":"sebastianwoinar","tags":[]},"20678":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"20679":{"varMapping":{"__isSmartRef__":true,"id":20680},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":20681},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20680":{"this":{"__isSmartRef__":true,"id":20562}},"20681":{"timestamp":{"__isSmartRef__":true,"id":20682},"user":"sebastianwoinar","tags":[]},"20682":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"20683":{"varMapping":{"__isSmartRef__":true,"id":20684},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":20685},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20684":{"this":{"__isSmartRef__":true,"id":20562}},"20685":{"timestamp":{"__isSmartRef__":true,"id":20686},"user":"sebastianwoinar","tags":[]},"20686":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"20687":{"varMapping":{"__isSmartRef__":true,"id":20688},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":20689},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20688":{"this":{"__isSmartRef__":true,"id":20562}},"20689":{"timestamp":{"__isSmartRef__":true,"id":20690},"user":"sebastianwoinar","tags":[]},"20690":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"20691":{"submorphs":[{"__isSmartRef__":true,"id":20692}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20709},"id":"314E6AC3-C808-4DA0-BE9A-FE9D3B19703D","eventHandler":{"__isSmartRef__":true,"id":20710},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":20711},"name":"node119","partsBinMetaInfo":{"__isSmartRef__":true,"id":20712},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5667},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":20022},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20715},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(544.2,210.0)"},"20692":{"submorphs":[],"scripts":[],"id":"52989774-9424-46F2-B858-3B5B2F8F9337","shape":{"__isSmartRef__":true,"id":20693},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":20694},"textChunks":[{"__isSmartRef__":true,"id":20706}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":20708},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":20691},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"20693":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"20694":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":20695},{"__isSmartRef__":true,"id":20697},{"__isSmartRef__":true,"id":20699},{"__isSmartRef__":true,"id":20701},{"__isSmartRef__":true,"id":20703}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":20705},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"20695":{"date":{"__isSmartRef__":true,"id":20696},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"20696":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"20697":{"date":{"__isSmartRef__":true,"id":20698},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"20698":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"20699":{"date":{"__isSmartRef__":true,"id":20700},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"20700":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"20701":{"date":{"__isSmartRef__":true,"id":20702},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"20702":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"20703":{"date":{"__isSmartRef__":true,"id":20704},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"20704":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"20705":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"20706":{"style":{"__isSmartRef__":true,"id":20707},"morph":{"__isSmartRef__":true,"id":20692},"chunkOwner":{"__isSmartRef__":true,"id":20692},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20707":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20708":{"morph":{"__isSmartRef__":true,"id":20692},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20709":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"20710":{"morph":{"__isSmartRef__":true,"id":20691},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20711":{},"20712":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":20713}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"20713":{"date":{"__isSmartRef__":true,"id":20714},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"20714":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"20715":{"buildChildNodes":{"__isSmartRef__":true,"id":20716},"getGameTree":{"__isSmartRef__":true,"id":20720},"getLevel":{"__isSmartRef__":true,"id":20724},"getLevelWeight":{"__isSmartRef__":true,"id":20728},"getWeight":{"__isSmartRef__":true,"id":20732},"setNode":{"__isSmartRef__":true,"id":20736},"setParent":{"__isSmartRef__":true,"id":20740},"getParent":{"__isSmartRef__":true,"id":20744},"deactivate":{"__isSmartRef__":true,"id":20748},"blink":{"__isSmartRef__":true,"id":20752},"ABPreturn":{"__isSmartRef__":true,"id":20756},"ABPstart":{"__isSmartRef__":true,"id":20760},"ABPcontinue":{"__isSmartRef__":true,"id":20764},"ABPshowValue":{"__isSmartRef__":true,"id":20768},"ABPgetValue":{"__isSmartRef__":true,"id":20772},"ABPhasChildNodes":{"__isSmartRef__":true,"id":20776},"onMouseDown":{"__isSmartRef__":true,"id":20780},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":20788},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":20792},"ABPmarkAsDone":{"__isSmartRef__":true,"id":20796},"ABPmarkAsActive":{"__isSmartRef__":true,"id":20800},"getStateMorph":{"__isSmartRef__":true,"id":20804},"showState":{"__isSmartRef__":true,"id":20808},"ABPfailHard":{"__isSmartRef__":true,"id":20812},"markFinalDrawWith":{"__isSmartRef__":true,"id":20816}},"20716":{"varMapping":{"__isSmartRef__":true,"id":20717},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":20718},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20717":{"this":{"__isSmartRef__":true,"id":20691}},"20718":{"timestamp":{"__isSmartRef__":true,"id":20719},"user":"sebastianwoinar","tags":[]},"20719":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"20720":{"varMapping":{"__isSmartRef__":true,"id":20721},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":20722},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20721":{"this":{"__isSmartRef__":true,"id":20691}},"20722":{"timestamp":{"__isSmartRef__":true,"id":20723},"user":"sebastianwoinar","tags":[]},"20723":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20724":{"varMapping":{"__isSmartRef__":true,"id":20725},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":20726},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20725":{"this":{"__isSmartRef__":true,"id":20691}},"20726":{"timestamp":{"__isSmartRef__":true,"id":20727},"user":"sebastianwoinar","tags":[]},"20727":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20728":{"varMapping":{"__isSmartRef__":true,"id":20729},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":20730},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20729":{"this":{"__isSmartRef__":true,"id":20691}},"20730":{"timestamp":{"__isSmartRef__":true,"id":20731},"user":"sebastianwoinar","tags":[]},"20731":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20732":{"varMapping":{"__isSmartRef__":true,"id":20733},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":20734},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20733":{"this":{"__isSmartRef__":true,"id":20691}},"20734":{"timestamp":{"__isSmartRef__":true,"id":20735},"user":"sebastianwoinar","tags":[]},"20735":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20736":{"varMapping":{"__isSmartRef__":true,"id":20737},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":20738},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20737":{"this":{"__isSmartRef__":true,"id":20691}},"20738":{"timestamp":{"__isSmartRef__":true,"id":20739},"user":"sebastianwoinar","tags":[]},"20739":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20740":{"varMapping":{"__isSmartRef__":true,"id":20741},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":20742},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20741":{"this":{"__isSmartRef__":true,"id":20691}},"20742":{"timestamp":{"__isSmartRef__":true,"id":20743},"user":"sebastianwoinar","tags":[]},"20743":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20744":{"varMapping":{"__isSmartRef__":true,"id":20745},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":20746},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20745":{"this":{"__isSmartRef__":true,"id":20691}},"20746":{"timestamp":{"__isSmartRef__":true,"id":20747},"user":"sebastianwoinar","tags":[]},"20747":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"20748":{"varMapping":{"__isSmartRef__":true,"id":20749},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":20750},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20749":{"this":{"__isSmartRef__":true,"id":20691}},"20750":{"timestamp":{"__isSmartRef__":true,"id":20751},"user":"sebastianwoinar","tags":[]},"20751":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"20752":{"varMapping":{"__isSmartRef__":true,"id":20753},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":20754},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20753":{"this":{"__isSmartRef__":true,"id":20691}},"20754":{"timestamp":{"__isSmartRef__":true,"id":20755},"user":"sebastianwoinar","tags":[]},"20755":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"20756":{"varMapping":{"__isSmartRef__":true,"id":20757},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":20758},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20757":{"this":{"__isSmartRef__":true,"id":20691}},"20758":{"timestamp":{"__isSmartRef__":true,"id":20759},"user":"sebastianwoinar","tags":[]},"20759":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"20760":{"varMapping":{"__isSmartRef__":true,"id":20761},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":20762},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20761":{"this":{"__isSmartRef__":true,"id":20691}},"20762":{"timestamp":{"__isSmartRef__":true,"id":20763},"user":"sebastianwoinar","tags":[]},"20763":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"20764":{"varMapping":{"__isSmartRef__":true,"id":20765},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":20766},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20765":{"this":{"__isSmartRef__":true,"id":20691}},"20766":{"timestamp":{"__isSmartRef__":true,"id":20767},"user":"sebastianwoinar","tags":[]},"20767":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"20768":{"varMapping":{"__isSmartRef__":true,"id":20769},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":20770},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20769":{"this":{"__isSmartRef__":true,"id":20691}},"20770":{"timestamp":{"__isSmartRef__":true,"id":20771},"user":"sebastianwoinar","tags":[]},"20771":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"20772":{"varMapping":{"__isSmartRef__":true,"id":20773},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":20774},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20773":{"this":{"__isSmartRef__":true,"id":20691}},"20774":{"timestamp":{"__isSmartRef__":true,"id":20775},"user":"sebastianwoinar","tags":[]},"20775":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"20776":{"varMapping":{"__isSmartRef__":true,"id":20777},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":20778},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20777":{"this":{"__isSmartRef__":true,"id":20691}},"20778":{"timestamp":{"__isSmartRef__":true,"id":20779},"user":"sebastianwoinar","tags":[]},"20779":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"20780":{"varMapping":{"__isSmartRef__":true,"id":20781},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":20786},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20781":{"this":{"__isSmartRef__":true,"id":20691},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20782}},"20782":{"$super":{"__isSmartRef__":true,"id":20783}},"20783":{"varMapping":{"__isSmartRef__":true,"id":20784},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":20785},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20784":{"obj":{"__isSmartRef__":true,"id":20691},"name":"onMouseDown"},"20785":{},"20786":{"timestamp":{"__isSmartRef__":true,"id":20787},"user":"sebastianwoinar","tags":[]},"20787":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"20788":{"varMapping":{"__isSmartRef__":true,"id":20789},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":20790},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20789":{"this":{"__isSmartRef__":true,"id":20691}},"20790":{"timestamp":{"__isSmartRef__":true,"id":20791},"user":"sebastianwoinar","tags":[]},"20791":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"20792":{"varMapping":{"__isSmartRef__":true,"id":20793},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":20794},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20793":{"this":{"__isSmartRef__":true,"id":20691}},"20794":{"timestamp":{"__isSmartRef__":true,"id":20795},"user":"sebastianwoinar","tags":[]},"20795":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"20796":{"varMapping":{"__isSmartRef__":true,"id":20797},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":20798},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20797":{"this":{"__isSmartRef__":true,"id":20691}},"20798":{"timestamp":{"__isSmartRef__":true,"id":20799},"user":"sebastianwoinar","tags":[]},"20799":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"20800":{"varMapping":{"__isSmartRef__":true,"id":20801},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":20802},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20801":{"this":{"__isSmartRef__":true,"id":20691}},"20802":{"timestamp":{"__isSmartRef__":true,"id":20803},"user":"sebastianwoinar","tags":[]},"20803":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"20804":{"varMapping":{"__isSmartRef__":true,"id":20805},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":20806},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20805":{"this":{"__isSmartRef__":true,"id":20691}},"20806":{"timestamp":{"__isSmartRef__":true,"id":20807},"user":"sebastianwoinar","tags":[]},"20807":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"20808":{"varMapping":{"__isSmartRef__":true,"id":20809},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":20810},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20809":{"this":{"__isSmartRef__":true,"id":20691}},"20810":{"timestamp":{"__isSmartRef__":true,"id":20811},"user":"sebastianwoinar","tags":[]},"20811":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"20812":{"varMapping":{"__isSmartRef__":true,"id":20813},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":20814},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20813":{"this":{"__isSmartRef__":true,"id":20691}},"20814":{"timestamp":{"__isSmartRef__":true,"id":20815},"user":"sebastianwoinar","tags":[]},"20815":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"20816":{"varMapping":{"__isSmartRef__":true,"id":20817},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":20818},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20817":{"this":{"__isSmartRef__":true,"id":20691}},"20818":{"timestamp":{"__isSmartRef__":true,"id":20819},"user":"sebastianwoinar","tags":[]},"20819":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"20820":{"submorphs":[{"__isSmartRef__":true,"id":20821}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20838},"id":"508211FF-F22A-4968-B531-65A7C9E7293E","eventHandler":{"__isSmartRef__":true,"id":20839},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":20840},"name":"node120","partsBinMetaInfo":{"__isSmartRef__":true,"id":20841},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5669},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":20022},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20844},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(549.3,210.0)"},"20821":{"submorphs":[],"scripts":[],"id":"639EF204-7511-4B8A-B10F-AB5DF264233B","shape":{"__isSmartRef__":true,"id":20822},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":20823},"textChunks":[{"__isSmartRef__":true,"id":20835}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":20837},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":20820},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"20822":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"20823":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":20824},{"__isSmartRef__":true,"id":20826},{"__isSmartRef__":true,"id":20828},{"__isSmartRef__":true,"id":20830},{"__isSmartRef__":true,"id":20832}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":20834},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"20824":{"date":{"__isSmartRef__":true,"id":20825},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"20825":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"20826":{"date":{"__isSmartRef__":true,"id":20827},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"20827":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"20828":{"date":{"__isSmartRef__":true,"id":20829},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"20829":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"20830":{"date":{"__isSmartRef__":true,"id":20831},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"20831":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"20832":{"date":{"__isSmartRef__":true,"id":20833},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"20833":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"20834":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"20835":{"style":{"__isSmartRef__":true,"id":20836},"morph":{"__isSmartRef__":true,"id":20821},"chunkOwner":{"__isSmartRef__":true,"id":20821},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20836":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20837":{"morph":{"__isSmartRef__":true,"id":20821},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20838":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"20839":{"morph":{"__isSmartRef__":true,"id":20820},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20840":{},"20841":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":20842}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"20842":{"date":{"__isSmartRef__":true,"id":20843},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"20843":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"20844":{"buildChildNodes":{"__isSmartRef__":true,"id":20845},"getGameTree":{"__isSmartRef__":true,"id":20849},"getLevel":{"__isSmartRef__":true,"id":20853},"getLevelWeight":{"__isSmartRef__":true,"id":20857},"getWeight":{"__isSmartRef__":true,"id":20861},"setNode":{"__isSmartRef__":true,"id":20865},"setParent":{"__isSmartRef__":true,"id":20869},"getParent":{"__isSmartRef__":true,"id":20873},"deactivate":{"__isSmartRef__":true,"id":20877},"blink":{"__isSmartRef__":true,"id":20881},"ABPreturn":{"__isSmartRef__":true,"id":20885},"ABPstart":{"__isSmartRef__":true,"id":20889},"ABPcontinue":{"__isSmartRef__":true,"id":20893},"ABPshowValue":{"__isSmartRef__":true,"id":20897},"ABPgetValue":{"__isSmartRef__":true,"id":20901},"ABPhasChildNodes":{"__isSmartRef__":true,"id":20905},"onMouseDown":{"__isSmartRef__":true,"id":20909},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":20917},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":20921},"ABPmarkAsDone":{"__isSmartRef__":true,"id":20925},"ABPmarkAsActive":{"__isSmartRef__":true,"id":20929},"getStateMorph":{"__isSmartRef__":true,"id":20933},"showState":{"__isSmartRef__":true,"id":20937},"ABPfailHard":{"__isSmartRef__":true,"id":20941},"markFinalDrawWith":{"__isSmartRef__":true,"id":20945}},"20845":{"varMapping":{"__isSmartRef__":true,"id":20846},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":20847},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20846":{"this":{"__isSmartRef__":true,"id":20820}},"20847":{"timestamp":{"__isSmartRef__":true,"id":20848},"user":"sebastianwoinar","tags":[]},"20848":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"20849":{"varMapping":{"__isSmartRef__":true,"id":20850},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":20851},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20850":{"this":{"__isSmartRef__":true,"id":20820}},"20851":{"timestamp":{"__isSmartRef__":true,"id":20852},"user":"sebastianwoinar","tags":[]},"20852":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20853":{"varMapping":{"__isSmartRef__":true,"id":20854},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":20855},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20854":{"this":{"__isSmartRef__":true,"id":20820}},"20855":{"timestamp":{"__isSmartRef__":true,"id":20856},"user":"sebastianwoinar","tags":[]},"20856":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20857":{"varMapping":{"__isSmartRef__":true,"id":20858},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":20859},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20858":{"this":{"__isSmartRef__":true,"id":20820}},"20859":{"timestamp":{"__isSmartRef__":true,"id":20860},"user":"sebastianwoinar","tags":[]},"20860":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20861":{"varMapping":{"__isSmartRef__":true,"id":20862},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":20863},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20862":{"this":{"__isSmartRef__":true,"id":20820}},"20863":{"timestamp":{"__isSmartRef__":true,"id":20864},"user":"sebastianwoinar","tags":[]},"20864":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20865":{"varMapping":{"__isSmartRef__":true,"id":20866},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":20867},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20866":{"this":{"__isSmartRef__":true,"id":20820}},"20867":{"timestamp":{"__isSmartRef__":true,"id":20868},"user":"sebastianwoinar","tags":[]},"20868":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20869":{"varMapping":{"__isSmartRef__":true,"id":20870},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":20871},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20870":{"this":{"__isSmartRef__":true,"id":20820}},"20871":{"timestamp":{"__isSmartRef__":true,"id":20872},"user":"sebastianwoinar","tags":[]},"20872":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20873":{"varMapping":{"__isSmartRef__":true,"id":20874},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":20875},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20874":{"this":{"__isSmartRef__":true,"id":20820}},"20875":{"timestamp":{"__isSmartRef__":true,"id":20876},"user":"sebastianwoinar","tags":[]},"20876":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"20877":{"varMapping":{"__isSmartRef__":true,"id":20878},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":20879},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20878":{"this":{"__isSmartRef__":true,"id":20820}},"20879":{"timestamp":{"__isSmartRef__":true,"id":20880},"user":"sebastianwoinar","tags":[]},"20880":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"20881":{"varMapping":{"__isSmartRef__":true,"id":20882},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":20883},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20882":{"this":{"__isSmartRef__":true,"id":20820}},"20883":{"timestamp":{"__isSmartRef__":true,"id":20884},"user":"sebastianwoinar","tags":[]},"20884":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"20885":{"varMapping":{"__isSmartRef__":true,"id":20886},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":20887},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20886":{"this":{"__isSmartRef__":true,"id":20820}},"20887":{"timestamp":{"__isSmartRef__":true,"id":20888},"user":"sebastianwoinar","tags":[]},"20888":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"20889":{"varMapping":{"__isSmartRef__":true,"id":20890},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":20891},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20890":{"this":{"__isSmartRef__":true,"id":20820}},"20891":{"timestamp":{"__isSmartRef__":true,"id":20892},"user":"sebastianwoinar","tags":[]},"20892":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"20893":{"varMapping":{"__isSmartRef__":true,"id":20894},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":20895},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20894":{"this":{"__isSmartRef__":true,"id":20820}},"20895":{"timestamp":{"__isSmartRef__":true,"id":20896},"user":"sebastianwoinar","tags":[]},"20896":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"20897":{"varMapping":{"__isSmartRef__":true,"id":20898},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":20899},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20898":{"this":{"__isSmartRef__":true,"id":20820}},"20899":{"timestamp":{"__isSmartRef__":true,"id":20900},"user":"sebastianwoinar","tags":[]},"20900":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"20901":{"varMapping":{"__isSmartRef__":true,"id":20902},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":20903},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20902":{"this":{"__isSmartRef__":true,"id":20820}},"20903":{"timestamp":{"__isSmartRef__":true,"id":20904},"user":"sebastianwoinar","tags":[]},"20904":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"20905":{"varMapping":{"__isSmartRef__":true,"id":20906},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":20907},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20906":{"this":{"__isSmartRef__":true,"id":20820}},"20907":{"timestamp":{"__isSmartRef__":true,"id":20908},"user":"sebastianwoinar","tags":[]},"20908":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"20909":{"varMapping":{"__isSmartRef__":true,"id":20910},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":20915},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20910":{"this":{"__isSmartRef__":true,"id":20820},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20911}},"20911":{"$super":{"__isSmartRef__":true,"id":20912}},"20912":{"varMapping":{"__isSmartRef__":true,"id":20913},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":20914},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20913":{"obj":{"__isSmartRef__":true,"id":20820},"name":"onMouseDown"},"20914":{},"20915":{"timestamp":{"__isSmartRef__":true,"id":20916},"user":"sebastianwoinar","tags":[]},"20916":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"20917":{"varMapping":{"__isSmartRef__":true,"id":20918},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":20919},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20918":{"this":{"__isSmartRef__":true,"id":20820}},"20919":{"timestamp":{"__isSmartRef__":true,"id":20920},"user":"sebastianwoinar","tags":[]},"20920":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"20921":{"varMapping":{"__isSmartRef__":true,"id":20922},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":20923},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20922":{"this":{"__isSmartRef__":true,"id":20820}},"20923":{"timestamp":{"__isSmartRef__":true,"id":20924},"user":"sebastianwoinar","tags":[]},"20924":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"20925":{"varMapping":{"__isSmartRef__":true,"id":20926},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":20927},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20926":{"this":{"__isSmartRef__":true,"id":20820}},"20927":{"timestamp":{"__isSmartRef__":true,"id":20928},"user":"sebastianwoinar","tags":[]},"20928":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"20929":{"varMapping":{"__isSmartRef__":true,"id":20930},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":20931},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20930":{"this":{"__isSmartRef__":true,"id":20820}},"20931":{"timestamp":{"__isSmartRef__":true,"id":20932},"user":"sebastianwoinar","tags":[]},"20932":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"20933":{"varMapping":{"__isSmartRef__":true,"id":20934},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":20935},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20934":{"this":{"__isSmartRef__":true,"id":20820}},"20935":{"timestamp":{"__isSmartRef__":true,"id":20936},"user":"sebastianwoinar","tags":[]},"20936":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"20937":{"varMapping":{"__isSmartRef__":true,"id":20938},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":20939},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20938":{"this":{"__isSmartRef__":true,"id":20820}},"20939":{"timestamp":{"__isSmartRef__":true,"id":20940},"user":"sebastianwoinar","tags":[]},"20940":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"20941":{"varMapping":{"__isSmartRef__":true,"id":20942},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":20943},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20942":{"this":{"__isSmartRef__":true,"id":20820}},"20943":{"timestamp":{"__isSmartRef__":true,"id":20944},"user":"sebastianwoinar","tags":[]},"20944":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"20945":{"varMapping":{"__isSmartRef__":true,"id":20946},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":20947},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20946":{"this":{"__isSmartRef__":true,"id":20820}},"20947":{"timestamp":{"__isSmartRef__":true,"id":20948},"user":"sebastianwoinar","tags":[]},"20948":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"20949":{"submorphs":[{"__isSmartRef__":true,"id":20950}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20967},"id":"0FC203CA-F1DD-4A52-ABCF-DC52494F6BF5","eventHandler":{"__isSmartRef__":true,"id":20968},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":20969},"name":"node121","partsBinMetaInfo":{"__isSmartRef__":true,"id":20970},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5671},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":20022},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20973},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(554.5,210.0)"},"20950":{"submorphs":[],"scripts":[],"id":"6D0A6C7B-37EB-40DC-95B2-554047C57139","shape":{"__isSmartRef__":true,"id":20951},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":20952},"textChunks":[{"__isSmartRef__":true,"id":20964}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":20966},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":20949},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"20951":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"20952":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":20953},{"__isSmartRef__":true,"id":20955},{"__isSmartRef__":true,"id":20957},{"__isSmartRef__":true,"id":20959},{"__isSmartRef__":true,"id":20961}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":20963},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"20953":{"date":{"__isSmartRef__":true,"id":20954},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"20954":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"20955":{"date":{"__isSmartRef__":true,"id":20956},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"20956":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"20957":{"date":{"__isSmartRef__":true,"id":20958},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"20958":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"20959":{"date":{"__isSmartRef__":true,"id":20960},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"20960":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"20961":{"date":{"__isSmartRef__":true,"id":20962},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"20962":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"20963":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"20964":{"style":{"__isSmartRef__":true,"id":20965},"morph":{"__isSmartRef__":true,"id":20950},"chunkOwner":{"__isSmartRef__":true,"id":20950},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20965":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20966":{"morph":{"__isSmartRef__":true,"id":20950},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20967":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"20968":{"morph":{"__isSmartRef__":true,"id":20949},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20969":{},"20970":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":20971}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"20971":{"date":{"__isSmartRef__":true,"id":20972},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"20972":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"20973":{"buildChildNodes":{"__isSmartRef__":true,"id":20974},"getGameTree":{"__isSmartRef__":true,"id":20978},"getLevel":{"__isSmartRef__":true,"id":20982},"getLevelWeight":{"__isSmartRef__":true,"id":20986},"getWeight":{"__isSmartRef__":true,"id":20990},"setNode":{"__isSmartRef__":true,"id":20994},"setParent":{"__isSmartRef__":true,"id":20998},"getParent":{"__isSmartRef__":true,"id":21002},"deactivate":{"__isSmartRef__":true,"id":21006},"blink":{"__isSmartRef__":true,"id":21010},"ABPreturn":{"__isSmartRef__":true,"id":21014},"ABPstart":{"__isSmartRef__":true,"id":21018},"ABPcontinue":{"__isSmartRef__":true,"id":21022},"ABPshowValue":{"__isSmartRef__":true,"id":21026},"ABPgetValue":{"__isSmartRef__":true,"id":21030},"ABPhasChildNodes":{"__isSmartRef__":true,"id":21034},"onMouseDown":{"__isSmartRef__":true,"id":21038},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":21046},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":21050},"ABPmarkAsDone":{"__isSmartRef__":true,"id":21054},"ABPmarkAsActive":{"__isSmartRef__":true,"id":21058},"getStateMorph":{"__isSmartRef__":true,"id":21062},"showState":{"__isSmartRef__":true,"id":21066},"ABPfailHard":{"__isSmartRef__":true,"id":21070},"markFinalDrawWith":{"__isSmartRef__":true,"id":21074}},"20974":{"varMapping":{"__isSmartRef__":true,"id":20975},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":20976},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20975":{"this":{"__isSmartRef__":true,"id":20949}},"20976":{"timestamp":{"__isSmartRef__":true,"id":20977},"user":"sebastianwoinar","tags":[]},"20977":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"20978":{"varMapping":{"__isSmartRef__":true,"id":20979},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":20980},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20979":{"this":{"__isSmartRef__":true,"id":20949}},"20980":{"timestamp":{"__isSmartRef__":true,"id":20981},"user":"sebastianwoinar","tags":[]},"20981":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20982":{"varMapping":{"__isSmartRef__":true,"id":20983},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":20984},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20983":{"this":{"__isSmartRef__":true,"id":20949}},"20984":{"timestamp":{"__isSmartRef__":true,"id":20985},"user":"sebastianwoinar","tags":[]},"20985":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20986":{"varMapping":{"__isSmartRef__":true,"id":20987},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":20988},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20987":{"this":{"__isSmartRef__":true,"id":20949}},"20988":{"timestamp":{"__isSmartRef__":true,"id":20989},"user":"sebastianwoinar","tags":[]},"20989":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20990":{"varMapping":{"__isSmartRef__":true,"id":20991},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":20992},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20991":{"this":{"__isSmartRef__":true,"id":20949}},"20992":{"timestamp":{"__isSmartRef__":true,"id":20993},"user":"sebastianwoinar","tags":[]},"20993":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20994":{"varMapping":{"__isSmartRef__":true,"id":20995},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":20996},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20995":{"this":{"__isSmartRef__":true,"id":20949}},"20996":{"timestamp":{"__isSmartRef__":true,"id":20997},"user":"sebastianwoinar","tags":[]},"20997":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"20998":{"varMapping":{"__isSmartRef__":true,"id":20999},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":21000},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20999":{"this":{"__isSmartRef__":true,"id":20949}},"21000":{"timestamp":{"__isSmartRef__":true,"id":21001},"user":"sebastianwoinar","tags":[]},"21001":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21002":{"varMapping":{"__isSmartRef__":true,"id":21003},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":21004},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21003":{"this":{"__isSmartRef__":true,"id":20949}},"21004":{"timestamp":{"__isSmartRef__":true,"id":21005},"user":"sebastianwoinar","tags":[]},"21005":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"21006":{"varMapping":{"__isSmartRef__":true,"id":21007},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":21008},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21007":{"this":{"__isSmartRef__":true,"id":20949}},"21008":{"timestamp":{"__isSmartRef__":true,"id":21009},"user":"sebastianwoinar","tags":[]},"21009":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"21010":{"varMapping":{"__isSmartRef__":true,"id":21011},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":21012},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21011":{"this":{"__isSmartRef__":true,"id":20949}},"21012":{"timestamp":{"__isSmartRef__":true,"id":21013},"user":"sebastianwoinar","tags":[]},"21013":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"21014":{"varMapping":{"__isSmartRef__":true,"id":21015},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":21016},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21015":{"this":{"__isSmartRef__":true,"id":20949}},"21016":{"timestamp":{"__isSmartRef__":true,"id":21017},"user":"sebastianwoinar","tags":[]},"21017":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"21018":{"varMapping":{"__isSmartRef__":true,"id":21019},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":21020},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21019":{"this":{"__isSmartRef__":true,"id":20949}},"21020":{"timestamp":{"__isSmartRef__":true,"id":21021},"user":"sebastianwoinar","tags":[]},"21021":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"21022":{"varMapping":{"__isSmartRef__":true,"id":21023},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":21024},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21023":{"this":{"__isSmartRef__":true,"id":20949}},"21024":{"timestamp":{"__isSmartRef__":true,"id":21025},"user":"sebastianwoinar","tags":[]},"21025":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"21026":{"varMapping":{"__isSmartRef__":true,"id":21027},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":21028},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21027":{"this":{"__isSmartRef__":true,"id":20949}},"21028":{"timestamp":{"__isSmartRef__":true,"id":21029},"user":"sebastianwoinar","tags":[]},"21029":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"21030":{"varMapping":{"__isSmartRef__":true,"id":21031},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":21032},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21031":{"this":{"__isSmartRef__":true,"id":20949}},"21032":{"timestamp":{"__isSmartRef__":true,"id":21033},"user":"sebastianwoinar","tags":[]},"21033":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"21034":{"varMapping":{"__isSmartRef__":true,"id":21035},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":21036},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21035":{"this":{"__isSmartRef__":true,"id":20949}},"21036":{"timestamp":{"__isSmartRef__":true,"id":21037},"user":"sebastianwoinar","tags":[]},"21037":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"21038":{"varMapping":{"__isSmartRef__":true,"id":21039},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":21044},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21039":{"this":{"__isSmartRef__":true,"id":20949},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21040}},"21040":{"$super":{"__isSmartRef__":true,"id":21041}},"21041":{"varMapping":{"__isSmartRef__":true,"id":21042},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":21043},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21042":{"obj":{"__isSmartRef__":true,"id":20949},"name":"onMouseDown"},"21043":{},"21044":{"timestamp":{"__isSmartRef__":true,"id":21045},"user":"sebastianwoinar","tags":[]},"21045":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"21046":{"varMapping":{"__isSmartRef__":true,"id":21047},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":21048},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21047":{"this":{"__isSmartRef__":true,"id":20949}},"21048":{"timestamp":{"__isSmartRef__":true,"id":21049},"user":"sebastianwoinar","tags":[]},"21049":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"21050":{"varMapping":{"__isSmartRef__":true,"id":21051},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":21052},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21051":{"this":{"__isSmartRef__":true,"id":20949}},"21052":{"timestamp":{"__isSmartRef__":true,"id":21053},"user":"sebastianwoinar","tags":[]},"21053":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"21054":{"varMapping":{"__isSmartRef__":true,"id":21055},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":21056},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21055":{"this":{"__isSmartRef__":true,"id":20949}},"21056":{"timestamp":{"__isSmartRef__":true,"id":21057},"user":"sebastianwoinar","tags":[]},"21057":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"21058":{"varMapping":{"__isSmartRef__":true,"id":21059},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":21060},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21059":{"this":{"__isSmartRef__":true,"id":20949}},"21060":{"timestamp":{"__isSmartRef__":true,"id":21061},"user":"sebastianwoinar","tags":[]},"21061":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"21062":{"varMapping":{"__isSmartRef__":true,"id":21063},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":21064},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21063":{"this":{"__isSmartRef__":true,"id":20949}},"21064":{"timestamp":{"__isSmartRef__":true,"id":21065},"user":"sebastianwoinar","tags":[]},"21065":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"21066":{"varMapping":{"__isSmartRef__":true,"id":21067},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":21068},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21067":{"this":{"__isSmartRef__":true,"id":20949}},"21068":{"timestamp":{"__isSmartRef__":true,"id":21069},"user":"sebastianwoinar","tags":[]},"21069":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"21070":{"varMapping":{"__isSmartRef__":true,"id":21071},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":21072},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21071":{"this":{"__isSmartRef__":true,"id":20949}},"21072":{"timestamp":{"__isSmartRef__":true,"id":21073},"user":"sebastianwoinar","tags":[]},"21073":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"21074":{"varMapping":{"__isSmartRef__":true,"id":21075},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":21076},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21075":{"this":{"__isSmartRef__":true,"id":20949}},"21076":{"timestamp":{"__isSmartRef__":true,"id":21077},"user":"sebastianwoinar","tags":[]},"21077":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"21078":{"submorphs":[{"__isSmartRef__":true,"id":21079}],"scripts":[],"shape":{"__isSmartRef__":true,"id":21096},"id":"C710DAE8-73ED-4649-903C-423964C666DB","eventHandler":{"__isSmartRef__":true,"id":21097},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":21098},"name":"node122","partsBinMetaInfo":{"__isSmartRef__":true,"id":21099},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5673},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":20022},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21102},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(559.7,210.0)"},"21079":{"submorphs":[],"scripts":[],"id":"C9B3F6C3-509D-4EA5-B1B2-FE7E741F5514","shape":{"__isSmartRef__":true,"id":21080},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":21081},"textChunks":[{"__isSmartRef__":true,"id":21093}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":21095},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":21078},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"21080":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"21081":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":21082},{"__isSmartRef__":true,"id":21084},{"__isSmartRef__":true,"id":21086},{"__isSmartRef__":true,"id":21088},{"__isSmartRef__":true,"id":21090}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":21092},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"21082":{"date":{"__isSmartRef__":true,"id":21083},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"21083":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"21084":{"date":{"__isSmartRef__":true,"id":21085},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"21085":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"21086":{"date":{"__isSmartRef__":true,"id":21087},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"21087":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"21088":{"date":{"__isSmartRef__":true,"id":21089},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"21089":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"21090":{"date":{"__isSmartRef__":true,"id":21091},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"21091":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"21092":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"21093":{"style":{"__isSmartRef__":true,"id":21094},"morph":{"__isSmartRef__":true,"id":21079},"chunkOwner":{"__isSmartRef__":true,"id":21079},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21094":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21095":{"morph":{"__isSmartRef__":true,"id":21079},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"21096":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"21097":{"morph":{"__isSmartRef__":true,"id":21078},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"21098":{},"21099":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":21100}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"21100":{"date":{"__isSmartRef__":true,"id":21101},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"21101":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"21102":{"buildChildNodes":{"__isSmartRef__":true,"id":21103},"getGameTree":{"__isSmartRef__":true,"id":21107},"getLevel":{"__isSmartRef__":true,"id":21111},"getLevelWeight":{"__isSmartRef__":true,"id":21115},"getWeight":{"__isSmartRef__":true,"id":21119},"setNode":{"__isSmartRef__":true,"id":21123},"setParent":{"__isSmartRef__":true,"id":21127},"getParent":{"__isSmartRef__":true,"id":21131},"deactivate":{"__isSmartRef__":true,"id":21135},"blink":{"__isSmartRef__":true,"id":21139},"ABPreturn":{"__isSmartRef__":true,"id":21143},"ABPstart":{"__isSmartRef__":true,"id":21147},"ABPcontinue":{"__isSmartRef__":true,"id":21151},"ABPshowValue":{"__isSmartRef__":true,"id":21155},"ABPgetValue":{"__isSmartRef__":true,"id":21159},"ABPhasChildNodes":{"__isSmartRef__":true,"id":21163},"onMouseDown":{"__isSmartRef__":true,"id":21167},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":21175},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":21179},"ABPmarkAsDone":{"__isSmartRef__":true,"id":21183},"ABPmarkAsActive":{"__isSmartRef__":true,"id":21187},"getStateMorph":{"__isSmartRef__":true,"id":21191},"showState":{"__isSmartRef__":true,"id":21195},"ABPfailHard":{"__isSmartRef__":true,"id":21199},"markFinalDrawWith":{"__isSmartRef__":true,"id":21203}},"21103":{"varMapping":{"__isSmartRef__":true,"id":21104},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":21105},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21104":{"this":{"__isSmartRef__":true,"id":21078}},"21105":{"timestamp":{"__isSmartRef__":true,"id":21106},"user":"sebastianwoinar","tags":[]},"21106":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"21107":{"varMapping":{"__isSmartRef__":true,"id":21108},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":21109},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21108":{"this":{"__isSmartRef__":true,"id":21078}},"21109":{"timestamp":{"__isSmartRef__":true,"id":21110},"user":"sebastianwoinar","tags":[]},"21110":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21111":{"varMapping":{"__isSmartRef__":true,"id":21112},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":21113},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21112":{"this":{"__isSmartRef__":true,"id":21078}},"21113":{"timestamp":{"__isSmartRef__":true,"id":21114},"user":"sebastianwoinar","tags":[]},"21114":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21115":{"varMapping":{"__isSmartRef__":true,"id":21116},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":21117},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21116":{"this":{"__isSmartRef__":true,"id":21078}},"21117":{"timestamp":{"__isSmartRef__":true,"id":21118},"user":"sebastianwoinar","tags":[]},"21118":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21119":{"varMapping":{"__isSmartRef__":true,"id":21120},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":21121},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21120":{"this":{"__isSmartRef__":true,"id":21078}},"21121":{"timestamp":{"__isSmartRef__":true,"id":21122},"user":"sebastianwoinar","tags":[]},"21122":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21123":{"varMapping":{"__isSmartRef__":true,"id":21124},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":21125},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21124":{"this":{"__isSmartRef__":true,"id":21078}},"21125":{"timestamp":{"__isSmartRef__":true,"id":21126},"user":"sebastianwoinar","tags":[]},"21126":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21127":{"varMapping":{"__isSmartRef__":true,"id":21128},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":21129},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21128":{"this":{"__isSmartRef__":true,"id":21078}},"21129":{"timestamp":{"__isSmartRef__":true,"id":21130},"user":"sebastianwoinar","tags":[]},"21130":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21131":{"varMapping":{"__isSmartRef__":true,"id":21132},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":21133},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21132":{"this":{"__isSmartRef__":true,"id":21078}},"21133":{"timestamp":{"__isSmartRef__":true,"id":21134},"user":"sebastianwoinar","tags":[]},"21134":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"21135":{"varMapping":{"__isSmartRef__":true,"id":21136},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":21137},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21136":{"this":{"__isSmartRef__":true,"id":21078}},"21137":{"timestamp":{"__isSmartRef__":true,"id":21138},"user":"sebastianwoinar","tags":[]},"21138":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"21139":{"varMapping":{"__isSmartRef__":true,"id":21140},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":21141},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21140":{"this":{"__isSmartRef__":true,"id":21078}},"21141":{"timestamp":{"__isSmartRef__":true,"id":21142},"user":"sebastianwoinar","tags":[]},"21142":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"21143":{"varMapping":{"__isSmartRef__":true,"id":21144},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":21145},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21144":{"this":{"__isSmartRef__":true,"id":21078}},"21145":{"timestamp":{"__isSmartRef__":true,"id":21146},"user":"sebastianwoinar","tags":[]},"21146":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"21147":{"varMapping":{"__isSmartRef__":true,"id":21148},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":21149},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21148":{"this":{"__isSmartRef__":true,"id":21078}},"21149":{"timestamp":{"__isSmartRef__":true,"id":21150},"user":"sebastianwoinar","tags":[]},"21150":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"21151":{"varMapping":{"__isSmartRef__":true,"id":21152},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":21153},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21152":{"this":{"__isSmartRef__":true,"id":21078}},"21153":{"timestamp":{"__isSmartRef__":true,"id":21154},"user":"sebastianwoinar","tags":[]},"21154":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"21155":{"varMapping":{"__isSmartRef__":true,"id":21156},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":21157},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21156":{"this":{"__isSmartRef__":true,"id":21078}},"21157":{"timestamp":{"__isSmartRef__":true,"id":21158},"user":"sebastianwoinar","tags":[]},"21158":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"21159":{"varMapping":{"__isSmartRef__":true,"id":21160},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":21161},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21160":{"this":{"__isSmartRef__":true,"id":21078}},"21161":{"timestamp":{"__isSmartRef__":true,"id":21162},"user":"sebastianwoinar","tags":[]},"21162":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"21163":{"varMapping":{"__isSmartRef__":true,"id":21164},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":21165},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21164":{"this":{"__isSmartRef__":true,"id":21078}},"21165":{"timestamp":{"__isSmartRef__":true,"id":21166},"user":"sebastianwoinar","tags":[]},"21166":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"21167":{"varMapping":{"__isSmartRef__":true,"id":21168},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":21173},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21168":{"this":{"__isSmartRef__":true,"id":21078},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21169}},"21169":{"$super":{"__isSmartRef__":true,"id":21170}},"21170":{"varMapping":{"__isSmartRef__":true,"id":21171},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":21172},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21171":{"obj":{"__isSmartRef__":true,"id":21078},"name":"onMouseDown"},"21172":{},"21173":{"timestamp":{"__isSmartRef__":true,"id":21174},"user":"sebastianwoinar","tags":[]},"21174":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"21175":{"varMapping":{"__isSmartRef__":true,"id":21176},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":21177},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21176":{"this":{"__isSmartRef__":true,"id":21078}},"21177":{"timestamp":{"__isSmartRef__":true,"id":21178},"user":"sebastianwoinar","tags":[]},"21178":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"21179":{"varMapping":{"__isSmartRef__":true,"id":21180},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":21181},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21180":{"this":{"__isSmartRef__":true,"id":21078}},"21181":{"timestamp":{"__isSmartRef__":true,"id":21182},"user":"sebastianwoinar","tags":[]},"21182":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"21183":{"varMapping":{"__isSmartRef__":true,"id":21184},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":21185},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21184":{"this":{"__isSmartRef__":true,"id":21078}},"21185":{"timestamp":{"__isSmartRef__":true,"id":21186},"user":"sebastianwoinar","tags":[]},"21186":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"21187":{"varMapping":{"__isSmartRef__":true,"id":21188},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":21189},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21188":{"this":{"__isSmartRef__":true,"id":21078}},"21189":{"timestamp":{"__isSmartRef__":true,"id":21190},"user":"sebastianwoinar","tags":[]},"21190":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"21191":{"varMapping":{"__isSmartRef__":true,"id":21192},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":21193},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21192":{"this":{"__isSmartRef__":true,"id":21078}},"21193":{"timestamp":{"__isSmartRef__":true,"id":21194},"user":"sebastianwoinar","tags":[]},"21194":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"21195":{"varMapping":{"__isSmartRef__":true,"id":21196},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":21197},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21196":{"this":{"__isSmartRef__":true,"id":21078}},"21197":{"timestamp":{"__isSmartRef__":true,"id":21198},"user":"sebastianwoinar","tags":[]},"21198":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"21199":{"varMapping":{"__isSmartRef__":true,"id":21200},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":21201},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21200":{"this":{"__isSmartRef__":true,"id":21078}},"21201":{"timestamp":{"__isSmartRef__":true,"id":21202},"user":"sebastianwoinar","tags":[]},"21202":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"21203":{"varMapping":{"__isSmartRef__":true,"id":21204},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":21205},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21204":{"this":{"__isSmartRef__":true,"id":21078}},"21205":{"timestamp":{"__isSmartRef__":true,"id":21206},"user":"sebastianwoinar","tags":[]},"21206":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"21207":{"buildChildNodes":{"__isSmartRef__":true,"id":21208},"getGameTree":{"__isSmartRef__":true,"id":21212},"getLevel":{"__isSmartRef__":true,"id":21216},"getLevelWeight":{"__isSmartRef__":true,"id":21220},"getWeight":{"__isSmartRef__":true,"id":21224},"setNode":{"__isSmartRef__":true,"id":21228},"setParent":{"__isSmartRef__":true,"id":21232},"getParent":{"__isSmartRef__":true,"id":21236},"deactivate":{"__isSmartRef__":true,"id":21240},"blink":{"__isSmartRef__":true,"id":21244},"ABPreturn":{"__isSmartRef__":true,"id":21248},"ABPstart":{"__isSmartRef__":true,"id":21252},"ABPcontinue":{"__isSmartRef__":true,"id":21256},"ABPshowValue":{"__isSmartRef__":true,"id":21260},"ABPgetValue":{"__isSmartRef__":true,"id":21264},"ABPhasChildNodes":{"__isSmartRef__":true,"id":21268},"onMouseDown":{"__isSmartRef__":true,"id":21272},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":21280},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":21284},"ABPmarkAsDone":{"__isSmartRef__":true,"id":21288},"ABPmarkAsActive":{"__isSmartRef__":true,"id":21292},"getStateMorph":{"__isSmartRef__":true,"id":21296},"showState":{"__isSmartRef__":true,"id":21300},"ABPfailHard":{"__isSmartRef__":true,"id":21304},"markFinalDrawWith":{"__isSmartRef__":true,"id":21308}},"21208":{"varMapping":{"__isSmartRef__":true,"id":21209},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":21210},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21209":{"this":{"__isSmartRef__":true,"id":20022}},"21210":{"timestamp":{"__isSmartRef__":true,"id":21211},"user":"sebastianwoinar","tags":[]},"21211":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"21212":{"varMapping":{"__isSmartRef__":true,"id":21213},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":21214},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21213":{"this":{"__isSmartRef__":true,"id":20022}},"21214":{"timestamp":{"__isSmartRef__":true,"id":21215},"user":"sebastianwoinar","tags":[]},"21215":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21216":{"varMapping":{"__isSmartRef__":true,"id":21217},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":21218},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21217":{"this":{"__isSmartRef__":true,"id":20022}},"21218":{"timestamp":{"__isSmartRef__":true,"id":21219},"user":"sebastianwoinar","tags":[]},"21219":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21220":{"varMapping":{"__isSmartRef__":true,"id":21221},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":21222},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21221":{"this":{"__isSmartRef__":true,"id":20022}},"21222":{"timestamp":{"__isSmartRef__":true,"id":21223},"user":"sebastianwoinar","tags":[]},"21223":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21224":{"varMapping":{"__isSmartRef__":true,"id":21225},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":21226},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21225":{"this":{"__isSmartRef__":true,"id":20022}},"21226":{"timestamp":{"__isSmartRef__":true,"id":21227},"user":"sebastianwoinar","tags":[]},"21227":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21228":{"varMapping":{"__isSmartRef__":true,"id":21229},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":21230},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21229":{"this":{"__isSmartRef__":true,"id":20022}},"21230":{"timestamp":{"__isSmartRef__":true,"id":21231},"user":"sebastianwoinar","tags":[]},"21231":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21232":{"varMapping":{"__isSmartRef__":true,"id":21233},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":21234},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21233":{"this":{"__isSmartRef__":true,"id":20022}},"21234":{"timestamp":{"__isSmartRef__":true,"id":21235},"user":"sebastianwoinar","tags":[]},"21235":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21236":{"varMapping":{"__isSmartRef__":true,"id":21237},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":21238},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21237":{"this":{"__isSmartRef__":true,"id":20022}},"21238":{"timestamp":{"__isSmartRef__":true,"id":21239},"user":"sebastianwoinar","tags":[]},"21239":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"21240":{"varMapping":{"__isSmartRef__":true,"id":21241},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":21242},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21241":{"this":{"__isSmartRef__":true,"id":20022}},"21242":{"timestamp":{"__isSmartRef__":true,"id":21243},"user":"sebastianwoinar","tags":[]},"21243":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"21244":{"varMapping":{"__isSmartRef__":true,"id":21245},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":21246},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21245":{"this":{"__isSmartRef__":true,"id":20022}},"21246":{"timestamp":{"__isSmartRef__":true,"id":21247},"user":"sebastianwoinar","tags":[]},"21247":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"21248":{"varMapping":{"__isSmartRef__":true,"id":21249},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":21250},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21249":{"this":{"__isSmartRef__":true,"id":20022}},"21250":{"timestamp":{"__isSmartRef__":true,"id":21251},"user":"sebastianwoinar","tags":[]},"21251":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"21252":{"varMapping":{"__isSmartRef__":true,"id":21253},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":21254},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21253":{"this":{"__isSmartRef__":true,"id":20022}},"21254":{"timestamp":{"__isSmartRef__":true,"id":21255},"user":"sebastianwoinar","tags":[]},"21255":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"21256":{"varMapping":{"__isSmartRef__":true,"id":21257},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":21258},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21257":{"this":{"__isSmartRef__":true,"id":20022}},"21258":{"timestamp":{"__isSmartRef__":true,"id":21259},"user":"sebastianwoinar","tags":[]},"21259":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"21260":{"varMapping":{"__isSmartRef__":true,"id":21261},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":21262},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21261":{"this":{"__isSmartRef__":true,"id":20022}},"21262":{"timestamp":{"__isSmartRef__":true,"id":21263},"user":"sebastianwoinar","tags":[]},"21263":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"21264":{"varMapping":{"__isSmartRef__":true,"id":21265},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":21266},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21265":{"this":{"__isSmartRef__":true,"id":20022}},"21266":{"timestamp":{"__isSmartRef__":true,"id":21267},"user":"sebastianwoinar","tags":[]},"21267":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"21268":{"varMapping":{"__isSmartRef__":true,"id":21269},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":21270},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21269":{"this":{"__isSmartRef__":true,"id":20022}},"21270":{"timestamp":{"__isSmartRef__":true,"id":21271},"user":"sebastianwoinar","tags":[]},"21271":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"21272":{"varMapping":{"__isSmartRef__":true,"id":21273},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":21278},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21273":{"this":{"__isSmartRef__":true,"id":20022},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21274}},"21274":{"$super":{"__isSmartRef__":true,"id":21275}},"21275":{"varMapping":{"__isSmartRef__":true,"id":21276},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":21277},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21276":{"obj":{"__isSmartRef__":true,"id":20022},"name":"onMouseDown"},"21277":{},"21278":{"timestamp":{"__isSmartRef__":true,"id":21279},"user":"sebastianwoinar","tags":[]},"21279":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"21280":{"varMapping":{"__isSmartRef__":true,"id":21281},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":21282},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21281":{"this":{"__isSmartRef__":true,"id":20022}},"21282":{"timestamp":{"__isSmartRef__":true,"id":21283},"user":"sebastianwoinar","tags":[]},"21283":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"21284":{"varMapping":{"__isSmartRef__":true,"id":21285},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":21286},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21285":{"this":{"__isSmartRef__":true,"id":20022}},"21286":{"timestamp":{"__isSmartRef__":true,"id":21287},"user":"sebastianwoinar","tags":[]},"21287":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"21288":{"varMapping":{"__isSmartRef__":true,"id":21289},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":21290},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21289":{"this":{"__isSmartRef__":true,"id":20022}},"21290":{"timestamp":{"__isSmartRef__":true,"id":21291},"user":"sebastianwoinar","tags":[]},"21291":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"21292":{"varMapping":{"__isSmartRef__":true,"id":21293},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":21294},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21293":{"this":{"__isSmartRef__":true,"id":20022}},"21294":{"timestamp":{"__isSmartRef__":true,"id":21295},"user":"sebastianwoinar","tags":[]},"21295":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"21296":{"varMapping":{"__isSmartRef__":true,"id":21297},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":21298},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21297":{"this":{"__isSmartRef__":true,"id":20022}},"21298":{"timestamp":{"__isSmartRef__":true,"id":21299},"user":"sebastianwoinar","tags":[]},"21299":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"21300":{"varMapping":{"__isSmartRef__":true,"id":21301},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":21302},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21301":{"this":{"__isSmartRef__":true,"id":20022}},"21302":{"timestamp":{"__isSmartRef__":true,"id":21303},"user":"sebastianwoinar","tags":[]},"21303":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"21304":{"varMapping":{"__isSmartRef__":true,"id":21305},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":21306},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21305":{"this":{"__isSmartRef__":true,"id":20022}},"21306":{"timestamp":{"__isSmartRef__":true,"id":21307},"user":"sebastianwoinar","tags":[]},"21307":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"21308":{"varMapping":{"__isSmartRef__":true,"id":21309},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":21310},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21309":{"this":{"__isSmartRef__":true,"id":20022}},"21310":{"timestamp":{"__isSmartRef__":true,"id":21311},"user":"sebastianwoinar","tags":[]},"21311":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"21312":{"submorphs":[{"__isSmartRef__":true,"id":21313}],"scripts":[],"shape":{"__isSmartRef__":true,"id":21330},"id":"F7EE7A79-798C-49D4-872D-2D96642881BF","eventHandler":{"__isSmartRef__":true,"id":21331},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":21332},"name":"node123","partsBinMetaInfo":{"__isSmartRef__":true,"id":21333},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5675},"owner":{"__isSmartRef__":true,"id":5408},"childNodes":[{"__isSmartRef__":true,"id":21336},{"__isSmartRef__":true,"id":21465},{"__isSmartRef__":true,"id":21594},{"__isSmartRef__":true,"id":21723},{"__isSmartRef__":true,"id":21852},{"__isSmartRef__":true,"id":21981},{"__isSmartRef__":true,"id":22110},{"__isSmartRef__":true,"id":22239},{"__isSmartRef__":true,"id":22368}],"parent":{"__isSmartRef__":true,"id":17805},"level":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":22497},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(611.5,160.0)"},"21313":{"submorphs":[],"scripts":[],"id":"F8016991-CE8C-4473-83DA-F414BFB8888C","shape":{"__isSmartRef__":true,"id":21314},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":21315},"textChunks":[{"__isSmartRef__":true,"id":21327}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":21329},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":21312},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"21314":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"21315":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":21316},{"__isSmartRef__":true,"id":21318},{"__isSmartRef__":true,"id":21320},{"__isSmartRef__":true,"id":21322},{"__isSmartRef__":true,"id":21324}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":21326},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"21316":{"date":{"__isSmartRef__":true,"id":21317},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"21317":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"21318":{"date":{"__isSmartRef__":true,"id":21319},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"21319":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"21320":{"date":{"__isSmartRef__":true,"id":21321},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"21321":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"21322":{"date":{"__isSmartRef__":true,"id":21323},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"21323":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"21324":{"date":{"__isSmartRef__":true,"id":21325},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"21325":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"21326":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"21327":{"style":{"__isSmartRef__":true,"id":21328},"morph":{"__isSmartRef__":true,"id":21313},"chunkOwner":{"__isSmartRef__":true,"id":21313},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21328":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21329":{"morph":{"__isSmartRef__":true,"id":21313},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"21330":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"21331":{"morph":{"__isSmartRef__":true,"id":21312},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"21332":{},"21333":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":21334}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"21334":{"date":{"__isSmartRef__":true,"id":21335},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"21335":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"21336":{"submorphs":[{"__isSmartRef__":true,"id":21337}],"scripts":[],"shape":{"__isSmartRef__":true,"id":21354},"id":"193A0E73-F6DC-4862-9EA0-538789414E30","eventHandler":{"__isSmartRef__":true,"id":21355},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":21356},"name":"node124","partsBinMetaInfo":{"__isSmartRef__":true,"id":21357},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5677},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":21312},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21360},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(564.9,210.0)"},"21337":{"submorphs":[],"scripts":[],"id":"8C2475FE-8CD8-4CF8-97D4-ECE4FBDFC4D9","shape":{"__isSmartRef__":true,"id":21338},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":21339},"textChunks":[{"__isSmartRef__":true,"id":21351}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":21353},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":21336},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"21338":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"21339":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":21340},{"__isSmartRef__":true,"id":21342},{"__isSmartRef__":true,"id":21344},{"__isSmartRef__":true,"id":21346},{"__isSmartRef__":true,"id":21348}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":21350},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"21340":{"date":{"__isSmartRef__":true,"id":21341},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"21341":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"21342":{"date":{"__isSmartRef__":true,"id":21343},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"21343":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"21344":{"date":{"__isSmartRef__":true,"id":21345},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"21345":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"21346":{"date":{"__isSmartRef__":true,"id":21347},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"21347":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"21348":{"date":{"__isSmartRef__":true,"id":21349},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"21349":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"21350":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"21351":{"style":{"__isSmartRef__":true,"id":21352},"morph":{"__isSmartRef__":true,"id":21337},"chunkOwner":{"__isSmartRef__":true,"id":21337},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21352":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21353":{"morph":{"__isSmartRef__":true,"id":21337},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"21354":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"21355":{"morph":{"__isSmartRef__":true,"id":21336},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"21356":{},"21357":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":21358}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"21358":{"date":{"__isSmartRef__":true,"id":21359},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"21359":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"21360":{"buildChildNodes":{"__isSmartRef__":true,"id":21361},"getGameTree":{"__isSmartRef__":true,"id":21365},"getLevel":{"__isSmartRef__":true,"id":21369},"getLevelWeight":{"__isSmartRef__":true,"id":21373},"getWeight":{"__isSmartRef__":true,"id":21377},"setNode":{"__isSmartRef__":true,"id":21381},"setParent":{"__isSmartRef__":true,"id":21385},"getParent":{"__isSmartRef__":true,"id":21389},"deactivate":{"__isSmartRef__":true,"id":21393},"blink":{"__isSmartRef__":true,"id":21397},"ABPreturn":{"__isSmartRef__":true,"id":21401},"ABPstart":{"__isSmartRef__":true,"id":21405},"ABPcontinue":{"__isSmartRef__":true,"id":21409},"ABPshowValue":{"__isSmartRef__":true,"id":21413},"ABPgetValue":{"__isSmartRef__":true,"id":21417},"ABPhasChildNodes":{"__isSmartRef__":true,"id":21421},"onMouseDown":{"__isSmartRef__":true,"id":21425},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":21433},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":21437},"ABPmarkAsDone":{"__isSmartRef__":true,"id":21441},"ABPmarkAsActive":{"__isSmartRef__":true,"id":21445},"getStateMorph":{"__isSmartRef__":true,"id":21449},"showState":{"__isSmartRef__":true,"id":21453},"ABPfailHard":{"__isSmartRef__":true,"id":21457},"markFinalDrawWith":{"__isSmartRef__":true,"id":21461}},"21361":{"varMapping":{"__isSmartRef__":true,"id":21362},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":21363},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21362":{"this":{"__isSmartRef__":true,"id":21336}},"21363":{"timestamp":{"__isSmartRef__":true,"id":21364},"user":"sebastianwoinar","tags":[]},"21364":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"21365":{"varMapping":{"__isSmartRef__":true,"id":21366},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":21367},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21366":{"this":{"__isSmartRef__":true,"id":21336}},"21367":{"timestamp":{"__isSmartRef__":true,"id":21368},"user":"sebastianwoinar","tags":[]},"21368":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21369":{"varMapping":{"__isSmartRef__":true,"id":21370},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":21371},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21370":{"this":{"__isSmartRef__":true,"id":21336}},"21371":{"timestamp":{"__isSmartRef__":true,"id":21372},"user":"sebastianwoinar","tags":[]},"21372":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21373":{"varMapping":{"__isSmartRef__":true,"id":21374},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":21375},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21374":{"this":{"__isSmartRef__":true,"id":21336}},"21375":{"timestamp":{"__isSmartRef__":true,"id":21376},"user":"sebastianwoinar","tags":[]},"21376":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21377":{"varMapping":{"__isSmartRef__":true,"id":21378},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":21379},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21378":{"this":{"__isSmartRef__":true,"id":21336}},"21379":{"timestamp":{"__isSmartRef__":true,"id":21380},"user":"sebastianwoinar","tags":[]},"21380":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21381":{"varMapping":{"__isSmartRef__":true,"id":21382},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":21383},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21382":{"this":{"__isSmartRef__":true,"id":21336}},"21383":{"timestamp":{"__isSmartRef__":true,"id":21384},"user":"sebastianwoinar","tags":[]},"21384":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21385":{"varMapping":{"__isSmartRef__":true,"id":21386},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":21387},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21386":{"this":{"__isSmartRef__":true,"id":21336}},"21387":{"timestamp":{"__isSmartRef__":true,"id":21388},"user":"sebastianwoinar","tags":[]},"21388":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21389":{"varMapping":{"__isSmartRef__":true,"id":21390},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":21391},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21390":{"this":{"__isSmartRef__":true,"id":21336}},"21391":{"timestamp":{"__isSmartRef__":true,"id":21392},"user":"sebastianwoinar","tags":[]},"21392":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"21393":{"varMapping":{"__isSmartRef__":true,"id":21394},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":21395},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21394":{"this":{"__isSmartRef__":true,"id":21336}},"21395":{"timestamp":{"__isSmartRef__":true,"id":21396},"user":"sebastianwoinar","tags":[]},"21396":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"21397":{"varMapping":{"__isSmartRef__":true,"id":21398},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":21399},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21398":{"this":{"__isSmartRef__":true,"id":21336}},"21399":{"timestamp":{"__isSmartRef__":true,"id":21400},"user":"sebastianwoinar","tags":[]},"21400":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"21401":{"varMapping":{"__isSmartRef__":true,"id":21402},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":21403},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21402":{"this":{"__isSmartRef__":true,"id":21336}},"21403":{"timestamp":{"__isSmartRef__":true,"id":21404},"user":"sebastianwoinar","tags":[]},"21404":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"21405":{"varMapping":{"__isSmartRef__":true,"id":21406},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":21407},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21406":{"this":{"__isSmartRef__":true,"id":21336}},"21407":{"timestamp":{"__isSmartRef__":true,"id":21408},"user":"sebastianwoinar","tags":[]},"21408":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"21409":{"varMapping":{"__isSmartRef__":true,"id":21410},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":21411},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21410":{"this":{"__isSmartRef__":true,"id":21336}},"21411":{"timestamp":{"__isSmartRef__":true,"id":21412},"user":"sebastianwoinar","tags":[]},"21412":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"21413":{"varMapping":{"__isSmartRef__":true,"id":21414},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":21415},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21414":{"this":{"__isSmartRef__":true,"id":21336}},"21415":{"timestamp":{"__isSmartRef__":true,"id":21416},"user":"sebastianwoinar","tags":[]},"21416":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"21417":{"varMapping":{"__isSmartRef__":true,"id":21418},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":21419},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21418":{"this":{"__isSmartRef__":true,"id":21336}},"21419":{"timestamp":{"__isSmartRef__":true,"id":21420},"user":"sebastianwoinar","tags":[]},"21420":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"21421":{"varMapping":{"__isSmartRef__":true,"id":21422},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":21423},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21422":{"this":{"__isSmartRef__":true,"id":21336}},"21423":{"timestamp":{"__isSmartRef__":true,"id":21424},"user":"sebastianwoinar","tags":[]},"21424":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"21425":{"varMapping":{"__isSmartRef__":true,"id":21426},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":21431},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21426":{"this":{"__isSmartRef__":true,"id":21336},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21427}},"21427":{"$super":{"__isSmartRef__":true,"id":21428}},"21428":{"varMapping":{"__isSmartRef__":true,"id":21429},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":21430},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21429":{"obj":{"__isSmartRef__":true,"id":21336},"name":"onMouseDown"},"21430":{},"21431":{"timestamp":{"__isSmartRef__":true,"id":21432},"user":"sebastianwoinar","tags":[]},"21432":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"21433":{"varMapping":{"__isSmartRef__":true,"id":21434},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":21435},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21434":{"this":{"__isSmartRef__":true,"id":21336}},"21435":{"timestamp":{"__isSmartRef__":true,"id":21436},"user":"sebastianwoinar","tags":[]},"21436":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"21437":{"varMapping":{"__isSmartRef__":true,"id":21438},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":21439},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21438":{"this":{"__isSmartRef__":true,"id":21336}},"21439":{"timestamp":{"__isSmartRef__":true,"id":21440},"user":"sebastianwoinar","tags":[]},"21440":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"21441":{"varMapping":{"__isSmartRef__":true,"id":21442},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":21443},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21442":{"this":{"__isSmartRef__":true,"id":21336}},"21443":{"timestamp":{"__isSmartRef__":true,"id":21444},"user":"sebastianwoinar","tags":[]},"21444":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"21445":{"varMapping":{"__isSmartRef__":true,"id":21446},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":21447},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21446":{"this":{"__isSmartRef__":true,"id":21336}},"21447":{"timestamp":{"__isSmartRef__":true,"id":21448},"user":"sebastianwoinar","tags":[]},"21448":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"21449":{"varMapping":{"__isSmartRef__":true,"id":21450},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":21451},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21450":{"this":{"__isSmartRef__":true,"id":21336}},"21451":{"timestamp":{"__isSmartRef__":true,"id":21452},"user":"sebastianwoinar","tags":[]},"21452":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"21453":{"varMapping":{"__isSmartRef__":true,"id":21454},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":21455},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21454":{"this":{"__isSmartRef__":true,"id":21336}},"21455":{"timestamp":{"__isSmartRef__":true,"id":21456},"user":"sebastianwoinar","tags":[]},"21456":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"21457":{"varMapping":{"__isSmartRef__":true,"id":21458},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":21459},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21458":{"this":{"__isSmartRef__":true,"id":21336}},"21459":{"timestamp":{"__isSmartRef__":true,"id":21460},"user":"sebastianwoinar","tags":[]},"21460":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"21461":{"varMapping":{"__isSmartRef__":true,"id":21462},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":21463},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21462":{"this":{"__isSmartRef__":true,"id":21336}},"21463":{"timestamp":{"__isSmartRef__":true,"id":21464},"user":"sebastianwoinar","tags":[]},"21464":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"21465":{"submorphs":[{"__isSmartRef__":true,"id":21466}],"scripts":[],"shape":{"__isSmartRef__":true,"id":21483},"id":"17F7E2B0-9D33-4602-84A3-0BD1C987A5D3","eventHandler":{"__isSmartRef__":true,"id":21484},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":21485},"name":"node125","partsBinMetaInfo":{"__isSmartRef__":true,"id":21486},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5679},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":21312},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21489},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(570.0,210.0)"},"21466":{"submorphs":[],"scripts":[],"id":"74613D12-51C5-478E-A8CB-02AF568AB116","shape":{"__isSmartRef__":true,"id":21467},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":21468},"textChunks":[{"__isSmartRef__":true,"id":21480}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":21482},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":21465},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"21467":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"21468":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":21469},{"__isSmartRef__":true,"id":21471},{"__isSmartRef__":true,"id":21473},{"__isSmartRef__":true,"id":21475},{"__isSmartRef__":true,"id":21477}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":21479},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"21469":{"date":{"__isSmartRef__":true,"id":21470},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"21470":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"21471":{"date":{"__isSmartRef__":true,"id":21472},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"21472":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"21473":{"date":{"__isSmartRef__":true,"id":21474},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"21474":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"21475":{"date":{"__isSmartRef__":true,"id":21476},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"21476":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"21477":{"date":{"__isSmartRef__":true,"id":21478},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"21478":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"21479":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"21480":{"style":{"__isSmartRef__":true,"id":21481},"morph":{"__isSmartRef__":true,"id":21466},"chunkOwner":{"__isSmartRef__":true,"id":21466},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21481":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21482":{"morph":{"__isSmartRef__":true,"id":21466},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"21483":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"21484":{"morph":{"__isSmartRef__":true,"id":21465},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"21485":{},"21486":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":21487}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"21487":{"date":{"__isSmartRef__":true,"id":21488},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"21488":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"21489":{"buildChildNodes":{"__isSmartRef__":true,"id":21490},"getGameTree":{"__isSmartRef__":true,"id":21494},"getLevel":{"__isSmartRef__":true,"id":21498},"getLevelWeight":{"__isSmartRef__":true,"id":21502},"getWeight":{"__isSmartRef__":true,"id":21506},"setNode":{"__isSmartRef__":true,"id":21510},"setParent":{"__isSmartRef__":true,"id":21514},"getParent":{"__isSmartRef__":true,"id":21518},"deactivate":{"__isSmartRef__":true,"id":21522},"blink":{"__isSmartRef__":true,"id":21526},"ABPreturn":{"__isSmartRef__":true,"id":21530},"ABPstart":{"__isSmartRef__":true,"id":21534},"ABPcontinue":{"__isSmartRef__":true,"id":21538},"ABPshowValue":{"__isSmartRef__":true,"id":21542},"ABPgetValue":{"__isSmartRef__":true,"id":21546},"ABPhasChildNodes":{"__isSmartRef__":true,"id":21550},"onMouseDown":{"__isSmartRef__":true,"id":21554},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":21562},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":21566},"ABPmarkAsDone":{"__isSmartRef__":true,"id":21570},"ABPmarkAsActive":{"__isSmartRef__":true,"id":21574},"getStateMorph":{"__isSmartRef__":true,"id":21578},"showState":{"__isSmartRef__":true,"id":21582},"ABPfailHard":{"__isSmartRef__":true,"id":21586},"markFinalDrawWith":{"__isSmartRef__":true,"id":21590}},"21490":{"varMapping":{"__isSmartRef__":true,"id":21491},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":21492},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21491":{"this":{"__isSmartRef__":true,"id":21465}},"21492":{"timestamp":{"__isSmartRef__":true,"id":21493},"user":"sebastianwoinar","tags":[]},"21493":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"21494":{"varMapping":{"__isSmartRef__":true,"id":21495},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":21496},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21495":{"this":{"__isSmartRef__":true,"id":21465}},"21496":{"timestamp":{"__isSmartRef__":true,"id":21497},"user":"sebastianwoinar","tags":[]},"21497":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21498":{"varMapping":{"__isSmartRef__":true,"id":21499},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":21500},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21499":{"this":{"__isSmartRef__":true,"id":21465}},"21500":{"timestamp":{"__isSmartRef__":true,"id":21501},"user":"sebastianwoinar","tags":[]},"21501":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21502":{"varMapping":{"__isSmartRef__":true,"id":21503},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":21504},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21503":{"this":{"__isSmartRef__":true,"id":21465}},"21504":{"timestamp":{"__isSmartRef__":true,"id":21505},"user":"sebastianwoinar","tags":[]},"21505":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21506":{"varMapping":{"__isSmartRef__":true,"id":21507},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":21508},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21507":{"this":{"__isSmartRef__":true,"id":21465}},"21508":{"timestamp":{"__isSmartRef__":true,"id":21509},"user":"sebastianwoinar","tags":[]},"21509":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21510":{"varMapping":{"__isSmartRef__":true,"id":21511},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":21512},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21511":{"this":{"__isSmartRef__":true,"id":21465}},"21512":{"timestamp":{"__isSmartRef__":true,"id":21513},"user":"sebastianwoinar","tags":[]},"21513":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21514":{"varMapping":{"__isSmartRef__":true,"id":21515},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":21516},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21515":{"this":{"__isSmartRef__":true,"id":21465}},"21516":{"timestamp":{"__isSmartRef__":true,"id":21517},"user":"sebastianwoinar","tags":[]},"21517":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21518":{"varMapping":{"__isSmartRef__":true,"id":21519},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":21520},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21519":{"this":{"__isSmartRef__":true,"id":21465}},"21520":{"timestamp":{"__isSmartRef__":true,"id":21521},"user":"sebastianwoinar","tags":[]},"21521":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"21522":{"varMapping":{"__isSmartRef__":true,"id":21523},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":21524},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21523":{"this":{"__isSmartRef__":true,"id":21465}},"21524":{"timestamp":{"__isSmartRef__":true,"id":21525},"user":"sebastianwoinar","tags":[]},"21525":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"21526":{"varMapping":{"__isSmartRef__":true,"id":21527},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":21528},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21527":{"this":{"__isSmartRef__":true,"id":21465}},"21528":{"timestamp":{"__isSmartRef__":true,"id":21529},"user":"sebastianwoinar","tags":[]},"21529":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"21530":{"varMapping":{"__isSmartRef__":true,"id":21531},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":21532},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21531":{"this":{"__isSmartRef__":true,"id":21465}},"21532":{"timestamp":{"__isSmartRef__":true,"id":21533},"user":"sebastianwoinar","tags":[]},"21533":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"21534":{"varMapping":{"__isSmartRef__":true,"id":21535},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":21536},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21535":{"this":{"__isSmartRef__":true,"id":21465}},"21536":{"timestamp":{"__isSmartRef__":true,"id":21537},"user":"sebastianwoinar","tags":[]},"21537":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"21538":{"varMapping":{"__isSmartRef__":true,"id":21539},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":21540},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21539":{"this":{"__isSmartRef__":true,"id":21465}},"21540":{"timestamp":{"__isSmartRef__":true,"id":21541},"user":"sebastianwoinar","tags":[]},"21541":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"21542":{"varMapping":{"__isSmartRef__":true,"id":21543},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":21544},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21543":{"this":{"__isSmartRef__":true,"id":21465}},"21544":{"timestamp":{"__isSmartRef__":true,"id":21545},"user":"sebastianwoinar","tags":[]},"21545":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"21546":{"varMapping":{"__isSmartRef__":true,"id":21547},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":21548},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21547":{"this":{"__isSmartRef__":true,"id":21465}},"21548":{"timestamp":{"__isSmartRef__":true,"id":21549},"user":"sebastianwoinar","tags":[]},"21549":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"21550":{"varMapping":{"__isSmartRef__":true,"id":21551},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":21552},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21551":{"this":{"__isSmartRef__":true,"id":21465}},"21552":{"timestamp":{"__isSmartRef__":true,"id":21553},"user":"sebastianwoinar","tags":[]},"21553":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"21554":{"varMapping":{"__isSmartRef__":true,"id":21555},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":21560},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21555":{"this":{"__isSmartRef__":true,"id":21465},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21556}},"21556":{"$super":{"__isSmartRef__":true,"id":21557}},"21557":{"varMapping":{"__isSmartRef__":true,"id":21558},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":21559},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21558":{"obj":{"__isSmartRef__":true,"id":21465},"name":"onMouseDown"},"21559":{},"21560":{"timestamp":{"__isSmartRef__":true,"id":21561},"user":"sebastianwoinar","tags":[]},"21561":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"21562":{"varMapping":{"__isSmartRef__":true,"id":21563},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":21564},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21563":{"this":{"__isSmartRef__":true,"id":21465}},"21564":{"timestamp":{"__isSmartRef__":true,"id":21565},"user":"sebastianwoinar","tags":[]},"21565":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"21566":{"varMapping":{"__isSmartRef__":true,"id":21567},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":21568},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21567":{"this":{"__isSmartRef__":true,"id":21465}},"21568":{"timestamp":{"__isSmartRef__":true,"id":21569},"user":"sebastianwoinar","tags":[]},"21569":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"21570":{"varMapping":{"__isSmartRef__":true,"id":21571},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":21572},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21571":{"this":{"__isSmartRef__":true,"id":21465}},"21572":{"timestamp":{"__isSmartRef__":true,"id":21573},"user":"sebastianwoinar","tags":[]},"21573":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"21574":{"varMapping":{"__isSmartRef__":true,"id":21575},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":21576},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21575":{"this":{"__isSmartRef__":true,"id":21465}},"21576":{"timestamp":{"__isSmartRef__":true,"id":21577},"user":"sebastianwoinar","tags":[]},"21577":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"21578":{"varMapping":{"__isSmartRef__":true,"id":21579},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":21580},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21579":{"this":{"__isSmartRef__":true,"id":21465}},"21580":{"timestamp":{"__isSmartRef__":true,"id":21581},"user":"sebastianwoinar","tags":[]},"21581":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"21582":{"varMapping":{"__isSmartRef__":true,"id":21583},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":21584},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21583":{"this":{"__isSmartRef__":true,"id":21465}},"21584":{"timestamp":{"__isSmartRef__":true,"id":21585},"user":"sebastianwoinar","tags":[]},"21585":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"21586":{"varMapping":{"__isSmartRef__":true,"id":21587},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":21588},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21587":{"this":{"__isSmartRef__":true,"id":21465}},"21588":{"timestamp":{"__isSmartRef__":true,"id":21589},"user":"sebastianwoinar","tags":[]},"21589":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"21590":{"varMapping":{"__isSmartRef__":true,"id":21591},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":21592},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21591":{"this":{"__isSmartRef__":true,"id":21465}},"21592":{"timestamp":{"__isSmartRef__":true,"id":21593},"user":"sebastianwoinar","tags":[]},"21593":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"21594":{"submorphs":[{"__isSmartRef__":true,"id":21595}],"scripts":[],"shape":{"__isSmartRef__":true,"id":21612},"id":"660134B8-4255-4E4A-9215-898BD42B619C","eventHandler":{"__isSmartRef__":true,"id":21613},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":21614},"name":"node126","partsBinMetaInfo":{"__isSmartRef__":true,"id":21615},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5681},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":21312},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21618},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(575.2,210.0)"},"21595":{"submorphs":[],"scripts":[],"id":"6546AF69-50B7-4DE0-B139-FDF8F022ABB6","shape":{"__isSmartRef__":true,"id":21596},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":21597},"textChunks":[{"__isSmartRef__":true,"id":21609}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":21611},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":21594},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"21596":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"21597":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":21598},{"__isSmartRef__":true,"id":21600},{"__isSmartRef__":true,"id":21602},{"__isSmartRef__":true,"id":21604},{"__isSmartRef__":true,"id":21606}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":21608},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"21598":{"date":{"__isSmartRef__":true,"id":21599},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"21599":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"21600":{"date":{"__isSmartRef__":true,"id":21601},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"21601":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"21602":{"date":{"__isSmartRef__":true,"id":21603},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"21603":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"21604":{"date":{"__isSmartRef__":true,"id":21605},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"21605":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"21606":{"date":{"__isSmartRef__":true,"id":21607},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"21607":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"21608":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"21609":{"style":{"__isSmartRef__":true,"id":21610},"morph":{"__isSmartRef__":true,"id":21595},"chunkOwner":{"__isSmartRef__":true,"id":21595},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21610":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21611":{"morph":{"__isSmartRef__":true,"id":21595},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"21612":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"21613":{"morph":{"__isSmartRef__":true,"id":21594},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"21614":{},"21615":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":21616}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"21616":{"date":{"__isSmartRef__":true,"id":21617},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"21617":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"21618":{"buildChildNodes":{"__isSmartRef__":true,"id":21619},"getGameTree":{"__isSmartRef__":true,"id":21623},"getLevel":{"__isSmartRef__":true,"id":21627},"getLevelWeight":{"__isSmartRef__":true,"id":21631},"getWeight":{"__isSmartRef__":true,"id":21635},"setNode":{"__isSmartRef__":true,"id":21639},"setParent":{"__isSmartRef__":true,"id":21643},"getParent":{"__isSmartRef__":true,"id":21647},"deactivate":{"__isSmartRef__":true,"id":21651},"blink":{"__isSmartRef__":true,"id":21655},"ABPreturn":{"__isSmartRef__":true,"id":21659},"ABPstart":{"__isSmartRef__":true,"id":21663},"ABPcontinue":{"__isSmartRef__":true,"id":21667},"ABPshowValue":{"__isSmartRef__":true,"id":21671},"ABPgetValue":{"__isSmartRef__":true,"id":21675},"ABPhasChildNodes":{"__isSmartRef__":true,"id":21679},"onMouseDown":{"__isSmartRef__":true,"id":21683},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":21691},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":21695},"ABPmarkAsDone":{"__isSmartRef__":true,"id":21699},"ABPmarkAsActive":{"__isSmartRef__":true,"id":21703},"getStateMorph":{"__isSmartRef__":true,"id":21707},"showState":{"__isSmartRef__":true,"id":21711},"ABPfailHard":{"__isSmartRef__":true,"id":21715},"markFinalDrawWith":{"__isSmartRef__":true,"id":21719}},"21619":{"varMapping":{"__isSmartRef__":true,"id":21620},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":21621},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21620":{"this":{"__isSmartRef__":true,"id":21594}},"21621":{"timestamp":{"__isSmartRef__":true,"id":21622},"user":"sebastianwoinar","tags":[]},"21622":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"21623":{"varMapping":{"__isSmartRef__":true,"id":21624},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":21625},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21624":{"this":{"__isSmartRef__":true,"id":21594}},"21625":{"timestamp":{"__isSmartRef__":true,"id":21626},"user":"sebastianwoinar","tags":[]},"21626":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21627":{"varMapping":{"__isSmartRef__":true,"id":21628},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":21629},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21628":{"this":{"__isSmartRef__":true,"id":21594}},"21629":{"timestamp":{"__isSmartRef__":true,"id":21630},"user":"sebastianwoinar","tags":[]},"21630":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21631":{"varMapping":{"__isSmartRef__":true,"id":21632},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":21633},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21632":{"this":{"__isSmartRef__":true,"id":21594}},"21633":{"timestamp":{"__isSmartRef__":true,"id":21634},"user":"sebastianwoinar","tags":[]},"21634":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21635":{"varMapping":{"__isSmartRef__":true,"id":21636},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":21637},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21636":{"this":{"__isSmartRef__":true,"id":21594}},"21637":{"timestamp":{"__isSmartRef__":true,"id":21638},"user":"sebastianwoinar","tags":[]},"21638":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21639":{"varMapping":{"__isSmartRef__":true,"id":21640},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":21641},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21640":{"this":{"__isSmartRef__":true,"id":21594}},"21641":{"timestamp":{"__isSmartRef__":true,"id":21642},"user":"sebastianwoinar","tags":[]},"21642":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21643":{"varMapping":{"__isSmartRef__":true,"id":21644},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":21645},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21644":{"this":{"__isSmartRef__":true,"id":21594}},"21645":{"timestamp":{"__isSmartRef__":true,"id":21646},"user":"sebastianwoinar","tags":[]},"21646":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21647":{"varMapping":{"__isSmartRef__":true,"id":21648},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":21649},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21648":{"this":{"__isSmartRef__":true,"id":21594}},"21649":{"timestamp":{"__isSmartRef__":true,"id":21650},"user":"sebastianwoinar","tags":[]},"21650":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"21651":{"varMapping":{"__isSmartRef__":true,"id":21652},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":21653},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21652":{"this":{"__isSmartRef__":true,"id":21594}},"21653":{"timestamp":{"__isSmartRef__":true,"id":21654},"user":"sebastianwoinar","tags":[]},"21654":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"21655":{"varMapping":{"__isSmartRef__":true,"id":21656},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":21657},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21656":{"this":{"__isSmartRef__":true,"id":21594}},"21657":{"timestamp":{"__isSmartRef__":true,"id":21658},"user":"sebastianwoinar","tags":[]},"21658":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"21659":{"varMapping":{"__isSmartRef__":true,"id":21660},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":21661},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21660":{"this":{"__isSmartRef__":true,"id":21594}},"21661":{"timestamp":{"__isSmartRef__":true,"id":21662},"user":"sebastianwoinar","tags":[]},"21662":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"21663":{"varMapping":{"__isSmartRef__":true,"id":21664},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":21665},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21664":{"this":{"__isSmartRef__":true,"id":21594}},"21665":{"timestamp":{"__isSmartRef__":true,"id":21666},"user":"sebastianwoinar","tags":[]},"21666":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"21667":{"varMapping":{"__isSmartRef__":true,"id":21668},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":21669},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21668":{"this":{"__isSmartRef__":true,"id":21594}},"21669":{"timestamp":{"__isSmartRef__":true,"id":21670},"user":"sebastianwoinar","tags":[]},"21670":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"21671":{"varMapping":{"__isSmartRef__":true,"id":21672},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":21673},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21672":{"this":{"__isSmartRef__":true,"id":21594}},"21673":{"timestamp":{"__isSmartRef__":true,"id":21674},"user":"sebastianwoinar","tags":[]},"21674":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"21675":{"varMapping":{"__isSmartRef__":true,"id":21676},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":21677},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21676":{"this":{"__isSmartRef__":true,"id":21594}},"21677":{"timestamp":{"__isSmartRef__":true,"id":21678},"user":"sebastianwoinar","tags":[]},"21678":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"21679":{"varMapping":{"__isSmartRef__":true,"id":21680},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":21681},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21680":{"this":{"__isSmartRef__":true,"id":21594}},"21681":{"timestamp":{"__isSmartRef__":true,"id":21682},"user":"sebastianwoinar","tags":[]},"21682":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"21683":{"varMapping":{"__isSmartRef__":true,"id":21684},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":21689},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21684":{"this":{"__isSmartRef__":true,"id":21594},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21685}},"21685":{"$super":{"__isSmartRef__":true,"id":21686}},"21686":{"varMapping":{"__isSmartRef__":true,"id":21687},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":21688},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21687":{"obj":{"__isSmartRef__":true,"id":21594},"name":"onMouseDown"},"21688":{},"21689":{"timestamp":{"__isSmartRef__":true,"id":21690},"user":"sebastianwoinar","tags":[]},"21690":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"21691":{"varMapping":{"__isSmartRef__":true,"id":21692},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":21693},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21692":{"this":{"__isSmartRef__":true,"id":21594}},"21693":{"timestamp":{"__isSmartRef__":true,"id":21694},"user":"sebastianwoinar","tags":[]},"21694":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"21695":{"varMapping":{"__isSmartRef__":true,"id":21696},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":21697},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21696":{"this":{"__isSmartRef__":true,"id":21594}},"21697":{"timestamp":{"__isSmartRef__":true,"id":21698},"user":"sebastianwoinar","tags":[]},"21698":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"21699":{"varMapping":{"__isSmartRef__":true,"id":21700},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":21701},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21700":{"this":{"__isSmartRef__":true,"id":21594}},"21701":{"timestamp":{"__isSmartRef__":true,"id":21702},"user":"sebastianwoinar","tags":[]},"21702":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"21703":{"varMapping":{"__isSmartRef__":true,"id":21704},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":21705},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21704":{"this":{"__isSmartRef__":true,"id":21594}},"21705":{"timestamp":{"__isSmartRef__":true,"id":21706},"user":"sebastianwoinar","tags":[]},"21706":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"21707":{"varMapping":{"__isSmartRef__":true,"id":21708},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":21709},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21708":{"this":{"__isSmartRef__":true,"id":21594}},"21709":{"timestamp":{"__isSmartRef__":true,"id":21710},"user":"sebastianwoinar","tags":[]},"21710":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"21711":{"varMapping":{"__isSmartRef__":true,"id":21712},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":21713},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21712":{"this":{"__isSmartRef__":true,"id":21594}},"21713":{"timestamp":{"__isSmartRef__":true,"id":21714},"user":"sebastianwoinar","tags":[]},"21714":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"21715":{"varMapping":{"__isSmartRef__":true,"id":21716},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":21717},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21716":{"this":{"__isSmartRef__":true,"id":21594}},"21717":{"timestamp":{"__isSmartRef__":true,"id":21718},"user":"sebastianwoinar","tags":[]},"21718":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"21719":{"varMapping":{"__isSmartRef__":true,"id":21720},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":21721},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21720":{"this":{"__isSmartRef__":true,"id":21594}},"21721":{"timestamp":{"__isSmartRef__":true,"id":21722},"user":"sebastianwoinar","tags":[]},"21722":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"21723":{"submorphs":[{"__isSmartRef__":true,"id":21724}],"scripts":[],"shape":{"__isSmartRef__":true,"id":21741},"id":"A5F96017-C704-4C96-B878-532742340DA1","eventHandler":{"__isSmartRef__":true,"id":21742},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":21743},"name":"node127","partsBinMetaInfo":{"__isSmartRef__":true,"id":21744},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5683},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":21312},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21747},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(580.4,210.0)"},"21724":{"submorphs":[],"scripts":[],"id":"A54EC89C-99E9-422B-8D79-61BF9EF629F8","shape":{"__isSmartRef__":true,"id":21725},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":21726},"textChunks":[{"__isSmartRef__":true,"id":21738}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":21740},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":21723},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"21725":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"21726":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":21727},{"__isSmartRef__":true,"id":21729},{"__isSmartRef__":true,"id":21731},{"__isSmartRef__":true,"id":21733},{"__isSmartRef__":true,"id":21735}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":21737},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"21727":{"date":{"__isSmartRef__":true,"id":21728},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"21728":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"21729":{"date":{"__isSmartRef__":true,"id":21730},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"21730":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"21731":{"date":{"__isSmartRef__":true,"id":21732},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"21732":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"21733":{"date":{"__isSmartRef__":true,"id":21734},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"21734":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"21735":{"date":{"__isSmartRef__":true,"id":21736},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"21736":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"21737":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"21738":{"style":{"__isSmartRef__":true,"id":21739},"morph":{"__isSmartRef__":true,"id":21724},"chunkOwner":{"__isSmartRef__":true,"id":21724},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21739":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21740":{"morph":{"__isSmartRef__":true,"id":21724},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"21741":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"21742":{"morph":{"__isSmartRef__":true,"id":21723},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"21743":{},"21744":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":21745}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"21745":{"date":{"__isSmartRef__":true,"id":21746},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"21746":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"21747":{"buildChildNodes":{"__isSmartRef__":true,"id":21748},"getGameTree":{"__isSmartRef__":true,"id":21752},"getLevel":{"__isSmartRef__":true,"id":21756},"getLevelWeight":{"__isSmartRef__":true,"id":21760},"getWeight":{"__isSmartRef__":true,"id":21764},"setNode":{"__isSmartRef__":true,"id":21768},"setParent":{"__isSmartRef__":true,"id":21772},"getParent":{"__isSmartRef__":true,"id":21776},"deactivate":{"__isSmartRef__":true,"id":21780},"blink":{"__isSmartRef__":true,"id":21784},"ABPreturn":{"__isSmartRef__":true,"id":21788},"ABPstart":{"__isSmartRef__":true,"id":21792},"ABPcontinue":{"__isSmartRef__":true,"id":21796},"ABPshowValue":{"__isSmartRef__":true,"id":21800},"ABPgetValue":{"__isSmartRef__":true,"id":21804},"ABPhasChildNodes":{"__isSmartRef__":true,"id":21808},"onMouseDown":{"__isSmartRef__":true,"id":21812},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":21820},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":21824},"ABPmarkAsDone":{"__isSmartRef__":true,"id":21828},"ABPmarkAsActive":{"__isSmartRef__":true,"id":21832},"getStateMorph":{"__isSmartRef__":true,"id":21836},"showState":{"__isSmartRef__":true,"id":21840},"ABPfailHard":{"__isSmartRef__":true,"id":21844},"markFinalDrawWith":{"__isSmartRef__":true,"id":21848}},"21748":{"varMapping":{"__isSmartRef__":true,"id":21749},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":21750},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21749":{"this":{"__isSmartRef__":true,"id":21723}},"21750":{"timestamp":{"__isSmartRef__":true,"id":21751},"user":"sebastianwoinar","tags":[]},"21751":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"21752":{"varMapping":{"__isSmartRef__":true,"id":21753},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":21754},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21753":{"this":{"__isSmartRef__":true,"id":21723}},"21754":{"timestamp":{"__isSmartRef__":true,"id":21755},"user":"sebastianwoinar","tags":[]},"21755":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21756":{"varMapping":{"__isSmartRef__":true,"id":21757},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":21758},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21757":{"this":{"__isSmartRef__":true,"id":21723}},"21758":{"timestamp":{"__isSmartRef__":true,"id":21759},"user":"sebastianwoinar","tags":[]},"21759":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21760":{"varMapping":{"__isSmartRef__":true,"id":21761},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":21762},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21761":{"this":{"__isSmartRef__":true,"id":21723}},"21762":{"timestamp":{"__isSmartRef__":true,"id":21763},"user":"sebastianwoinar","tags":[]},"21763":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21764":{"varMapping":{"__isSmartRef__":true,"id":21765},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":21766},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21765":{"this":{"__isSmartRef__":true,"id":21723}},"21766":{"timestamp":{"__isSmartRef__":true,"id":21767},"user":"sebastianwoinar","tags":[]},"21767":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21768":{"varMapping":{"__isSmartRef__":true,"id":21769},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":21770},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21769":{"this":{"__isSmartRef__":true,"id":21723}},"21770":{"timestamp":{"__isSmartRef__":true,"id":21771},"user":"sebastianwoinar","tags":[]},"21771":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21772":{"varMapping":{"__isSmartRef__":true,"id":21773},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":21774},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21773":{"this":{"__isSmartRef__":true,"id":21723}},"21774":{"timestamp":{"__isSmartRef__":true,"id":21775},"user":"sebastianwoinar","tags":[]},"21775":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21776":{"varMapping":{"__isSmartRef__":true,"id":21777},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":21778},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21777":{"this":{"__isSmartRef__":true,"id":21723}},"21778":{"timestamp":{"__isSmartRef__":true,"id":21779},"user":"sebastianwoinar","tags":[]},"21779":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"21780":{"varMapping":{"__isSmartRef__":true,"id":21781},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":21782},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21781":{"this":{"__isSmartRef__":true,"id":21723}},"21782":{"timestamp":{"__isSmartRef__":true,"id":21783},"user":"sebastianwoinar","tags":[]},"21783":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"21784":{"varMapping":{"__isSmartRef__":true,"id":21785},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":21786},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21785":{"this":{"__isSmartRef__":true,"id":21723}},"21786":{"timestamp":{"__isSmartRef__":true,"id":21787},"user":"sebastianwoinar","tags":[]},"21787":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"21788":{"varMapping":{"__isSmartRef__":true,"id":21789},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":21790},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21789":{"this":{"__isSmartRef__":true,"id":21723}},"21790":{"timestamp":{"__isSmartRef__":true,"id":21791},"user":"sebastianwoinar","tags":[]},"21791":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"21792":{"varMapping":{"__isSmartRef__":true,"id":21793},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":21794},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21793":{"this":{"__isSmartRef__":true,"id":21723}},"21794":{"timestamp":{"__isSmartRef__":true,"id":21795},"user":"sebastianwoinar","tags":[]},"21795":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"21796":{"varMapping":{"__isSmartRef__":true,"id":21797},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":21798},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21797":{"this":{"__isSmartRef__":true,"id":21723}},"21798":{"timestamp":{"__isSmartRef__":true,"id":21799},"user":"sebastianwoinar","tags":[]},"21799":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"21800":{"varMapping":{"__isSmartRef__":true,"id":21801},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":21802},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21801":{"this":{"__isSmartRef__":true,"id":21723}},"21802":{"timestamp":{"__isSmartRef__":true,"id":21803},"user":"sebastianwoinar","tags":[]},"21803":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"21804":{"varMapping":{"__isSmartRef__":true,"id":21805},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":21806},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21805":{"this":{"__isSmartRef__":true,"id":21723}},"21806":{"timestamp":{"__isSmartRef__":true,"id":21807},"user":"sebastianwoinar","tags":[]},"21807":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"21808":{"varMapping":{"__isSmartRef__":true,"id":21809},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":21810},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21809":{"this":{"__isSmartRef__":true,"id":21723}},"21810":{"timestamp":{"__isSmartRef__":true,"id":21811},"user":"sebastianwoinar","tags":[]},"21811":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"21812":{"varMapping":{"__isSmartRef__":true,"id":21813},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":21818},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21813":{"this":{"__isSmartRef__":true,"id":21723},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21814}},"21814":{"$super":{"__isSmartRef__":true,"id":21815}},"21815":{"varMapping":{"__isSmartRef__":true,"id":21816},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":21817},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21816":{"obj":{"__isSmartRef__":true,"id":21723},"name":"onMouseDown"},"21817":{},"21818":{"timestamp":{"__isSmartRef__":true,"id":21819},"user":"sebastianwoinar","tags":[]},"21819":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"21820":{"varMapping":{"__isSmartRef__":true,"id":21821},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":21822},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21821":{"this":{"__isSmartRef__":true,"id":21723}},"21822":{"timestamp":{"__isSmartRef__":true,"id":21823},"user":"sebastianwoinar","tags":[]},"21823":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"21824":{"varMapping":{"__isSmartRef__":true,"id":21825},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":21826},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21825":{"this":{"__isSmartRef__":true,"id":21723}},"21826":{"timestamp":{"__isSmartRef__":true,"id":21827},"user":"sebastianwoinar","tags":[]},"21827":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"21828":{"varMapping":{"__isSmartRef__":true,"id":21829},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":21830},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21829":{"this":{"__isSmartRef__":true,"id":21723}},"21830":{"timestamp":{"__isSmartRef__":true,"id":21831},"user":"sebastianwoinar","tags":[]},"21831":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"21832":{"varMapping":{"__isSmartRef__":true,"id":21833},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":21834},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21833":{"this":{"__isSmartRef__":true,"id":21723}},"21834":{"timestamp":{"__isSmartRef__":true,"id":21835},"user":"sebastianwoinar","tags":[]},"21835":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"21836":{"varMapping":{"__isSmartRef__":true,"id":21837},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":21838},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21837":{"this":{"__isSmartRef__":true,"id":21723}},"21838":{"timestamp":{"__isSmartRef__":true,"id":21839},"user":"sebastianwoinar","tags":[]},"21839":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"21840":{"varMapping":{"__isSmartRef__":true,"id":21841},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":21842},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21841":{"this":{"__isSmartRef__":true,"id":21723}},"21842":{"timestamp":{"__isSmartRef__":true,"id":21843},"user":"sebastianwoinar","tags":[]},"21843":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"21844":{"varMapping":{"__isSmartRef__":true,"id":21845},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":21846},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21845":{"this":{"__isSmartRef__":true,"id":21723}},"21846":{"timestamp":{"__isSmartRef__":true,"id":21847},"user":"sebastianwoinar","tags":[]},"21847":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"21848":{"varMapping":{"__isSmartRef__":true,"id":21849},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":21850},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21849":{"this":{"__isSmartRef__":true,"id":21723}},"21850":{"timestamp":{"__isSmartRef__":true,"id":21851},"user":"sebastianwoinar","tags":[]},"21851":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"21852":{"submorphs":[{"__isSmartRef__":true,"id":21853}],"scripts":[],"shape":{"__isSmartRef__":true,"id":21870},"id":"F5D13E31-0C37-4168-90F4-029C58D6D116","eventHandler":{"__isSmartRef__":true,"id":21871},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":21872},"name":"node128","partsBinMetaInfo":{"__isSmartRef__":true,"id":21873},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5685},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":21312},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21876},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(585.6,210.0)"},"21853":{"submorphs":[],"scripts":[],"id":"EAFB5CF8-7A6C-4C66-BD44-16810593A28C","shape":{"__isSmartRef__":true,"id":21854},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":21855},"textChunks":[{"__isSmartRef__":true,"id":21867}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":21869},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":21852},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"21854":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"21855":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":21856},{"__isSmartRef__":true,"id":21858},{"__isSmartRef__":true,"id":21860},{"__isSmartRef__":true,"id":21862},{"__isSmartRef__":true,"id":21864}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":21866},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"21856":{"date":{"__isSmartRef__":true,"id":21857},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"21857":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"21858":{"date":{"__isSmartRef__":true,"id":21859},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"21859":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"21860":{"date":{"__isSmartRef__":true,"id":21861},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"21861":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"21862":{"date":{"__isSmartRef__":true,"id":21863},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"21863":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"21864":{"date":{"__isSmartRef__":true,"id":21865},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"21865":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"21866":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"21867":{"style":{"__isSmartRef__":true,"id":21868},"morph":{"__isSmartRef__":true,"id":21853},"chunkOwner":{"__isSmartRef__":true,"id":21853},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21868":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21869":{"morph":{"__isSmartRef__":true,"id":21853},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"21870":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"21871":{"morph":{"__isSmartRef__":true,"id":21852},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"21872":{},"21873":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":21874}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"21874":{"date":{"__isSmartRef__":true,"id":21875},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"21875":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"21876":{"buildChildNodes":{"__isSmartRef__":true,"id":21877},"getGameTree":{"__isSmartRef__":true,"id":21881},"getLevel":{"__isSmartRef__":true,"id":21885},"getLevelWeight":{"__isSmartRef__":true,"id":21889},"getWeight":{"__isSmartRef__":true,"id":21893},"setNode":{"__isSmartRef__":true,"id":21897},"setParent":{"__isSmartRef__":true,"id":21901},"getParent":{"__isSmartRef__":true,"id":21905},"deactivate":{"__isSmartRef__":true,"id":21909},"blink":{"__isSmartRef__":true,"id":21913},"ABPreturn":{"__isSmartRef__":true,"id":21917},"ABPstart":{"__isSmartRef__":true,"id":21921},"ABPcontinue":{"__isSmartRef__":true,"id":21925},"ABPshowValue":{"__isSmartRef__":true,"id":21929},"ABPgetValue":{"__isSmartRef__":true,"id":21933},"ABPhasChildNodes":{"__isSmartRef__":true,"id":21937},"onMouseDown":{"__isSmartRef__":true,"id":21941},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":21949},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":21953},"ABPmarkAsDone":{"__isSmartRef__":true,"id":21957},"ABPmarkAsActive":{"__isSmartRef__":true,"id":21961},"getStateMorph":{"__isSmartRef__":true,"id":21965},"showState":{"__isSmartRef__":true,"id":21969},"ABPfailHard":{"__isSmartRef__":true,"id":21973},"markFinalDrawWith":{"__isSmartRef__":true,"id":21977}},"21877":{"varMapping":{"__isSmartRef__":true,"id":21878},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":21879},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21878":{"this":{"__isSmartRef__":true,"id":21852}},"21879":{"timestamp":{"__isSmartRef__":true,"id":21880},"user":"sebastianwoinar","tags":[]},"21880":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"21881":{"varMapping":{"__isSmartRef__":true,"id":21882},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":21883},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21882":{"this":{"__isSmartRef__":true,"id":21852}},"21883":{"timestamp":{"__isSmartRef__":true,"id":21884},"user":"sebastianwoinar","tags":[]},"21884":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21885":{"varMapping":{"__isSmartRef__":true,"id":21886},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":21887},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21886":{"this":{"__isSmartRef__":true,"id":21852}},"21887":{"timestamp":{"__isSmartRef__":true,"id":21888},"user":"sebastianwoinar","tags":[]},"21888":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21889":{"varMapping":{"__isSmartRef__":true,"id":21890},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":21891},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21890":{"this":{"__isSmartRef__":true,"id":21852}},"21891":{"timestamp":{"__isSmartRef__":true,"id":21892},"user":"sebastianwoinar","tags":[]},"21892":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21893":{"varMapping":{"__isSmartRef__":true,"id":21894},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":21895},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21894":{"this":{"__isSmartRef__":true,"id":21852}},"21895":{"timestamp":{"__isSmartRef__":true,"id":21896},"user":"sebastianwoinar","tags":[]},"21896":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21897":{"varMapping":{"__isSmartRef__":true,"id":21898},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":21899},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21898":{"this":{"__isSmartRef__":true,"id":21852}},"21899":{"timestamp":{"__isSmartRef__":true,"id":21900},"user":"sebastianwoinar","tags":[]},"21900":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21901":{"varMapping":{"__isSmartRef__":true,"id":21902},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":21903},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21902":{"this":{"__isSmartRef__":true,"id":21852}},"21903":{"timestamp":{"__isSmartRef__":true,"id":21904},"user":"sebastianwoinar","tags":[]},"21904":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"21905":{"varMapping":{"__isSmartRef__":true,"id":21906},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":21907},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21906":{"this":{"__isSmartRef__":true,"id":21852}},"21907":{"timestamp":{"__isSmartRef__":true,"id":21908},"user":"sebastianwoinar","tags":[]},"21908":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"21909":{"varMapping":{"__isSmartRef__":true,"id":21910},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":21911},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21910":{"this":{"__isSmartRef__":true,"id":21852}},"21911":{"timestamp":{"__isSmartRef__":true,"id":21912},"user":"sebastianwoinar","tags":[]},"21912":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"21913":{"varMapping":{"__isSmartRef__":true,"id":21914},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":21915},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21914":{"this":{"__isSmartRef__":true,"id":21852}},"21915":{"timestamp":{"__isSmartRef__":true,"id":21916},"user":"sebastianwoinar","tags":[]},"21916":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"21917":{"varMapping":{"__isSmartRef__":true,"id":21918},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":21919},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21918":{"this":{"__isSmartRef__":true,"id":21852}},"21919":{"timestamp":{"__isSmartRef__":true,"id":21920},"user":"sebastianwoinar","tags":[]},"21920":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"21921":{"varMapping":{"__isSmartRef__":true,"id":21922},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":21923},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21922":{"this":{"__isSmartRef__":true,"id":21852}},"21923":{"timestamp":{"__isSmartRef__":true,"id":21924},"user":"sebastianwoinar","tags":[]},"21924":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"21925":{"varMapping":{"__isSmartRef__":true,"id":21926},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":21927},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21926":{"this":{"__isSmartRef__":true,"id":21852}},"21927":{"timestamp":{"__isSmartRef__":true,"id":21928},"user":"sebastianwoinar","tags":[]},"21928":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"21929":{"varMapping":{"__isSmartRef__":true,"id":21930},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":21931},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21930":{"this":{"__isSmartRef__":true,"id":21852}},"21931":{"timestamp":{"__isSmartRef__":true,"id":21932},"user":"sebastianwoinar","tags":[]},"21932":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"21933":{"varMapping":{"__isSmartRef__":true,"id":21934},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":21935},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21934":{"this":{"__isSmartRef__":true,"id":21852}},"21935":{"timestamp":{"__isSmartRef__":true,"id":21936},"user":"sebastianwoinar","tags":[]},"21936":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"21937":{"varMapping":{"__isSmartRef__":true,"id":21938},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":21939},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21938":{"this":{"__isSmartRef__":true,"id":21852}},"21939":{"timestamp":{"__isSmartRef__":true,"id":21940},"user":"sebastianwoinar","tags":[]},"21940":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"21941":{"varMapping":{"__isSmartRef__":true,"id":21942},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":21947},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21942":{"this":{"__isSmartRef__":true,"id":21852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21943}},"21943":{"$super":{"__isSmartRef__":true,"id":21944}},"21944":{"varMapping":{"__isSmartRef__":true,"id":21945},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":21946},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21945":{"obj":{"__isSmartRef__":true,"id":21852},"name":"onMouseDown"},"21946":{},"21947":{"timestamp":{"__isSmartRef__":true,"id":21948},"user":"sebastianwoinar","tags":[]},"21948":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"21949":{"varMapping":{"__isSmartRef__":true,"id":21950},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":21951},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21950":{"this":{"__isSmartRef__":true,"id":21852}},"21951":{"timestamp":{"__isSmartRef__":true,"id":21952},"user":"sebastianwoinar","tags":[]},"21952":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"21953":{"varMapping":{"__isSmartRef__":true,"id":21954},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":21955},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21954":{"this":{"__isSmartRef__":true,"id":21852}},"21955":{"timestamp":{"__isSmartRef__":true,"id":21956},"user":"sebastianwoinar","tags":[]},"21956":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"21957":{"varMapping":{"__isSmartRef__":true,"id":21958},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":21959},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21958":{"this":{"__isSmartRef__":true,"id":21852}},"21959":{"timestamp":{"__isSmartRef__":true,"id":21960},"user":"sebastianwoinar","tags":[]},"21960":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"21961":{"varMapping":{"__isSmartRef__":true,"id":21962},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":21963},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21962":{"this":{"__isSmartRef__":true,"id":21852}},"21963":{"timestamp":{"__isSmartRef__":true,"id":21964},"user":"sebastianwoinar","tags":[]},"21964":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"21965":{"varMapping":{"__isSmartRef__":true,"id":21966},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":21967},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21966":{"this":{"__isSmartRef__":true,"id":21852}},"21967":{"timestamp":{"__isSmartRef__":true,"id":21968},"user":"sebastianwoinar","tags":[]},"21968":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"21969":{"varMapping":{"__isSmartRef__":true,"id":21970},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":21971},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21970":{"this":{"__isSmartRef__":true,"id":21852}},"21971":{"timestamp":{"__isSmartRef__":true,"id":21972},"user":"sebastianwoinar","tags":[]},"21972":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"21973":{"varMapping":{"__isSmartRef__":true,"id":21974},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":21975},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21974":{"this":{"__isSmartRef__":true,"id":21852}},"21975":{"timestamp":{"__isSmartRef__":true,"id":21976},"user":"sebastianwoinar","tags":[]},"21976":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"21977":{"varMapping":{"__isSmartRef__":true,"id":21978},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":21979},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"21978":{"this":{"__isSmartRef__":true,"id":21852}},"21979":{"timestamp":{"__isSmartRef__":true,"id":21980},"user":"sebastianwoinar","tags":[]},"21980":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"21981":{"submorphs":[{"__isSmartRef__":true,"id":21982}],"scripts":[],"shape":{"__isSmartRef__":true,"id":21999},"id":"1005803C-F31A-4F76-B4C2-22381A1091F3","eventHandler":{"__isSmartRef__":true,"id":22000},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":22001},"name":"node129","partsBinMetaInfo":{"__isSmartRef__":true,"id":22002},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5687},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":21312},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":22005},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(590.8,210.0)"},"21982":{"submorphs":[],"scripts":[],"id":"05B7B398-3537-4555-B372-0AD6837493C7","shape":{"__isSmartRef__":true,"id":21983},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":21984},"textChunks":[{"__isSmartRef__":true,"id":21996}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":21998},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":21981},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"21983":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"21984":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":21985},{"__isSmartRef__":true,"id":21987},{"__isSmartRef__":true,"id":21989},{"__isSmartRef__":true,"id":21991},{"__isSmartRef__":true,"id":21993}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":21995},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"21985":{"date":{"__isSmartRef__":true,"id":21986},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"21986":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"21987":{"date":{"__isSmartRef__":true,"id":21988},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"21988":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"21989":{"date":{"__isSmartRef__":true,"id":21990},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"21990":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"21991":{"date":{"__isSmartRef__":true,"id":21992},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"21992":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"21993":{"date":{"__isSmartRef__":true,"id":21994},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"21994":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"21995":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"21996":{"style":{"__isSmartRef__":true,"id":21997},"morph":{"__isSmartRef__":true,"id":21982},"chunkOwner":{"__isSmartRef__":true,"id":21982},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21997":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21998":{"morph":{"__isSmartRef__":true,"id":21982},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"21999":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"22000":{"morph":{"__isSmartRef__":true,"id":21981},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"22001":{},"22002":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":22003}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"22003":{"date":{"__isSmartRef__":true,"id":22004},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"22004":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"22005":{"buildChildNodes":{"__isSmartRef__":true,"id":22006},"getGameTree":{"__isSmartRef__":true,"id":22010},"getLevel":{"__isSmartRef__":true,"id":22014},"getLevelWeight":{"__isSmartRef__":true,"id":22018},"getWeight":{"__isSmartRef__":true,"id":22022},"setNode":{"__isSmartRef__":true,"id":22026},"setParent":{"__isSmartRef__":true,"id":22030},"getParent":{"__isSmartRef__":true,"id":22034},"deactivate":{"__isSmartRef__":true,"id":22038},"blink":{"__isSmartRef__":true,"id":22042},"ABPreturn":{"__isSmartRef__":true,"id":22046},"ABPstart":{"__isSmartRef__":true,"id":22050},"ABPcontinue":{"__isSmartRef__":true,"id":22054},"ABPshowValue":{"__isSmartRef__":true,"id":22058},"ABPgetValue":{"__isSmartRef__":true,"id":22062},"ABPhasChildNodes":{"__isSmartRef__":true,"id":22066},"onMouseDown":{"__isSmartRef__":true,"id":22070},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":22078},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":22082},"ABPmarkAsDone":{"__isSmartRef__":true,"id":22086},"ABPmarkAsActive":{"__isSmartRef__":true,"id":22090},"getStateMorph":{"__isSmartRef__":true,"id":22094},"showState":{"__isSmartRef__":true,"id":22098},"ABPfailHard":{"__isSmartRef__":true,"id":22102},"markFinalDrawWith":{"__isSmartRef__":true,"id":22106}},"22006":{"varMapping":{"__isSmartRef__":true,"id":22007},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":22008},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22007":{"this":{"__isSmartRef__":true,"id":21981}},"22008":{"timestamp":{"__isSmartRef__":true,"id":22009},"user":"sebastianwoinar","tags":[]},"22009":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"22010":{"varMapping":{"__isSmartRef__":true,"id":22011},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":22012},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22011":{"this":{"__isSmartRef__":true,"id":21981}},"22012":{"timestamp":{"__isSmartRef__":true,"id":22013},"user":"sebastianwoinar","tags":[]},"22013":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22014":{"varMapping":{"__isSmartRef__":true,"id":22015},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":22016},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22015":{"this":{"__isSmartRef__":true,"id":21981}},"22016":{"timestamp":{"__isSmartRef__":true,"id":22017},"user":"sebastianwoinar","tags":[]},"22017":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22018":{"varMapping":{"__isSmartRef__":true,"id":22019},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":22020},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22019":{"this":{"__isSmartRef__":true,"id":21981}},"22020":{"timestamp":{"__isSmartRef__":true,"id":22021},"user":"sebastianwoinar","tags":[]},"22021":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22022":{"varMapping":{"__isSmartRef__":true,"id":22023},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":22024},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22023":{"this":{"__isSmartRef__":true,"id":21981}},"22024":{"timestamp":{"__isSmartRef__":true,"id":22025},"user":"sebastianwoinar","tags":[]},"22025":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22026":{"varMapping":{"__isSmartRef__":true,"id":22027},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":22028},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22027":{"this":{"__isSmartRef__":true,"id":21981}},"22028":{"timestamp":{"__isSmartRef__":true,"id":22029},"user":"sebastianwoinar","tags":[]},"22029":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22030":{"varMapping":{"__isSmartRef__":true,"id":22031},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":22032},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22031":{"this":{"__isSmartRef__":true,"id":21981}},"22032":{"timestamp":{"__isSmartRef__":true,"id":22033},"user":"sebastianwoinar","tags":[]},"22033":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22034":{"varMapping":{"__isSmartRef__":true,"id":22035},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":22036},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22035":{"this":{"__isSmartRef__":true,"id":21981}},"22036":{"timestamp":{"__isSmartRef__":true,"id":22037},"user":"sebastianwoinar","tags":[]},"22037":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"22038":{"varMapping":{"__isSmartRef__":true,"id":22039},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":22040},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22039":{"this":{"__isSmartRef__":true,"id":21981}},"22040":{"timestamp":{"__isSmartRef__":true,"id":22041},"user":"sebastianwoinar","tags":[]},"22041":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"22042":{"varMapping":{"__isSmartRef__":true,"id":22043},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":22044},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22043":{"this":{"__isSmartRef__":true,"id":21981}},"22044":{"timestamp":{"__isSmartRef__":true,"id":22045},"user":"sebastianwoinar","tags":[]},"22045":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"22046":{"varMapping":{"__isSmartRef__":true,"id":22047},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":22048},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22047":{"this":{"__isSmartRef__":true,"id":21981}},"22048":{"timestamp":{"__isSmartRef__":true,"id":22049},"user":"sebastianwoinar","tags":[]},"22049":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"22050":{"varMapping":{"__isSmartRef__":true,"id":22051},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":22052},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22051":{"this":{"__isSmartRef__":true,"id":21981}},"22052":{"timestamp":{"__isSmartRef__":true,"id":22053},"user":"sebastianwoinar","tags":[]},"22053":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"22054":{"varMapping":{"__isSmartRef__":true,"id":22055},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":22056},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22055":{"this":{"__isSmartRef__":true,"id":21981}},"22056":{"timestamp":{"__isSmartRef__":true,"id":22057},"user":"sebastianwoinar","tags":[]},"22057":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"22058":{"varMapping":{"__isSmartRef__":true,"id":22059},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":22060},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22059":{"this":{"__isSmartRef__":true,"id":21981}},"22060":{"timestamp":{"__isSmartRef__":true,"id":22061},"user":"sebastianwoinar","tags":[]},"22061":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"22062":{"varMapping":{"__isSmartRef__":true,"id":22063},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":22064},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22063":{"this":{"__isSmartRef__":true,"id":21981}},"22064":{"timestamp":{"__isSmartRef__":true,"id":22065},"user":"sebastianwoinar","tags":[]},"22065":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"22066":{"varMapping":{"__isSmartRef__":true,"id":22067},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":22068},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22067":{"this":{"__isSmartRef__":true,"id":21981}},"22068":{"timestamp":{"__isSmartRef__":true,"id":22069},"user":"sebastianwoinar","tags":[]},"22069":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"22070":{"varMapping":{"__isSmartRef__":true,"id":22071},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":22076},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22071":{"this":{"__isSmartRef__":true,"id":21981},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":22072}},"22072":{"$super":{"__isSmartRef__":true,"id":22073}},"22073":{"varMapping":{"__isSmartRef__":true,"id":22074},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":22075},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22074":{"obj":{"__isSmartRef__":true,"id":21981},"name":"onMouseDown"},"22075":{},"22076":{"timestamp":{"__isSmartRef__":true,"id":22077},"user":"sebastianwoinar","tags":[]},"22077":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"22078":{"varMapping":{"__isSmartRef__":true,"id":22079},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":22080},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22079":{"this":{"__isSmartRef__":true,"id":21981}},"22080":{"timestamp":{"__isSmartRef__":true,"id":22081},"user":"sebastianwoinar","tags":[]},"22081":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"22082":{"varMapping":{"__isSmartRef__":true,"id":22083},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":22084},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22083":{"this":{"__isSmartRef__":true,"id":21981}},"22084":{"timestamp":{"__isSmartRef__":true,"id":22085},"user":"sebastianwoinar","tags":[]},"22085":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"22086":{"varMapping":{"__isSmartRef__":true,"id":22087},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":22088},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22087":{"this":{"__isSmartRef__":true,"id":21981}},"22088":{"timestamp":{"__isSmartRef__":true,"id":22089},"user":"sebastianwoinar","tags":[]},"22089":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"22090":{"varMapping":{"__isSmartRef__":true,"id":22091},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":22092},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22091":{"this":{"__isSmartRef__":true,"id":21981}},"22092":{"timestamp":{"__isSmartRef__":true,"id":22093},"user":"sebastianwoinar","tags":[]},"22093":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"22094":{"varMapping":{"__isSmartRef__":true,"id":22095},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":22096},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22095":{"this":{"__isSmartRef__":true,"id":21981}},"22096":{"timestamp":{"__isSmartRef__":true,"id":22097},"user":"sebastianwoinar","tags":[]},"22097":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"22098":{"varMapping":{"__isSmartRef__":true,"id":22099},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":22100},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22099":{"this":{"__isSmartRef__":true,"id":21981}},"22100":{"timestamp":{"__isSmartRef__":true,"id":22101},"user":"sebastianwoinar","tags":[]},"22101":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"22102":{"varMapping":{"__isSmartRef__":true,"id":22103},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":22104},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22103":{"this":{"__isSmartRef__":true,"id":21981}},"22104":{"timestamp":{"__isSmartRef__":true,"id":22105},"user":"sebastianwoinar","tags":[]},"22105":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"22106":{"varMapping":{"__isSmartRef__":true,"id":22107},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":22108},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22107":{"this":{"__isSmartRef__":true,"id":21981}},"22108":{"timestamp":{"__isSmartRef__":true,"id":22109},"user":"sebastianwoinar","tags":[]},"22109":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"22110":{"submorphs":[{"__isSmartRef__":true,"id":22111}],"scripts":[],"shape":{"__isSmartRef__":true,"id":22128},"id":"C85CE1EC-E540-4C6C-AAF7-0706B3237818","eventHandler":{"__isSmartRef__":true,"id":22129},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":22130},"name":"node130","partsBinMetaInfo":{"__isSmartRef__":true,"id":22131},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5689},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":21312},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":22134},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(595.9,210.0)"},"22111":{"submorphs":[],"scripts":[],"id":"FEFE4D61-666E-4C96-A0DD-5E55938CB7A3","shape":{"__isSmartRef__":true,"id":22112},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":22113},"textChunks":[{"__isSmartRef__":true,"id":22125}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":22127},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":22110},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"22112":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"22113":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":22114},{"__isSmartRef__":true,"id":22116},{"__isSmartRef__":true,"id":22118},{"__isSmartRef__":true,"id":22120},{"__isSmartRef__":true,"id":22122}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":22124},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"22114":{"date":{"__isSmartRef__":true,"id":22115},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"22115":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"22116":{"date":{"__isSmartRef__":true,"id":22117},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"22117":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"22118":{"date":{"__isSmartRef__":true,"id":22119},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"22119":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"22120":{"date":{"__isSmartRef__":true,"id":22121},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"22121":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"22122":{"date":{"__isSmartRef__":true,"id":22123},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"22123":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"22124":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"22125":{"style":{"__isSmartRef__":true,"id":22126},"morph":{"__isSmartRef__":true,"id":22111},"chunkOwner":{"__isSmartRef__":true,"id":22111},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"22126":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"22127":{"morph":{"__isSmartRef__":true,"id":22111},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"22128":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"22129":{"morph":{"__isSmartRef__":true,"id":22110},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"22130":{},"22131":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":22132}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"22132":{"date":{"__isSmartRef__":true,"id":22133},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"22133":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"22134":{"buildChildNodes":{"__isSmartRef__":true,"id":22135},"getGameTree":{"__isSmartRef__":true,"id":22139},"getLevel":{"__isSmartRef__":true,"id":22143},"getLevelWeight":{"__isSmartRef__":true,"id":22147},"getWeight":{"__isSmartRef__":true,"id":22151},"setNode":{"__isSmartRef__":true,"id":22155},"setParent":{"__isSmartRef__":true,"id":22159},"getParent":{"__isSmartRef__":true,"id":22163},"deactivate":{"__isSmartRef__":true,"id":22167},"blink":{"__isSmartRef__":true,"id":22171},"ABPreturn":{"__isSmartRef__":true,"id":22175},"ABPstart":{"__isSmartRef__":true,"id":22179},"ABPcontinue":{"__isSmartRef__":true,"id":22183},"ABPshowValue":{"__isSmartRef__":true,"id":22187},"ABPgetValue":{"__isSmartRef__":true,"id":22191},"ABPhasChildNodes":{"__isSmartRef__":true,"id":22195},"onMouseDown":{"__isSmartRef__":true,"id":22199},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":22207},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":22211},"ABPmarkAsDone":{"__isSmartRef__":true,"id":22215},"ABPmarkAsActive":{"__isSmartRef__":true,"id":22219},"getStateMorph":{"__isSmartRef__":true,"id":22223},"showState":{"__isSmartRef__":true,"id":22227},"ABPfailHard":{"__isSmartRef__":true,"id":22231},"markFinalDrawWith":{"__isSmartRef__":true,"id":22235}},"22135":{"varMapping":{"__isSmartRef__":true,"id":22136},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":22137},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22136":{"this":{"__isSmartRef__":true,"id":22110}},"22137":{"timestamp":{"__isSmartRef__":true,"id":22138},"user":"sebastianwoinar","tags":[]},"22138":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"22139":{"varMapping":{"__isSmartRef__":true,"id":22140},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":22141},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22140":{"this":{"__isSmartRef__":true,"id":22110}},"22141":{"timestamp":{"__isSmartRef__":true,"id":22142},"user":"sebastianwoinar","tags":[]},"22142":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22143":{"varMapping":{"__isSmartRef__":true,"id":22144},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":22145},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22144":{"this":{"__isSmartRef__":true,"id":22110}},"22145":{"timestamp":{"__isSmartRef__":true,"id":22146},"user":"sebastianwoinar","tags":[]},"22146":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22147":{"varMapping":{"__isSmartRef__":true,"id":22148},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":22149},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22148":{"this":{"__isSmartRef__":true,"id":22110}},"22149":{"timestamp":{"__isSmartRef__":true,"id":22150},"user":"sebastianwoinar","tags":[]},"22150":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22151":{"varMapping":{"__isSmartRef__":true,"id":22152},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":22153},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22152":{"this":{"__isSmartRef__":true,"id":22110}},"22153":{"timestamp":{"__isSmartRef__":true,"id":22154},"user":"sebastianwoinar","tags":[]},"22154":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22155":{"varMapping":{"__isSmartRef__":true,"id":22156},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":22157},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22156":{"this":{"__isSmartRef__":true,"id":22110}},"22157":{"timestamp":{"__isSmartRef__":true,"id":22158},"user":"sebastianwoinar","tags":[]},"22158":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22159":{"varMapping":{"__isSmartRef__":true,"id":22160},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":22161},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22160":{"this":{"__isSmartRef__":true,"id":22110}},"22161":{"timestamp":{"__isSmartRef__":true,"id":22162},"user":"sebastianwoinar","tags":[]},"22162":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22163":{"varMapping":{"__isSmartRef__":true,"id":22164},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":22165},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22164":{"this":{"__isSmartRef__":true,"id":22110}},"22165":{"timestamp":{"__isSmartRef__":true,"id":22166},"user":"sebastianwoinar","tags":[]},"22166":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"22167":{"varMapping":{"__isSmartRef__":true,"id":22168},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":22169},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22168":{"this":{"__isSmartRef__":true,"id":22110}},"22169":{"timestamp":{"__isSmartRef__":true,"id":22170},"user":"sebastianwoinar","tags":[]},"22170":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"22171":{"varMapping":{"__isSmartRef__":true,"id":22172},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":22173},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22172":{"this":{"__isSmartRef__":true,"id":22110}},"22173":{"timestamp":{"__isSmartRef__":true,"id":22174},"user":"sebastianwoinar","tags":[]},"22174":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"22175":{"varMapping":{"__isSmartRef__":true,"id":22176},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":22177},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22176":{"this":{"__isSmartRef__":true,"id":22110}},"22177":{"timestamp":{"__isSmartRef__":true,"id":22178},"user":"sebastianwoinar","tags":[]},"22178":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"22179":{"varMapping":{"__isSmartRef__":true,"id":22180},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":22181},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22180":{"this":{"__isSmartRef__":true,"id":22110}},"22181":{"timestamp":{"__isSmartRef__":true,"id":22182},"user":"sebastianwoinar","tags":[]},"22182":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"22183":{"varMapping":{"__isSmartRef__":true,"id":22184},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":22185},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22184":{"this":{"__isSmartRef__":true,"id":22110}},"22185":{"timestamp":{"__isSmartRef__":true,"id":22186},"user":"sebastianwoinar","tags":[]},"22186":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"22187":{"varMapping":{"__isSmartRef__":true,"id":22188},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":22189},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22188":{"this":{"__isSmartRef__":true,"id":22110}},"22189":{"timestamp":{"__isSmartRef__":true,"id":22190},"user":"sebastianwoinar","tags":[]},"22190":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"22191":{"varMapping":{"__isSmartRef__":true,"id":22192},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":22193},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22192":{"this":{"__isSmartRef__":true,"id":22110}},"22193":{"timestamp":{"__isSmartRef__":true,"id":22194},"user":"sebastianwoinar","tags":[]},"22194":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"22195":{"varMapping":{"__isSmartRef__":true,"id":22196},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":22197},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22196":{"this":{"__isSmartRef__":true,"id":22110}},"22197":{"timestamp":{"__isSmartRef__":true,"id":22198},"user":"sebastianwoinar","tags":[]},"22198":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"22199":{"varMapping":{"__isSmartRef__":true,"id":22200},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":22205},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22200":{"this":{"__isSmartRef__":true,"id":22110},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":22201}},"22201":{"$super":{"__isSmartRef__":true,"id":22202}},"22202":{"varMapping":{"__isSmartRef__":true,"id":22203},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":22204},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22203":{"obj":{"__isSmartRef__":true,"id":22110},"name":"onMouseDown"},"22204":{},"22205":{"timestamp":{"__isSmartRef__":true,"id":22206},"user":"sebastianwoinar","tags":[]},"22206":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"22207":{"varMapping":{"__isSmartRef__":true,"id":22208},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":22209},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22208":{"this":{"__isSmartRef__":true,"id":22110}},"22209":{"timestamp":{"__isSmartRef__":true,"id":22210},"user":"sebastianwoinar","tags":[]},"22210":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"22211":{"varMapping":{"__isSmartRef__":true,"id":22212},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":22213},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22212":{"this":{"__isSmartRef__":true,"id":22110}},"22213":{"timestamp":{"__isSmartRef__":true,"id":22214},"user":"sebastianwoinar","tags":[]},"22214":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"22215":{"varMapping":{"__isSmartRef__":true,"id":22216},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":22217},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22216":{"this":{"__isSmartRef__":true,"id":22110}},"22217":{"timestamp":{"__isSmartRef__":true,"id":22218},"user":"sebastianwoinar","tags":[]},"22218":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"22219":{"varMapping":{"__isSmartRef__":true,"id":22220},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":22221},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22220":{"this":{"__isSmartRef__":true,"id":22110}},"22221":{"timestamp":{"__isSmartRef__":true,"id":22222},"user":"sebastianwoinar","tags":[]},"22222":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"22223":{"varMapping":{"__isSmartRef__":true,"id":22224},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":22225},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22224":{"this":{"__isSmartRef__":true,"id":22110}},"22225":{"timestamp":{"__isSmartRef__":true,"id":22226},"user":"sebastianwoinar","tags":[]},"22226":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"22227":{"varMapping":{"__isSmartRef__":true,"id":22228},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":22229},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22228":{"this":{"__isSmartRef__":true,"id":22110}},"22229":{"timestamp":{"__isSmartRef__":true,"id":22230},"user":"sebastianwoinar","tags":[]},"22230":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"22231":{"varMapping":{"__isSmartRef__":true,"id":22232},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":22233},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22232":{"this":{"__isSmartRef__":true,"id":22110}},"22233":{"timestamp":{"__isSmartRef__":true,"id":22234},"user":"sebastianwoinar","tags":[]},"22234":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"22235":{"varMapping":{"__isSmartRef__":true,"id":22236},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":22237},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22236":{"this":{"__isSmartRef__":true,"id":22110}},"22237":{"timestamp":{"__isSmartRef__":true,"id":22238},"user":"sebastianwoinar","tags":[]},"22238":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"22239":{"submorphs":[{"__isSmartRef__":true,"id":22240}],"scripts":[],"shape":{"__isSmartRef__":true,"id":22257},"id":"A575555C-2252-43B2-9B3D-1802500E8BEC","eventHandler":{"__isSmartRef__":true,"id":22258},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":22259},"name":"node131","partsBinMetaInfo":{"__isSmartRef__":true,"id":22260},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5691},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":21312},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":22263},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(601.1,210.0)"},"22240":{"submorphs":[],"scripts":[],"id":"E8896D92-B5F1-477C-9CAC-E94998D9C24A","shape":{"__isSmartRef__":true,"id":22241},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":22242},"textChunks":[{"__isSmartRef__":true,"id":22254}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":22256},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":22239},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"22241":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"22242":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":22243},{"__isSmartRef__":true,"id":22245},{"__isSmartRef__":true,"id":22247},{"__isSmartRef__":true,"id":22249},{"__isSmartRef__":true,"id":22251}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":22253},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"22243":{"date":{"__isSmartRef__":true,"id":22244},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"22244":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"22245":{"date":{"__isSmartRef__":true,"id":22246},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"22246":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"22247":{"date":{"__isSmartRef__":true,"id":22248},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"22248":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"22249":{"date":{"__isSmartRef__":true,"id":22250},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"22250":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"22251":{"date":{"__isSmartRef__":true,"id":22252},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"22252":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"22253":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"22254":{"style":{"__isSmartRef__":true,"id":22255},"morph":{"__isSmartRef__":true,"id":22240},"chunkOwner":{"__isSmartRef__":true,"id":22240},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"22255":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"22256":{"morph":{"__isSmartRef__":true,"id":22240},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"22257":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"22258":{"morph":{"__isSmartRef__":true,"id":22239},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"22259":{},"22260":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":22261}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"22261":{"date":{"__isSmartRef__":true,"id":22262},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"22262":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"22263":{"buildChildNodes":{"__isSmartRef__":true,"id":22264},"getGameTree":{"__isSmartRef__":true,"id":22268},"getLevel":{"__isSmartRef__":true,"id":22272},"getLevelWeight":{"__isSmartRef__":true,"id":22276},"getWeight":{"__isSmartRef__":true,"id":22280},"setNode":{"__isSmartRef__":true,"id":22284},"setParent":{"__isSmartRef__":true,"id":22288},"getParent":{"__isSmartRef__":true,"id":22292},"deactivate":{"__isSmartRef__":true,"id":22296},"blink":{"__isSmartRef__":true,"id":22300},"ABPreturn":{"__isSmartRef__":true,"id":22304},"ABPstart":{"__isSmartRef__":true,"id":22308},"ABPcontinue":{"__isSmartRef__":true,"id":22312},"ABPshowValue":{"__isSmartRef__":true,"id":22316},"ABPgetValue":{"__isSmartRef__":true,"id":22320},"ABPhasChildNodes":{"__isSmartRef__":true,"id":22324},"onMouseDown":{"__isSmartRef__":true,"id":22328},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":22336},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":22340},"ABPmarkAsDone":{"__isSmartRef__":true,"id":22344},"ABPmarkAsActive":{"__isSmartRef__":true,"id":22348},"getStateMorph":{"__isSmartRef__":true,"id":22352},"showState":{"__isSmartRef__":true,"id":22356},"ABPfailHard":{"__isSmartRef__":true,"id":22360},"markFinalDrawWith":{"__isSmartRef__":true,"id":22364}},"22264":{"varMapping":{"__isSmartRef__":true,"id":22265},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":22266},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22265":{"this":{"__isSmartRef__":true,"id":22239}},"22266":{"timestamp":{"__isSmartRef__":true,"id":22267},"user":"sebastianwoinar","tags":[]},"22267":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"22268":{"varMapping":{"__isSmartRef__":true,"id":22269},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":22270},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22269":{"this":{"__isSmartRef__":true,"id":22239}},"22270":{"timestamp":{"__isSmartRef__":true,"id":22271},"user":"sebastianwoinar","tags":[]},"22271":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22272":{"varMapping":{"__isSmartRef__":true,"id":22273},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":22274},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22273":{"this":{"__isSmartRef__":true,"id":22239}},"22274":{"timestamp":{"__isSmartRef__":true,"id":22275},"user":"sebastianwoinar","tags":[]},"22275":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22276":{"varMapping":{"__isSmartRef__":true,"id":22277},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":22278},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22277":{"this":{"__isSmartRef__":true,"id":22239}},"22278":{"timestamp":{"__isSmartRef__":true,"id":22279},"user":"sebastianwoinar","tags":[]},"22279":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22280":{"varMapping":{"__isSmartRef__":true,"id":22281},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":22282},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22281":{"this":{"__isSmartRef__":true,"id":22239}},"22282":{"timestamp":{"__isSmartRef__":true,"id":22283},"user":"sebastianwoinar","tags":[]},"22283":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22284":{"varMapping":{"__isSmartRef__":true,"id":22285},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":22286},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22285":{"this":{"__isSmartRef__":true,"id":22239}},"22286":{"timestamp":{"__isSmartRef__":true,"id":22287},"user":"sebastianwoinar","tags":[]},"22287":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22288":{"varMapping":{"__isSmartRef__":true,"id":22289},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":22290},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22289":{"this":{"__isSmartRef__":true,"id":22239}},"22290":{"timestamp":{"__isSmartRef__":true,"id":22291},"user":"sebastianwoinar","tags":[]},"22291":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22292":{"varMapping":{"__isSmartRef__":true,"id":22293},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":22294},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22293":{"this":{"__isSmartRef__":true,"id":22239}},"22294":{"timestamp":{"__isSmartRef__":true,"id":22295},"user":"sebastianwoinar","tags":[]},"22295":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"22296":{"varMapping":{"__isSmartRef__":true,"id":22297},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":22298},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22297":{"this":{"__isSmartRef__":true,"id":22239}},"22298":{"timestamp":{"__isSmartRef__":true,"id":22299},"user":"sebastianwoinar","tags":[]},"22299":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"22300":{"varMapping":{"__isSmartRef__":true,"id":22301},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":22302},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22301":{"this":{"__isSmartRef__":true,"id":22239}},"22302":{"timestamp":{"__isSmartRef__":true,"id":22303},"user":"sebastianwoinar","tags":[]},"22303":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"22304":{"varMapping":{"__isSmartRef__":true,"id":22305},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":22306},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22305":{"this":{"__isSmartRef__":true,"id":22239}},"22306":{"timestamp":{"__isSmartRef__":true,"id":22307},"user":"sebastianwoinar","tags":[]},"22307":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"22308":{"varMapping":{"__isSmartRef__":true,"id":22309},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":22310},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22309":{"this":{"__isSmartRef__":true,"id":22239}},"22310":{"timestamp":{"__isSmartRef__":true,"id":22311},"user":"sebastianwoinar","tags":[]},"22311":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"22312":{"varMapping":{"__isSmartRef__":true,"id":22313},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":22314},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22313":{"this":{"__isSmartRef__":true,"id":22239}},"22314":{"timestamp":{"__isSmartRef__":true,"id":22315},"user":"sebastianwoinar","tags":[]},"22315":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"22316":{"varMapping":{"__isSmartRef__":true,"id":22317},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":22318},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22317":{"this":{"__isSmartRef__":true,"id":22239}},"22318":{"timestamp":{"__isSmartRef__":true,"id":22319},"user":"sebastianwoinar","tags":[]},"22319":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"22320":{"varMapping":{"__isSmartRef__":true,"id":22321},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":22322},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22321":{"this":{"__isSmartRef__":true,"id":22239}},"22322":{"timestamp":{"__isSmartRef__":true,"id":22323},"user":"sebastianwoinar","tags":[]},"22323":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"22324":{"varMapping":{"__isSmartRef__":true,"id":22325},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":22326},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22325":{"this":{"__isSmartRef__":true,"id":22239}},"22326":{"timestamp":{"__isSmartRef__":true,"id":22327},"user":"sebastianwoinar","tags":[]},"22327":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"22328":{"varMapping":{"__isSmartRef__":true,"id":22329},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":22334},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22329":{"this":{"__isSmartRef__":true,"id":22239},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":22330}},"22330":{"$super":{"__isSmartRef__":true,"id":22331}},"22331":{"varMapping":{"__isSmartRef__":true,"id":22332},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":22333},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22332":{"obj":{"__isSmartRef__":true,"id":22239},"name":"onMouseDown"},"22333":{},"22334":{"timestamp":{"__isSmartRef__":true,"id":22335},"user":"sebastianwoinar","tags":[]},"22335":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"22336":{"varMapping":{"__isSmartRef__":true,"id":22337},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":22338},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22337":{"this":{"__isSmartRef__":true,"id":22239}},"22338":{"timestamp":{"__isSmartRef__":true,"id":22339},"user":"sebastianwoinar","tags":[]},"22339":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"22340":{"varMapping":{"__isSmartRef__":true,"id":22341},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":22342},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22341":{"this":{"__isSmartRef__":true,"id":22239}},"22342":{"timestamp":{"__isSmartRef__":true,"id":22343},"user":"sebastianwoinar","tags":[]},"22343":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"22344":{"varMapping":{"__isSmartRef__":true,"id":22345},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":22346},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22345":{"this":{"__isSmartRef__":true,"id":22239}},"22346":{"timestamp":{"__isSmartRef__":true,"id":22347},"user":"sebastianwoinar","tags":[]},"22347":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"22348":{"varMapping":{"__isSmartRef__":true,"id":22349},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":22350},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22349":{"this":{"__isSmartRef__":true,"id":22239}},"22350":{"timestamp":{"__isSmartRef__":true,"id":22351},"user":"sebastianwoinar","tags":[]},"22351":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"22352":{"varMapping":{"__isSmartRef__":true,"id":22353},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":22354},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22353":{"this":{"__isSmartRef__":true,"id":22239}},"22354":{"timestamp":{"__isSmartRef__":true,"id":22355},"user":"sebastianwoinar","tags":[]},"22355":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"22356":{"varMapping":{"__isSmartRef__":true,"id":22357},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":22358},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22357":{"this":{"__isSmartRef__":true,"id":22239}},"22358":{"timestamp":{"__isSmartRef__":true,"id":22359},"user":"sebastianwoinar","tags":[]},"22359":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"22360":{"varMapping":{"__isSmartRef__":true,"id":22361},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":22362},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22361":{"this":{"__isSmartRef__":true,"id":22239}},"22362":{"timestamp":{"__isSmartRef__":true,"id":22363},"user":"sebastianwoinar","tags":[]},"22363":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"22364":{"varMapping":{"__isSmartRef__":true,"id":22365},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":22366},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22365":{"this":{"__isSmartRef__":true,"id":22239}},"22366":{"timestamp":{"__isSmartRef__":true,"id":22367},"user":"sebastianwoinar","tags":[]},"22367":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"22368":{"submorphs":[{"__isSmartRef__":true,"id":22369}],"scripts":[],"shape":{"__isSmartRef__":true,"id":22386},"id":"6F602572-4363-476E-AA48-25B1736FC28F","eventHandler":{"__isSmartRef__":true,"id":22387},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":22388},"name":"node132","partsBinMetaInfo":{"__isSmartRef__":true,"id":22389},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5693},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":21312},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":22392},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(606.3,210.0)"},"22369":{"submorphs":[],"scripts":[],"id":"3C59748F-EAFB-4592-A687-F02F40234C87","shape":{"__isSmartRef__":true,"id":22370},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":22371},"textChunks":[{"__isSmartRef__":true,"id":22383}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":22385},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":22368},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"22370":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"22371":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":22372},{"__isSmartRef__":true,"id":22374},{"__isSmartRef__":true,"id":22376},{"__isSmartRef__":true,"id":22378},{"__isSmartRef__":true,"id":22380}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":22382},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"22372":{"date":{"__isSmartRef__":true,"id":22373},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"22373":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"22374":{"date":{"__isSmartRef__":true,"id":22375},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"22375":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"22376":{"date":{"__isSmartRef__":true,"id":22377},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"22377":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"22378":{"date":{"__isSmartRef__":true,"id":22379},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"22379":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"22380":{"date":{"__isSmartRef__":true,"id":22381},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"22381":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"22382":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"22383":{"style":{"__isSmartRef__":true,"id":22384},"morph":{"__isSmartRef__":true,"id":22369},"chunkOwner":{"__isSmartRef__":true,"id":22369},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"22384":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"22385":{"morph":{"__isSmartRef__":true,"id":22369},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"22386":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"22387":{"morph":{"__isSmartRef__":true,"id":22368},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"22388":{},"22389":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":22390}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"22390":{"date":{"__isSmartRef__":true,"id":22391},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"22391":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"22392":{"buildChildNodes":{"__isSmartRef__":true,"id":22393},"getGameTree":{"__isSmartRef__":true,"id":22397},"getLevel":{"__isSmartRef__":true,"id":22401},"getLevelWeight":{"__isSmartRef__":true,"id":22405},"getWeight":{"__isSmartRef__":true,"id":22409},"setNode":{"__isSmartRef__":true,"id":22413},"setParent":{"__isSmartRef__":true,"id":22417},"getParent":{"__isSmartRef__":true,"id":22421},"deactivate":{"__isSmartRef__":true,"id":22425},"blink":{"__isSmartRef__":true,"id":22429},"ABPreturn":{"__isSmartRef__":true,"id":22433},"ABPstart":{"__isSmartRef__":true,"id":22437},"ABPcontinue":{"__isSmartRef__":true,"id":22441},"ABPshowValue":{"__isSmartRef__":true,"id":22445},"ABPgetValue":{"__isSmartRef__":true,"id":22449},"ABPhasChildNodes":{"__isSmartRef__":true,"id":22453},"onMouseDown":{"__isSmartRef__":true,"id":22457},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":22465},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":22469},"ABPmarkAsDone":{"__isSmartRef__":true,"id":22473},"ABPmarkAsActive":{"__isSmartRef__":true,"id":22477},"getStateMorph":{"__isSmartRef__":true,"id":22481},"showState":{"__isSmartRef__":true,"id":22485},"ABPfailHard":{"__isSmartRef__":true,"id":22489},"markFinalDrawWith":{"__isSmartRef__":true,"id":22493}},"22393":{"varMapping":{"__isSmartRef__":true,"id":22394},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":22395},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22394":{"this":{"__isSmartRef__":true,"id":22368}},"22395":{"timestamp":{"__isSmartRef__":true,"id":22396},"user":"sebastianwoinar","tags":[]},"22396":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"22397":{"varMapping":{"__isSmartRef__":true,"id":22398},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":22399},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22398":{"this":{"__isSmartRef__":true,"id":22368}},"22399":{"timestamp":{"__isSmartRef__":true,"id":22400},"user":"sebastianwoinar","tags":[]},"22400":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22401":{"varMapping":{"__isSmartRef__":true,"id":22402},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":22403},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22402":{"this":{"__isSmartRef__":true,"id":22368}},"22403":{"timestamp":{"__isSmartRef__":true,"id":22404},"user":"sebastianwoinar","tags":[]},"22404":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22405":{"varMapping":{"__isSmartRef__":true,"id":22406},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":22407},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22406":{"this":{"__isSmartRef__":true,"id":22368}},"22407":{"timestamp":{"__isSmartRef__":true,"id":22408},"user":"sebastianwoinar","tags":[]},"22408":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22409":{"varMapping":{"__isSmartRef__":true,"id":22410},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":22411},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22410":{"this":{"__isSmartRef__":true,"id":22368}},"22411":{"timestamp":{"__isSmartRef__":true,"id":22412},"user":"sebastianwoinar","tags":[]},"22412":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22413":{"varMapping":{"__isSmartRef__":true,"id":22414},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":22415},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22414":{"this":{"__isSmartRef__":true,"id":22368}},"22415":{"timestamp":{"__isSmartRef__":true,"id":22416},"user":"sebastianwoinar","tags":[]},"22416":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22417":{"varMapping":{"__isSmartRef__":true,"id":22418},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":22419},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22418":{"this":{"__isSmartRef__":true,"id":22368}},"22419":{"timestamp":{"__isSmartRef__":true,"id":22420},"user":"sebastianwoinar","tags":[]},"22420":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22421":{"varMapping":{"__isSmartRef__":true,"id":22422},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":22423},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22422":{"this":{"__isSmartRef__":true,"id":22368}},"22423":{"timestamp":{"__isSmartRef__":true,"id":22424},"user":"sebastianwoinar","tags":[]},"22424":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"22425":{"varMapping":{"__isSmartRef__":true,"id":22426},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":22427},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22426":{"this":{"__isSmartRef__":true,"id":22368}},"22427":{"timestamp":{"__isSmartRef__":true,"id":22428},"user":"sebastianwoinar","tags":[]},"22428":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"22429":{"varMapping":{"__isSmartRef__":true,"id":22430},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":22431},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22430":{"this":{"__isSmartRef__":true,"id":22368}},"22431":{"timestamp":{"__isSmartRef__":true,"id":22432},"user":"sebastianwoinar","tags":[]},"22432":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"22433":{"varMapping":{"__isSmartRef__":true,"id":22434},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":22435},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22434":{"this":{"__isSmartRef__":true,"id":22368}},"22435":{"timestamp":{"__isSmartRef__":true,"id":22436},"user":"sebastianwoinar","tags":[]},"22436":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"22437":{"varMapping":{"__isSmartRef__":true,"id":22438},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":22439},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22438":{"this":{"__isSmartRef__":true,"id":22368}},"22439":{"timestamp":{"__isSmartRef__":true,"id":22440},"user":"sebastianwoinar","tags":[]},"22440":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"22441":{"varMapping":{"__isSmartRef__":true,"id":22442},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":22443},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22442":{"this":{"__isSmartRef__":true,"id":22368}},"22443":{"timestamp":{"__isSmartRef__":true,"id":22444},"user":"sebastianwoinar","tags":[]},"22444":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"22445":{"varMapping":{"__isSmartRef__":true,"id":22446},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":22447},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22446":{"this":{"__isSmartRef__":true,"id":22368}},"22447":{"timestamp":{"__isSmartRef__":true,"id":22448},"user":"sebastianwoinar","tags":[]},"22448":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"22449":{"varMapping":{"__isSmartRef__":true,"id":22450},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":22451},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22450":{"this":{"__isSmartRef__":true,"id":22368}},"22451":{"timestamp":{"__isSmartRef__":true,"id":22452},"user":"sebastianwoinar","tags":[]},"22452":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"22453":{"varMapping":{"__isSmartRef__":true,"id":22454},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":22455},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22454":{"this":{"__isSmartRef__":true,"id":22368}},"22455":{"timestamp":{"__isSmartRef__":true,"id":22456},"user":"sebastianwoinar","tags":[]},"22456":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"22457":{"varMapping":{"__isSmartRef__":true,"id":22458},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":22463},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22458":{"this":{"__isSmartRef__":true,"id":22368},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":22459}},"22459":{"$super":{"__isSmartRef__":true,"id":22460}},"22460":{"varMapping":{"__isSmartRef__":true,"id":22461},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":22462},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22461":{"obj":{"__isSmartRef__":true,"id":22368},"name":"onMouseDown"},"22462":{},"22463":{"timestamp":{"__isSmartRef__":true,"id":22464},"user":"sebastianwoinar","tags":[]},"22464":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"22465":{"varMapping":{"__isSmartRef__":true,"id":22466},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":22467},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22466":{"this":{"__isSmartRef__":true,"id":22368}},"22467":{"timestamp":{"__isSmartRef__":true,"id":22468},"user":"sebastianwoinar","tags":[]},"22468":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"22469":{"varMapping":{"__isSmartRef__":true,"id":22470},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":22471},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22470":{"this":{"__isSmartRef__":true,"id":22368}},"22471":{"timestamp":{"__isSmartRef__":true,"id":22472},"user":"sebastianwoinar","tags":[]},"22472":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"22473":{"varMapping":{"__isSmartRef__":true,"id":22474},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":22475},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22474":{"this":{"__isSmartRef__":true,"id":22368}},"22475":{"timestamp":{"__isSmartRef__":true,"id":22476},"user":"sebastianwoinar","tags":[]},"22476":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"22477":{"varMapping":{"__isSmartRef__":true,"id":22478},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":22479},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22478":{"this":{"__isSmartRef__":true,"id":22368}},"22479":{"timestamp":{"__isSmartRef__":true,"id":22480},"user":"sebastianwoinar","tags":[]},"22480":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"22481":{"varMapping":{"__isSmartRef__":true,"id":22482},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":22483},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22482":{"this":{"__isSmartRef__":true,"id":22368}},"22483":{"timestamp":{"__isSmartRef__":true,"id":22484},"user":"sebastianwoinar","tags":[]},"22484":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"22485":{"varMapping":{"__isSmartRef__":true,"id":22486},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":22487},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22486":{"this":{"__isSmartRef__":true,"id":22368}},"22487":{"timestamp":{"__isSmartRef__":true,"id":22488},"user":"sebastianwoinar","tags":[]},"22488":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"22489":{"varMapping":{"__isSmartRef__":true,"id":22490},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":22491},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22490":{"this":{"__isSmartRef__":true,"id":22368}},"22491":{"timestamp":{"__isSmartRef__":true,"id":22492},"user":"sebastianwoinar","tags":[]},"22492":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"22493":{"varMapping":{"__isSmartRef__":true,"id":22494},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":22495},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22494":{"this":{"__isSmartRef__":true,"id":22368}},"22495":{"timestamp":{"__isSmartRef__":true,"id":22496},"user":"sebastianwoinar","tags":[]},"22496":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"22497":{"buildChildNodes":{"__isSmartRef__":true,"id":22498},"getGameTree":{"__isSmartRef__":true,"id":22502},"getLevel":{"__isSmartRef__":true,"id":22506},"getLevelWeight":{"__isSmartRef__":true,"id":22510},"getWeight":{"__isSmartRef__":true,"id":22514},"setNode":{"__isSmartRef__":true,"id":22518},"setParent":{"__isSmartRef__":true,"id":22522},"getParent":{"__isSmartRef__":true,"id":22526},"deactivate":{"__isSmartRef__":true,"id":22530},"blink":{"__isSmartRef__":true,"id":22534},"ABPreturn":{"__isSmartRef__":true,"id":22538},"ABPstart":{"__isSmartRef__":true,"id":22542},"ABPcontinue":{"__isSmartRef__":true,"id":22546},"ABPshowValue":{"__isSmartRef__":true,"id":22550},"ABPgetValue":{"__isSmartRef__":true,"id":22554},"ABPhasChildNodes":{"__isSmartRef__":true,"id":22558},"onMouseDown":{"__isSmartRef__":true,"id":22562},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":22570},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":22574},"ABPmarkAsDone":{"__isSmartRef__":true,"id":22578},"ABPmarkAsActive":{"__isSmartRef__":true,"id":22582},"getStateMorph":{"__isSmartRef__":true,"id":22586},"showState":{"__isSmartRef__":true,"id":22590},"ABPfailHard":{"__isSmartRef__":true,"id":22594},"markFinalDrawWith":{"__isSmartRef__":true,"id":22598}},"22498":{"varMapping":{"__isSmartRef__":true,"id":22499},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":22500},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22499":{"this":{"__isSmartRef__":true,"id":21312}},"22500":{"timestamp":{"__isSmartRef__":true,"id":22501},"user":"sebastianwoinar","tags":[]},"22501":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"22502":{"varMapping":{"__isSmartRef__":true,"id":22503},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":22504},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22503":{"this":{"__isSmartRef__":true,"id":21312}},"22504":{"timestamp":{"__isSmartRef__":true,"id":22505},"user":"sebastianwoinar","tags":[]},"22505":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22506":{"varMapping":{"__isSmartRef__":true,"id":22507},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":22508},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22507":{"this":{"__isSmartRef__":true,"id":21312}},"22508":{"timestamp":{"__isSmartRef__":true,"id":22509},"user":"sebastianwoinar","tags":[]},"22509":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22510":{"varMapping":{"__isSmartRef__":true,"id":22511},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":22512},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22511":{"this":{"__isSmartRef__":true,"id":21312}},"22512":{"timestamp":{"__isSmartRef__":true,"id":22513},"user":"sebastianwoinar","tags":[]},"22513":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22514":{"varMapping":{"__isSmartRef__":true,"id":22515},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":22516},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22515":{"this":{"__isSmartRef__":true,"id":21312}},"22516":{"timestamp":{"__isSmartRef__":true,"id":22517},"user":"sebastianwoinar","tags":[]},"22517":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22518":{"varMapping":{"__isSmartRef__":true,"id":22519},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":22520},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22519":{"this":{"__isSmartRef__":true,"id":21312}},"22520":{"timestamp":{"__isSmartRef__":true,"id":22521},"user":"sebastianwoinar","tags":[]},"22521":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22522":{"varMapping":{"__isSmartRef__":true,"id":22523},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":22524},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22523":{"this":{"__isSmartRef__":true,"id":21312}},"22524":{"timestamp":{"__isSmartRef__":true,"id":22525},"user":"sebastianwoinar","tags":[]},"22525":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22526":{"varMapping":{"__isSmartRef__":true,"id":22527},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":22528},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22527":{"this":{"__isSmartRef__":true,"id":21312}},"22528":{"timestamp":{"__isSmartRef__":true,"id":22529},"user":"sebastianwoinar","tags":[]},"22529":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"22530":{"varMapping":{"__isSmartRef__":true,"id":22531},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":22532},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22531":{"this":{"__isSmartRef__":true,"id":21312}},"22532":{"timestamp":{"__isSmartRef__":true,"id":22533},"user":"sebastianwoinar","tags":[]},"22533":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"22534":{"varMapping":{"__isSmartRef__":true,"id":22535},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":22536},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22535":{"this":{"__isSmartRef__":true,"id":21312}},"22536":{"timestamp":{"__isSmartRef__":true,"id":22537},"user":"sebastianwoinar","tags":[]},"22537":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"22538":{"varMapping":{"__isSmartRef__":true,"id":22539},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":22540},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22539":{"this":{"__isSmartRef__":true,"id":21312}},"22540":{"timestamp":{"__isSmartRef__":true,"id":22541},"user":"sebastianwoinar","tags":[]},"22541":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"22542":{"varMapping":{"__isSmartRef__":true,"id":22543},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":22544},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22543":{"this":{"__isSmartRef__":true,"id":21312}},"22544":{"timestamp":{"__isSmartRef__":true,"id":22545},"user":"sebastianwoinar","tags":[]},"22545":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"22546":{"varMapping":{"__isSmartRef__":true,"id":22547},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":22548},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22547":{"this":{"__isSmartRef__":true,"id":21312}},"22548":{"timestamp":{"__isSmartRef__":true,"id":22549},"user":"sebastianwoinar","tags":[]},"22549":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"22550":{"varMapping":{"__isSmartRef__":true,"id":22551},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":22552},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22551":{"this":{"__isSmartRef__":true,"id":21312}},"22552":{"timestamp":{"__isSmartRef__":true,"id":22553},"user":"sebastianwoinar","tags":[]},"22553":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"22554":{"varMapping":{"__isSmartRef__":true,"id":22555},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":22556},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22555":{"this":{"__isSmartRef__":true,"id":21312}},"22556":{"timestamp":{"__isSmartRef__":true,"id":22557},"user":"sebastianwoinar","tags":[]},"22557":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"22558":{"varMapping":{"__isSmartRef__":true,"id":22559},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":22560},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22559":{"this":{"__isSmartRef__":true,"id":21312}},"22560":{"timestamp":{"__isSmartRef__":true,"id":22561},"user":"sebastianwoinar","tags":[]},"22561":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"22562":{"varMapping":{"__isSmartRef__":true,"id":22563},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":22568},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22563":{"this":{"__isSmartRef__":true,"id":21312},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":22564}},"22564":{"$super":{"__isSmartRef__":true,"id":22565}},"22565":{"varMapping":{"__isSmartRef__":true,"id":22566},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":22567},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22566":{"obj":{"__isSmartRef__":true,"id":21312},"name":"onMouseDown"},"22567":{},"22568":{"timestamp":{"__isSmartRef__":true,"id":22569},"user":"sebastianwoinar","tags":[]},"22569":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"22570":{"varMapping":{"__isSmartRef__":true,"id":22571},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":22572},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22571":{"this":{"__isSmartRef__":true,"id":21312}},"22572":{"timestamp":{"__isSmartRef__":true,"id":22573},"user":"sebastianwoinar","tags":[]},"22573":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"22574":{"varMapping":{"__isSmartRef__":true,"id":22575},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":22576},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22575":{"this":{"__isSmartRef__":true,"id":21312}},"22576":{"timestamp":{"__isSmartRef__":true,"id":22577},"user":"sebastianwoinar","tags":[]},"22577":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"22578":{"varMapping":{"__isSmartRef__":true,"id":22579},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":22580},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22579":{"this":{"__isSmartRef__":true,"id":21312}},"22580":{"timestamp":{"__isSmartRef__":true,"id":22581},"user":"sebastianwoinar","tags":[]},"22581":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"22582":{"varMapping":{"__isSmartRef__":true,"id":22583},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":22584},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22583":{"this":{"__isSmartRef__":true,"id":21312}},"22584":{"timestamp":{"__isSmartRef__":true,"id":22585},"user":"sebastianwoinar","tags":[]},"22585":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"22586":{"varMapping":{"__isSmartRef__":true,"id":22587},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":22588},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22587":{"this":{"__isSmartRef__":true,"id":21312}},"22588":{"timestamp":{"__isSmartRef__":true,"id":22589},"user":"sebastianwoinar","tags":[]},"22589":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"22590":{"varMapping":{"__isSmartRef__":true,"id":22591},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":22592},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22591":{"this":{"__isSmartRef__":true,"id":21312}},"22592":{"timestamp":{"__isSmartRef__":true,"id":22593},"user":"sebastianwoinar","tags":[]},"22593":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"22594":{"varMapping":{"__isSmartRef__":true,"id":22595},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":22596},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22595":{"this":{"__isSmartRef__":true,"id":21312}},"22596":{"timestamp":{"__isSmartRef__":true,"id":22597},"user":"sebastianwoinar","tags":[]},"22597":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"22598":{"varMapping":{"__isSmartRef__":true,"id":22599},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":22600},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22599":{"this":{"__isSmartRef__":true,"id":21312}},"22600":{"timestamp":{"__isSmartRef__":true,"id":22601},"user":"sebastianwoinar","tags":[]},"22601":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"22602":{"submorphs":[{"__isSmartRef__":true,"id":22603}],"scripts":[],"shape":{"__isSmartRef__":true,"id":22620},"id":"B08457ED-2B80-41AB-90B5-2CA6499AD69E","eventHandler":{"__isSmartRef__":true,"id":22621},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":22622},"name":"node133","partsBinMetaInfo":{"__isSmartRef__":true,"id":22623},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5695},"owner":{"__isSmartRef__":true,"id":5408},"childNodes":[{"__isSmartRef__":true,"id":22626},{"__isSmartRef__":true,"id":22755},{"__isSmartRef__":true,"id":22884},{"__isSmartRef__":true,"id":23013},{"__isSmartRef__":true,"id":23142},{"__isSmartRef__":true,"id":23271},{"__isSmartRef__":true,"id":23400},{"__isSmartRef__":true,"id":23529},{"__isSmartRef__":true,"id":23658}],"parent":{"__isSmartRef__":true,"id":17805},"level":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":23787},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(647.7,160.0)"},"22603":{"submorphs":[],"scripts":[],"id":"6F967D6F-D657-4834-87A3-7D2A26308E6D","shape":{"__isSmartRef__":true,"id":22604},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":22605},"textChunks":[{"__isSmartRef__":true,"id":22617}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":22619},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":22602},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"22604":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"22605":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":22606},{"__isSmartRef__":true,"id":22608},{"__isSmartRef__":true,"id":22610},{"__isSmartRef__":true,"id":22612},{"__isSmartRef__":true,"id":22614}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":22616},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"22606":{"date":{"__isSmartRef__":true,"id":22607},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"22607":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"22608":{"date":{"__isSmartRef__":true,"id":22609},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"22609":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"22610":{"date":{"__isSmartRef__":true,"id":22611},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"22611":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"22612":{"date":{"__isSmartRef__":true,"id":22613},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"22613":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"22614":{"date":{"__isSmartRef__":true,"id":22615},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"22615":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"22616":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"22617":{"style":{"__isSmartRef__":true,"id":22618},"morph":{"__isSmartRef__":true,"id":22603},"chunkOwner":{"__isSmartRef__":true,"id":22603},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"22618":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"22619":{"morph":{"__isSmartRef__":true,"id":22603},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"22620":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"22621":{"morph":{"__isSmartRef__":true,"id":22602},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"22622":{},"22623":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":22624}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"22624":{"date":{"__isSmartRef__":true,"id":22625},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"22625":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"22626":{"submorphs":[{"__isSmartRef__":true,"id":22627}],"scripts":[],"shape":{"__isSmartRef__":true,"id":22644},"id":"319B664D-9354-4071-8D59-05EDE0050454","eventHandler":{"__isSmartRef__":true,"id":22645},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":22646},"name":"node134","partsBinMetaInfo":{"__isSmartRef__":true,"id":22647},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5697},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":22602},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":22650},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(611.5,210.0)"},"22627":{"submorphs":[],"scripts":[],"id":"63825005-1BFF-4856-BD03-D7882ECAEBEF","shape":{"__isSmartRef__":true,"id":22628},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":22629},"textChunks":[{"__isSmartRef__":true,"id":22641}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":22643},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":22626},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"22628":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"22629":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":22630},{"__isSmartRef__":true,"id":22632},{"__isSmartRef__":true,"id":22634},{"__isSmartRef__":true,"id":22636},{"__isSmartRef__":true,"id":22638}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":22640},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"22630":{"date":{"__isSmartRef__":true,"id":22631},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"22631":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"22632":{"date":{"__isSmartRef__":true,"id":22633},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"22633":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"22634":{"date":{"__isSmartRef__":true,"id":22635},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"22635":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"22636":{"date":{"__isSmartRef__":true,"id":22637},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"22637":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"22638":{"date":{"__isSmartRef__":true,"id":22639},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"22639":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"22640":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"22641":{"style":{"__isSmartRef__":true,"id":22642},"morph":{"__isSmartRef__":true,"id":22627},"chunkOwner":{"__isSmartRef__":true,"id":22627},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"22642":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"22643":{"morph":{"__isSmartRef__":true,"id":22627},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"22644":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"22645":{"morph":{"__isSmartRef__":true,"id":22626},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"22646":{},"22647":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":22648}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"22648":{"date":{"__isSmartRef__":true,"id":22649},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"22649":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"22650":{"buildChildNodes":{"__isSmartRef__":true,"id":22651},"getGameTree":{"__isSmartRef__":true,"id":22655},"getLevel":{"__isSmartRef__":true,"id":22659},"getLevelWeight":{"__isSmartRef__":true,"id":22663},"getWeight":{"__isSmartRef__":true,"id":22667},"setNode":{"__isSmartRef__":true,"id":22671},"setParent":{"__isSmartRef__":true,"id":22675},"getParent":{"__isSmartRef__":true,"id":22679},"deactivate":{"__isSmartRef__":true,"id":22683},"blink":{"__isSmartRef__":true,"id":22687},"ABPreturn":{"__isSmartRef__":true,"id":22691},"ABPstart":{"__isSmartRef__":true,"id":22695},"ABPcontinue":{"__isSmartRef__":true,"id":22699},"ABPshowValue":{"__isSmartRef__":true,"id":22703},"ABPgetValue":{"__isSmartRef__":true,"id":22707},"ABPhasChildNodes":{"__isSmartRef__":true,"id":22711},"onMouseDown":{"__isSmartRef__":true,"id":22715},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":22723},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":22727},"ABPmarkAsDone":{"__isSmartRef__":true,"id":22731},"ABPmarkAsActive":{"__isSmartRef__":true,"id":22735},"getStateMorph":{"__isSmartRef__":true,"id":22739},"showState":{"__isSmartRef__":true,"id":22743},"ABPfailHard":{"__isSmartRef__":true,"id":22747},"markFinalDrawWith":{"__isSmartRef__":true,"id":22751}},"22651":{"varMapping":{"__isSmartRef__":true,"id":22652},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":22653},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22652":{"this":{"__isSmartRef__":true,"id":22626}},"22653":{"timestamp":{"__isSmartRef__":true,"id":22654},"user":"sebastianwoinar","tags":[]},"22654":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"22655":{"varMapping":{"__isSmartRef__":true,"id":22656},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":22657},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22656":{"this":{"__isSmartRef__":true,"id":22626}},"22657":{"timestamp":{"__isSmartRef__":true,"id":22658},"user":"sebastianwoinar","tags":[]},"22658":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22659":{"varMapping":{"__isSmartRef__":true,"id":22660},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":22661},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22660":{"this":{"__isSmartRef__":true,"id":22626}},"22661":{"timestamp":{"__isSmartRef__":true,"id":22662},"user":"sebastianwoinar","tags":[]},"22662":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22663":{"varMapping":{"__isSmartRef__":true,"id":22664},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":22665},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22664":{"this":{"__isSmartRef__":true,"id":22626}},"22665":{"timestamp":{"__isSmartRef__":true,"id":22666},"user":"sebastianwoinar","tags":[]},"22666":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22667":{"varMapping":{"__isSmartRef__":true,"id":22668},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":22669},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22668":{"this":{"__isSmartRef__":true,"id":22626}},"22669":{"timestamp":{"__isSmartRef__":true,"id":22670},"user":"sebastianwoinar","tags":[]},"22670":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22671":{"varMapping":{"__isSmartRef__":true,"id":22672},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":22673},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22672":{"this":{"__isSmartRef__":true,"id":22626}},"22673":{"timestamp":{"__isSmartRef__":true,"id":22674},"user":"sebastianwoinar","tags":[]},"22674":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22675":{"varMapping":{"__isSmartRef__":true,"id":22676},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":22677},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22676":{"this":{"__isSmartRef__":true,"id":22626}},"22677":{"timestamp":{"__isSmartRef__":true,"id":22678},"user":"sebastianwoinar","tags":[]},"22678":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22679":{"varMapping":{"__isSmartRef__":true,"id":22680},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":22681},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22680":{"this":{"__isSmartRef__":true,"id":22626}},"22681":{"timestamp":{"__isSmartRef__":true,"id":22682},"user":"sebastianwoinar","tags":[]},"22682":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"22683":{"varMapping":{"__isSmartRef__":true,"id":22684},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":22685},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22684":{"this":{"__isSmartRef__":true,"id":22626}},"22685":{"timestamp":{"__isSmartRef__":true,"id":22686},"user":"sebastianwoinar","tags":[]},"22686":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"22687":{"varMapping":{"__isSmartRef__":true,"id":22688},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":22689},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22688":{"this":{"__isSmartRef__":true,"id":22626}},"22689":{"timestamp":{"__isSmartRef__":true,"id":22690},"user":"sebastianwoinar","tags":[]},"22690":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"22691":{"varMapping":{"__isSmartRef__":true,"id":22692},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":22693},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22692":{"this":{"__isSmartRef__":true,"id":22626}},"22693":{"timestamp":{"__isSmartRef__":true,"id":22694},"user":"sebastianwoinar","tags":[]},"22694":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"22695":{"varMapping":{"__isSmartRef__":true,"id":22696},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":22697},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22696":{"this":{"__isSmartRef__":true,"id":22626}},"22697":{"timestamp":{"__isSmartRef__":true,"id":22698},"user":"sebastianwoinar","tags":[]},"22698":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"22699":{"varMapping":{"__isSmartRef__":true,"id":22700},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":22701},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22700":{"this":{"__isSmartRef__":true,"id":22626}},"22701":{"timestamp":{"__isSmartRef__":true,"id":22702},"user":"sebastianwoinar","tags":[]},"22702":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"22703":{"varMapping":{"__isSmartRef__":true,"id":22704},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":22705},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22704":{"this":{"__isSmartRef__":true,"id":22626}},"22705":{"timestamp":{"__isSmartRef__":true,"id":22706},"user":"sebastianwoinar","tags":[]},"22706":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"22707":{"varMapping":{"__isSmartRef__":true,"id":22708},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":22709},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22708":{"this":{"__isSmartRef__":true,"id":22626}},"22709":{"timestamp":{"__isSmartRef__":true,"id":22710},"user":"sebastianwoinar","tags":[]},"22710":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"22711":{"varMapping":{"__isSmartRef__":true,"id":22712},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":22713},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22712":{"this":{"__isSmartRef__":true,"id":22626}},"22713":{"timestamp":{"__isSmartRef__":true,"id":22714},"user":"sebastianwoinar","tags":[]},"22714":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"22715":{"varMapping":{"__isSmartRef__":true,"id":22716},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":22721},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22716":{"this":{"__isSmartRef__":true,"id":22626},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":22717}},"22717":{"$super":{"__isSmartRef__":true,"id":22718}},"22718":{"varMapping":{"__isSmartRef__":true,"id":22719},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":22720},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22719":{"obj":{"__isSmartRef__":true,"id":22626},"name":"onMouseDown"},"22720":{},"22721":{"timestamp":{"__isSmartRef__":true,"id":22722},"user":"sebastianwoinar","tags":[]},"22722":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"22723":{"varMapping":{"__isSmartRef__":true,"id":22724},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":22725},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22724":{"this":{"__isSmartRef__":true,"id":22626}},"22725":{"timestamp":{"__isSmartRef__":true,"id":22726},"user":"sebastianwoinar","tags":[]},"22726":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"22727":{"varMapping":{"__isSmartRef__":true,"id":22728},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":22729},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22728":{"this":{"__isSmartRef__":true,"id":22626}},"22729":{"timestamp":{"__isSmartRef__":true,"id":22730},"user":"sebastianwoinar","tags":[]},"22730":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"22731":{"varMapping":{"__isSmartRef__":true,"id":22732},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":22733},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22732":{"this":{"__isSmartRef__":true,"id":22626}},"22733":{"timestamp":{"__isSmartRef__":true,"id":22734},"user":"sebastianwoinar","tags":[]},"22734":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"22735":{"varMapping":{"__isSmartRef__":true,"id":22736},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":22737},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22736":{"this":{"__isSmartRef__":true,"id":22626}},"22737":{"timestamp":{"__isSmartRef__":true,"id":22738},"user":"sebastianwoinar","tags":[]},"22738":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"22739":{"varMapping":{"__isSmartRef__":true,"id":22740},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":22741},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22740":{"this":{"__isSmartRef__":true,"id":22626}},"22741":{"timestamp":{"__isSmartRef__":true,"id":22742},"user":"sebastianwoinar","tags":[]},"22742":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"22743":{"varMapping":{"__isSmartRef__":true,"id":22744},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":22745},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22744":{"this":{"__isSmartRef__":true,"id":22626}},"22745":{"timestamp":{"__isSmartRef__":true,"id":22746},"user":"sebastianwoinar","tags":[]},"22746":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"22747":{"varMapping":{"__isSmartRef__":true,"id":22748},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":22749},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22748":{"this":{"__isSmartRef__":true,"id":22626}},"22749":{"timestamp":{"__isSmartRef__":true,"id":22750},"user":"sebastianwoinar","tags":[]},"22750":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"22751":{"varMapping":{"__isSmartRef__":true,"id":22752},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":22753},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22752":{"this":{"__isSmartRef__":true,"id":22626}},"22753":{"timestamp":{"__isSmartRef__":true,"id":22754},"user":"sebastianwoinar","tags":[]},"22754":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"22755":{"submorphs":[{"__isSmartRef__":true,"id":22756}],"scripts":[],"shape":{"__isSmartRef__":true,"id":22773},"id":"42C0BAC9-ACC3-4DB0-B5C0-AF9BB304F299","eventHandler":{"__isSmartRef__":true,"id":22774},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":22775},"name":"node135","partsBinMetaInfo":{"__isSmartRef__":true,"id":22776},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5699},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":22602},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":22779},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(616.7,210.0)"},"22756":{"submorphs":[],"scripts":[],"id":"BACD2DE0-954E-4C65-92EE-99FFF34434B3","shape":{"__isSmartRef__":true,"id":22757},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":22758},"textChunks":[{"__isSmartRef__":true,"id":22770}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":22772},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":22755},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"22757":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"22758":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":22759},{"__isSmartRef__":true,"id":22761},{"__isSmartRef__":true,"id":22763},{"__isSmartRef__":true,"id":22765},{"__isSmartRef__":true,"id":22767}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":22769},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"22759":{"date":{"__isSmartRef__":true,"id":22760},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"22760":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"22761":{"date":{"__isSmartRef__":true,"id":22762},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"22762":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"22763":{"date":{"__isSmartRef__":true,"id":22764},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"22764":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"22765":{"date":{"__isSmartRef__":true,"id":22766},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"22766":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"22767":{"date":{"__isSmartRef__":true,"id":22768},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"22768":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"22769":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"22770":{"style":{"__isSmartRef__":true,"id":22771},"morph":{"__isSmartRef__":true,"id":22756},"chunkOwner":{"__isSmartRef__":true,"id":22756},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"22771":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"22772":{"morph":{"__isSmartRef__":true,"id":22756},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"22773":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"22774":{"morph":{"__isSmartRef__":true,"id":22755},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"22775":{},"22776":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":22777}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"22777":{"date":{"__isSmartRef__":true,"id":22778},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"22778":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"22779":{"buildChildNodes":{"__isSmartRef__":true,"id":22780},"getGameTree":{"__isSmartRef__":true,"id":22784},"getLevel":{"__isSmartRef__":true,"id":22788},"getLevelWeight":{"__isSmartRef__":true,"id":22792},"getWeight":{"__isSmartRef__":true,"id":22796},"setNode":{"__isSmartRef__":true,"id":22800},"setParent":{"__isSmartRef__":true,"id":22804},"getParent":{"__isSmartRef__":true,"id":22808},"deactivate":{"__isSmartRef__":true,"id":22812},"blink":{"__isSmartRef__":true,"id":22816},"ABPreturn":{"__isSmartRef__":true,"id":22820},"ABPstart":{"__isSmartRef__":true,"id":22824},"ABPcontinue":{"__isSmartRef__":true,"id":22828},"ABPshowValue":{"__isSmartRef__":true,"id":22832},"ABPgetValue":{"__isSmartRef__":true,"id":22836},"ABPhasChildNodes":{"__isSmartRef__":true,"id":22840},"onMouseDown":{"__isSmartRef__":true,"id":22844},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":22852},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":22856},"ABPmarkAsDone":{"__isSmartRef__":true,"id":22860},"ABPmarkAsActive":{"__isSmartRef__":true,"id":22864},"getStateMorph":{"__isSmartRef__":true,"id":22868},"showState":{"__isSmartRef__":true,"id":22872},"ABPfailHard":{"__isSmartRef__":true,"id":22876},"markFinalDrawWith":{"__isSmartRef__":true,"id":22880}},"22780":{"varMapping":{"__isSmartRef__":true,"id":22781},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":22782},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22781":{"this":{"__isSmartRef__":true,"id":22755}},"22782":{"timestamp":{"__isSmartRef__":true,"id":22783},"user":"sebastianwoinar","tags":[]},"22783":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"22784":{"varMapping":{"__isSmartRef__":true,"id":22785},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":22786},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22785":{"this":{"__isSmartRef__":true,"id":22755}},"22786":{"timestamp":{"__isSmartRef__":true,"id":22787},"user":"sebastianwoinar","tags":[]},"22787":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22788":{"varMapping":{"__isSmartRef__":true,"id":22789},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":22790},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22789":{"this":{"__isSmartRef__":true,"id":22755}},"22790":{"timestamp":{"__isSmartRef__":true,"id":22791},"user":"sebastianwoinar","tags":[]},"22791":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22792":{"varMapping":{"__isSmartRef__":true,"id":22793},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":22794},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22793":{"this":{"__isSmartRef__":true,"id":22755}},"22794":{"timestamp":{"__isSmartRef__":true,"id":22795},"user":"sebastianwoinar","tags":[]},"22795":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22796":{"varMapping":{"__isSmartRef__":true,"id":22797},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":22798},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22797":{"this":{"__isSmartRef__":true,"id":22755}},"22798":{"timestamp":{"__isSmartRef__":true,"id":22799},"user":"sebastianwoinar","tags":[]},"22799":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22800":{"varMapping":{"__isSmartRef__":true,"id":22801},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":22802},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22801":{"this":{"__isSmartRef__":true,"id":22755}},"22802":{"timestamp":{"__isSmartRef__":true,"id":22803},"user":"sebastianwoinar","tags":[]},"22803":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22804":{"varMapping":{"__isSmartRef__":true,"id":22805},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":22806},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22805":{"this":{"__isSmartRef__":true,"id":22755}},"22806":{"timestamp":{"__isSmartRef__":true,"id":22807},"user":"sebastianwoinar","tags":[]},"22807":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22808":{"varMapping":{"__isSmartRef__":true,"id":22809},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":22810},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22809":{"this":{"__isSmartRef__":true,"id":22755}},"22810":{"timestamp":{"__isSmartRef__":true,"id":22811},"user":"sebastianwoinar","tags":[]},"22811":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"22812":{"varMapping":{"__isSmartRef__":true,"id":22813},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":22814},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22813":{"this":{"__isSmartRef__":true,"id":22755}},"22814":{"timestamp":{"__isSmartRef__":true,"id":22815},"user":"sebastianwoinar","tags":[]},"22815":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"22816":{"varMapping":{"__isSmartRef__":true,"id":22817},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":22818},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22817":{"this":{"__isSmartRef__":true,"id":22755}},"22818":{"timestamp":{"__isSmartRef__":true,"id":22819},"user":"sebastianwoinar","tags":[]},"22819":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"22820":{"varMapping":{"__isSmartRef__":true,"id":22821},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":22822},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22821":{"this":{"__isSmartRef__":true,"id":22755}},"22822":{"timestamp":{"__isSmartRef__":true,"id":22823},"user":"sebastianwoinar","tags":[]},"22823":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"22824":{"varMapping":{"__isSmartRef__":true,"id":22825},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":22826},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22825":{"this":{"__isSmartRef__":true,"id":22755}},"22826":{"timestamp":{"__isSmartRef__":true,"id":22827},"user":"sebastianwoinar","tags":[]},"22827":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"22828":{"varMapping":{"__isSmartRef__":true,"id":22829},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":22830},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22829":{"this":{"__isSmartRef__":true,"id":22755}},"22830":{"timestamp":{"__isSmartRef__":true,"id":22831},"user":"sebastianwoinar","tags":[]},"22831":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"22832":{"varMapping":{"__isSmartRef__":true,"id":22833},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":22834},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22833":{"this":{"__isSmartRef__":true,"id":22755}},"22834":{"timestamp":{"__isSmartRef__":true,"id":22835},"user":"sebastianwoinar","tags":[]},"22835":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"22836":{"varMapping":{"__isSmartRef__":true,"id":22837},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":22838},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22837":{"this":{"__isSmartRef__":true,"id":22755}},"22838":{"timestamp":{"__isSmartRef__":true,"id":22839},"user":"sebastianwoinar","tags":[]},"22839":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"22840":{"varMapping":{"__isSmartRef__":true,"id":22841},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":22842},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22841":{"this":{"__isSmartRef__":true,"id":22755}},"22842":{"timestamp":{"__isSmartRef__":true,"id":22843},"user":"sebastianwoinar","tags":[]},"22843":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"22844":{"varMapping":{"__isSmartRef__":true,"id":22845},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":22850},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22845":{"this":{"__isSmartRef__":true,"id":22755},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":22846}},"22846":{"$super":{"__isSmartRef__":true,"id":22847}},"22847":{"varMapping":{"__isSmartRef__":true,"id":22848},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":22849},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22848":{"obj":{"__isSmartRef__":true,"id":22755},"name":"onMouseDown"},"22849":{},"22850":{"timestamp":{"__isSmartRef__":true,"id":22851},"user":"sebastianwoinar","tags":[]},"22851":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"22852":{"varMapping":{"__isSmartRef__":true,"id":22853},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":22854},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22853":{"this":{"__isSmartRef__":true,"id":22755}},"22854":{"timestamp":{"__isSmartRef__":true,"id":22855},"user":"sebastianwoinar","tags":[]},"22855":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"22856":{"varMapping":{"__isSmartRef__":true,"id":22857},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":22858},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22857":{"this":{"__isSmartRef__":true,"id":22755}},"22858":{"timestamp":{"__isSmartRef__":true,"id":22859},"user":"sebastianwoinar","tags":[]},"22859":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"22860":{"varMapping":{"__isSmartRef__":true,"id":22861},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":22862},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22861":{"this":{"__isSmartRef__":true,"id":22755}},"22862":{"timestamp":{"__isSmartRef__":true,"id":22863},"user":"sebastianwoinar","tags":[]},"22863":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"22864":{"varMapping":{"__isSmartRef__":true,"id":22865},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":22866},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22865":{"this":{"__isSmartRef__":true,"id":22755}},"22866":{"timestamp":{"__isSmartRef__":true,"id":22867},"user":"sebastianwoinar","tags":[]},"22867":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"22868":{"varMapping":{"__isSmartRef__":true,"id":22869},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":22870},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22869":{"this":{"__isSmartRef__":true,"id":22755}},"22870":{"timestamp":{"__isSmartRef__":true,"id":22871},"user":"sebastianwoinar","tags":[]},"22871":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"22872":{"varMapping":{"__isSmartRef__":true,"id":22873},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":22874},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22873":{"this":{"__isSmartRef__":true,"id":22755}},"22874":{"timestamp":{"__isSmartRef__":true,"id":22875},"user":"sebastianwoinar","tags":[]},"22875":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"22876":{"varMapping":{"__isSmartRef__":true,"id":22877},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":22878},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22877":{"this":{"__isSmartRef__":true,"id":22755}},"22878":{"timestamp":{"__isSmartRef__":true,"id":22879},"user":"sebastianwoinar","tags":[]},"22879":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"22880":{"varMapping":{"__isSmartRef__":true,"id":22881},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":22882},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22881":{"this":{"__isSmartRef__":true,"id":22755}},"22882":{"timestamp":{"__isSmartRef__":true,"id":22883},"user":"sebastianwoinar","tags":[]},"22883":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"22884":{"submorphs":[{"__isSmartRef__":true,"id":22885}],"scripts":[],"shape":{"__isSmartRef__":true,"id":22902},"id":"EE65B54D-360A-432C-9B42-638FD9C80906","eventHandler":{"__isSmartRef__":true,"id":22903},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":22904},"name":"node136","partsBinMetaInfo":{"__isSmartRef__":true,"id":22905},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5701},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":22602},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":22908},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(621.8,210.0)"},"22885":{"submorphs":[],"scripts":[],"id":"F04DE898-902B-4D54-AFE3-22DFDBAC9C3C","shape":{"__isSmartRef__":true,"id":22886},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":22887},"textChunks":[{"__isSmartRef__":true,"id":22899}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":22901},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":22884},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"22886":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"22887":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":22888},{"__isSmartRef__":true,"id":22890},{"__isSmartRef__":true,"id":22892},{"__isSmartRef__":true,"id":22894},{"__isSmartRef__":true,"id":22896}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":22898},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"22888":{"date":{"__isSmartRef__":true,"id":22889},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"22889":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"22890":{"date":{"__isSmartRef__":true,"id":22891},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"22891":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"22892":{"date":{"__isSmartRef__":true,"id":22893},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"22893":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"22894":{"date":{"__isSmartRef__":true,"id":22895},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"22895":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"22896":{"date":{"__isSmartRef__":true,"id":22897},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"22897":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"22898":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"22899":{"style":{"__isSmartRef__":true,"id":22900},"morph":{"__isSmartRef__":true,"id":22885},"chunkOwner":{"__isSmartRef__":true,"id":22885},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"22900":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"22901":{"morph":{"__isSmartRef__":true,"id":22885},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"22902":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"22903":{"morph":{"__isSmartRef__":true,"id":22884},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"22904":{},"22905":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":22906}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"22906":{"date":{"__isSmartRef__":true,"id":22907},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"22907":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"22908":{"buildChildNodes":{"__isSmartRef__":true,"id":22909},"getGameTree":{"__isSmartRef__":true,"id":22913},"getLevel":{"__isSmartRef__":true,"id":22917},"getLevelWeight":{"__isSmartRef__":true,"id":22921},"getWeight":{"__isSmartRef__":true,"id":22925},"setNode":{"__isSmartRef__":true,"id":22929},"setParent":{"__isSmartRef__":true,"id":22933},"getParent":{"__isSmartRef__":true,"id":22937},"deactivate":{"__isSmartRef__":true,"id":22941},"blink":{"__isSmartRef__":true,"id":22945},"ABPreturn":{"__isSmartRef__":true,"id":22949},"ABPstart":{"__isSmartRef__":true,"id":22953},"ABPcontinue":{"__isSmartRef__":true,"id":22957},"ABPshowValue":{"__isSmartRef__":true,"id":22961},"ABPgetValue":{"__isSmartRef__":true,"id":22965},"ABPhasChildNodes":{"__isSmartRef__":true,"id":22969},"onMouseDown":{"__isSmartRef__":true,"id":22973},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":22981},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":22985},"ABPmarkAsDone":{"__isSmartRef__":true,"id":22989},"ABPmarkAsActive":{"__isSmartRef__":true,"id":22993},"getStateMorph":{"__isSmartRef__":true,"id":22997},"showState":{"__isSmartRef__":true,"id":23001},"ABPfailHard":{"__isSmartRef__":true,"id":23005},"markFinalDrawWith":{"__isSmartRef__":true,"id":23009}},"22909":{"varMapping":{"__isSmartRef__":true,"id":22910},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":22911},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22910":{"this":{"__isSmartRef__":true,"id":22884}},"22911":{"timestamp":{"__isSmartRef__":true,"id":22912},"user":"sebastianwoinar","tags":[]},"22912":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"22913":{"varMapping":{"__isSmartRef__":true,"id":22914},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":22915},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22914":{"this":{"__isSmartRef__":true,"id":22884}},"22915":{"timestamp":{"__isSmartRef__":true,"id":22916},"user":"sebastianwoinar","tags":[]},"22916":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22917":{"varMapping":{"__isSmartRef__":true,"id":22918},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":22919},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22918":{"this":{"__isSmartRef__":true,"id":22884}},"22919":{"timestamp":{"__isSmartRef__":true,"id":22920},"user":"sebastianwoinar","tags":[]},"22920":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22921":{"varMapping":{"__isSmartRef__":true,"id":22922},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":22923},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22922":{"this":{"__isSmartRef__":true,"id":22884}},"22923":{"timestamp":{"__isSmartRef__":true,"id":22924},"user":"sebastianwoinar","tags":[]},"22924":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22925":{"varMapping":{"__isSmartRef__":true,"id":22926},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":22927},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22926":{"this":{"__isSmartRef__":true,"id":22884}},"22927":{"timestamp":{"__isSmartRef__":true,"id":22928},"user":"sebastianwoinar","tags":[]},"22928":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22929":{"varMapping":{"__isSmartRef__":true,"id":22930},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":22931},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22930":{"this":{"__isSmartRef__":true,"id":22884}},"22931":{"timestamp":{"__isSmartRef__":true,"id":22932},"user":"sebastianwoinar","tags":[]},"22932":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22933":{"varMapping":{"__isSmartRef__":true,"id":22934},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":22935},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22934":{"this":{"__isSmartRef__":true,"id":22884}},"22935":{"timestamp":{"__isSmartRef__":true,"id":22936},"user":"sebastianwoinar","tags":[]},"22936":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"22937":{"varMapping":{"__isSmartRef__":true,"id":22938},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":22939},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22938":{"this":{"__isSmartRef__":true,"id":22884}},"22939":{"timestamp":{"__isSmartRef__":true,"id":22940},"user":"sebastianwoinar","tags":[]},"22940":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"22941":{"varMapping":{"__isSmartRef__":true,"id":22942},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":22943},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22942":{"this":{"__isSmartRef__":true,"id":22884}},"22943":{"timestamp":{"__isSmartRef__":true,"id":22944},"user":"sebastianwoinar","tags":[]},"22944":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"22945":{"varMapping":{"__isSmartRef__":true,"id":22946},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":22947},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22946":{"this":{"__isSmartRef__":true,"id":22884}},"22947":{"timestamp":{"__isSmartRef__":true,"id":22948},"user":"sebastianwoinar","tags":[]},"22948":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"22949":{"varMapping":{"__isSmartRef__":true,"id":22950},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":22951},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22950":{"this":{"__isSmartRef__":true,"id":22884}},"22951":{"timestamp":{"__isSmartRef__":true,"id":22952},"user":"sebastianwoinar","tags":[]},"22952":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"22953":{"varMapping":{"__isSmartRef__":true,"id":22954},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":22955},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22954":{"this":{"__isSmartRef__":true,"id":22884}},"22955":{"timestamp":{"__isSmartRef__":true,"id":22956},"user":"sebastianwoinar","tags":[]},"22956":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"22957":{"varMapping":{"__isSmartRef__":true,"id":22958},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":22959},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22958":{"this":{"__isSmartRef__":true,"id":22884}},"22959":{"timestamp":{"__isSmartRef__":true,"id":22960},"user":"sebastianwoinar","tags":[]},"22960":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"22961":{"varMapping":{"__isSmartRef__":true,"id":22962},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":22963},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22962":{"this":{"__isSmartRef__":true,"id":22884}},"22963":{"timestamp":{"__isSmartRef__":true,"id":22964},"user":"sebastianwoinar","tags":[]},"22964":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"22965":{"varMapping":{"__isSmartRef__":true,"id":22966},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":22967},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22966":{"this":{"__isSmartRef__":true,"id":22884}},"22967":{"timestamp":{"__isSmartRef__":true,"id":22968},"user":"sebastianwoinar","tags":[]},"22968":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"22969":{"varMapping":{"__isSmartRef__":true,"id":22970},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":22971},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22970":{"this":{"__isSmartRef__":true,"id":22884}},"22971":{"timestamp":{"__isSmartRef__":true,"id":22972},"user":"sebastianwoinar","tags":[]},"22972":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"22973":{"varMapping":{"__isSmartRef__":true,"id":22974},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":22979},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22974":{"this":{"__isSmartRef__":true,"id":22884},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":22975}},"22975":{"$super":{"__isSmartRef__":true,"id":22976}},"22976":{"varMapping":{"__isSmartRef__":true,"id":22977},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":22978},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22977":{"obj":{"__isSmartRef__":true,"id":22884},"name":"onMouseDown"},"22978":{},"22979":{"timestamp":{"__isSmartRef__":true,"id":22980},"user":"sebastianwoinar","tags":[]},"22980":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"22981":{"varMapping":{"__isSmartRef__":true,"id":22982},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":22983},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22982":{"this":{"__isSmartRef__":true,"id":22884}},"22983":{"timestamp":{"__isSmartRef__":true,"id":22984},"user":"sebastianwoinar","tags":[]},"22984":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"22985":{"varMapping":{"__isSmartRef__":true,"id":22986},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":22987},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22986":{"this":{"__isSmartRef__":true,"id":22884}},"22987":{"timestamp":{"__isSmartRef__":true,"id":22988},"user":"sebastianwoinar","tags":[]},"22988":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"22989":{"varMapping":{"__isSmartRef__":true,"id":22990},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":22991},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22990":{"this":{"__isSmartRef__":true,"id":22884}},"22991":{"timestamp":{"__isSmartRef__":true,"id":22992},"user":"sebastianwoinar","tags":[]},"22992":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"22993":{"varMapping":{"__isSmartRef__":true,"id":22994},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":22995},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22994":{"this":{"__isSmartRef__":true,"id":22884}},"22995":{"timestamp":{"__isSmartRef__":true,"id":22996},"user":"sebastianwoinar","tags":[]},"22996":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"22997":{"varMapping":{"__isSmartRef__":true,"id":22998},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":22999},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22998":{"this":{"__isSmartRef__":true,"id":22884}},"22999":{"timestamp":{"__isSmartRef__":true,"id":23000},"user":"sebastianwoinar","tags":[]},"23000":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"23001":{"varMapping":{"__isSmartRef__":true,"id":23002},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":23003},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23002":{"this":{"__isSmartRef__":true,"id":22884}},"23003":{"timestamp":{"__isSmartRef__":true,"id":23004},"user":"sebastianwoinar","tags":[]},"23004":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"23005":{"varMapping":{"__isSmartRef__":true,"id":23006},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":23007},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23006":{"this":{"__isSmartRef__":true,"id":22884}},"23007":{"timestamp":{"__isSmartRef__":true,"id":23008},"user":"sebastianwoinar","tags":[]},"23008":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"23009":{"varMapping":{"__isSmartRef__":true,"id":23010},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":23011},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23010":{"this":{"__isSmartRef__":true,"id":22884}},"23011":{"timestamp":{"__isSmartRef__":true,"id":23012},"user":"sebastianwoinar","tags":[]},"23012":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"23013":{"submorphs":[{"__isSmartRef__":true,"id":23014}],"scripts":[],"shape":{"__isSmartRef__":true,"id":23031},"id":"63CA53F5-9158-4E9C-94DB-98F8F60BFCEA","eventHandler":{"__isSmartRef__":true,"id":23032},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":23033},"name":"node137","partsBinMetaInfo":{"__isSmartRef__":true,"id":23034},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5703},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":22602},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":23037},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(627.0,210.0)"},"23014":{"submorphs":[],"scripts":[],"id":"2956B4D1-F907-42DC-86C7-079C436AEB4F","shape":{"__isSmartRef__":true,"id":23015},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":23016},"textChunks":[{"__isSmartRef__":true,"id":23028}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":23030},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":23013},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"23015":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"23016":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":23017},{"__isSmartRef__":true,"id":23019},{"__isSmartRef__":true,"id":23021},{"__isSmartRef__":true,"id":23023},{"__isSmartRef__":true,"id":23025}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":23027},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"23017":{"date":{"__isSmartRef__":true,"id":23018},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"23018":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"23019":{"date":{"__isSmartRef__":true,"id":23020},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"23020":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"23021":{"date":{"__isSmartRef__":true,"id":23022},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"23022":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"23023":{"date":{"__isSmartRef__":true,"id":23024},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"23024":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"23025":{"date":{"__isSmartRef__":true,"id":23026},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"23026":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"23027":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"23028":{"style":{"__isSmartRef__":true,"id":23029},"morph":{"__isSmartRef__":true,"id":23014},"chunkOwner":{"__isSmartRef__":true,"id":23014},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"23029":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"23030":{"morph":{"__isSmartRef__":true,"id":23014},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"23031":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"23032":{"morph":{"__isSmartRef__":true,"id":23013},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"23033":{},"23034":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":23035}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"23035":{"date":{"__isSmartRef__":true,"id":23036},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"23036":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"23037":{"buildChildNodes":{"__isSmartRef__":true,"id":23038},"getGameTree":{"__isSmartRef__":true,"id":23042},"getLevel":{"__isSmartRef__":true,"id":23046},"getLevelWeight":{"__isSmartRef__":true,"id":23050},"getWeight":{"__isSmartRef__":true,"id":23054},"setNode":{"__isSmartRef__":true,"id":23058},"setParent":{"__isSmartRef__":true,"id":23062},"getParent":{"__isSmartRef__":true,"id":23066},"deactivate":{"__isSmartRef__":true,"id":23070},"blink":{"__isSmartRef__":true,"id":23074},"ABPreturn":{"__isSmartRef__":true,"id":23078},"ABPstart":{"__isSmartRef__":true,"id":23082},"ABPcontinue":{"__isSmartRef__":true,"id":23086},"ABPshowValue":{"__isSmartRef__":true,"id":23090},"ABPgetValue":{"__isSmartRef__":true,"id":23094},"ABPhasChildNodes":{"__isSmartRef__":true,"id":23098},"onMouseDown":{"__isSmartRef__":true,"id":23102},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":23110},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":23114},"ABPmarkAsDone":{"__isSmartRef__":true,"id":23118},"ABPmarkAsActive":{"__isSmartRef__":true,"id":23122},"getStateMorph":{"__isSmartRef__":true,"id":23126},"showState":{"__isSmartRef__":true,"id":23130},"ABPfailHard":{"__isSmartRef__":true,"id":23134},"markFinalDrawWith":{"__isSmartRef__":true,"id":23138}},"23038":{"varMapping":{"__isSmartRef__":true,"id":23039},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":23040},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23039":{"this":{"__isSmartRef__":true,"id":23013}},"23040":{"timestamp":{"__isSmartRef__":true,"id":23041},"user":"sebastianwoinar","tags":[]},"23041":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"23042":{"varMapping":{"__isSmartRef__":true,"id":23043},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":23044},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23043":{"this":{"__isSmartRef__":true,"id":23013}},"23044":{"timestamp":{"__isSmartRef__":true,"id":23045},"user":"sebastianwoinar","tags":[]},"23045":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23046":{"varMapping":{"__isSmartRef__":true,"id":23047},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":23048},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23047":{"this":{"__isSmartRef__":true,"id":23013}},"23048":{"timestamp":{"__isSmartRef__":true,"id":23049},"user":"sebastianwoinar","tags":[]},"23049":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23050":{"varMapping":{"__isSmartRef__":true,"id":23051},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":23052},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23051":{"this":{"__isSmartRef__":true,"id":23013}},"23052":{"timestamp":{"__isSmartRef__":true,"id":23053},"user":"sebastianwoinar","tags":[]},"23053":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23054":{"varMapping":{"__isSmartRef__":true,"id":23055},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":23056},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23055":{"this":{"__isSmartRef__":true,"id":23013}},"23056":{"timestamp":{"__isSmartRef__":true,"id":23057},"user":"sebastianwoinar","tags":[]},"23057":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23058":{"varMapping":{"__isSmartRef__":true,"id":23059},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":23060},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23059":{"this":{"__isSmartRef__":true,"id":23013}},"23060":{"timestamp":{"__isSmartRef__":true,"id":23061},"user":"sebastianwoinar","tags":[]},"23061":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23062":{"varMapping":{"__isSmartRef__":true,"id":23063},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":23064},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23063":{"this":{"__isSmartRef__":true,"id":23013}},"23064":{"timestamp":{"__isSmartRef__":true,"id":23065},"user":"sebastianwoinar","tags":[]},"23065":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23066":{"varMapping":{"__isSmartRef__":true,"id":23067},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":23068},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23067":{"this":{"__isSmartRef__":true,"id":23013}},"23068":{"timestamp":{"__isSmartRef__":true,"id":23069},"user":"sebastianwoinar","tags":[]},"23069":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"23070":{"varMapping":{"__isSmartRef__":true,"id":23071},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":23072},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23071":{"this":{"__isSmartRef__":true,"id":23013}},"23072":{"timestamp":{"__isSmartRef__":true,"id":23073},"user":"sebastianwoinar","tags":[]},"23073":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"23074":{"varMapping":{"__isSmartRef__":true,"id":23075},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":23076},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23075":{"this":{"__isSmartRef__":true,"id":23013}},"23076":{"timestamp":{"__isSmartRef__":true,"id":23077},"user":"sebastianwoinar","tags":[]},"23077":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"23078":{"varMapping":{"__isSmartRef__":true,"id":23079},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":23080},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23079":{"this":{"__isSmartRef__":true,"id":23013}},"23080":{"timestamp":{"__isSmartRef__":true,"id":23081},"user":"sebastianwoinar","tags":[]},"23081":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"23082":{"varMapping":{"__isSmartRef__":true,"id":23083},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":23084},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23083":{"this":{"__isSmartRef__":true,"id":23013}},"23084":{"timestamp":{"__isSmartRef__":true,"id":23085},"user":"sebastianwoinar","tags":[]},"23085":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"23086":{"varMapping":{"__isSmartRef__":true,"id":23087},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":23088},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23087":{"this":{"__isSmartRef__":true,"id":23013}},"23088":{"timestamp":{"__isSmartRef__":true,"id":23089},"user":"sebastianwoinar","tags":[]},"23089":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"23090":{"varMapping":{"__isSmartRef__":true,"id":23091},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":23092},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23091":{"this":{"__isSmartRef__":true,"id":23013}},"23092":{"timestamp":{"__isSmartRef__":true,"id":23093},"user":"sebastianwoinar","tags":[]},"23093":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"23094":{"varMapping":{"__isSmartRef__":true,"id":23095},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":23096},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23095":{"this":{"__isSmartRef__":true,"id":23013}},"23096":{"timestamp":{"__isSmartRef__":true,"id":23097},"user":"sebastianwoinar","tags":[]},"23097":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"23098":{"varMapping":{"__isSmartRef__":true,"id":23099},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":23100},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23099":{"this":{"__isSmartRef__":true,"id":23013}},"23100":{"timestamp":{"__isSmartRef__":true,"id":23101},"user":"sebastianwoinar","tags":[]},"23101":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"23102":{"varMapping":{"__isSmartRef__":true,"id":23103},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":23108},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23103":{"this":{"__isSmartRef__":true,"id":23013},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":23104}},"23104":{"$super":{"__isSmartRef__":true,"id":23105}},"23105":{"varMapping":{"__isSmartRef__":true,"id":23106},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":23107},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23106":{"obj":{"__isSmartRef__":true,"id":23013},"name":"onMouseDown"},"23107":{},"23108":{"timestamp":{"__isSmartRef__":true,"id":23109},"user":"sebastianwoinar","tags":[]},"23109":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"23110":{"varMapping":{"__isSmartRef__":true,"id":23111},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":23112},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23111":{"this":{"__isSmartRef__":true,"id":23013}},"23112":{"timestamp":{"__isSmartRef__":true,"id":23113},"user":"sebastianwoinar","tags":[]},"23113":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"23114":{"varMapping":{"__isSmartRef__":true,"id":23115},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":23116},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23115":{"this":{"__isSmartRef__":true,"id":23013}},"23116":{"timestamp":{"__isSmartRef__":true,"id":23117},"user":"sebastianwoinar","tags":[]},"23117":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"23118":{"varMapping":{"__isSmartRef__":true,"id":23119},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":23120},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23119":{"this":{"__isSmartRef__":true,"id":23013}},"23120":{"timestamp":{"__isSmartRef__":true,"id":23121},"user":"sebastianwoinar","tags":[]},"23121":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"23122":{"varMapping":{"__isSmartRef__":true,"id":23123},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":23124},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23123":{"this":{"__isSmartRef__":true,"id":23013}},"23124":{"timestamp":{"__isSmartRef__":true,"id":23125},"user":"sebastianwoinar","tags":[]},"23125":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"23126":{"varMapping":{"__isSmartRef__":true,"id":23127},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":23128},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23127":{"this":{"__isSmartRef__":true,"id":23013}},"23128":{"timestamp":{"__isSmartRef__":true,"id":23129},"user":"sebastianwoinar","tags":[]},"23129":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"23130":{"varMapping":{"__isSmartRef__":true,"id":23131},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":23132},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23131":{"this":{"__isSmartRef__":true,"id":23013}},"23132":{"timestamp":{"__isSmartRef__":true,"id":23133},"user":"sebastianwoinar","tags":[]},"23133":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"23134":{"varMapping":{"__isSmartRef__":true,"id":23135},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":23136},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23135":{"this":{"__isSmartRef__":true,"id":23013}},"23136":{"timestamp":{"__isSmartRef__":true,"id":23137},"user":"sebastianwoinar","tags":[]},"23137":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"23138":{"varMapping":{"__isSmartRef__":true,"id":23139},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":23140},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23139":{"this":{"__isSmartRef__":true,"id":23013}},"23140":{"timestamp":{"__isSmartRef__":true,"id":23141},"user":"sebastianwoinar","tags":[]},"23141":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"23142":{"submorphs":[{"__isSmartRef__":true,"id":23143}],"scripts":[],"shape":{"__isSmartRef__":true,"id":23160},"id":"15279361-8DA6-4D43-BBB6-CF5F90B4A713","eventHandler":{"__isSmartRef__":true,"id":23161},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":23162},"name":"node138","partsBinMetaInfo":{"__isSmartRef__":true,"id":23163},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5705},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":22602},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":23166},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(632.2,210.0)"},"23143":{"submorphs":[],"scripts":[],"id":"2445E140-387D-4F7C-9FF8-5AFD96D21E26","shape":{"__isSmartRef__":true,"id":23144},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":23145},"textChunks":[{"__isSmartRef__":true,"id":23157}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":23159},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":23142},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"23144":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"23145":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":23146},{"__isSmartRef__":true,"id":23148},{"__isSmartRef__":true,"id":23150},{"__isSmartRef__":true,"id":23152},{"__isSmartRef__":true,"id":23154}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":23156},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"23146":{"date":{"__isSmartRef__":true,"id":23147},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"23147":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"23148":{"date":{"__isSmartRef__":true,"id":23149},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"23149":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"23150":{"date":{"__isSmartRef__":true,"id":23151},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"23151":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"23152":{"date":{"__isSmartRef__":true,"id":23153},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"23153":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"23154":{"date":{"__isSmartRef__":true,"id":23155},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"23155":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"23156":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"23157":{"style":{"__isSmartRef__":true,"id":23158},"morph":{"__isSmartRef__":true,"id":23143},"chunkOwner":{"__isSmartRef__":true,"id":23143},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"23158":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"23159":{"morph":{"__isSmartRef__":true,"id":23143},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"23160":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"23161":{"morph":{"__isSmartRef__":true,"id":23142},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"23162":{},"23163":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":23164}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"23164":{"date":{"__isSmartRef__":true,"id":23165},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"23165":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"23166":{"buildChildNodes":{"__isSmartRef__":true,"id":23167},"getGameTree":{"__isSmartRef__":true,"id":23171},"getLevel":{"__isSmartRef__":true,"id":23175},"getLevelWeight":{"__isSmartRef__":true,"id":23179},"getWeight":{"__isSmartRef__":true,"id":23183},"setNode":{"__isSmartRef__":true,"id":23187},"setParent":{"__isSmartRef__":true,"id":23191},"getParent":{"__isSmartRef__":true,"id":23195},"deactivate":{"__isSmartRef__":true,"id":23199},"blink":{"__isSmartRef__":true,"id":23203},"ABPreturn":{"__isSmartRef__":true,"id":23207},"ABPstart":{"__isSmartRef__":true,"id":23211},"ABPcontinue":{"__isSmartRef__":true,"id":23215},"ABPshowValue":{"__isSmartRef__":true,"id":23219},"ABPgetValue":{"__isSmartRef__":true,"id":23223},"ABPhasChildNodes":{"__isSmartRef__":true,"id":23227},"onMouseDown":{"__isSmartRef__":true,"id":23231},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":23239},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":23243},"ABPmarkAsDone":{"__isSmartRef__":true,"id":23247},"ABPmarkAsActive":{"__isSmartRef__":true,"id":23251},"getStateMorph":{"__isSmartRef__":true,"id":23255},"showState":{"__isSmartRef__":true,"id":23259},"ABPfailHard":{"__isSmartRef__":true,"id":23263},"markFinalDrawWith":{"__isSmartRef__":true,"id":23267}},"23167":{"varMapping":{"__isSmartRef__":true,"id":23168},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":23169},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23168":{"this":{"__isSmartRef__":true,"id":23142}},"23169":{"timestamp":{"__isSmartRef__":true,"id":23170},"user":"sebastianwoinar","tags":[]},"23170":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"23171":{"varMapping":{"__isSmartRef__":true,"id":23172},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":23173},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23172":{"this":{"__isSmartRef__":true,"id":23142}},"23173":{"timestamp":{"__isSmartRef__":true,"id":23174},"user":"sebastianwoinar","tags":[]},"23174":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23175":{"varMapping":{"__isSmartRef__":true,"id":23176},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":23177},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23176":{"this":{"__isSmartRef__":true,"id":23142}},"23177":{"timestamp":{"__isSmartRef__":true,"id":23178},"user":"sebastianwoinar","tags":[]},"23178":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23179":{"varMapping":{"__isSmartRef__":true,"id":23180},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":23181},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23180":{"this":{"__isSmartRef__":true,"id":23142}},"23181":{"timestamp":{"__isSmartRef__":true,"id":23182},"user":"sebastianwoinar","tags":[]},"23182":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23183":{"varMapping":{"__isSmartRef__":true,"id":23184},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":23185},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23184":{"this":{"__isSmartRef__":true,"id":23142}},"23185":{"timestamp":{"__isSmartRef__":true,"id":23186},"user":"sebastianwoinar","tags":[]},"23186":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23187":{"varMapping":{"__isSmartRef__":true,"id":23188},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":23189},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23188":{"this":{"__isSmartRef__":true,"id":23142}},"23189":{"timestamp":{"__isSmartRef__":true,"id":23190},"user":"sebastianwoinar","tags":[]},"23190":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23191":{"varMapping":{"__isSmartRef__":true,"id":23192},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":23193},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23192":{"this":{"__isSmartRef__":true,"id":23142}},"23193":{"timestamp":{"__isSmartRef__":true,"id":23194},"user":"sebastianwoinar","tags":[]},"23194":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23195":{"varMapping":{"__isSmartRef__":true,"id":23196},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":23197},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23196":{"this":{"__isSmartRef__":true,"id":23142}},"23197":{"timestamp":{"__isSmartRef__":true,"id":23198},"user":"sebastianwoinar","tags":[]},"23198":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"23199":{"varMapping":{"__isSmartRef__":true,"id":23200},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":23201},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23200":{"this":{"__isSmartRef__":true,"id":23142}},"23201":{"timestamp":{"__isSmartRef__":true,"id":23202},"user":"sebastianwoinar","tags":[]},"23202":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"23203":{"varMapping":{"__isSmartRef__":true,"id":23204},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":23205},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23204":{"this":{"__isSmartRef__":true,"id":23142}},"23205":{"timestamp":{"__isSmartRef__":true,"id":23206},"user":"sebastianwoinar","tags":[]},"23206":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"23207":{"varMapping":{"__isSmartRef__":true,"id":23208},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":23209},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23208":{"this":{"__isSmartRef__":true,"id":23142}},"23209":{"timestamp":{"__isSmartRef__":true,"id":23210},"user":"sebastianwoinar","tags":[]},"23210":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"23211":{"varMapping":{"__isSmartRef__":true,"id":23212},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":23213},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23212":{"this":{"__isSmartRef__":true,"id":23142}},"23213":{"timestamp":{"__isSmartRef__":true,"id":23214},"user":"sebastianwoinar","tags":[]},"23214":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"23215":{"varMapping":{"__isSmartRef__":true,"id":23216},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":23217},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23216":{"this":{"__isSmartRef__":true,"id":23142}},"23217":{"timestamp":{"__isSmartRef__":true,"id":23218},"user":"sebastianwoinar","tags":[]},"23218":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"23219":{"varMapping":{"__isSmartRef__":true,"id":23220},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":23221},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23220":{"this":{"__isSmartRef__":true,"id":23142}},"23221":{"timestamp":{"__isSmartRef__":true,"id":23222},"user":"sebastianwoinar","tags":[]},"23222":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"23223":{"varMapping":{"__isSmartRef__":true,"id":23224},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":23225},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23224":{"this":{"__isSmartRef__":true,"id":23142}},"23225":{"timestamp":{"__isSmartRef__":true,"id":23226},"user":"sebastianwoinar","tags":[]},"23226":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"23227":{"varMapping":{"__isSmartRef__":true,"id":23228},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":23229},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23228":{"this":{"__isSmartRef__":true,"id":23142}},"23229":{"timestamp":{"__isSmartRef__":true,"id":23230},"user":"sebastianwoinar","tags":[]},"23230":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"23231":{"varMapping":{"__isSmartRef__":true,"id":23232},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":23237},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23232":{"this":{"__isSmartRef__":true,"id":23142},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":23233}},"23233":{"$super":{"__isSmartRef__":true,"id":23234}},"23234":{"varMapping":{"__isSmartRef__":true,"id":23235},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":23236},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23235":{"obj":{"__isSmartRef__":true,"id":23142},"name":"onMouseDown"},"23236":{},"23237":{"timestamp":{"__isSmartRef__":true,"id":23238},"user":"sebastianwoinar","tags":[]},"23238":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"23239":{"varMapping":{"__isSmartRef__":true,"id":23240},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":23241},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23240":{"this":{"__isSmartRef__":true,"id":23142}},"23241":{"timestamp":{"__isSmartRef__":true,"id":23242},"user":"sebastianwoinar","tags":[]},"23242":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"23243":{"varMapping":{"__isSmartRef__":true,"id":23244},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":23245},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23244":{"this":{"__isSmartRef__":true,"id":23142}},"23245":{"timestamp":{"__isSmartRef__":true,"id":23246},"user":"sebastianwoinar","tags":[]},"23246":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"23247":{"varMapping":{"__isSmartRef__":true,"id":23248},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":23249},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23248":{"this":{"__isSmartRef__":true,"id":23142}},"23249":{"timestamp":{"__isSmartRef__":true,"id":23250},"user":"sebastianwoinar","tags":[]},"23250":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"23251":{"varMapping":{"__isSmartRef__":true,"id":23252},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":23253},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23252":{"this":{"__isSmartRef__":true,"id":23142}},"23253":{"timestamp":{"__isSmartRef__":true,"id":23254},"user":"sebastianwoinar","tags":[]},"23254":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"23255":{"varMapping":{"__isSmartRef__":true,"id":23256},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":23257},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23256":{"this":{"__isSmartRef__":true,"id":23142}},"23257":{"timestamp":{"__isSmartRef__":true,"id":23258},"user":"sebastianwoinar","tags":[]},"23258":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"23259":{"varMapping":{"__isSmartRef__":true,"id":23260},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":23261},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23260":{"this":{"__isSmartRef__":true,"id":23142}},"23261":{"timestamp":{"__isSmartRef__":true,"id":23262},"user":"sebastianwoinar","tags":[]},"23262":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"23263":{"varMapping":{"__isSmartRef__":true,"id":23264},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":23265},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23264":{"this":{"__isSmartRef__":true,"id":23142}},"23265":{"timestamp":{"__isSmartRef__":true,"id":23266},"user":"sebastianwoinar","tags":[]},"23266":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"23267":{"varMapping":{"__isSmartRef__":true,"id":23268},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":23269},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23268":{"this":{"__isSmartRef__":true,"id":23142}},"23269":{"timestamp":{"__isSmartRef__":true,"id":23270},"user":"sebastianwoinar","tags":[]},"23270":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"23271":{"submorphs":[{"__isSmartRef__":true,"id":23272}],"scripts":[],"shape":{"__isSmartRef__":true,"id":23289},"id":"05A203E3-7282-4A03-B496-174C2A406E8F","eventHandler":{"__isSmartRef__":true,"id":23290},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":23291},"name":"node139","partsBinMetaInfo":{"__isSmartRef__":true,"id":23292},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5707},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":22602},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":23295},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(637.4,210.0)"},"23272":{"submorphs":[],"scripts":[],"id":"D7AFD14F-B3BC-4C70-A89C-05B2C6936351","shape":{"__isSmartRef__":true,"id":23273},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":23274},"textChunks":[{"__isSmartRef__":true,"id":23286}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":23288},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":23271},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"23273":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"23274":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":23275},{"__isSmartRef__":true,"id":23277},{"__isSmartRef__":true,"id":23279},{"__isSmartRef__":true,"id":23281},{"__isSmartRef__":true,"id":23283}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":23285},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"23275":{"date":{"__isSmartRef__":true,"id":23276},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"23276":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"23277":{"date":{"__isSmartRef__":true,"id":23278},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"23278":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"23279":{"date":{"__isSmartRef__":true,"id":23280},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"23280":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"23281":{"date":{"__isSmartRef__":true,"id":23282},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"23282":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"23283":{"date":{"__isSmartRef__":true,"id":23284},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"23284":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"23285":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"23286":{"style":{"__isSmartRef__":true,"id":23287},"morph":{"__isSmartRef__":true,"id":23272},"chunkOwner":{"__isSmartRef__":true,"id":23272},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"23287":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"23288":{"morph":{"__isSmartRef__":true,"id":23272},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"23289":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"23290":{"morph":{"__isSmartRef__":true,"id":23271},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"23291":{},"23292":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":23293}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"23293":{"date":{"__isSmartRef__":true,"id":23294},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"23294":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"23295":{"buildChildNodes":{"__isSmartRef__":true,"id":23296},"getGameTree":{"__isSmartRef__":true,"id":23300},"getLevel":{"__isSmartRef__":true,"id":23304},"getLevelWeight":{"__isSmartRef__":true,"id":23308},"getWeight":{"__isSmartRef__":true,"id":23312},"setNode":{"__isSmartRef__":true,"id":23316},"setParent":{"__isSmartRef__":true,"id":23320},"getParent":{"__isSmartRef__":true,"id":23324},"deactivate":{"__isSmartRef__":true,"id":23328},"blink":{"__isSmartRef__":true,"id":23332},"ABPreturn":{"__isSmartRef__":true,"id":23336},"ABPstart":{"__isSmartRef__":true,"id":23340},"ABPcontinue":{"__isSmartRef__":true,"id":23344},"ABPshowValue":{"__isSmartRef__":true,"id":23348},"ABPgetValue":{"__isSmartRef__":true,"id":23352},"ABPhasChildNodes":{"__isSmartRef__":true,"id":23356},"onMouseDown":{"__isSmartRef__":true,"id":23360},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":23368},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":23372},"ABPmarkAsDone":{"__isSmartRef__":true,"id":23376},"ABPmarkAsActive":{"__isSmartRef__":true,"id":23380},"getStateMorph":{"__isSmartRef__":true,"id":23384},"showState":{"__isSmartRef__":true,"id":23388},"ABPfailHard":{"__isSmartRef__":true,"id":23392},"markFinalDrawWith":{"__isSmartRef__":true,"id":23396}},"23296":{"varMapping":{"__isSmartRef__":true,"id":23297},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":23298},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23297":{"this":{"__isSmartRef__":true,"id":23271}},"23298":{"timestamp":{"__isSmartRef__":true,"id":23299},"user":"sebastianwoinar","tags":[]},"23299":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"23300":{"varMapping":{"__isSmartRef__":true,"id":23301},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":23302},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23301":{"this":{"__isSmartRef__":true,"id":23271}},"23302":{"timestamp":{"__isSmartRef__":true,"id":23303},"user":"sebastianwoinar","tags":[]},"23303":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23304":{"varMapping":{"__isSmartRef__":true,"id":23305},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":23306},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23305":{"this":{"__isSmartRef__":true,"id":23271}},"23306":{"timestamp":{"__isSmartRef__":true,"id":23307},"user":"sebastianwoinar","tags":[]},"23307":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23308":{"varMapping":{"__isSmartRef__":true,"id":23309},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":23310},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23309":{"this":{"__isSmartRef__":true,"id":23271}},"23310":{"timestamp":{"__isSmartRef__":true,"id":23311},"user":"sebastianwoinar","tags":[]},"23311":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23312":{"varMapping":{"__isSmartRef__":true,"id":23313},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":23314},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23313":{"this":{"__isSmartRef__":true,"id":23271}},"23314":{"timestamp":{"__isSmartRef__":true,"id":23315},"user":"sebastianwoinar","tags":[]},"23315":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23316":{"varMapping":{"__isSmartRef__":true,"id":23317},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":23318},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23317":{"this":{"__isSmartRef__":true,"id":23271}},"23318":{"timestamp":{"__isSmartRef__":true,"id":23319},"user":"sebastianwoinar","tags":[]},"23319":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23320":{"varMapping":{"__isSmartRef__":true,"id":23321},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":23322},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23321":{"this":{"__isSmartRef__":true,"id":23271}},"23322":{"timestamp":{"__isSmartRef__":true,"id":23323},"user":"sebastianwoinar","tags":[]},"23323":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23324":{"varMapping":{"__isSmartRef__":true,"id":23325},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":23326},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23325":{"this":{"__isSmartRef__":true,"id":23271}},"23326":{"timestamp":{"__isSmartRef__":true,"id":23327},"user":"sebastianwoinar","tags":[]},"23327":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"23328":{"varMapping":{"__isSmartRef__":true,"id":23329},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":23330},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23329":{"this":{"__isSmartRef__":true,"id":23271}},"23330":{"timestamp":{"__isSmartRef__":true,"id":23331},"user":"sebastianwoinar","tags":[]},"23331":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"23332":{"varMapping":{"__isSmartRef__":true,"id":23333},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":23334},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23333":{"this":{"__isSmartRef__":true,"id":23271}},"23334":{"timestamp":{"__isSmartRef__":true,"id":23335},"user":"sebastianwoinar","tags":[]},"23335":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"23336":{"varMapping":{"__isSmartRef__":true,"id":23337},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":23338},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23337":{"this":{"__isSmartRef__":true,"id":23271}},"23338":{"timestamp":{"__isSmartRef__":true,"id":23339},"user":"sebastianwoinar","tags":[]},"23339":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"23340":{"varMapping":{"__isSmartRef__":true,"id":23341},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":23342},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23341":{"this":{"__isSmartRef__":true,"id":23271}},"23342":{"timestamp":{"__isSmartRef__":true,"id":23343},"user":"sebastianwoinar","tags":[]},"23343":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"23344":{"varMapping":{"__isSmartRef__":true,"id":23345},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":23346},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23345":{"this":{"__isSmartRef__":true,"id":23271}},"23346":{"timestamp":{"__isSmartRef__":true,"id":23347},"user":"sebastianwoinar","tags":[]},"23347":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"23348":{"varMapping":{"__isSmartRef__":true,"id":23349},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":23350},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23349":{"this":{"__isSmartRef__":true,"id":23271}},"23350":{"timestamp":{"__isSmartRef__":true,"id":23351},"user":"sebastianwoinar","tags":[]},"23351":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"23352":{"varMapping":{"__isSmartRef__":true,"id":23353},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":23354},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23353":{"this":{"__isSmartRef__":true,"id":23271}},"23354":{"timestamp":{"__isSmartRef__":true,"id":23355},"user":"sebastianwoinar","tags":[]},"23355":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"23356":{"varMapping":{"__isSmartRef__":true,"id":23357},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":23358},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23357":{"this":{"__isSmartRef__":true,"id":23271}},"23358":{"timestamp":{"__isSmartRef__":true,"id":23359},"user":"sebastianwoinar","tags":[]},"23359":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"23360":{"varMapping":{"__isSmartRef__":true,"id":23361},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":23366},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23361":{"this":{"__isSmartRef__":true,"id":23271},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":23362}},"23362":{"$super":{"__isSmartRef__":true,"id":23363}},"23363":{"varMapping":{"__isSmartRef__":true,"id":23364},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":23365},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23364":{"obj":{"__isSmartRef__":true,"id":23271},"name":"onMouseDown"},"23365":{},"23366":{"timestamp":{"__isSmartRef__":true,"id":23367},"user":"sebastianwoinar","tags":[]},"23367":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"23368":{"varMapping":{"__isSmartRef__":true,"id":23369},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":23370},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23369":{"this":{"__isSmartRef__":true,"id":23271}},"23370":{"timestamp":{"__isSmartRef__":true,"id":23371},"user":"sebastianwoinar","tags":[]},"23371":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"23372":{"varMapping":{"__isSmartRef__":true,"id":23373},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":23374},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23373":{"this":{"__isSmartRef__":true,"id":23271}},"23374":{"timestamp":{"__isSmartRef__":true,"id":23375},"user":"sebastianwoinar","tags":[]},"23375":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"23376":{"varMapping":{"__isSmartRef__":true,"id":23377},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":23378},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23377":{"this":{"__isSmartRef__":true,"id":23271}},"23378":{"timestamp":{"__isSmartRef__":true,"id":23379},"user":"sebastianwoinar","tags":[]},"23379":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"23380":{"varMapping":{"__isSmartRef__":true,"id":23381},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":23382},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23381":{"this":{"__isSmartRef__":true,"id":23271}},"23382":{"timestamp":{"__isSmartRef__":true,"id":23383},"user":"sebastianwoinar","tags":[]},"23383":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"23384":{"varMapping":{"__isSmartRef__":true,"id":23385},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":23386},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23385":{"this":{"__isSmartRef__":true,"id":23271}},"23386":{"timestamp":{"__isSmartRef__":true,"id":23387},"user":"sebastianwoinar","tags":[]},"23387":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"23388":{"varMapping":{"__isSmartRef__":true,"id":23389},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":23390},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23389":{"this":{"__isSmartRef__":true,"id":23271}},"23390":{"timestamp":{"__isSmartRef__":true,"id":23391},"user":"sebastianwoinar","tags":[]},"23391":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"23392":{"varMapping":{"__isSmartRef__":true,"id":23393},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":23394},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23393":{"this":{"__isSmartRef__":true,"id":23271}},"23394":{"timestamp":{"__isSmartRef__":true,"id":23395},"user":"sebastianwoinar","tags":[]},"23395":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"23396":{"varMapping":{"__isSmartRef__":true,"id":23397},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":23398},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23397":{"this":{"__isSmartRef__":true,"id":23271}},"23398":{"timestamp":{"__isSmartRef__":true,"id":23399},"user":"sebastianwoinar","tags":[]},"23399":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"23400":{"submorphs":[{"__isSmartRef__":true,"id":23401}],"scripts":[],"shape":{"__isSmartRef__":true,"id":23418},"id":"A65AE10C-95D8-4AD8-B382-2E05F09EFBAE","eventHandler":{"__isSmartRef__":true,"id":23419},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":23420},"name":"node140","partsBinMetaInfo":{"__isSmartRef__":true,"id":23421},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5709},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":22602},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":23424},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(642.5,210.0)"},"23401":{"submorphs":[],"scripts":[],"id":"0D0B2182-1D2C-43F9-9640-8A6174248DD3","shape":{"__isSmartRef__":true,"id":23402},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":23403},"textChunks":[{"__isSmartRef__":true,"id":23415}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":23417},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":23400},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"23402":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"23403":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":23404},{"__isSmartRef__":true,"id":23406},{"__isSmartRef__":true,"id":23408},{"__isSmartRef__":true,"id":23410},{"__isSmartRef__":true,"id":23412}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":23414},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"23404":{"date":{"__isSmartRef__":true,"id":23405},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"23405":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"23406":{"date":{"__isSmartRef__":true,"id":23407},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"23407":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"23408":{"date":{"__isSmartRef__":true,"id":23409},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"23409":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"23410":{"date":{"__isSmartRef__":true,"id":23411},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"23411":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"23412":{"date":{"__isSmartRef__":true,"id":23413},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"23413":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"23414":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"23415":{"style":{"__isSmartRef__":true,"id":23416},"morph":{"__isSmartRef__":true,"id":23401},"chunkOwner":{"__isSmartRef__":true,"id":23401},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"23416":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"23417":{"morph":{"__isSmartRef__":true,"id":23401},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"23418":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"23419":{"morph":{"__isSmartRef__":true,"id":23400},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"23420":{},"23421":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":23422}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"23422":{"date":{"__isSmartRef__":true,"id":23423},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"23423":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"23424":{"buildChildNodes":{"__isSmartRef__":true,"id":23425},"getGameTree":{"__isSmartRef__":true,"id":23429},"getLevel":{"__isSmartRef__":true,"id":23433},"getLevelWeight":{"__isSmartRef__":true,"id":23437},"getWeight":{"__isSmartRef__":true,"id":23441},"setNode":{"__isSmartRef__":true,"id":23445},"setParent":{"__isSmartRef__":true,"id":23449},"getParent":{"__isSmartRef__":true,"id":23453},"deactivate":{"__isSmartRef__":true,"id":23457},"blink":{"__isSmartRef__":true,"id":23461},"ABPreturn":{"__isSmartRef__":true,"id":23465},"ABPstart":{"__isSmartRef__":true,"id":23469},"ABPcontinue":{"__isSmartRef__":true,"id":23473},"ABPshowValue":{"__isSmartRef__":true,"id":23477},"ABPgetValue":{"__isSmartRef__":true,"id":23481},"ABPhasChildNodes":{"__isSmartRef__":true,"id":23485},"onMouseDown":{"__isSmartRef__":true,"id":23489},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":23497},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":23501},"ABPmarkAsDone":{"__isSmartRef__":true,"id":23505},"ABPmarkAsActive":{"__isSmartRef__":true,"id":23509},"getStateMorph":{"__isSmartRef__":true,"id":23513},"showState":{"__isSmartRef__":true,"id":23517},"ABPfailHard":{"__isSmartRef__":true,"id":23521},"markFinalDrawWith":{"__isSmartRef__":true,"id":23525}},"23425":{"varMapping":{"__isSmartRef__":true,"id":23426},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":23427},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23426":{"this":{"__isSmartRef__":true,"id":23400}},"23427":{"timestamp":{"__isSmartRef__":true,"id":23428},"user":"sebastianwoinar","tags":[]},"23428":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"23429":{"varMapping":{"__isSmartRef__":true,"id":23430},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":23431},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23430":{"this":{"__isSmartRef__":true,"id":23400}},"23431":{"timestamp":{"__isSmartRef__":true,"id":23432},"user":"sebastianwoinar","tags":[]},"23432":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23433":{"varMapping":{"__isSmartRef__":true,"id":23434},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":23435},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23434":{"this":{"__isSmartRef__":true,"id":23400}},"23435":{"timestamp":{"__isSmartRef__":true,"id":23436},"user":"sebastianwoinar","tags":[]},"23436":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23437":{"varMapping":{"__isSmartRef__":true,"id":23438},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":23439},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23438":{"this":{"__isSmartRef__":true,"id":23400}},"23439":{"timestamp":{"__isSmartRef__":true,"id":23440},"user":"sebastianwoinar","tags":[]},"23440":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23441":{"varMapping":{"__isSmartRef__":true,"id":23442},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":23443},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23442":{"this":{"__isSmartRef__":true,"id":23400}},"23443":{"timestamp":{"__isSmartRef__":true,"id":23444},"user":"sebastianwoinar","tags":[]},"23444":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23445":{"varMapping":{"__isSmartRef__":true,"id":23446},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":23447},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23446":{"this":{"__isSmartRef__":true,"id":23400}},"23447":{"timestamp":{"__isSmartRef__":true,"id":23448},"user":"sebastianwoinar","tags":[]},"23448":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23449":{"varMapping":{"__isSmartRef__":true,"id":23450},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":23451},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23450":{"this":{"__isSmartRef__":true,"id":23400}},"23451":{"timestamp":{"__isSmartRef__":true,"id":23452},"user":"sebastianwoinar","tags":[]},"23452":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23453":{"varMapping":{"__isSmartRef__":true,"id":23454},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":23455},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23454":{"this":{"__isSmartRef__":true,"id":23400}},"23455":{"timestamp":{"__isSmartRef__":true,"id":23456},"user":"sebastianwoinar","tags":[]},"23456":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"23457":{"varMapping":{"__isSmartRef__":true,"id":23458},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":23459},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23458":{"this":{"__isSmartRef__":true,"id":23400}},"23459":{"timestamp":{"__isSmartRef__":true,"id":23460},"user":"sebastianwoinar","tags":[]},"23460":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"23461":{"varMapping":{"__isSmartRef__":true,"id":23462},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":23463},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23462":{"this":{"__isSmartRef__":true,"id":23400}},"23463":{"timestamp":{"__isSmartRef__":true,"id":23464},"user":"sebastianwoinar","tags":[]},"23464":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"23465":{"varMapping":{"__isSmartRef__":true,"id":23466},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":23467},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23466":{"this":{"__isSmartRef__":true,"id":23400}},"23467":{"timestamp":{"__isSmartRef__":true,"id":23468},"user":"sebastianwoinar","tags":[]},"23468":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"23469":{"varMapping":{"__isSmartRef__":true,"id":23470},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":23471},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23470":{"this":{"__isSmartRef__":true,"id":23400}},"23471":{"timestamp":{"__isSmartRef__":true,"id":23472},"user":"sebastianwoinar","tags":[]},"23472":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"23473":{"varMapping":{"__isSmartRef__":true,"id":23474},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":23475},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23474":{"this":{"__isSmartRef__":true,"id":23400}},"23475":{"timestamp":{"__isSmartRef__":true,"id":23476},"user":"sebastianwoinar","tags":[]},"23476":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"23477":{"varMapping":{"__isSmartRef__":true,"id":23478},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":23479},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23478":{"this":{"__isSmartRef__":true,"id":23400}},"23479":{"timestamp":{"__isSmartRef__":true,"id":23480},"user":"sebastianwoinar","tags":[]},"23480":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"23481":{"varMapping":{"__isSmartRef__":true,"id":23482},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":23483},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23482":{"this":{"__isSmartRef__":true,"id":23400}},"23483":{"timestamp":{"__isSmartRef__":true,"id":23484},"user":"sebastianwoinar","tags":[]},"23484":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"23485":{"varMapping":{"__isSmartRef__":true,"id":23486},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":23487},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23486":{"this":{"__isSmartRef__":true,"id":23400}},"23487":{"timestamp":{"__isSmartRef__":true,"id":23488},"user":"sebastianwoinar","tags":[]},"23488":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"23489":{"varMapping":{"__isSmartRef__":true,"id":23490},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":23495},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23490":{"this":{"__isSmartRef__":true,"id":23400},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":23491}},"23491":{"$super":{"__isSmartRef__":true,"id":23492}},"23492":{"varMapping":{"__isSmartRef__":true,"id":23493},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":23494},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23493":{"obj":{"__isSmartRef__":true,"id":23400},"name":"onMouseDown"},"23494":{},"23495":{"timestamp":{"__isSmartRef__":true,"id":23496},"user":"sebastianwoinar","tags":[]},"23496":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"23497":{"varMapping":{"__isSmartRef__":true,"id":23498},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":23499},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23498":{"this":{"__isSmartRef__":true,"id":23400}},"23499":{"timestamp":{"__isSmartRef__":true,"id":23500},"user":"sebastianwoinar","tags":[]},"23500":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"23501":{"varMapping":{"__isSmartRef__":true,"id":23502},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":23503},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23502":{"this":{"__isSmartRef__":true,"id":23400}},"23503":{"timestamp":{"__isSmartRef__":true,"id":23504},"user":"sebastianwoinar","tags":[]},"23504":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"23505":{"varMapping":{"__isSmartRef__":true,"id":23506},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":23507},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23506":{"this":{"__isSmartRef__":true,"id":23400}},"23507":{"timestamp":{"__isSmartRef__":true,"id":23508},"user":"sebastianwoinar","tags":[]},"23508":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"23509":{"varMapping":{"__isSmartRef__":true,"id":23510},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":23511},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23510":{"this":{"__isSmartRef__":true,"id":23400}},"23511":{"timestamp":{"__isSmartRef__":true,"id":23512},"user":"sebastianwoinar","tags":[]},"23512":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"23513":{"varMapping":{"__isSmartRef__":true,"id":23514},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":23515},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23514":{"this":{"__isSmartRef__":true,"id":23400}},"23515":{"timestamp":{"__isSmartRef__":true,"id":23516},"user":"sebastianwoinar","tags":[]},"23516":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"23517":{"varMapping":{"__isSmartRef__":true,"id":23518},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":23519},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23518":{"this":{"__isSmartRef__":true,"id":23400}},"23519":{"timestamp":{"__isSmartRef__":true,"id":23520},"user":"sebastianwoinar","tags":[]},"23520":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"23521":{"varMapping":{"__isSmartRef__":true,"id":23522},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":23523},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23522":{"this":{"__isSmartRef__":true,"id":23400}},"23523":{"timestamp":{"__isSmartRef__":true,"id":23524},"user":"sebastianwoinar","tags":[]},"23524":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"23525":{"varMapping":{"__isSmartRef__":true,"id":23526},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":23527},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23526":{"this":{"__isSmartRef__":true,"id":23400}},"23527":{"timestamp":{"__isSmartRef__":true,"id":23528},"user":"sebastianwoinar","tags":[]},"23528":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"23529":{"submorphs":[{"__isSmartRef__":true,"id":23530}],"scripts":[],"shape":{"__isSmartRef__":true,"id":23547},"id":"334ECF06-0851-456C-882E-7C490953EFEF","eventHandler":{"__isSmartRef__":true,"id":23548},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":23549},"name":"node141","partsBinMetaInfo":{"__isSmartRef__":true,"id":23550},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5711},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":22602},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":23553},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(647.7,210.0)"},"23530":{"submorphs":[],"scripts":[],"id":"8A1AD085-A80F-475C-A62D-B86911F0AFCC","shape":{"__isSmartRef__":true,"id":23531},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":23532},"textChunks":[{"__isSmartRef__":true,"id":23544}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":23546},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":23529},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"23531":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"23532":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":23533},{"__isSmartRef__":true,"id":23535},{"__isSmartRef__":true,"id":23537},{"__isSmartRef__":true,"id":23539},{"__isSmartRef__":true,"id":23541}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":23543},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"23533":{"date":{"__isSmartRef__":true,"id":23534},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"23534":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"23535":{"date":{"__isSmartRef__":true,"id":23536},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"23536":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"23537":{"date":{"__isSmartRef__":true,"id":23538},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"23538":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"23539":{"date":{"__isSmartRef__":true,"id":23540},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"23540":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"23541":{"date":{"__isSmartRef__":true,"id":23542},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"23542":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"23543":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"23544":{"style":{"__isSmartRef__":true,"id":23545},"morph":{"__isSmartRef__":true,"id":23530},"chunkOwner":{"__isSmartRef__":true,"id":23530},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"23545":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"23546":{"morph":{"__isSmartRef__":true,"id":23530},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"23547":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"23548":{"morph":{"__isSmartRef__":true,"id":23529},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"23549":{},"23550":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":23551}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"23551":{"date":{"__isSmartRef__":true,"id":23552},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"23552":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"23553":{"buildChildNodes":{"__isSmartRef__":true,"id":23554},"getGameTree":{"__isSmartRef__":true,"id":23558},"getLevel":{"__isSmartRef__":true,"id":23562},"getLevelWeight":{"__isSmartRef__":true,"id":23566},"getWeight":{"__isSmartRef__":true,"id":23570},"setNode":{"__isSmartRef__":true,"id":23574},"setParent":{"__isSmartRef__":true,"id":23578},"getParent":{"__isSmartRef__":true,"id":23582},"deactivate":{"__isSmartRef__":true,"id":23586},"blink":{"__isSmartRef__":true,"id":23590},"ABPreturn":{"__isSmartRef__":true,"id":23594},"ABPstart":{"__isSmartRef__":true,"id":23598},"ABPcontinue":{"__isSmartRef__":true,"id":23602},"ABPshowValue":{"__isSmartRef__":true,"id":23606},"ABPgetValue":{"__isSmartRef__":true,"id":23610},"ABPhasChildNodes":{"__isSmartRef__":true,"id":23614},"onMouseDown":{"__isSmartRef__":true,"id":23618},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":23626},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":23630},"ABPmarkAsDone":{"__isSmartRef__":true,"id":23634},"ABPmarkAsActive":{"__isSmartRef__":true,"id":23638},"getStateMorph":{"__isSmartRef__":true,"id":23642},"showState":{"__isSmartRef__":true,"id":23646},"ABPfailHard":{"__isSmartRef__":true,"id":23650},"markFinalDrawWith":{"__isSmartRef__":true,"id":23654}},"23554":{"varMapping":{"__isSmartRef__":true,"id":23555},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":23556},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23555":{"this":{"__isSmartRef__":true,"id":23529}},"23556":{"timestamp":{"__isSmartRef__":true,"id":23557},"user":"sebastianwoinar","tags":[]},"23557":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"23558":{"varMapping":{"__isSmartRef__":true,"id":23559},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":23560},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23559":{"this":{"__isSmartRef__":true,"id":23529}},"23560":{"timestamp":{"__isSmartRef__":true,"id":23561},"user":"sebastianwoinar","tags":[]},"23561":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23562":{"varMapping":{"__isSmartRef__":true,"id":23563},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":23564},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23563":{"this":{"__isSmartRef__":true,"id":23529}},"23564":{"timestamp":{"__isSmartRef__":true,"id":23565},"user":"sebastianwoinar","tags":[]},"23565":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23566":{"varMapping":{"__isSmartRef__":true,"id":23567},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":23568},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23567":{"this":{"__isSmartRef__":true,"id":23529}},"23568":{"timestamp":{"__isSmartRef__":true,"id":23569},"user":"sebastianwoinar","tags":[]},"23569":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23570":{"varMapping":{"__isSmartRef__":true,"id":23571},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":23572},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23571":{"this":{"__isSmartRef__":true,"id":23529}},"23572":{"timestamp":{"__isSmartRef__":true,"id":23573},"user":"sebastianwoinar","tags":[]},"23573":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23574":{"varMapping":{"__isSmartRef__":true,"id":23575},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":23576},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23575":{"this":{"__isSmartRef__":true,"id":23529}},"23576":{"timestamp":{"__isSmartRef__":true,"id":23577},"user":"sebastianwoinar","tags":[]},"23577":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23578":{"varMapping":{"__isSmartRef__":true,"id":23579},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":23580},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23579":{"this":{"__isSmartRef__":true,"id":23529}},"23580":{"timestamp":{"__isSmartRef__":true,"id":23581},"user":"sebastianwoinar","tags":[]},"23581":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23582":{"varMapping":{"__isSmartRef__":true,"id":23583},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":23584},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23583":{"this":{"__isSmartRef__":true,"id":23529}},"23584":{"timestamp":{"__isSmartRef__":true,"id":23585},"user":"sebastianwoinar","tags":[]},"23585":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"23586":{"varMapping":{"__isSmartRef__":true,"id":23587},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":23588},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23587":{"this":{"__isSmartRef__":true,"id":23529}},"23588":{"timestamp":{"__isSmartRef__":true,"id":23589},"user":"sebastianwoinar","tags":[]},"23589":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"23590":{"varMapping":{"__isSmartRef__":true,"id":23591},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":23592},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23591":{"this":{"__isSmartRef__":true,"id":23529}},"23592":{"timestamp":{"__isSmartRef__":true,"id":23593},"user":"sebastianwoinar","tags":[]},"23593":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"23594":{"varMapping":{"__isSmartRef__":true,"id":23595},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":23596},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23595":{"this":{"__isSmartRef__":true,"id":23529}},"23596":{"timestamp":{"__isSmartRef__":true,"id":23597},"user":"sebastianwoinar","tags":[]},"23597":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"23598":{"varMapping":{"__isSmartRef__":true,"id":23599},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":23600},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23599":{"this":{"__isSmartRef__":true,"id":23529}},"23600":{"timestamp":{"__isSmartRef__":true,"id":23601},"user":"sebastianwoinar","tags":[]},"23601":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"23602":{"varMapping":{"__isSmartRef__":true,"id":23603},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":23604},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23603":{"this":{"__isSmartRef__":true,"id":23529}},"23604":{"timestamp":{"__isSmartRef__":true,"id":23605},"user":"sebastianwoinar","tags":[]},"23605":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"23606":{"varMapping":{"__isSmartRef__":true,"id":23607},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":23608},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23607":{"this":{"__isSmartRef__":true,"id":23529}},"23608":{"timestamp":{"__isSmartRef__":true,"id":23609},"user":"sebastianwoinar","tags":[]},"23609":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"23610":{"varMapping":{"__isSmartRef__":true,"id":23611},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":23612},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23611":{"this":{"__isSmartRef__":true,"id":23529}},"23612":{"timestamp":{"__isSmartRef__":true,"id":23613},"user":"sebastianwoinar","tags":[]},"23613":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"23614":{"varMapping":{"__isSmartRef__":true,"id":23615},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":23616},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23615":{"this":{"__isSmartRef__":true,"id":23529}},"23616":{"timestamp":{"__isSmartRef__":true,"id":23617},"user":"sebastianwoinar","tags":[]},"23617":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"23618":{"varMapping":{"__isSmartRef__":true,"id":23619},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":23624},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23619":{"this":{"__isSmartRef__":true,"id":23529},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":23620}},"23620":{"$super":{"__isSmartRef__":true,"id":23621}},"23621":{"varMapping":{"__isSmartRef__":true,"id":23622},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":23623},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23622":{"obj":{"__isSmartRef__":true,"id":23529},"name":"onMouseDown"},"23623":{},"23624":{"timestamp":{"__isSmartRef__":true,"id":23625},"user":"sebastianwoinar","tags":[]},"23625":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"23626":{"varMapping":{"__isSmartRef__":true,"id":23627},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":23628},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23627":{"this":{"__isSmartRef__":true,"id":23529}},"23628":{"timestamp":{"__isSmartRef__":true,"id":23629},"user":"sebastianwoinar","tags":[]},"23629":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"23630":{"varMapping":{"__isSmartRef__":true,"id":23631},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":23632},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23631":{"this":{"__isSmartRef__":true,"id":23529}},"23632":{"timestamp":{"__isSmartRef__":true,"id":23633},"user":"sebastianwoinar","tags":[]},"23633":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"23634":{"varMapping":{"__isSmartRef__":true,"id":23635},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":23636},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23635":{"this":{"__isSmartRef__":true,"id":23529}},"23636":{"timestamp":{"__isSmartRef__":true,"id":23637},"user":"sebastianwoinar","tags":[]},"23637":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"23638":{"varMapping":{"__isSmartRef__":true,"id":23639},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":23640},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23639":{"this":{"__isSmartRef__":true,"id":23529}},"23640":{"timestamp":{"__isSmartRef__":true,"id":23641},"user":"sebastianwoinar","tags":[]},"23641":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"23642":{"varMapping":{"__isSmartRef__":true,"id":23643},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":23644},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23643":{"this":{"__isSmartRef__":true,"id":23529}},"23644":{"timestamp":{"__isSmartRef__":true,"id":23645},"user":"sebastianwoinar","tags":[]},"23645":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"23646":{"varMapping":{"__isSmartRef__":true,"id":23647},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":23648},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23647":{"this":{"__isSmartRef__":true,"id":23529}},"23648":{"timestamp":{"__isSmartRef__":true,"id":23649},"user":"sebastianwoinar","tags":[]},"23649":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"23650":{"varMapping":{"__isSmartRef__":true,"id":23651},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":23652},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23651":{"this":{"__isSmartRef__":true,"id":23529}},"23652":{"timestamp":{"__isSmartRef__":true,"id":23653},"user":"sebastianwoinar","tags":[]},"23653":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"23654":{"varMapping":{"__isSmartRef__":true,"id":23655},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":23656},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23655":{"this":{"__isSmartRef__":true,"id":23529}},"23656":{"timestamp":{"__isSmartRef__":true,"id":23657},"user":"sebastianwoinar","tags":[]},"23657":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"23658":{"submorphs":[{"__isSmartRef__":true,"id":23659}],"scripts":[],"shape":{"__isSmartRef__":true,"id":23676},"id":"42B8DF91-85D4-4C48-B084-631A986E3A05","eventHandler":{"__isSmartRef__":true,"id":23677},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":23678},"name":"node142","partsBinMetaInfo":{"__isSmartRef__":true,"id":23679},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5713},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":22602},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":23682},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(652.9,210.0)"},"23659":{"submorphs":[],"scripts":[],"id":"614EA27B-8110-4021-BB6C-6875E6FB690C","shape":{"__isSmartRef__":true,"id":23660},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":23661},"textChunks":[{"__isSmartRef__":true,"id":23673}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":23675},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":23658},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"23660":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"23661":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":23662},{"__isSmartRef__":true,"id":23664},{"__isSmartRef__":true,"id":23666},{"__isSmartRef__":true,"id":23668},{"__isSmartRef__":true,"id":23670}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":23672},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"23662":{"date":{"__isSmartRef__":true,"id":23663},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"23663":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"23664":{"date":{"__isSmartRef__":true,"id":23665},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"23665":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"23666":{"date":{"__isSmartRef__":true,"id":23667},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"23667":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"23668":{"date":{"__isSmartRef__":true,"id":23669},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"23669":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"23670":{"date":{"__isSmartRef__":true,"id":23671},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"23671":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"23672":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"23673":{"style":{"__isSmartRef__":true,"id":23674},"morph":{"__isSmartRef__":true,"id":23659},"chunkOwner":{"__isSmartRef__":true,"id":23659},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"23674":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"23675":{"morph":{"__isSmartRef__":true,"id":23659},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"23676":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"23677":{"morph":{"__isSmartRef__":true,"id":23658},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"23678":{},"23679":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":23680}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"23680":{"date":{"__isSmartRef__":true,"id":23681},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"23681":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"23682":{"buildChildNodes":{"__isSmartRef__":true,"id":23683},"getGameTree":{"__isSmartRef__":true,"id":23687},"getLevel":{"__isSmartRef__":true,"id":23691},"getLevelWeight":{"__isSmartRef__":true,"id":23695},"getWeight":{"__isSmartRef__":true,"id":23699},"setNode":{"__isSmartRef__":true,"id":23703},"setParent":{"__isSmartRef__":true,"id":23707},"getParent":{"__isSmartRef__":true,"id":23711},"deactivate":{"__isSmartRef__":true,"id":23715},"blink":{"__isSmartRef__":true,"id":23719},"ABPreturn":{"__isSmartRef__":true,"id":23723},"ABPstart":{"__isSmartRef__":true,"id":23727},"ABPcontinue":{"__isSmartRef__":true,"id":23731},"ABPshowValue":{"__isSmartRef__":true,"id":23735},"ABPgetValue":{"__isSmartRef__":true,"id":23739},"ABPhasChildNodes":{"__isSmartRef__":true,"id":23743},"onMouseDown":{"__isSmartRef__":true,"id":23747},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":23755},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":23759},"ABPmarkAsDone":{"__isSmartRef__":true,"id":23763},"ABPmarkAsActive":{"__isSmartRef__":true,"id":23767},"getStateMorph":{"__isSmartRef__":true,"id":23771},"showState":{"__isSmartRef__":true,"id":23775},"ABPfailHard":{"__isSmartRef__":true,"id":23779},"markFinalDrawWith":{"__isSmartRef__":true,"id":23783}},"23683":{"varMapping":{"__isSmartRef__":true,"id":23684},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":23685},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23684":{"this":{"__isSmartRef__":true,"id":23658}},"23685":{"timestamp":{"__isSmartRef__":true,"id":23686},"user":"sebastianwoinar","tags":[]},"23686":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"23687":{"varMapping":{"__isSmartRef__":true,"id":23688},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":23689},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23688":{"this":{"__isSmartRef__":true,"id":23658}},"23689":{"timestamp":{"__isSmartRef__":true,"id":23690},"user":"sebastianwoinar","tags":[]},"23690":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23691":{"varMapping":{"__isSmartRef__":true,"id":23692},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":23693},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23692":{"this":{"__isSmartRef__":true,"id":23658}},"23693":{"timestamp":{"__isSmartRef__":true,"id":23694},"user":"sebastianwoinar","tags":[]},"23694":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23695":{"varMapping":{"__isSmartRef__":true,"id":23696},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":23697},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23696":{"this":{"__isSmartRef__":true,"id":23658}},"23697":{"timestamp":{"__isSmartRef__":true,"id":23698},"user":"sebastianwoinar","tags":[]},"23698":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23699":{"varMapping":{"__isSmartRef__":true,"id":23700},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":23701},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23700":{"this":{"__isSmartRef__":true,"id":23658}},"23701":{"timestamp":{"__isSmartRef__":true,"id":23702},"user":"sebastianwoinar","tags":[]},"23702":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23703":{"varMapping":{"__isSmartRef__":true,"id":23704},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":23705},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23704":{"this":{"__isSmartRef__":true,"id":23658}},"23705":{"timestamp":{"__isSmartRef__":true,"id":23706},"user":"sebastianwoinar","tags":[]},"23706":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23707":{"varMapping":{"__isSmartRef__":true,"id":23708},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":23709},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23708":{"this":{"__isSmartRef__":true,"id":23658}},"23709":{"timestamp":{"__isSmartRef__":true,"id":23710},"user":"sebastianwoinar","tags":[]},"23710":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23711":{"varMapping":{"__isSmartRef__":true,"id":23712},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":23713},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23712":{"this":{"__isSmartRef__":true,"id":23658}},"23713":{"timestamp":{"__isSmartRef__":true,"id":23714},"user":"sebastianwoinar","tags":[]},"23714":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"23715":{"varMapping":{"__isSmartRef__":true,"id":23716},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":23717},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23716":{"this":{"__isSmartRef__":true,"id":23658}},"23717":{"timestamp":{"__isSmartRef__":true,"id":23718},"user":"sebastianwoinar","tags":[]},"23718":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"23719":{"varMapping":{"__isSmartRef__":true,"id":23720},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":23721},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23720":{"this":{"__isSmartRef__":true,"id":23658}},"23721":{"timestamp":{"__isSmartRef__":true,"id":23722},"user":"sebastianwoinar","tags":[]},"23722":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"23723":{"varMapping":{"__isSmartRef__":true,"id":23724},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":23725},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23724":{"this":{"__isSmartRef__":true,"id":23658}},"23725":{"timestamp":{"__isSmartRef__":true,"id":23726},"user":"sebastianwoinar","tags":[]},"23726":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"23727":{"varMapping":{"__isSmartRef__":true,"id":23728},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":23729},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23728":{"this":{"__isSmartRef__":true,"id":23658}},"23729":{"timestamp":{"__isSmartRef__":true,"id":23730},"user":"sebastianwoinar","tags":[]},"23730":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"23731":{"varMapping":{"__isSmartRef__":true,"id":23732},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":23733},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23732":{"this":{"__isSmartRef__":true,"id":23658}},"23733":{"timestamp":{"__isSmartRef__":true,"id":23734},"user":"sebastianwoinar","tags":[]},"23734":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"23735":{"varMapping":{"__isSmartRef__":true,"id":23736},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":23737},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23736":{"this":{"__isSmartRef__":true,"id":23658}},"23737":{"timestamp":{"__isSmartRef__":true,"id":23738},"user":"sebastianwoinar","tags":[]},"23738":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"23739":{"varMapping":{"__isSmartRef__":true,"id":23740},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":23741},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23740":{"this":{"__isSmartRef__":true,"id":23658}},"23741":{"timestamp":{"__isSmartRef__":true,"id":23742},"user":"sebastianwoinar","tags":[]},"23742":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"23743":{"varMapping":{"__isSmartRef__":true,"id":23744},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":23745},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23744":{"this":{"__isSmartRef__":true,"id":23658}},"23745":{"timestamp":{"__isSmartRef__":true,"id":23746},"user":"sebastianwoinar","tags":[]},"23746":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"23747":{"varMapping":{"__isSmartRef__":true,"id":23748},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":23753},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23748":{"this":{"__isSmartRef__":true,"id":23658},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":23749}},"23749":{"$super":{"__isSmartRef__":true,"id":23750}},"23750":{"varMapping":{"__isSmartRef__":true,"id":23751},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":23752},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23751":{"obj":{"__isSmartRef__":true,"id":23658},"name":"onMouseDown"},"23752":{},"23753":{"timestamp":{"__isSmartRef__":true,"id":23754},"user":"sebastianwoinar","tags":[]},"23754":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"23755":{"varMapping":{"__isSmartRef__":true,"id":23756},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":23757},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23756":{"this":{"__isSmartRef__":true,"id":23658}},"23757":{"timestamp":{"__isSmartRef__":true,"id":23758},"user":"sebastianwoinar","tags":[]},"23758":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"23759":{"varMapping":{"__isSmartRef__":true,"id":23760},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":23761},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23760":{"this":{"__isSmartRef__":true,"id":23658}},"23761":{"timestamp":{"__isSmartRef__":true,"id":23762},"user":"sebastianwoinar","tags":[]},"23762":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"23763":{"varMapping":{"__isSmartRef__":true,"id":23764},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":23765},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23764":{"this":{"__isSmartRef__":true,"id":23658}},"23765":{"timestamp":{"__isSmartRef__":true,"id":23766},"user":"sebastianwoinar","tags":[]},"23766":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"23767":{"varMapping":{"__isSmartRef__":true,"id":23768},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":23769},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23768":{"this":{"__isSmartRef__":true,"id":23658}},"23769":{"timestamp":{"__isSmartRef__":true,"id":23770},"user":"sebastianwoinar","tags":[]},"23770":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"23771":{"varMapping":{"__isSmartRef__":true,"id":23772},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":23773},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23772":{"this":{"__isSmartRef__":true,"id":23658}},"23773":{"timestamp":{"__isSmartRef__":true,"id":23774},"user":"sebastianwoinar","tags":[]},"23774":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"23775":{"varMapping":{"__isSmartRef__":true,"id":23776},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":23777},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23776":{"this":{"__isSmartRef__":true,"id":23658}},"23777":{"timestamp":{"__isSmartRef__":true,"id":23778},"user":"sebastianwoinar","tags":[]},"23778":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"23779":{"varMapping":{"__isSmartRef__":true,"id":23780},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":23781},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23780":{"this":{"__isSmartRef__":true,"id":23658}},"23781":{"timestamp":{"__isSmartRef__":true,"id":23782},"user":"sebastianwoinar","tags":[]},"23782":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"23783":{"varMapping":{"__isSmartRef__":true,"id":23784},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":23785},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23784":{"this":{"__isSmartRef__":true,"id":23658}},"23785":{"timestamp":{"__isSmartRef__":true,"id":23786},"user":"sebastianwoinar","tags":[]},"23786":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"23787":{"buildChildNodes":{"__isSmartRef__":true,"id":23788},"getGameTree":{"__isSmartRef__":true,"id":23792},"getLevel":{"__isSmartRef__":true,"id":23796},"getLevelWeight":{"__isSmartRef__":true,"id":23800},"getWeight":{"__isSmartRef__":true,"id":23804},"setNode":{"__isSmartRef__":true,"id":23808},"setParent":{"__isSmartRef__":true,"id":23812},"getParent":{"__isSmartRef__":true,"id":23816},"deactivate":{"__isSmartRef__":true,"id":23820},"blink":{"__isSmartRef__":true,"id":23824},"ABPreturn":{"__isSmartRef__":true,"id":23828},"ABPstart":{"__isSmartRef__":true,"id":23832},"ABPcontinue":{"__isSmartRef__":true,"id":23836},"ABPshowValue":{"__isSmartRef__":true,"id":23840},"ABPgetValue":{"__isSmartRef__":true,"id":23844},"ABPhasChildNodes":{"__isSmartRef__":true,"id":23848},"onMouseDown":{"__isSmartRef__":true,"id":23852},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":23860},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":23864},"ABPmarkAsDone":{"__isSmartRef__":true,"id":23868},"ABPmarkAsActive":{"__isSmartRef__":true,"id":23872},"getStateMorph":{"__isSmartRef__":true,"id":23876},"showState":{"__isSmartRef__":true,"id":23880},"ABPfailHard":{"__isSmartRef__":true,"id":23884},"markFinalDrawWith":{"__isSmartRef__":true,"id":23888}},"23788":{"varMapping":{"__isSmartRef__":true,"id":23789},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":23790},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23789":{"this":{"__isSmartRef__":true,"id":22602}},"23790":{"timestamp":{"__isSmartRef__":true,"id":23791},"user":"sebastianwoinar","tags":[]},"23791":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"23792":{"varMapping":{"__isSmartRef__":true,"id":23793},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":23794},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23793":{"this":{"__isSmartRef__":true,"id":22602}},"23794":{"timestamp":{"__isSmartRef__":true,"id":23795},"user":"sebastianwoinar","tags":[]},"23795":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23796":{"varMapping":{"__isSmartRef__":true,"id":23797},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":23798},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23797":{"this":{"__isSmartRef__":true,"id":22602}},"23798":{"timestamp":{"__isSmartRef__":true,"id":23799},"user":"sebastianwoinar","tags":[]},"23799":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23800":{"varMapping":{"__isSmartRef__":true,"id":23801},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":23802},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23801":{"this":{"__isSmartRef__":true,"id":22602}},"23802":{"timestamp":{"__isSmartRef__":true,"id":23803},"user":"sebastianwoinar","tags":[]},"23803":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23804":{"varMapping":{"__isSmartRef__":true,"id":23805},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":23806},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23805":{"this":{"__isSmartRef__":true,"id":22602}},"23806":{"timestamp":{"__isSmartRef__":true,"id":23807},"user":"sebastianwoinar","tags":[]},"23807":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23808":{"varMapping":{"__isSmartRef__":true,"id":23809},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":23810},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23809":{"this":{"__isSmartRef__":true,"id":22602}},"23810":{"timestamp":{"__isSmartRef__":true,"id":23811},"user":"sebastianwoinar","tags":[]},"23811":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23812":{"varMapping":{"__isSmartRef__":true,"id":23813},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":23814},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23813":{"this":{"__isSmartRef__":true,"id":22602}},"23814":{"timestamp":{"__isSmartRef__":true,"id":23815},"user":"sebastianwoinar","tags":[]},"23815":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23816":{"varMapping":{"__isSmartRef__":true,"id":23817},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":23818},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23817":{"this":{"__isSmartRef__":true,"id":22602}},"23818":{"timestamp":{"__isSmartRef__":true,"id":23819},"user":"sebastianwoinar","tags":[]},"23819":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"23820":{"varMapping":{"__isSmartRef__":true,"id":23821},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":23822},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23821":{"this":{"__isSmartRef__":true,"id":22602}},"23822":{"timestamp":{"__isSmartRef__":true,"id":23823},"user":"sebastianwoinar","tags":[]},"23823":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"23824":{"varMapping":{"__isSmartRef__":true,"id":23825},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":23826},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23825":{"this":{"__isSmartRef__":true,"id":22602}},"23826":{"timestamp":{"__isSmartRef__":true,"id":23827},"user":"sebastianwoinar","tags":[]},"23827":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"23828":{"varMapping":{"__isSmartRef__":true,"id":23829},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":23830},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23829":{"this":{"__isSmartRef__":true,"id":22602}},"23830":{"timestamp":{"__isSmartRef__":true,"id":23831},"user":"sebastianwoinar","tags":[]},"23831":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"23832":{"varMapping":{"__isSmartRef__":true,"id":23833},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":23834},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23833":{"this":{"__isSmartRef__":true,"id":22602}},"23834":{"timestamp":{"__isSmartRef__":true,"id":23835},"user":"sebastianwoinar","tags":[]},"23835":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"23836":{"varMapping":{"__isSmartRef__":true,"id":23837},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":23838},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23837":{"this":{"__isSmartRef__":true,"id":22602}},"23838":{"timestamp":{"__isSmartRef__":true,"id":23839},"user":"sebastianwoinar","tags":[]},"23839":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"23840":{"varMapping":{"__isSmartRef__":true,"id":23841},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":23842},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23841":{"this":{"__isSmartRef__":true,"id":22602}},"23842":{"timestamp":{"__isSmartRef__":true,"id":23843},"user":"sebastianwoinar","tags":[]},"23843":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"23844":{"varMapping":{"__isSmartRef__":true,"id":23845},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":23846},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23845":{"this":{"__isSmartRef__":true,"id":22602}},"23846":{"timestamp":{"__isSmartRef__":true,"id":23847},"user":"sebastianwoinar","tags":[]},"23847":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"23848":{"varMapping":{"__isSmartRef__":true,"id":23849},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":23850},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23849":{"this":{"__isSmartRef__":true,"id":22602}},"23850":{"timestamp":{"__isSmartRef__":true,"id":23851},"user":"sebastianwoinar","tags":[]},"23851":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"23852":{"varMapping":{"__isSmartRef__":true,"id":23853},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":23858},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23853":{"this":{"__isSmartRef__":true,"id":22602},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":23854}},"23854":{"$super":{"__isSmartRef__":true,"id":23855}},"23855":{"varMapping":{"__isSmartRef__":true,"id":23856},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":23857},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23856":{"obj":{"__isSmartRef__":true,"id":22602},"name":"onMouseDown"},"23857":{},"23858":{"timestamp":{"__isSmartRef__":true,"id":23859},"user":"sebastianwoinar","tags":[]},"23859":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"23860":{"varMapping":{"__isSmartRef__":true,"id":23861},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":23862},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23861":{"this":{"__isSmartRef__":true,"id":22602}},"23862":{"timestamp":{"__isSmartRef__":true,"id":23863},"user":"sebastianwoinar","tags":[]},"23863":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"23864":{"varMapping":{"__isSmartRef__":true,"id":23865},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":23866},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23865":{"this":{"__isSmartRef__":true,"id":22602}},"23866":{"timestamp":{"__isSmartRef__":true,"id":23867},"user":"sebastianwoinar","tags":[]},"23867":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"23868":{"varMapping":{"__isSmartRef__":true,"id":23869},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":23870},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23869":{"this":{"__isSmartRef__":true,"id":22602}},"23870":{"timestamp":{"__isSmartRef__":true,"id":23871},"user":"sebastianwoinar","tags":[]},"23871":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"23872":{"varMapping":{"__isSmartRef__":true,"id":23873},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":23874},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23873":{"this":{"__isSmartRef__":true,"id":22602}},"23874":{"timestamp":{"__isSmartRef__":true,"id":23875},"user":"sebastianwoinar","tags":[]},"23875":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"23876":{"varMapping":{"__isSmartRef__":true,"id":23877},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":23878},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23877":{"this":{"__isSmartRef__":true,"id":22602}},"23878":{"timestamp":{"__isSmartRef__":true,"id":23879},"user":"sebastianwoinar","tags":[]},"23879":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"23880":{"varMapping":{"__isSmartRef__":true,"id":23881},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":23882},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23881":{"this":{"__isSmartRef__":true,"id":22602}},"23882":{"timestamp":{"__isSmartRef__":true,"id":23883},"user":"sebastianwoinar","tags":[]},"23883":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"23884":{"varMapping":{"__isSmartRef__":true,"id":23885},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":23886},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23885":{"this":{"__isSmartRef__":true,"id":22602}},"23886":{"timestamp":{"__isSmartRef__":true,"id":23887},"user":"sebastianwoinar","tags":[]},"23887":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"23888":{"varMapping":{"__isSmartRef__":true,"id":23889},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":23890},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23889":{"this":{"__isSmartRef__":true,"id":22602}},"23890":{"timestamp":{"__isSmartRef__":true,"id":23891},"user":"sebastianwoinar","tags":[]},"23891":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"23892":{"submorphs":[{"__isSmartRef__":true,"id":23893}],"scripts":[],"shape":{"__isSmartRef__":true,"id":23910},"id":"E3E3888F-5A30-437A-812C-B0FCE5B04106","eventHandler":{"__isSmartRef__":true,"id":23911},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":23912},"name":"node143","partsBinMetaInfo":{"__isSmartRef__":true,"id":23913},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5715},"owner":{"__isSmartRef__":true,"id":5408},"childNodes":[{"__isSmartRef__":true,"id":23916},{"__isSmartRef__":true,"id":24045},{"__isSmartRef__":true,"id":24174},{"__isSmartRef__":true,"id":24303},{"__isSmartRef__":true,"id":24432},{"__isSmartRef__":true,"id":24561},{"__isSmartRef__":true,"id":24690},{"__isSmartRef__":true,"id":24819},{"__isSmartRef__":true,"id":24948}],"parent":{"__isSmartRef__":true,"id":17805},"level":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":25077},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(684.0,160.0)"},"23893":{"submorphs":[],"scripts":[],"id":"84834973-286F-4EAE-B15E-17652BB3D4D5","shape":{"__isSmartRef__":true,"id":23894},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":23895},"textChunks":[{"__isSmartRef__":true,"id":23907}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":23909},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":23892},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"23894":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"23895":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":23896},{"__isSmartRef__":true,"id":23898},{"__isSmartRef__":true,"id":23900},{"__isSmartRef__":true,"id":23902},{"__isSmartRef__":true,"id":23904}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":23906},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"23896":{"date":{"__isSmartRef__":true,"id":23897},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"23897":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"23898":{"date":{"__isSmartRef__":true,"id":23899},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"23899":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"23900":{"date":{"__isSmartRef__":true,"id":23901},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"23901":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"23902":{"date":{"__isSmartRef__":true,"id":23903},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"23903":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"23904":{"date":{"__isSmartRef__":true,"id":23905},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"23905":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"23906":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"23907":{"style":{"__isSmartRef__":true,"id":23908},"morph":{"__isSmartRef__":true,"id":23893},"chunkOwner":{"__isSmartRef__":true,"id":23893},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"23908":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"23909":{"morph":{"__isSmartRef__":true,"id":23893},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"23910":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"23911":{"morph":{"__isSmartRef__":true,"id":23892},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"23912":{},"23913":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":23914}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"23914":{"date":{"__isSmartRef__":true,"id":23915},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"23915":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"23916":{"submorphs":[{"__isSmartRef__":true,"id":23917}],"scripts":[],"shape":{"__isSmartRef__":true,"id":23934},"id":"CCD0D338-152B-4DF2-845F-43998BBE2F64","eventHandler":{"__isSmartRef__":true,"id":23935},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":23936},"name":"node144","partsBinMetaInfo":{"__isSmartRef__":true,"id":23937},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5717},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":23892},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":23940},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(658.1,210.0)"},"23917":{"submorphs":[],"scripts":[],"id":"54BD7E2E-CF49-4CEE-A1A9-0BB38A63C9BC","shape":{"__isSmartRef__":true,"id":23918},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":23919},"textChunks":[{"__isSmartRef__":true,"id":23931}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":23933},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":23916},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"23918":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"23919":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":23920},{"__isSmartRef__":true,"id":23922},{"__isSmartRef__":true,"id":23924},{"__isSmartRef__":true,"id":23926},{"__isSmartRef__":true,"id":23928}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":23930},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"23920":{"date":{"__isSmartRef__":true,"id":23921},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"23921":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"23922":{"date":{"__isSmartRef__":true,"id":23923},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"23923":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"23924":{"date":{"__isSmartRef__":true,"id":23925},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"23925":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"23926":{"date":{"__isSmartRef__":true,"id":23927},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"23927":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"23928":{"date":{"__isSmartRef__":true,"id":23929},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"23929":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"23930":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"23931":{"style":{"__isSmartRef__":true,"id":23932},"morph":{"__isSmartRef__":true,"id":23917},"chunkOwner":{"__isSmartRef__":true,"id":23917},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"23932":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"23933":{"morph":{"__isSmartRef__":true,"id":23917},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"23934":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"23935":{"morph":{"__isSmartRef__":true,"id":23916},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"23936":{},"23937":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":23938}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"23938":{"date":{"__isSmartRef__":true,"id":23939},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"23939":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"23940":{"buildChildNodes":{"__isSmartRef__":true,"id":23941},"getGameTree":{"__isSmartRef__":true,"id":23945},"getLevel":{"__isSmartRef__":true,"id":23949},"getLevelWeight":{"__isSmartRef__":true,"id":23953},"getWeight":{"__isSmartRef__":true,"id":23957},"setNode":{"__isSmartRef__":true,"id":23961},"setParent":{"__isSmartRef__":true,"id":23965},"getParent":{"__isSmartRef__":true,"id":23969},"deactivate":{"__isSmartRef__":true,"id":23973},"blink":{"__isSmartRef__":true,"id":23977},"ABPreturn":{"__isSmartRef__":true,"id":23981},"ABPstart":{"__isSmartRef__":true,"id":23985},"ABPcontinue":{"__isSmartRef__":true,"id":23989},"ABPshowValue":{"__isSmartRef__":true,"id":23993},"ABPgetValue":{"__isSmartRef__":true,"id":23997},"ABPhasChildNodes":{"__isSmartRef__":true,"id":24001},"onMouseDown":{"__isSmartRef__":true,"id":24005},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":24013},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":24017},"ABPmarkAsDone":{"__isSmartRef__":true,"id":24021},"ABPmarkAsActive":{"__isSmartRef__":true,"id":24025},"getStateMorph":{"__isSmartRef__":true,"id":24029},"showState":{"__isSmartRef__":true,"id":24033},"ABPfailHard":{"__isSmartRef__":true,"id":24037},"markFinalDrawWith":{"__isSmartRef__":true,"id":24041}},"23941":{"varMapping":{"__isSmartRef__":true,"id":23942},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":23943},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23942":{"this":{"__isSmartRef__":true,"id":23916}},"23943":{"timestamp":{"__isSmartRef__":true,"id":23944},"user":"sebastianwoinar","tags":[]},"23944":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"23945":{"varMapping":{"__isSmartRef__":true,"id":23946},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":23947},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23946":{"this":{"__isSmartRef__":true,"id":23916}},"23947":{"timestamp":{"__isSmartRef__":true,"id":23948},"user":"sebastianwoinar","tags":[]},"23948":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23949":{"varMapping":{"__isSmartRef__":true,"id":23950},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":23951},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23950":{"this":{"__isSmartRef__":true,"id":23916}},"23951":{"timestamp":{"__isSmartRef__":true,"id":23952},"user":"sebastianwoinar","tags":[]},"23952":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23953":{"varMapping":{"__isSmartRef__":true,"id":23954},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":23955},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23954":{"this":{"__isSmartRef__":true,"id":23916}},"23955":{"timestamp":{"__isSmartRef__":true,"id":23956},"user":"sebastianwoinar","tags":[]},"23956":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23957":{"varMapping":{"__isSmartRef__":true,"id":23958},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":23959},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23958":{"this":{"__isSmartRef__":true,"id":23916}},"23959":{"timestamp":{"__isSmartRef__":true,"id":23960},"user":"sebastianwoinar","tags":[]},"23960":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23961":{"varMapping":{"__isSmartRef__":true,"id":23962},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":23963},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23962":{"this":{"__isSmartRef__":true,"id":23916}},"23963":{"timestamp":{"__isSmartRef__":true,"id":23964},"user":"sebastianwoinar","tags":[]},"23964":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23965":{"varMapping":{"__isSmartRef__":true,"id":23966},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":23967},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23966":{"this":{"__isSmartRef__":true,"id":23916}},"23967":{"timestamp":{"__isSmartRef__":true,"id":23968},"user":"sebastianwoinar","tags":[]},"23968":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"23969":{"varMapping":{"__isSmartRef__":true,"id":23970},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":23971},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23970":{"this":{"__isSmartRef__":true,"id":23916}},"23971":{"timestamp":{"__isSmartRef__":true,"id":23972},"user":"sebastianwoinar","tags":[]},"23972":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"23973":{"varMapping":{"__isSmartRef__":true,"id":23974},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":23975},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23974":{"this":{"__isSmartRef__":true,"id":23916}},"23975":{"timestamp":{"__isSmartRef__":true,"id":23976},"user":"sebastianwoinar","tags":[]},"23976":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"23977":{"varMapping":{"__isSmartRef__":true,"id":23978},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":23979},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23978":{"this":{"__isSmartRef__":true,"id":23916}},"23979":{"timestamp":{"__isSmartRef__":true,"id":23980},"user":"sebastianwoinar","tags":[]},"23980":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"23981":{"varMapping":{"__isSmartRef__":true,"id":23982},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":23983},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23982":{"this":{"__isSmartRef__":true,"id":23916}},"23983":{"timestamp":{"__isSmartRef__":true,"id":23984},"user":"sebastianwoinar","tags":[]},"23984":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"23985":{"varMapping":{"__isSmartRef__":true,"id":23986},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":23987},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23986":{"this":{"__isSmartRef__":true,"id":23916}},"23987":{"timestamp":{"__isSmartRef__":true,"id":23988},"user":"sebastianwoinar","tags":[]},"23988":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"23989":{"varMapping":{"__isSmartRef__":true,"id":23990},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":23991},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23990":{"this":{"__isSmartRef__":true,"id":23916}},"23991":{"timestamp":{"__isSmartRef__":true,"id":23992},"user":"sebastianwoinar","tags":[]},"23992":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"23993":{"varMapping":{"__isSmartRef__":true,"id":23994},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":23995},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23994":{"this":{"__isSmartRef__":true,"id":23916}},"23995":{"timestamp":{"__isSmartRef__":true,"id":23996},"user":"sebastianwoinar","tags":[]},"23996":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"23997":{"varMapping":{"__isSmartRef__":true,"id":23998},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":23999},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23998":{"this":{"__isSmartRef__":true,"id":23916}},"23999":{"timestamp":{"__isSmartRef__":true,"id":24000},"user":"sebastianwoinar","tags":[]},"24000":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"24001":{"varMapping":{"__isSmartRef__":true,"id":24002},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":24003},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24002":{"this":{"__isSmartRef__":true,"id":23916}},"24003":{"timestamp":{"__isSmartRef__":true,"id":24004},"user":"sebastianwoinar","tags":[]},"24004":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"24005":{"varMapping":{"__isSmartRef__":true,"id":24006},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":24011},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24006":{"this":{"__isSmartRef__":true,"id":23916},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":24007}},"24007":{"$super":{"__isSmartRef__":true,"id":24008}},"24008":{"varMapping":{"__isSmartRef__":true,"id":24009},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":24010},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24009":{"obj":{"__isSmartRef__":true,"id":23916},"name":"onMouseDown"},"24010":{},"24011":{"timestamp":{"__isSmartRef__":true,"id":24012},"user":"sebastianwoinar","tags":[]},"24012":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"24013":{"varMapping":{"__isSmartRef__":true,"id":24014},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":24015},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24014":{"this":{"__isSmartRef__":true,"id":23916}},"24015":{"timestamp":{"__isSmartRef__":true,"id":24016},"user":"sebastianwoinar","tags":[]},"24016":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"24017":{"varMapping":{"__isSmartRef__":true,"id":24018},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":24019},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24018":{"this":{"__isSmartRef__":true,"id":23916}},"24019":{"timestamp":{"__isSmartRef__":true,"id":24020},"user":"sebastianwoinar","tags":[]},"24020":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"24021":{"varMapping":{"__isSmartRef__":true,"id":24022},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":24023},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24022":{"this":{"__isSmartRef__":true,"id":23916}},"24023":{"timestamp":{"__isSmartRef__":true,"id":24024},"user":"sebastianwoinar","tags":[]},"24024":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"24025":{"varMapping":{"__isSmartRef__":true,"id":24026},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":24027},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24026":{"this":{"__isSmartRef__":true,"id":23916}},"24027":{"timestamp":{"__isSmartRef__":true,"id":24028},"user":"sebastianwoinar","tags":[]},"24028":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"24029":{"varMapping":{"__isSmartRef__":true,"id":24030},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":24031},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24030":{"this":{"__isSmartRef__":true,"id":23916}},"24031":{"timestamp":{"__isSmartRef__":true,"id":24032},"user":"sebastianwoinar","tags":[]},"24032":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"24033":{"varMapping":{"__isSmartRef__":true,"id":24034},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":24035},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24034":{"this":{"__isSmartRef__":true,"id":23916}},"24035":{"timestamp":{"__isSmartRef__":true,"id":24036},"user":"sebastianwoinar","tags":[]},"24036":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"24037":{"varMapping":{"__isSmartRef__":true,"id":24038},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":24039},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24038":{"this":{"__isSmartRef__":true,"id":23916}},"24039":{"timestamp":{"__isSmartRef__":true,"id":24040},"user":"sebastianwoinar","tags":[]},"24040":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"24041":{"varMapping":{"__isSmartRef__":true,"id":24042},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":24043},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24042":{"this":{"__isSmartRef__":true,"id":23916}},"24043":{"timestamp":{"__isSmartRef__":true,"id":24044},"user":"sebastianwoinar","tags":[]},"24044":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"24045":{"submorphs":[{"__isSmartRef__":true,"id":24046}],"scripts":[],"shape":{"__isSmartRef__":true,"id":24063},"id":"B7CFD3D6-61B3-4188-99E4-133D2F964100","eventHandler":{"__isSmartRef__":true,"id":24064},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":24065},"name":"node145","partsBinMetaInfo":{"__isSmartRef__":true,"id":24066},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5719},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":23892},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":24069},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(663.3,210.0)"},"24046":{"submorphs":[],"scripts":[],"id":"BC0D8300-43FA-49A3-AACF-09AE71A3AA94","shape":{"__isSmartRef__":true,"id":24047},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":24048},"textChunks":[{"__isSmartRef__":true,"id":24060}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":24062},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":24045},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"24047":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"24048":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":24049},{"__isSmartRef__":true,"id":24051},{"__isSmartRef__":true,"id":24053},{"__isSmartRef__":true,"id":24055},{"__isSmartRef__":true,"id":24057}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":24059},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"24049":{"date":{"__isSmartRef__":true,"id":24050},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"24050":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"24051":{"date":{"__isSmartRef__":true,"id":24052},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"24052":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"24053":{"date":{"__isSmartRef__":true,"id":24054},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"24054":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"24055":{"date":{"__isSmartRef__":true,"id":24056},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"24056":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"24057":{"date":{"__isSmartRef__":true,"id":24058},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"24058":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"24059":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"24060":{"style":{"__isSmartRef__":true,"id":24061},"morph":{"__isSmartRef__":true,"id":24046},"chunkOwner":{"__isSmartRef__":true,"id":24046},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"24061":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"24062":{"morph":{"__isSmartRef__":true,"id":24046},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"24063":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"24064":{"morph":{"__isSmartRef__":true,"id":24045},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"24065":{},"24066":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":24067}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"24067":{"date":{"__isSmartRef__":true,"id":24068},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"24068":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"24069":{"buildChildNodes":{"__isSmartRef__":true,"id":24070},"getGameTree":{"__isSmartRef__":true,"id":24074},"getLevel":{"__isSmartRef__":true,"id":24078},"getLevelWeight":{"__isSmartRef__":true,"id":24082},"getWeight":{"__isSmartRef__":true,"id":24086},"setNode":{"__isSmartRef__":true,"id":24090},"setParent":{"__isSmartRef__":true,"id":24094},"getParent":{"__isSmartRef__":true,"id":24098},"deactivate":{"__isSmartRef__":true,"id":24102},"blink":{"__isSmartRef__":true,"id":24106},"ABPreturn":{"__isSmartRef__":true,"id":24110},"ABPstart":{"__isSmartRef__":true,"id":24114},"ABPcontinue":{"__isSmartRef__":true,"id":24118},"ABPshowValue":{"__isSmartRef__":true,"id":24122},"ABPgetValue":{"__isSmartRef__":true,"id":24126},"ABPhasChildNodes":{"__isSmartRef__":true,"id":24130},"onMouseDown":{"__isSmartRef__":true,"id":24134},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":24142},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":24146},"ABPmarkAsDone":{"__isSmartRef__":true,"id":24150},"ABPmarkAsActive":{"__isSmartRef__":true,"id":24154},"getStateMorph":{"__isSmartRef__":true,"id":24158},"showState":{"__isSmartRef__":true,"id":24162},"ABPfailHard":{"__isSmartRef__":true,"id":24166},"markFinalDrawWith":{"__isSmartRef__":true,"id":24170}},"24070":{"varMapping":{"__isSmartRef__":true,"id":24071},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":24072},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24071":{"this":{"__isSmartRef__":true,"id":24045}},"24072":{"timestamp":{"__isSmartRef__":true,"id":24073},"user":"sebastianwoinar","tags":[]},"24073":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"24074":{"varMapping":{"__isSmartRef__":true,"id":24075},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":24076},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24075":{"this":{"__isSmartRef__":true,"id":24045}},"24076":{"timestamp":{"__isSmartRef__":true,"id":24077},"user":"sebastianwoinar","tags":[]},"24077":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24078":{"varMapping":{"__isSmartRef__":true,"id":24079},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":24080},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24079":{"this":{"__isSmartRef__":true,"id":24045}},"24080":{"timestamp":{"__isSmartRef__":true,"id":24081},"user":"sebastianwoinar","tags":[]},"24081":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24082":{"varMapping":{"__isSmartRef__":true,"id":24083},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":24084},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24083":{"this":{"__isSmartRef__":true,"id":24045}},"24084":{"timestamp":{"__isSmartRef__":true,"id":24085},"user":"sebastianwoinar","tags":[]},"24085":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24086":{"varMapping":{"__isSmartRef__":true,"id":24087},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":24088},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24087":{"this":{"__isSmartRef__":true,"id":24045}},"24088":{"timestamp":{"__isSmartRef__":true,"id":24089},"user":"sebastianwoinar","tags":[]},"24089":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24090":{"varMapping":{"__isSmartRef__":true,"id":24091},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":24092},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24091":{"this":{"__isSmartRef__":true,"id":24045}},"24092":{"timestamp":{"__isSmartRef__":true,"id":24093},"user":"sebastianwoinar","tags":[]},"24093":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24094":{"varMapping":{"__isSmartRef__":true,"id":24095},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":24096},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24095":{"this":{"__isSmartRef__":true,"id":24045}},"24096":{"timestamp":{"__isSmartRef__":true,"id":24097},"user":"sebastianwoinar","tags":[]},"24097":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24098":{"varMapping":{"__isSmartRef__":true,"id":24099},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":24100},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24099":{"this":{"__isSmartRef__":true,"id":24045}},"24100":{"timestamp":{"__isSmartRef__":true,"id":24101},"user":"sebastianwoinar","tags":[]},"24101":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"24102":{"varMapping":{"__isSmartRef__":true,"id":24103},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":24104},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24103":{"this":{"__isSmartRef__":true,"id":24045}},"24104":{"timestamp":{"__isSmartRef__":true,"id":24105},"user":"sebastianwoinar","tags":[]},"24105":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"24106":{"varMapping":{"__isSmartRef__":true,"id":24107},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":24108},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24107":{"this":{"__isSmartRef__":true,"id":24045}},"24108":{"timestamp":{"__isSmartRef__":true,"id":24109},"user":"sebastianwoinar","tags":[]},"24109":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"24110":{"varMapping":{"__isSmartRef__":true,"id":24111},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":24112},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24111":{"this":{"__isSmartRef__":true,"id":24045}},"24112":{"timestamp":{"__isSmartRef__":true,"id":24113},"user":"sebastianwoinar","tags":[]},"24113":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"24114":{"varMapping":{"__isSmartRef__":true,"id":24115},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":24116},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24115":{"this":{"__isSmartRef__":true,"id":24045}},"24116":{"timestamp":{"__isSmartRef__":true,"id":24117},"user":"sebastianwoinar","tags":[]},"24117":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"24118":{"varMapping":{"__isSmartRef__":true,"id":24119},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":24120},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24119":{"this":{"__isSmartRef__":true,"id":24045}},"24120":{"timestamp":{"__isSmartRef__":true,"id":24121},"user":"sebastianwoinar","tags":[]},"24121":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"24122":{"varMapping":{"__isSmartRef__":true,"id":24123},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":24124},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24123":{"this":{"__isSmartRef__":true,"id":24045}},"24124":{"timestamp":{"__isSmartRef__":true,"id":24125},"user":"sebastianwoinar","tags":[]},"24125":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"24126":{"varMapping":{"__isSmartRef__":true,"id":24127},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":24128},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24127":{"this":{"__isSmartRef__":true,"id":24045}},"24128":{"timestamp":{"__isSmartRef__":true,"id":24129},"user":"sebastianwoinar","tags":[]},"24129":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"24130":{"varMapping":{"__isSmartRef__":true,"id":24131},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":24132},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24131":{"this":{"__isSmartRef__":true,"id":24045}},"24132":{"timestamp":{"__isSmartRef__":true,"id":24133},"user":"sebastianwoinar","tags":[]},"24133":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"24134":{"varMapping":{"__isSmartRef__":true,"id":24135},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":24140},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24135":{"this":{"__isSmartRef__":true,"id":24045},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":24136}},"24136":{"$super":{"__isSmartRef__":true,"id":24137}},"24137":{"varMapping":{"__isSmartRef__":true,"id":24138},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":24139},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24138":{"obj":{"__isSmartRef__":true,"id":24045},"name":"onMouseDown"},"24139":{},"24140":{"timestamp":{"__isSmartRef__":true,"id":24141},"user":"sebastianwoinar","tags":[]},"24141":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"24142":{"varMapping":{"__isSmartRef__":true,"id":24143},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":24144},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24143":{"this":{"__isSmartRef__":true,"id":24045}},"24144":{"timestamp":{"__isSmartRef__":true,"id":24145},"user":"sebastianwoinar","tags":[]},"24145":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"24146":{"varMapping":{"__isSmartRef__":true,"id":24147},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":24148},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24147":{"this":{"__isSmartRef__":true,"id":24045}},"24148":{"timestamp":{"__isSmartRef__":true,"id":24149},"user":"sebastianwoinar","tags":[]},"24149":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"24150":{"varMapping":{"__isSmartRef__":true,"id":24151},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":24152},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24151":{"this":{"__isSmartRef__":true,"id":24045}},"24152":{"timestamp":{"__isSmartRef__":true,"id":24153},"user":"sebastianwoinar","tags":[]},"24153":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"24154":{"varMapping":{"__isSmartRef__":true,"id":24155},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":24156},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24155":{"this":{"__isSmartRef__":true,"id":24045}},"24156":{"timestamp":{"__isSmartRef__":true,"id":24157},"user":"sebastianwoinar","tags":[]},"24157":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"24158":{"varMapping":{"__isSmartRef__":true,"id":24159},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":24160},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24159":{"this":{"__isSmartRef__":true,"id":24045}},"24160":{"timestamp":{"__isSmartRef__":true,"id":24161},"user":"sebastianwoinar","tags":[]},"24161":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"24162":{"varMapping":{"__isSmartRef__":true,"id":24163},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":24164},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24163":{"this":{"__isSmartRef__":true,"id":24045}},"24164":{"timestamp":{"__isSmartRef__":true,"id":24165},"user":"sebastianwoinar","tags":[]},"24165":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"24166":{"varMapping":{"__isSmartRef__":true,"id":24167},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":24168},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24167":{"this":{"__isSmartRef__":true,"id":24045}},"24168":{"timestamp":{"__isSmartRef__":true,"id":24169},"user":"sebastianwoinar","tags":[]},"24169":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"24170":{"varMapping":{"__isSmartRef__":true,"id":24171},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":24172},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24171":{"this":{"__isSmartRef__":true,"id":24045}},"24172":{"timestamp":{"__isSmartRef__":true,"id":24173},"user":"sebastianwoinar","tags":[]},"24173":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"24174":{"submorphs":[{"__isSmartRef__":true,"id":24175}],"scripts":[],"shape":{"__isSmartRef__":true,"id":24192},"id":"0B38C865-6704-4F48-BDE6-FA362911C578","eventHandler":{"__isSmartRef__":true,"id":24193},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":24194},"name":"node146","partsBinMetaInfo":{"__isSmartRef__":true,"id":24195},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5721},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":23892},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":24198},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(668.4,210.0)"},"24175":{"submorphs":[],"scripts":[],"id":"75EF7024-8F5F-4B9A-8952-BC6DE0E04908","shape":{"__isSmartRef__":true,"id":24176},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":24177},"textChunks":[{"__isSmartRef__":true,"id":24189}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":24191},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":24174},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"24176":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"24177":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":24178},{"__isSmartRef__":true,"id":24180},{"__isSmartRef__":true,"id":24182},{"__isSmartRef__":true,"id":24184},{"__isSmartRef__":true,"id":24186}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":24188},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"24178":{"date":{"__isSmartRef__":true,"id":24179},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"24179":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"24180":{"date":{"__isSmartRef__":true,"id":24181},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"24181":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"24182":{"date":{"__isSmartRef__":true,"id":24183},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"24183":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"24184":{"date":{"__isSmartRef__":true,"id":24185},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"24185":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"24186":{"date":{"__isSmartRef__":true,"id":24187},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"24187":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"24188":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"24189":{"style":{"__isSmartRef__":true,"id":24190},"morph":{"__isSmartRef__":true,"id":24175},"chunkOwner":{"__isSmartRef__":true,"id":24175},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"24190":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"24191":{"morph":{"__isSmartRef__":true,"id":24175},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"24192":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"24193":{"morph":{"__isSmartRef__":true,"id":24174},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"24194":{},"24195":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":24196}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"24196":{"date":{"__isSmartRef__":true,"id":24197},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"24197":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"24198":{"buildChildNodes":{"__isSmartRef__":true,"id":24199},"getGameTree":{"__isSmartRef__":true,"id":24203},"getLevel":{"__isSmartRef__":true,"id":24207},"getLevelWeight":{"__isSmartRef__":true,"id":24211},"getWeight":{"__isSmartRef__":true,"id":24215},"setNode":{"__isSmartRef__":true,"id":24219},"setParent":{"__isSmartRef__":true,"id":24223},"getParent":{"__isSmartRef__":true,"id":24227},"deactivate":{"__isSmartRef__":true,"id":24231},"blink":{"__isSmartRef__":true,"id":24235},"ABPreturn":{"__isSmartRef__":true,"id":24239},"ABPstart":{"__isSmartRef__":true,"id":24243},"ABPcontinue":{"__isSmartRef__":true,"id":24247},"ABPshowValue":{"__isSmartRef__":true,"id":24251},"ABPgetValue":{"__isSmartRef__":true,"id":24255},"ABPhasChildNodes":{"__isSmartRef__":true,"id":24259},"onMouseDown":{"__isSmartRef__":true,"id":24263},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":24271},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":24275},"ABPmarkAsDone":{"__isSmartRef__":true,"id":24279},"ABPmarkAsActive":{"__isSmartRef__":true,"id":24283},"getStateMorph":{"__isSmartRef__":true,"id":24287},"showState":{"__isSmartRef__":true,"id":24291},"ABPfailHard":{"__isSmartRef__":true,"id":24295},"markFinalDrawWith":{"__isSmartRef__":true,"id":24299}},"24199":{"varMapping":{"__isSmartRef__":true,"id":24200},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":24201},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24200":{"this":{"__isSmartRef__":true,"id":24174}},"24201":{"timestamp":{"__isSmartRef__":true,"id":24202},"user":"sebastianwoinar","tags":[]},"24202":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"24203":{"varMapping":{"__isSmartRef__":true,"id":24204},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":24205},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24204":{"this":{"__isSmartRef__":true,"id":24174}},"24205":{"timestamp":{"__isSmartRef__":true,"id":24206},"user":"sebastianwoinar","tags":[]},"24206":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24207":{"varMapping":{"__isSmartRef__":true,"id":24208},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":24209},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24208":{"this":{"__isSmartRef__":true,"id":24174}},"24209":{"timestamp":{"__isSmartRef__":true,"id":24210},"user":"sebastianwoinar","tags":[]},"24210":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24211":{"varMapping":{"__isSmartRef__":true,"id":24212},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":24213},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24212":{"this":{"__isSmartRef__":true,"id":24174}},"24213":{"timestamp":{"__isSmartRef__":true,"id":24214},"user":"sebastianwoinar","tags":[]},"24214":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24215":{"varMapping":{"__isSmartRef__":true,"id":24216},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":24217},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24216":{"this":{"__isSmartRef__":true,"id":24174}},"24217":{"timestamp":{"__isSmartRef__":true,"id":24218},"user":"sebastianwoinar","tags":[]},"24218":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24219":{"varMapping":{"__isSmartRef__":true,"id":24220},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":24221},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24220":{"this":{"__isSmartRef__":true,"id":24174}},"24221":{"timestamp":{"__isSmartRef__":true,"id":24222},"user":"sebastianwoinar","tags":[]},"24222":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24223":{"varMapping":{"__isSmartRef__":true,"id":24224},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":24225},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24224":{"this":{"__isSmartRef__":true,"id":24174}},"24225":{"timestamp":{"__isSmartRef__":true,"id":24226},"user":"sebastianwoinar","tags":[]},"24226":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24227":{"varMapping":{"__isSmartRef__":true,"id":24228},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":24229},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24228":{"this":{"__isSmartRef__":true,"id":24174}},"24229":{"timestamp":{"__isSmartRef__":true,"id":24230},"user":"sebastianwoinar","tags":[]},"24230":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"24231":{"varMapping":{"__isSmartRef__":true,"id":24232},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":24233},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24232":{"this":{"__isSmartRef__":true,"id":24174}},"24233":{"timestamp":{"__isSmartRef__":true,"id":24234},"user":"sebastianwoinar","tags":[]},"24234":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"24235":{"varMapping":{"__isSmartRef__":true,"id":24236},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":24237},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24236":{"this":{"__isSmartRef__":true,"id":24174}},"24237":{"timestamp":{"__isSmartRef__":true,"id":24238},"user":"sebastianwoinar","tags":[]},"24238":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"24239":{"varMapping":{"__isSmartRef__":true,"id":24240},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":24241},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24240":{"this":{"__isSmartRef__":true,"id":24174}},"24241":{"timestamp":{"__isSmartRef__":true,"id":24242},"user":"sebastianwoinar","tags":[]},"24242":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"24243":{"varMapping":{"__isSmartRef__":true,"id":24244},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":24245},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24244":{"this":{"__isSmartRef__":true,"id":24174}},"24245":{"timestamp":{"__isSmartRef__":true,"id":24246},"user":"sebastianwoinar","tags":[]},"24246":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"24247":{"varMapping":{"__isSmartRef__":true,"id":24248},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":24249},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24248":{"this":{"__isSmartRef__":true,"id":24174}},"24249":{"timestamp":{"__isSmartRef__":true,"id":24250},"user":"sebastianwoinar","tags":[]},"24250":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"24251":{"varMapping":{"__isSmartRef__":true,"id":24252},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":24253},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24252":{"this":{"__isSmartRef__":true,"id":24174}},"24253":{"timestamp":{"__isSmartRef__":true,"id":24254},"user":"sebastianwoinar","tags":[]},"24254":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"24255":{"varMapping":{"__isSmartRef__":true,"id":24256},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":24257},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24256":{"this":{"__isSmartRef__":true,"id":24174}},"24257":{"timestamp":{"__isSmartRef__":true,"id":24258},"user":"sebastianwoinar","tags":[]},"24258":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"24259":{"varMapping":{"__isSmartRef__":true,"id":24260},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":24261},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24260":{"this":{"__isSmartRef__":true,"id":24174}},"24261":{"timestamp":{"__isSmartRef__":true,"id":24262},"user":"sebastianwoinar","tags":[]},"24262":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"24263":{"varMapping":{"__isSmartRef__":true,"id":24264},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":24269},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24264":{"this":{"__isSmartRef__":true,"id":24174},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":24265}},"24265":{"$super":{"__isSmartRef__":true,"id":24266}},"24266":{"varMapping":{"__isSmartRef__":true,"id":24267},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":24268},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24267":{"obj":{"__isSmartRef__":true,"id":24174},"name":"onMouseDown"},"24268":{},"24269":{"timestamp":{"__isSmartRef__":true,"id":24270},"user":"sebastianwoinar","tags":[]},"24270":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"24271":{"varMapping":{"__isSmartRef__":true,"id":24272},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":24273},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24272":{"this":{"__isSmartRef__":true,"id":24174}},"24273":{"timestamp":{"__isSmartRef__":true,"id":24274},"user":"sebastianwoinar","tags":[]},"24274":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"24275":{"varMapping":{"__isSmartRef__":true,"id":24276},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":24277},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24276":{"this":{"__isSmartRef__":true,"id":24174}},"24277":{"timestamp":{"__isSmartRef__":true,"id":24278},"user":"sebastianwoinar","tags":[]},"24278":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"24279":{"varMapping":{"__isSmartRef__":true,"id":24280},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":24281},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24280":{"this":{"__isSmartRef__":true,"id":24174}},"24281":{"timestamp":{"__isSmartRef__":true,"id":24282},"user":"sebastianwoinar","tags":[]},"24282":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"24283":{"varMapping":{"__isSmartRef__":true,"id":24284},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":24285},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24284":{"this":{"__isSmartRef__":true,"id":24174}},"24285":{"timestamp":{"__isSmartRef__":true,"id":24286},"user":"sebastianwoinar","tags":[]},"24286":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"24287":{"varMapping":{"__isSmartRef__":true,"id":24288},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":24289},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24288":{"this":{"__isSmartRef__":true,"id":24174}},"24289":{"timestamp":{"__isSmartRef__":true,"id":24290},"user":"sebastianwoinar","tags":[]},"24290":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"24291":{"varMapping":{"__isSmartRef__":true,"id":24292},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":24293},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24292":{"this":{"__isSmartRef__":true,"id":24174}},"24293":{"timestamp":{"__isSmartRef__":true,"id":24294},"user":"sebastianwoinar","tags":[]},"24294":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"24295":{"varMapping":{"__isSmartRef__":true,"id":24296},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":24297},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24296":{"this":{"__isSmartRef__":true,"id":24174}},"24297":{"timestamp":{"__isSmartRef__":true,"id":24298},"user":"sebastianwoinar","tags":[]},"24298":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"24299":{"varMapping":{"__isSmartRef__":true,"id":24300},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":24301},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24300":{"this":{"__isSmartRef__":true,"id":24174}},"24301":{"timestamp":{"__isSmartRef__":true,"id":24302},"user":"sebastianwoinar","tags":[]},"24302":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"24303":{"submorphs":[{"__isSmartRef__":true,"id":24304}],"scripts":[],"shape":{"__isSmartRef__":true,"id":24321},"id":"538CA3C2-6E47-40B3-A43B-17B721E94134","eventHandler":{"__isSmartRef__":true,"id":24322},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":24323},"name":"node147","partsBinMetaInfo":{"__isSmartRef__":true,"id":24324},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5723},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":23892},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":24327},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(673.6,210.0)"},"24304":{"submorphs":[],"scripts":[],"id":"7F2CE266-5484-4B91-8E02-2ED6B3F5BF7F","shape":{"__isSmartRef__":true,"id":24305},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":24306},"textChunks":[{"__isSmartRef__":true,"id":24318}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":24320},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":24303},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"24305":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"24306":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":24307},{"__isSmartRef__":true,"id":24309},{"__isSmartRef__":true,"id":24311},{"__isSmartRef__":true,"id":24313},{"__isSmartRef__":true,"id":24315}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":24317},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"24307":{"date":{"__isSmartRef__":true,"id":24308},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"24308":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"24309":{"date":{"__isSmartRef__":true,"id":24310},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"24310":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"24311":{"date":{"__isSmartRef__":true,"id":24312},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"24312":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"24313":{"date":{"__isSmartRef__":true,"id":24314},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"24314":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"24315":{"date":{"__isSmartRef__":true,"id":24316},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"24316":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"24317":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"24318":{"style":{"__isSmartRef__":true,"id":24319},"morph":{"__isSmartRef__":true,"id":24304},"chunkOwner":{"__isSmartRef__":true,"id":24304},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"24319":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"24320":{"morph":{"__isSmartRef__":true,"id":24304},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"24321":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"24322":{"morph":{"__isSmartRef__":true,"id":24303},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"24323":{},"24324":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":24325}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"24325":{"date":{"__isSmartRef__":true,"id":24326},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"24326":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"24327":{"buildChildNodes":{"__isSmartRef__":true,"id":24328},"getGameTree":{"__isSmartRef__":true,"id":24332},"getLevel":{"__isSmartRef__":true,"id":24336},"getLevelWeight":{"__isSmartRef__":true,"id":24340},"getWeight":{"__isSmartRef__":true,"id":24344},"setNode":{"__isSmartRef__":true,"id":24348},"setParent":{"__isSmartRef__":true,"id":24352},"getParent":{"__isSmartRef__":true,"id":24356},"deactivate":{"__isSmartRef__":true,"id":24360},"blink":{"__isSmartRef__":true,"id":24364},"ABPreturn":{"__isSmartRef__":true,"id":24368},"ABPstart":{"__isSmartRef__":true,"id":24372},"ABPcontinue":{"__isSmartRef__":true,"id":24376},"ABPshowValue":{"__isSmartRef__":true,"id":24380},"ABPgetValue":{"__isSmartRef__":true,"id":24384},"ABPhasChildNodes":{"__isSmartRef__":true,"id":24388},"onMouseDown":{"__isSmartRef__":true,"id":24392},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":24400},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":24404},"ABPmarkAsDone":{"__isSmartRef__":true,"id":24408},"ABPmarkAsActive":{"__isSmartRef__":true,"id":24412},"getStateMorph":{"__isSmartRef__":true,"id":24416},"showState":{"__isSmartRef__":true,"id":24420},"ABPfailHard":{"__isSmartRef__":true,"id":24424},"markFinalDrawWith":{"__isSmartRef__":true,"id":24428}},"24328":{"varMapping":{"__isSmartRef__":true,"id":24329},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":24330},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24329":{"this":{"__isSmartRef__":true,"id":24303}},"24330":{"timestamp":{"__isSmartRef__":true,"id":24331},"user":"sebastianwoinar","tags":[]},"24331":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"24332":{"varMapping":{"__isSmartRef__":true,"id":24333},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":24334},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24333":{"this":{"__isSmartRef__":true,"id":24303}},"24334":{"timestamp":{"__isSmartRef__":true,"id":24335},"user":"sebastianwoinar","tags":[]},"24335":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24336":{"varMapping":{"__isSmartRef__":true,"id":24337},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":24338},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24337":{"this":{"__isSmartRef__":true,"id":24303}},"24338":{"timestamp":{"__isSmartRef__":true,"id":24339},"user":"sebastianwoinar","tags":[]},"24339":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24340":{"varMapping":{"__isSmartRef__":true,"id":24341},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":24342},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24341":{"this":{"__isSmartRef__":true,"id":24303}},"24342":{"timestamp":{"__isSmartRef__":true,"id":24343},"user":"sebastianwoinar","tags":[]},"24343":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24344":{"varMapping":{"__isSmartRef__":true,"id":24345},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":24346},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24345":{"this":{"__isSmartRef__":true,"id":24303}},"24346":{"timestamp":{"__isSmartRef__":true,"id":24347},"user":"sebastianwoinar","tags":[]},"24347":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24348":{"varMapping":{"__isSmartRef__":true,"id":24349},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":24350},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24349":{"this":{"__isSmartRef__":true,"id":24303}},"24350":{"timestamp":{"__isSmartRef__":true,"id":24351},"user":"sebastianwoinar","tags":[]},"24351":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24352":{"varMapping":{"__isSmartRef__":true,"id":24353},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":24354},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24353":{"this":{"__isSmartRef__":true,"id":24303}},"24354":{"timestamp":{"__isSmartRef__":true,"id":24355},"user":"sebastianwoinar","tags":[]},"24355":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24356":{"varMapping":{"__isSmartRef__":true,"id":24357},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":24358},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24357":{"this":{"__isSmartRef__":true,"id":24303}},"24358":{"timestamp":{"__isSmartRef__":true,"id":24359},"user":"sebastianwoinar","tags":[]},"24359":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"24360":{"varMapping":{"__isSmartRef__":true,"id":24361},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":24362},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24361":{"this":{"__isSmartRef__":true,"id":24303}},"24362":{"timestamp":{"__isSmartRef__":true,"id":24363},"user":"sebastianwoinar","tags":[]},"24363":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"24364":{"varMapping":{"__isSmartRef__":true,"id":24365},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":24366},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24365":{"this":{"__isSmartRef__":true,"id":24303}},"24366":{"timestamp":{"__isSmartRef__":true,"id":24367},"user":"sebastianwoinar","tags":[]},"24367":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"24368":{"varMapping":{"__isSmartRef__":true,"id":24369},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":24370},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24369":{"this":{"__isSmartRef__":true,"id":24303}},"24370":{"timestamp":{"__isSmartRef__":true,"id":24371},"user":"sebastianwoinar","tags":[]},"24371":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"24372":{"varMapping":{"__isSmartRef__":true,"id":24373},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":24374},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24373":{"this":{"__isSmartRef__":true,"id":24303}},"24374":{"timestamp":{"__isSmartRef__":true,"id":24375},"user":"sebastianwoinar","tags":[]},"24375":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"24376":{"varMapping":{"__isSmartRef__":true,"id":24377},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":24378},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24377":{"this":{"__isSmartRef__":true,"id":24303}},"24378":{"timestamp":{"__isSmartRef__":true,"id":24379},"user":"sebastianwoinar","tags":[]},"24379":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"24380":{"varMapping":{"__isSmartRef__":true,"id":24381},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":24382},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24381":{"this":{"__isSmartRef__":true,"id":24303}},"24382":{"timestamp":{"__isSmartRef__":true,"id":24383},"user":"sebastianwoinar","tags":[]},"24383":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"24384":{"varMapping":{"__isSmartRef__":true,"id":24385},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":24386},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24385":{"this":{"__isSmartRef__":true,"id":24303}},"24386":{"timestamp":{"__isSmartRef__":true,"id":24387},"user":"sebastianwoinar","tags":[]},"24387":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"24388":{"varMapping":{"__isSmartRef__":true,"id":24389},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":24390},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24389":{"this":{"__isSmartRef__":true,"id":24303}},"24390":{"timestamp":{"__isSmartRef__":true,"id":24391},"user":"sebastianwoinar","tags":[]},"24391":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"24392":{"varMapping":{"__isSmartRef__":true,"id":24393},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":24398},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24393":{"this":{"__isSmartRef__":true,"id":24303},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":24394}},"24394":{"$super":{"__isSmartRef__":true,"id":24395}},"24395":{"varMapping":{"__isSmartRef__":true,"id":24396},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":24397},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24396":{"obj":{"__isSmartRef__":true,"id":24303},"name":"onMouseDown"},"24397":{},"24398":{"timestamp":{"__isSmartRef__":true,"id":24399},"user":"sebastianwoinar","tags":[]},"24399":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"24400":{"varMapping":{"__isSmartRef__":true,"id":24401},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":24402},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24401":{"this":{"__isSmartRef__":true,"id":24303}},"24402":{"timestamp":{"__isSmartRef__":true,"id":24403},"user":"sebastianwoinar","tags":[]},"24403":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"24404":{"varMapping":{"__isSmartRef__":true,"id":24405},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":24406},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24405":{"this":{"__isSmartRef__":true,"id":24303}},"24406":{"timestamp":{"__isSmartRef__":true,"id":24407},"user":"sebastianwoinar","tags":[]},"24407":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"24408":{"varMapping":{"__isSmartRef__":true,"id":24409},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":24410},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24409":{"this":{"__isSmartRef__":true,"id":24303}},"24410":{"timestamp":{"__isSmartRef__":true,"id":24411},"user":"sebastianwoinar","tags":[]},"24411":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"24412":{"varMapping":{"__isSmartRef__":true,"id":24413},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":24414},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24413":{"this":{"__isSmartRef__":true,"id":24303}},"24414":{"timestamp":{"__isSmartRef__":true,"id":24415},"user":"sebastianwoinar","tags":[]},"24415":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"24416":{"varMapping":{"__isSmartRef__":true,"id":24417},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":24418},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24417":{"this":{"__isSmartRef__":true,"id":24303}},"24418":{"timestamp":{"__isSmartRef__":true,"id":24419},"user":"sebastianwoinar","tags":[]},"24419":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"24420":{"varMapping":{"__isSmartRef__":true,"id":24421},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":24422},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24421":{"this":{"__isSmartRef__":true,"id":24303}},"24422":{"timestamp":{"__isSmartRef__":true,"id":24423},"user":"sebastianwoinar","tags":[]},"24423":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"24424":{"varMapping":{"__isSmartRef__":true,"id":24425},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":24426},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24425":{"this":{"__isSmartRef__":true,"id":24303}},"24426":{"timestamp":{"__isSmartRef__":true,"id":24427},"user":"sebastianwoinar","tags":[]},"24427":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"24428":{"varMapping":{"__isSmartRef__":true,"id":24429},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":24430},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24429":{"this":{"__isSmartRef__":true,"id":24303}},"24430":{"timestamp":{"__isSmartRef__":true,"id":24431},"user":"sebastianwoinar","tags":[]},"24431":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"24432":{"submorphs":[{"__isSmartRef__":true,"id":24433}],"scripts":[],"shape":{"__isSmartRef__":true,"id":24450},"id":"50FBEE64-2B94-4864-BD9E-EDED616CE479","eventHandler":{"__isSmartRef__":true,"id":24451},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":24452},"name":"node148","partsBinMetaInfo":{"__isSmartRef__":true,"id":24453},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5725},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":23892},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":24456},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(678.8,210.0)"},"24433":{"submorphs":[],"scripts":[],"id":"D27DE3E0-A80C-4B60-B19E-4BBADB662E9B","shape":{"__isSmartRef__":true,"id":24434},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":24435},"textChunks":[{"__isSmartRef__":true,"id":24447}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":24449},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":24432},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"24434":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"24435":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":24436},{"__isSmartRef__":true,"id":24438},{"__isSmartRef__":true,"id":24440},{"__isSmartRef__":true,"id":24442},{"__isSmartRef__":true,"id":24444}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":24446},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"24436":{"date":{"__isSmartRef__":true,"id":24437},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"24437":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"24438":{"date":{"__isSmartRef__":true,"id":24439},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"24439":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"24440":{"date":{"__isSmartRef__":true,"id":24441},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"24441":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"24442":{"date":{"__isSmartRef__":true,"id":24443},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"24443":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"24444":{"date":{"__isSmartRef__":true,"id":24445},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"24445":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"24446":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"24447":{"style":{"__isSmartRef__":true,"id":24448},"morph":{"__isSmartRef__":true,"id":24433},"chunkOwner":{"__isSmartRef__":true,"id":24433},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"24448":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"24449":{"morph":{"__isSmartRef__":true,"id":24433},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"24450":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"24451":{"morph":{"__isSmartRef__":true,"id":24432},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"24452":{},"24453":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":24454}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"24454":{"date":{"__isSmartRef__":true,"id":24455},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"24455":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"24456":{"buildChildNodes":{"__isSmartRef__":true,"id":24457},"getGameTree":{"__isSmartRef__":true,"id":24461},"getLevel":{"__isSmartRef__":true,"id":24465},"getLevelWeight":{"__isSmartRef__":true,"id":24469},"getWeight":{"__isSmartRef__":true,"id":24473},"setNode":{"__isSmartRef__":true,"id":24477},"setParent":{"__isSmartRef__":true,"id":24481},"getParent":{"__isSmartRef__":true,"id":24485},"deactivate":{"__isSmartRef__":true,"id":24489},"blink":{"__isSmartRef__":true,"id":24493},"ABPreturn":{"__isSmartRef__":true,"id":24497},"ABPstart":{"__isSmartRef__":true,"id":24501},"ABPcontinue":{"__isSmartRef__":true,"id":24505},"ABPshowValue":{"__isSmartRef__":true,"id":24509},"ABPgetValue":{"__isSmartRef__":true,"id":24513},"ABPhasChildNodes":{"__isSmartRef__":true,"id":24517},"onMouseDown":{"__isSmartRef__":true,"id":24521},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":24529},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":24533},"ABPmarkAsDone":{"__isSmartRef__":true,"id":24537},"ABPmarkAsActive":{"__isSmartRef__":true,"id":24541},"getStateMorph":{"__isSmartRef__":true,"id":24545},"showState":{"__isSmartRef__":true,"id":24549},"ABPfailHard":{"__isSmartRef__":true,"id":24553},"markFinalDrawWith":{"__isSmartRef__":true,"id":24557}},"24457":{"varMapping":{"__isSmartRef__":true,"id":24458},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":24459},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24458":{"this":{"__isSmartRef__":true,"id":24432}},"24459":{"timestamp":{"__isSmartRef__":true,"id":24460},"user":"sebastianwoinar","tags":[]},"24460":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"24461":{"varMapping":{"__isSmartRef__":true,"id":24462},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":24463},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24462":{"this":{"__isSmartRef__":true,"id":24432}},"24463":{"timestamp":{"__isSmartRef__":true,"id":24464},"user":"sebastianwoinar","tags":[]},"24464":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24465":{"varMapping":{"__isSmartRef__":true,"id":24466},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":24467},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24466":{"this":{"__isSmartRef__":true,"id":24432}},"24467":{"timestamp":{"__isSmartRef__":true,"id":24468},"user":"sebastianwoinar","tags":[]},"24468":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24469":{"varMapping":{"__isSmartRef__":true,"id":24470},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":24471},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24470":{"this":{"__isSmartRef__":true,"id":24432}},"24471":{"timestamp":{"__isSmartRef__":true,"id":24472},"user":"sebastianwoinar","tags":[]},"24472":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24473":{"varMapping":{"__isSmartRef__":true,"id":24474},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":24475},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24474":{"this":{"__isSmartRef__":true,"id":24432}},"24475":{"timestamp":{"__isSmartRef__":true,"id":24476},"user":"sebastianwoinar","tags":[]},"24476":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24477":{"varMapping":{"__isSmartRef__":true,"id":24478},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":24479},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24478":{"this":{"__isSmartRef__":true,"id":24432}},"24479":{"timestamp":{"__isSmartRef__":true,"id":24480},"user":"sebastianwoinar","tags":[]},"24480":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24481":{"varMapping":{"__isSmartRef__":true,"id":24482},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":24483},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24482":{"this":{"__isSmartRef__":true,"id":24432}},"24483":{"timestamp":{"__isSmartRef__":true,"id":24484},"user":"sebastianwoinar","tags":[]},"24484":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24485":{"varMapping":{"__isSmartRef__":true,"id":24486},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":24487},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24486":{"this":{"__isSmartRef__":true,"id":24432}},"24487":{"timestamp":{"__isSmartRef__":true,"id":24488},"user":"sebastianwoinar","tags":[]},"24488":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"24489":{"varMapping":{"__isSmartRef__":true,"id":24490},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":24491},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24490":{"this":{"__isSmartRef__":true,"id":24432}},"24491":{"timestamp":{"__isSmartRef__":true,"id":24492},"user":"sebastianwoinar","tags":[]},"24492":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"24493":{"varMapping":{"__isSmartRef__":true,"id":24494},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":24495},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24494":{"this":{"__isSmartRef__":true,"id":24432}},"24495":{"timestamp":{"__isSmartRef__":true,"id":24496},"user":"sebastianwoinar","tags":[]},"24496":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"24497":{"varMapping":{"__isSmartRef__":true,"id":24498},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":24499},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24498":{"this":{"__isSmartRef__":true,"id":24432}},"24499":{"timestamp":{"__isSmartRef__":true,"id":24500},"user":"sebastianwoinar","tags":[]},"24500":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"24501":{"varMapping":{"__isSmartRef__":true,"id":24502},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":24503},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24502":{"this":{"__isSmartRef__":true,"id":24432}},"24503":{"timestamp":{"__isSmartRef__":true,"id":24504},"user":"sebastianwoinar","tags":[]},"24504":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"24505":{"varMapping":{"__isSmartRef__":true,"id":24506},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":24507},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24506":{"this":{"__isSmartRef__":true,"id":24432}},"24507":{"timestamp":{"__isSmartRef__":true,"id":24508},"user":"sebastianwoinar","tags":[]},"24508":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"24509":{"varMapping":{"__isSmartRef__":true,"id":24510},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":24511},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24510":{"this":{"__isSmartRef__":true,"id":24432}},"24511":{"timestamp":{"__isSmartRef__":true,"id":24512},"user":"sebastianwoinar","tags":[]},"24512":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"24513":{"varMapping":{"__isSmartRef__":true,"id":24514},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":24515},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24514":{"this":{"__isSmartRef__":true,"id":24432}},"24515":{"timestamp":{"__isSmartRef__":true,"id":24516},"user":"sebastianwoinar","tags":[]},"24516":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"24517":{"varMapping":{"__isSmartRef__":true,"id":24518},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":24519},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24518":{"this":{"__isSmartRef__":true,"id":24432}},"24519":{"timestamp":{"__isSmartRef__":true,"id":24520},"user":"sebastianwoinar","tags":[]},"24520":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"24521":{"varMapping":{"__isSmartRef__":true,"id":24522},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":24527},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24522":{"this":{"__isSmartRef__":true,"id":24432},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":24523}},"24523":{"$super":{"__isSmartRef__":true,"id":24524}},"24524":{"varMapping":{"__isSmartRef__":true,"id":24525},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":24526},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24525":{"obj":{"__isSmartRef__":true,"id":24432},"name":"onMouseDown"},"24526":{},"24527":{"timestamp":{"__isSmartRef__":true,"id":24528},"user":"sebastianwoinar","tags":[]},"24528":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"24529":{"varMapping":{"__isSmartRef__":true,"id":24530},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":24531},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24530":{"this":{"__isSmartRef__":true,"id":24432}},"24531":{"timestamp":{"__isSmartRef__":true,"id":24532},"user":"sebastianwoinar","tags":[]},"24532":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"24533":{"varMapping":{"__isSmartRef__":true,"id":24534},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":24535},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24534":{"this":{"__isSmartRef__":true,"id":24432}},"24535":{"timestamp":{"__isSmartRef__":true,"id":24536},"user":"sebastianwoinar","tags":[]},"24536":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"24537":{"varMapping":{"__isSmartRef__":true,"id":24538},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":24539},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24538":{"this":{"__isSmartRef__":true,"id":24432}},"24539":{"timestamp":{"__isSmartRef__":true,"id":24540},"user":"sebastianwoinar","tags":[]},"24540":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"24541":{"varMapping":{"__isSmartRef__":true,"id":24542},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":24543},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24542":{"this":{"__isSmartRef__":true,"id":24432}},"24543":{"timestamp":{"__isSmartRef__":true,"id":24544},"user":"sebastianwoinar","tags":[]},"24544":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"24545":{"varMapping":{"__isSmartRef__":true,"id":24546},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":24547},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24546":{"this":{"__isSmartRef__":true,"id":24432}},"24547":{"timestamp":{"__isSmartRef__":true,"id":24548},"user":"sebastianwoinar","tags":[]},"24548":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"24549":{"varMapping":{"__isSmartRef__":true,"id":24550},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":24551},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24550":{"this":{"__isSmartRef__":true,"id":24432}},"24551":{"timestamp":{"__isSmartRef__":true,"id":24552},"user":"sebastianwoinar","tags":[]},"24552":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"24553":{"varMapping":{"__isSmartRef__":true,"id":24554},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":24555},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24554":{"this":{"__isSmartRef__":true,"id":24432}},"24555":{"timestamp":{"__isSmartRef__":true,"id":24556},"user":"sebastianwoinar","tags":[]},"24556":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"24557":{"varMapping":{"__isSmartRef__":true,"id":24558},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":24559},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24558":{"this":{"__isSmartRef__":true,"id":24432}},"24559":{"timestamp":{"__isSmartRef__":true,"id":24560},"user":"sebastianwoinar","tags":[]},"24560":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"24561":{"submorphs":[{"__isSmartRef__":true,"id":24562}],"scripts":[],"shape":{"__isSmartRef__":true,"id":24579},"id":"B4F22485-5926-4951-8F94-6F9444C68FEF","eventHandler":{"__isSmartRef__":true,"id":24580},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":24581},"name":"node149","partsBinMetaInfo":{"__isSmartRef__":true,"id":24582},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5727},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":23892},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":24585},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(684.0,210.0)"},"24562":{"submorphs":[],"scripts":[],"id":"CB0DFE4B-E2DD-4FC6-A12A-D75BFF576209","shape":{"__isSmartRef__":true,"id":24563},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":24564},"textChunks":[{"__isSmartRef__":true,"id":24576}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":24578},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":24561},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"24563":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"24564":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":24565},{"__isSmartRef__":true,"id":24567},{"__isSmartRef__":true,"id":24569},{"__isSmartRef__":true,"id":24571},{"__isSmartRef__":true,"id":24573}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":24575},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"24565":{"date":{"__isSmartRef__":true,"id":24566},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"24566":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"24567":{"date":{"__isSmartRef__":true,"id":24568},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"24568":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"24569":{"date":{"__isSmartRef__":true,"id":24570},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"24570":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"24571":{"date":{"__isSmartRef__":true,"id":24572},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"24572":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"24573":{"date":{"__isSmartRef__":true,"id":24574},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"24574":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"24575":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"24576":{"style":{"__isSmartRef__":true,"id":24577},"morph":{"__isSmartRef__":true,"id":24562},"chunkOwner":{"__isSmartRef__":true,"id":24562},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"24577":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"24578":{"morph":{"__isSmartRef__":true,"id":24562},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"24579":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"24580":{"morph":{"__isSmartRef__":true,"id":24561},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"24581":{},"24582":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":24583}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"24583":{"date":{"__isSmartRef__":true,"id":24584},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"24584":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"24585":{"buildChildNodes":{"__isSmartRef__":true,"id":24586},"getGameTree":{"__isSmartRef__":true,"id":24590},"getLevel":{"__isSmartRef__":true,"id":24594},"getLevelWeight":{"__isSmartRef__":true,"id":24598},"getWeight":{"__isSmartRef__":true,"id":24602},"setNode":{"__isSmartRef__":true,"id":24606},"setParent":{"__isSmartRef__":true,"id":24610},"getParent":{"__isSmartRef__":true,"id":24614},"deactivate":{"__isSmartRef__":true,"id":24618},"blink":{"__isSmartRef__":true,"id":24622},"ABPreturn":{"__isSmartRef__":true,"id":24626},"ABPstart":{"__isSmartRef__":true,"id":24630},"ABPcontinue":{"__isSmartRef__":true,"id":24634},"ABPshowValue":{"__isSmartRef__":true,"id":24638},"ABPgetValue":{"__isSmartRef__":true,"id":24642},"ABPhasChildNodes":{"__isSmartRef__":true,"id":24646},"onMouseDown":{"__isSmartRef__":true,"id":24650},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":24658},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":24662},"ABPmarkAsDone":{"__isSmartRef__":true,"id":24666},"ABPmarkAsActive":{"__isSmartRef__":true,"id":24670},"getStateMorph":{"__isSmartRef__":true,"id":24674},"showState":{"__isSmartRef__":true,"id":24678},"ABPfailHard":{"__isSmartRef__":true,"id":24682},"markFinalDrawWith":{"__isSmartRef__":true,"id":24686}},"24586":{"varMapping":{"__isSmartRef__":true,"id":24587},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":24588},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24587":{"this":{"__isSmartRef__":true,"id":24561}},"24588":{"timestamp":{"__isSmartRef__":true,"id":24589},"user":"sebastianwoinar","tags":[]},"24589":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"24590":{"varMapping":{"__isSmartRef__":true,"id":24591},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":24592},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24591":{"this":{"__isSmartRef__":true,"id":24561}},"24592":{"timestamp":{"__isSmartRef__":true,"id":24593},"user":"sebastianwoinar","tags":[]},"24593":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24594":{"varMapping":{"__isSmartRef__":true,"id":24595},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":24596},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24595":{"this":{"__isSmartRef__":true,"id":24561}},"24596":{"timestamp":{"__isSmartRef__":true,"id":24597},"user":"sebastianwoinar","tags":[]},"24597":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24598":{"varMapping":{"__isSmartRef__":true,"id":24599},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":24600},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24599":{"this":{"__isSmartRef__":true,"id":24561}},"24600":{"timestamp":{"__isSmartRef__":true,"id":24601},"user":"sebastianwoinar","tags":[]},"24601":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24602":{"varMapping":{"__isSmartRef__":true,"id":24603},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":24604},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24603":{"this":{"__isSmartRef__":true,"id":24561}},"24604":{"timestamp":{"__isSmartRef__":true,"id":24605},"user":"sebastianwoinar","tags":[]},"24605":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24606":{"varMapping":{"__isSmartRef__":true,"id":24607},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":24608},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24607":{"this":{"__isSmartRef__":true,"id":24561}},"24608":{"timestamp":{"__isSmartRef__":true,"id":24609},"user":"sebastianwoinar","tags":[]},"24609":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24610":{"varMapping":{"__isSmartRef__":true,"id":24611},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":24612},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24611":{"this":{"__isSmartRef__":true,"id":24561}},"24612":{"timestamp":{"__isSmartRef__":true,"id":24613},"user":"sebastianwoinar","tags":[]},"24613":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24614":{"varMapping":{"__isSmartRef__":true,"id":24615},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":24616},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24615":{"this":{"__isSmartRef__":true,"id":24561}},"24616":{"timestamp":{"__isSmartRef__":true,"id":24617},"user":"sebastianwoinar","tags":[]},"24617":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"24618":{"varMapping":{"__isSmartRef__":true,"id":24619},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":24620},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24619":{"this":{"__isSmartRef__":true,"id":24561}},"24620":{"timestamp":{"__isSmartRef__":true,"id":24621},"user":"sebastianwoinar","tags":[]},"24621":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"24622":{"varMapping":{"__isSmartRef__":true,"id":24623},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":24624},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24623":{"this":{"__isSmartRef__":true,"id":24561}},"24624":{"timestamp":{"__isSmartRef__":true,"id":24625},"user":"sebastianwoinar","tags":[]},"24625":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"24626":{"varMapping":{"__isSmartRef__":true,"id":24627},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":24628},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24627":{"this":{"__isSmartRef__":true,"id":24561}},"24628":{"timestamp":{"__isSmartRef__":true,"id":24629},"user":"sebastianwoinar","tags":[]},"24629":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"24630":{"varMapping":{"__isSmartRef__":true,"id":24631},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":24632},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24631":{"this":{"__isSmartRef__":true,"id":24561}},"24632":{"timestamp":{"__isSmartRef__":true,"id":24633},"user":"sebastianwoinar","tags":[]},"24633":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"24634":{"varMapping":{"__isSmartRef__":true,"id":24635},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":24636},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24635":{"this":{"__isSmartRef__":true,"id":24561}},"24636":{"timestamp":{"__isSmartRef__":true,"id":24637},"user":"sebastianwoinar","tags":[]},"24637":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"24638":{"varMapping":{"__isSmartRef__":true,"id":24639},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":24640},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24639":{"this":{"__isSmartRef__":true,"id":24561}},"24640":{"timestamp":{"__isSmartRef__":true,"id":24641},"user":"sebastianwoinar","tags":[]},"24641":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"24642":{"varMapping":{"__isSmartRef__":true,"id":24643},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":24644},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24643":{"this":{"__isSmartRef__":true,"id":24561}},"24644":{"timestamp":{"__isSmartRef__":true,"id":24645},"user":"sebastianwoinar","tags":[]},"24645":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"24646":{"varMapping":{"__isSmartRef__":true,"id":24647},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":24648},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24647":{"this":{"__isSmartRef__":true,"id":24561}},"24648":{"timestamp":{"__isSmartRef__":true,"id":24649},"user":"sebastianwoinar","tags":[]},"24649":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"24650":{"varMapping":{"__isSmartRef__":true,"id":24651},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":24656},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24651":{"this":{"__isSmartRef__":true,"id":24561},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":24652}},"24652":{"$super":{"__isSmartRef__":true,"id":24653}},"24653":{"varMapping":{"__isSmartRef__":true,"id":24654},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":24655},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24654":{"obj":{"__isSmartRef__":true,"id":24561},"name":"onMouseDown"},"24655":{},"24656":{"timestamp":{"__isSmartRef__":true,"id":24657},"user":"sebastianwoinar","tags":[]},"24657":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"24658":{"varMapping":{"__isSmartRef__":true,"id":24659},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":24660},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24659":{"this":{"__isSmartRef__":true,"id":24561}},"24660":{"timestamp":{"__isSmartRef__":true,"id":24661},"user":"sebastianwoinar","tags":[]},"24661":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"24662":{"varMapping":{"__isSmartRef__":true,"id":24663},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":24664},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24663":{"this":{"__isSmartRef__":true,"id":24561}},"24664":{"timestamp":{"__isSmartRef__":true,"id":24665},"user":"sebastianwoinar","tags":[]},"24665":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"24666":{"varMapping":{"__isSmartRef__":true,"id":24667},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":24668},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24667":{"this":{"__isSmartRef__":true,"id":24561}},"24668":{"timestamp":{"__isSmartRef__":true,"id":24669},"user":"sebastianwoinar","tags":[]},"24669":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"24670":{"varMapping":{"__isSmartRef__":true,"id":24671},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":24672},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24671":{"this":{"__isSmartRef__":true,"id":24561}},"24672":{"timestamp":{"__isSmartRef__":true,"id":24673},"user":"sebastianwoinar","tags":[]},"24673":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"24674":{"varMapping":{"__isSmartRef__":true,"id":24675},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":24676},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24675":{"this":{"__isSmartRef__":true,"id":24561}},"24676":{"timestamp":{"__isSmartRef__":true,"id":24677},"user":"sebastianwoinar","tags":[]},"24677":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"24678":{"varMapping":{"__isSmartRef__":true,"id":24679},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":24680},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24679":{"this":{"__isSmartRef__":true,"id":24561}},"24680":{"timestamp":{"__isSmartRef__":true,"id":24681},"user":"sebastianwoinar","tags":[]},"24681":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"24682":{"varMapping":{"__isSmartRef__":true,"id":24683},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":24684},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24683":{"this":{"__isSmartRef__":true,"id":24561}},"24684":{"timestamp":{"__isSmartRef__":true,"id":24685},"user":"sebastianwoinar","tags":[]},"24685":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"24686":{"varMapping":{"__isSmartRef__":true,"id":24687},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":24688},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24687":{"this":{"__isSmartRef__":true,"id":24561}},"24688":{"timestamp":{"__isSmartRef__":true,"id":24689},"user":"sebastianwoinar","tags":[]},"24689":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"24690":{"submorphs":[{"__isSmartRef__":true,"id":24691}],"scripts":[],"shape":{"__isSmartRef__":true,"id":24708},"id":"D72A6134-0558-49FD-A6B4-71C3BF86E9E1","eventHandler":{"__isSmartRef__":true,"id":24709},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":24710},"name":"node150","partsBinMetaInfo":{"__isSmartRef__":true,"id":24711},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5729},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":23892},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":24714},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(689.1,210.0)"},"24691":{"submorphs":[],"scripts":[],"id":"29C432BD-523E-4B86-9372-1DD0D6F4147C","shape":{"__isSmartRef__":true,"id":24692},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":24693},"textChunks":[{"__isSmartRef__":true,"id":24705}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":24707},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":24690},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"24692":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"24693":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":24694},{"__isSmartRef__":true,"id":24696},{"__isSmartRef__":true,"id":24698},{"__isSmartRef__":true,"id":24700},{"__isSmartRef__":true,"id":24702}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":24704},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"24694":{"date":{"__isSmartRef__":true,"id":24695},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"24695":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"24696":{"date":{"__isSmartRef__":true,"id":24697},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"24697":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"24698":{"date":{"__isSmartRef__":true,"id":24699},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"24699":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"24700":{"date":{"__isSmartRef__":true,"id":24701},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"24701":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"24702":{"date":{"__isSmartRef__":true,"id":24703},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"24703":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"24704":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"24705":{"style":{"__isSmartRef__":true,"id":24706},"morph":{"__isSmartRef__":true,"id":24691},"chunkOwner":{"__isSmartRef__":true,"id":24691},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"24706":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"24707":{"morph":{"__isSmartRef__":true,"id":24691},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"24708":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"24709":{"morph":{"__isSmartRef__":true,"id":24690},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"24710":{},"24711":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":24712}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"24712":{"date":{"__isSmartRef__":true,"id":24713},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"24713":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"24714":{"buildChildNodes":{"__isSmartRef__":true,"id":24715},"getGameTree":{"__isSmartRef__":true,"id":24719},"getLevel":{"__isSmartRef__":true,"id":24723},"getLevelWeight":{"__isSmartRef__":true,"id":24727},"getWeight":{"__isSmartRef__":true,"id":24731},"setNode":{"__isSmartRef__":true,"id":24735},"setParent":{"__isSmartRef__":true,"id":24739},"getParent":{"__isSmartRef__":true,"id":24743},"deactivate":{"__isSmartRef__":true,"id":24747},"blink":{"__isSmartRef__":true,"id":24751},"ABPreturn":{"__isSmartRef__":true,"id":24755},"ABPstart":{"__isSmartRef__":true,"id":24759},"ABPcontinue":{"__isSmartRef__":true,"id":24763},"ABPshowValue":{"__isSmartRef__":true,"id":24767},"ABPgetValue":{"__isSmartRef__":true,"id":24771},"ABPhasChildNodes":{"__isSmartRef__":true,"id":24775},"onMouseDown":{"__isSmartRef__":true,"id":24779},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":24787},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":24791},"ABPmarkAsDone":{"__isSmartRef__":true,"id":24795},"ABPmarkAsActive":{"__isSmartRef__":true,"id":24799},"getStateMorph":{"__isSmartRef__":true,"id":24803},"showState":{"__isSmartRef__":true,"id":24807},"ABPfailHard":{"__isSmartRef__":true,"id":24811},"markFinalDrawWith":{"__isSmartRef__":true,"id":24815}},"24715":{"varMapping":{"__isSmartRef__":true,"id":24716},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":24717},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24716":{"this":{"__isSmartRef__":true,"id":24690}},"24717":{"timestamp":{"__isSmartRef__":true,"id":24718},"user":"sebastianwoinar","tags":[]},"24718":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"24719":{"varMapping":{"__isSmartRef__":true,"id":24720},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":24721},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24720":{"this":{"__isSmartRef__":true,"id":24690}},"24721":{"timestamp":{"__isSmartRef__":true,"id":24722},"user":"sebastianwoinar","tags":[]},"24722":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24723":{"varMapping":{"__isSmartRef__":true,"id":24724},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":24725},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24724":{"this":{"__isSmartRef__":true,"id":24690}},"24725":{"timestamp":{"__isSmartRef__":true,"id":24726},"user":"sebastianwoinar","tags":[]},"24726":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24727":{"varMapping":{"__isSmartRef__":true,"id":24728},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":24729},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24728":{"this":{"__isSmartRef__":true,"id":24690}},"24729":{"timestamp":{"__isSmartRef__":true,"id":24730},"user":"sebastianwoinar","tags":[]},"24730":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24731":{"varMapping":{"__isSmartRef__":true,"id":24732},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":24733},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24732":{"this":{"__isSmartRef__":true,"id":24690}},"24733":{"timestamp":{"__isSmartRef__":true,"id":24734},"user":"sebastianwoinar","tags":[]},"24734":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24735":{"varMapping":{"__isSmartRef__":true,"id":24736},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":24737},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24736":{"this":{"__isSmartRef__":true,"id":24690}},"24737":{"timestamp":{"__isSmartRef__":true,"id":24738},"user":"sebastianwoinar","tags":[]},"24738":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24739":{"varMapping":{"__isSmartRef__":true,"id":24740},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":24741},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24740":{"this":{"__isSmartRef__":true,"id":24690}},"24741":{"timestamp":{"__isSmartRef__":true,"id":24742},"user":"sebastianwoinar","tags":[]},"24742":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24743":{"varMapping":{"__isSmartRef__":true,"id":24744},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":24745},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24744":{"this":{"__isSmartRef__":true,"id":24690}},"24745":{"timestamp":{"__isSmartRef__":true,"id":24746},"user":"sebastianwoinar","tags":[]},"24746":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"24747":{"varMapping":{"__isSmartRef__":true,"id":24748},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":24749},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24748":{"this":{"__isSmartRef__":true,"id":24690}},"24749":{"timestamp":{"__isSmartRef__":true,"id":24750},"user":"sebastianwoinar","tags":[]},"24750":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"24751":{"varMapping":{"__isSmartRef__":true,"id":24752},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":24753},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24752":{"this":{"__isSmartRef__":true,"id":24690}},"24753":{"timestamp":{"__isSmartRef__":true,"id":24754},"user":"sebastianwoinar","tags":[]},"24754":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"24755":{"varMapping":{"__isSmartRef__":true,"id":24756},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":24757},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24756":{"this":{"__isSmartRef__":true,"id":24690}},"24757":{"timestamp":{"__isSmartRef__":true,"id":24758},"user":"sebastianwoinar","tags":[]},"24758":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"24759":{"varMapping":{"__isSmartRef__":true,"id":24760},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":24761},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24760":{"this":{"__isSmartRef__":true,"id":24690}},"24761":{"timestamp":{"__isSmartRef__":true,"id":24762},"user":"sebastianwoinar","tags":[]},"24762":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"24763":{"varMapping":{"__isSmartRef__":true,"id":24764},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":24765},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24764":{"this":{"__isSmartRef__":true,"id":24690}},"24765":{"timestamp":{"__isSmartRef__":true,"id":24766},"user":"sebastianwoinar","tags":[]},"24766":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"24767":{"varMapping":{"__isSmartRef__":true,"id":24768},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":24769},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24768":{"this":{"__isSmartRef__":true,"id":24690}},"24769":{"timestamp":{"__isSmartRef__":true,"id":24770},"user":"sebastianwoinar","tags":[]},"24770":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"24771":{"varMapping":{"__isSmartRef__":true,"id":24772},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":24773},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24772":{"this":{"__isSmartRef__":true,"id":24690}},"24773":{"timestamp":{"__isSmartRef__":true,"id":24774},"user":"sebastianwoinar","tags":[]},"24774":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"24775":{"varMapping":{"__isSmartRef__":true,"id":24776},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":24777},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24776":{"this":{"__isSmartRef__":true,"id":24690}},"24777":{"timestamp":{"__isSmartRef__":true,"id":24778},"user":"sebastianwoinar","tags":[]},"24778":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"24779":{"varMapping":{"__isSmartRef__":true,"id":24780},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":24785},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24780":{"this":{"__isSmartRef__":true,"id":24690},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":24781}},"24781":{"$super":{"__isSmartRef__":true,"id":24782}},"24782":{"varMapping":{"__isSmartRef__":true,"id":24783},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":24784},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24783":{"obj":{"__isSmartRef__":true,"id":24690},"name":"onMouseDown"},"24784":{},"24785":{"timestamp":{"__isSmartRef__":true,"id":24786},"user":"sebastianwoinar","tags":[]},"24786":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"24787":{"varMapping":{"__isSmartRef__":true,"id":24788},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":24789},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24788":{"this":{"__isSmartRef__":true,"id":24690}},"24789":{"timestamp":{"__isSmartRef__":true,"id":24790},"user":"sebastianwoinar","tags":[]},"24790":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"24791":{"varMapping":{"__isSmartRef__":true,"id":24792},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":24793},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24792":{"this":{"__isSmartRef__":true,"id":24690}},"24793":{"timestamp":{"__isSmartRef__":true,"id":24794},"user":"sebastianwoinar","tags":[]},"24794":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"24795":{"varMapping":{"__isSmartRef__":true,"id":24796},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":24797},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24796":{"this":{"__isSmartRef__":true,"id":24690}},"24797":{"timestamp":{"__isSmartRef__":true,"id":24798},"user":"sebastianwoinar","tags":[]},"24798":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"24799":{"varMapping":{"__isSmartRef__":true,"id":24800},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":24801},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24800":{"this":{"__isSmartRef__":true,"id":24690}},"24801":{"timestamp":{"__isSmartRef__":true,"id":24802},"user":"sebastianwoinar","tags":[]},"24802":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"24803":{"varMapping":{"__isSmartRef__":true,"id":24804},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":24805},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24804":{"this":{"__isSmartRef__":true,"id":24690}},"24805":{"timestamp":{"__isSmartRef__":true,"id":24806},"user":"sebastianwoinar","tags":[]},"24806":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"24807":{"varMapping":{"__isSmartRef__":true,"id":24808},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":24809},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24808":{"this":{"__isSmartRef__":true,"id":24690}},"24809":{"timestamp":{"__isSmartRef__":true,"id":24810},"user":"sebastianwoinar","tags":[]},"24810":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"24811":{"varMapping":{"__isSmartRef__":true,"id":24812},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":24813},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24812":{"this":{"__isSmartRef__":true,"id":24690}},"24813":{"timestamp":{"__isSmartRef__":true,"id":24814},"user":"sebastianwoinar","tags":[]},"24814":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"24815":{"varMapping":{"__isSmartRef__":true,"id":24816},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":24817},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24816":{"this":{"__isSmartRef__":true,"id":24690}},"24817":{"timestamp":{"__isSmartRef__":true,"id":24818},"user":"sebastianwoinar","tags":[]},"24818":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"24819":{"submorphs":[{"__isSmartRef__":true,"id":24820}],"scripts":[],"shape":{"__isSmartRef__":true,"id":24837},"id":"AF06B6BC-8CDC-4358-8F13-22496B8163C1","eventHandler":{"__isSmartRef__":true,"id":24838},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":24839},"name":"node151","partsBinMetaInfo":{"__isSmartRef__":true,"id":24840},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5731},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":23892},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":24843},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(694.3,210.0)"},"24820":{"submorphs":[],"scripts":[],"id":"DB900B8B-8987-4307-B13F-C7EB1F25040A","shape":{"__isSmartRef__":true,"id":24821},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":24822},"textChunks":[{"__isSmartRef__":true,"id":24834}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":24836},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":24819},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"24821":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"24822":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":24823},{"__isSmartRef__":true,"id":24825},{"__isSmartRef__":true,"id":24827},{"__isSmartRef__":true,"id":24829},{"__isSmartRef__":true,"id":24831}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":24833},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"24823":{"date":{"__isSmartRef__":true,"id":24824},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"24824":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"24825":{"date":{"__isSmartRef__":true,"id":24826},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"24826":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"24827":{"date":{"__isSmartRef__":true,"id":24828},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"24828":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"24829":{"date":{"__isSmartRef__":true,"id":24830},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"24830":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"24831":{"date":{"__isSmartRef__":true,"id":24832},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"24832":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"24833":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"24834":{"style":{"__isSmartRef__":true,"id":24835},"morph":{"__isSmartRef__":true,"id":24820},"chunkOwner":{"__isSmartRef__":true,"id":24820},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"24835":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"24836":{"morph":{"__isSmartRef__":true,"id":24820},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"24837":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"24838":{"morph":{"__isSmartRef__":true,"id":24819},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"24839":{},"24840":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":24841}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"24841":{"date":{"__isSmartRef__":true,"id":24842},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"24842":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"24843":{"buildChildNodes":{"__isSmartRef__":true,"id":24844},"getGameTree":{"__isSmartRef__":true,"id":24848},"getLevel":{"__isSmartRef__":true,"id":24852},"getLevelWeight":{"__isSmartRef__":true,"id":24856},"getWeight":{"__isSmartRef__":true,"id":24860},"setNode":{"__isSmartRef__":true,"id":24864},"setParent":{"__isSmartRef__":true,"id":24868},"getParent":{"__isSmartRef__":true,"id":24872},"deactivate":{"__isSmartRef__":true,"id":24876},"blink":{"__isSmartRef__":true,"id":24880},"ABPreturn":{"__isSmartRef__":true,"id":24884},"ABPstart":{"__isSmartRef__":true,"id":24888},"ABPcontinue":{"__isSmartRef__":true,"id":24892},"ABPshowValue":{"__isSmartRef__":true,"id":24896},"ABPgetValue":{"__isSmartRef__":true,"id":24900},"ABPhasChildNodes":{"__isSmartRef__":true,"id":24904},"onMouseDown":{"__isSmartRef__":true,"id":24908},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":24916},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":24920},"ABPmarkAsDone":{"__isSmartRef__":true,"id":24924},"ABPmarkAsActive":{"__isSmartRef__":true,"id":24928},"getStateMorph":{"__isSmartRef__":true,"id":24932},"showState":{"__isSmartRef__":true,"id":24936},"ABPfailHard":{"__isSmartRef__":true,"id":24940},"markFinalDrawWith":{"__isSmartRef__":true,"id":24944}},"24844":{"varMapping":{"__isSmartRef__":true,"id":24845},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":24846},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24845":{"this":{"__isSmartRef__":true,"id":24819}},"24846":{"timestamp":{"__isSmartRef__":true,"id":24847},"user":"sebastianwoinar","tags":[]},"24847":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"24848":{"varMapping":{"__isSmartRef__":true,"id":24849},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":24850},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24849":{"this":{"__isSmartRef__":true,"id":24819}},"24850":{"timestamp":{"__isSmartRef__":true,"id":24851},"user":"sebastianwoinar","tags":[]},"24851":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24852":{"varMapping":{"__isSmartRef__":true,"id":24853},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":24854},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24853":{"this":{"__isSmartRef__":true,"id":24819}},"24854":{"timestamp":{"__isSmartRef__":true,"id":24855},"user":"sebastianwoinar","tags":[]},"24855":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24856":{"varMapping":{"__isSmartRef__":true,"id":24857},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":24858},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24857":{"this":{"__isSmartRef__":true,"id":24819}},"24858":{"timestamp":{"__isSmartRef__":true,"id":24859},"user":"sebastianwoinar","tags":[]},"24859":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24860":{"varMapping":{"__isSmartRef__":true,"id":24861},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":24862},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24861":{"this":{"__isSmartRef__":true,"id":24819}},"24862":{"timestamp":{"__isSmartRef__":true,"id":24863},"user":"sebastianwoinar","tags":[]},"24863":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24864":{"varMapping":{"__isSmartRef__":true,"id":24865},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":24866},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24865":{"this":{"__isSmartRef__":true,"id":24819}},"24866":{"timestamp":{"__isSmartRef__":true,"id":24867},"user":"sebastianwoinar","tags":[]},"24867":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24868":{"varMapping":{"__isSmartRef__":true,"id":24869},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":24870},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24869":{"this":{"__isSmartRef__":true,"id":24819}},"24870":{"timestamp":{"__isSmartRef__":true,"id":24871},"user":"sebastianwoinar","tags":[]},"24871":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24872":{"varMapping":{"__isSmartRef__":true,"id":24873},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":24874},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24873":{"this":{"__isSmartRef__":true,"id":24819}},"24874":{"timestamp":{"__isSmartRef__":true,"id":24875},"user":"sebastianwoinar","tags":[]},"24875":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"24876":{"varMapping":{"__isSmartRef__":true,"id":24877},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":24878},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24877":{"this":{"__isSmartRef__":true,"id":24819}},"24878":{"timestamp":{"__isSmartRef__":true,"id":24879},"user":"sebastianwoinar","tags":[]},"24879":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"24880":{"varMapping":{"__isSmartRef__":true,"id":24881},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":24882},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24881":{"this":{"__isSmartRef__":true,"id":24819}},"24882":{"timestamp":{"__isSmartRef__":true,"id":24883},"user":"sebastianwoinar","tags":[]},"24883":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"24884":{"varMapping":{"__isSmartRef__":true,"id":24885},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":24886},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24885":{"this":{"__isSmartRef__":true,"id":24819}},"24886":{"timestamp":{"__isSmartRef__":true,"id":24887},"user":"sebastianwoinar","tags":[]},"24887":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"24888":{"varMapping":{"__isSmartRef__":true,"id":24889},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":24890},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24889":{"this":{"__isSmartRef__":true,"id":24819}},"24890":{"timestamp":{"__isSmartRef__":true,"id":24891},"user":"sebastianwoinar","tags":[]},"24891":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"24892":{"varMapping":{"__isSmartRef__":true,"id":24893},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":24894},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24893":{"this":{"__isSmartRef__":true,"id":24819}},"24894":{"timestamp":{"__isSmartRef__":true,"id":24895},"user":"sebastianwoinar","tags":[]},"24895":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"24896":{"varMapping":{"__isSmartRef__":true,"id":24897},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":24898},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24897":{"this":{"__isSmartRef__":true,"id":24819}},"24898":{"timestamp":{"__isSmartRef__":true,"id":24899},"user":"sebastianwoinar","tags":[]},"24899":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"24900":{"varMapping":{"__isSmartRef__":true,"id":24901},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":24902},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24901":{"this":{"__isSmartRef__":true,"id":24819}},"24902":{"timestamp":{"__isSmartRef__":true,"id":24903},"user":"sebastianwoinar","tags":[]},"24903":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"24904":{"varMapping":{"__isSmartRef__":true,"id":24905},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":24906},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24905":{"this":{"__isSmartRef__":true,"id":24819}},"24906":{"timestamp":{"__isSmartRef__":true,"id":24907},"user":"sebastianwoinar","tags":[]},"24907":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"24908":{"varMapping":{"__isSmartRef__":true,"id":24909},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":24914},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24909":{"this":{"__isSmartRef__":true,"id":24819},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":24910}},"24910":{"$super":{"__isSmartRef__":true,"id":24911}},"24911":{"varMapping":{"__isSmartRef__":true,"id":24912},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":24913},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24912":{"obj":{"__isSmartRef__":true,"id":24819},"name":"onMouseDown"},"24913":{},"24914":{"timestamp":{"__isSmartRef__":true,"id":24915},"user":"sebastianwoinar","tags":[]},"24915":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"24916":{"varMapping":{"__isSmartRef__":true,"id":24917},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":24918},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24917":{"this":{"__isSmartRef__":true,"id":24819}},"24918":{"timestamp":{"__isSmartRef__":true,"id":24919},"user":"sebastianwoinar","tags":[]},"24919":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"24920":{"varMapping":{"__isSmartRef__":true,"id":24921},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":24922},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24921":{"this":{"__isSmartRef__":true,"id":24819}},"24922":{"timestamp":{"__isSmartRef__":true,"id":24923},"user":"sebastianwoinar","tags":[]},"24923":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"24924":{"varMapping":{"__isSmartRef__":true,"id":24925},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":24926},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24925":{"this":{"__isSmartRef__":true,"id":24819}},"24926":{"timestamp":{"__isSmartRef__":true,"id":24927},"user":"sebastianwoinar","tags":[]},"24927":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"24928":{"varMapping":{"__isSmartRef__":true,"id":24929},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":24930},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24929":{"this":{"__isSmartRef__":true,"id":24819}},"24930":{"timestamp":{"__isSmartRef__":true,"id":24931},"user":"sebastianwoinar","tags":[]},"24931":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"24932":{"varMapping":{"__isSmartRef__":true,"id":24933},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":24934},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24933":{"this":{"__isSmartRef__":true,"id":24819}},"24934":{"timestamp":{"__isSmartRef__":true,"id":24935},"user":"sebastianwoinar","tags":[]},"24935":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"24936":{"varMapping":{"__isSmartRef__":true,"id":24937},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":24938},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24937":{"this":{"__isSmartRef__":true,"id":24819}},"24938":{"timestamp":{"__isSmartRef__":true,"id":24939},"user":"sebastianwoinar","tags":[]},"24939":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"24940":{"varMapping":{"__isSmartRef__":true,"id":24941},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":24942},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24941":{"this":{"__isSmartRef__":true,"id":24819}},"24942":{"timestamp":{"__isSmartRef__":true,"id":24943},"user":"sebastianwoinar","tags":[]},"24943":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"24944":{"varMapping":{"__isSmartRef__":true,"id":24945},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":24946},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24945":{"this":{"__isSmartRef__":true,"id":24819}},"24946":{"timestamp":{"__isSmartRef__":true,"id":24947},"user":"sebastianwoinar","tags":[]},"24947":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"24948":{"submorphs":[{"__isSmartRef__":true,"id":24949}],"scripts":[],"shape":{"__isSmartRef__":true,"id":24966},"id":"2594C488-3F50-4D5B-BF8F-3CAB6378B546","eventHandler":{"__isSmartRef__":true,"id":24967},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":24968},"name":"node152","partsBinMetaInfo":{"__isSmartRef__":true,"id":24969},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5733},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":23892},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":24972},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(699.5,210.0)"},"24949":{"submorphs":[],"scripts":[],"id":"ED2DA3E9-0599-436C-926E-24CEDE6212B8","shape":{"__isSmartRef__":true,"id":24950},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":24951},"textChunks":[{"__isSmartRef__":true,"id":24963}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":24965},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":24948},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"24950":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"24951":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":24952},{"__isSmartRef__":true,"id":24954},{"__isSmartRef__":true,"id":24956},{"__isSmartRef__":true,"id":24958},{"__isSmartRef__":true,"id":24960}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":24962},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"24952":{"date":{"__isSmartRef__":true,"id":24953},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"24953":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"24954":{"date":{"__isSmartRef__":true,"id":24955},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"24955":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"24956":{"date":{"__isSmartRef__":true,"id":24957},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"24957":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"24958":{"date":{"__isSmartRef__":true,"id":24959},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"24959":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"24960":{"date":{"__isSmartRef__":true,"id":24961},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"24961":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"24962":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"24963":{"style":{"__isSmartRef__":true,"id":24964},"morph":{"__isSmartRef__":true,"id":24949},"chunkOwner":{"__isSmartRef__":true,"id":24949},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"24964":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"24965":{"morph":{"__isSmartRef__":true,"id":24949},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"24966":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"24967":{"morph":{"__isSmartRef__":true,"id":24948},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"24968":{},"24969":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":24970}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"24970":{"date":{"__isSmartRef__":true,"id":24971},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"24971":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"24972":{"buildChildNodes":{"__isSmartRef__":true,"id":24973},"getGameTree":{"__isSmartRef__":true,"id":24977},"getLevel":{"__isSmartRef__":true,"id":24981},"getLevelWeight":{"__isSmartRef__":true,"id":24985},"getWeight":{"__isSmartRef__":true,"id":24989},"setNode":{"__isSmartRef__":true,"id":24993},"setParent":{"__isSmartRef__":true,"id":24997},"getParent":{"__isSmartRef__":true,"id":25001},"deactivate":{"__isSmartRef__":true,"id":25005},"blink":{"__isSmartRef__":true,"id":25009},"ABPreturn":{"__isSmartRef__":true,"id":25013},"ABPstart":{"__isSmartRef__":true,"id":25017},"ABPcontinue":{"__isSmartRef__":true,"id":25021},"ABPshowValue":{"__isSmartRef__":true,"id":25025},"ABPgetValue":{"__isSmartRef__":true,"id":25029},"ABPhasChildNodes":{"__isSmartRef__":true,"id":25033},"onMouseDown":{"__isSmartRef__":true,"id":25037},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":25045},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":25049},"ABPmarkAsDone":{"__isSmartRef__":true,"id":25053},"ABPmarkAsActive":{"__isSmartRef__":true,"id":25057},"getStateMorph":{"__isSmartRef__":true,"id":25061},"showState":{"__isSmartRef__":true,"id":25065},"ABPfailHard":{"__isSmartRef__":true,"id":25069},"markFinalDrawWith":{"__isSmartRef__":true,"id":25073}},"24973":{"varMapping":{"__isSmartRef__":true,"id":24974},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":24975},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24974":{"this":{"__isSmartRef__":true,"id":24948}},"24975":{"timestamp":{"__isSmartRef__":true,"id":24976},"user":"sebastianwoinar","tags":[]},"24976":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"24977":{"varMapping":{"__isSmartRef__":true,"id":24978},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":24979},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24978":{"this":{"__isSmartRef__":true,"id":24948}},"24979":{"timestamp":{"__isSmartRef__":true,"id":24980},"user":"sebastianwoinar","tags":[]},"24980":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24981":{"varMapping":{"__isSmartRef__":true,"id":24982},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":24983},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24982":{"this":{"__isSmartRef__":true,"id":24948}},"24983":{"timestamp":{"__isSmartRef__":true,"id":24984},"user":"sebastianwoinar","tags":[]},"24984":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24985":{"varMapping":{"__isSmartRef__":true,"id":24986},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":24987},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24986":{"this":{"__isSmartRef__":true,"id":24948}},"24987":{"timestamp":{"__isSmartRef__":true,"id":24988},"user":"sebastianwoinar","tags":[]},"24988":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24989":{"varMapping":{"__isSmartRef__":true,"id":24990},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":24991},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24990":{"this":{"__isSmartRef__":true,"id":24948}},"24991":{"timestamp":{"__isSmartRef__":true,"id":24992},"user":"sebastianwoinar","tags":[]},"24992":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24993":{"varMapping":{"__isSmartRef__":true,"id":24994},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":24995},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24994":{"this":{"__isSmartRef__":true,"id":24948}},"24995":{"timestamp":{"__isSmartRef__":true,"id":24996},"user":"sebastianwoinar","tags":[]},"24996":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"24997":{"varMapping":{"__isSmartRef__":true,"id":24998},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":24999},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24998":{"this":{"__isSmartRef__":true,"id":24948}},"24999":{"timestamp":{"__isSmartRef__":true,"id":25000},"user":"sebastianwoinar","tags":[]},"25000":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25001":{"varMapping":{"__isSmartRef__":true,"id":25002},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":25003},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25002":{"this":{"__isSmartRef__":true,"id":24948}},"25003":{"timestamp":{"__isSmartRef__":true,"id":25004},"user":"sebastianwoinar","tags":[]},"25004":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"25005":{"varMapping":{"__isSmartRef__":true,"id":25006},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":25007},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25006":{"this":{"__isSmartRef__":true,"id":24948}},"25007":{"timestamp":{"__isSmartRef__":true,"id":25008},"user":"sebastianwoinar","tags":[]},"25008":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"25009":{"varMapping":{"__isSmartRef__":true,"id":25010},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":25011},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25010":{"this":{"__isSmartRef__":true,"id":24948}},"25011":{"timestamp":{"__isSmartRef__":true,"id":25012},"user":"sebastianwoinar","tags":[]},"25012":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"25013":{"varMapping":{"__isSmartRef__":true,"id":25014},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":25015},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25014":{"this":{"__isSmartRef__":true,"id":24948}},"25015":{"timestamp":{"__isSmartRef__":true,"id":25016},"user":"sebastianwoinar","tags":[]},"25016":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"25017":{"varMapping":{"__isSmartRef__":true,"id":25018},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":25019},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25018":{"this":{"__isSmartRef__":true,"id":24948}},"25019":{"timestamp":{"__isSmartRef__":true,"id":25020},"user":"sebastianwoinar","tags":[]},"25020":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"25021":{"varMapping":{"__isSmartRef__":true,"id":25022},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":25023},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25022":{"this":{"__isSmartRef__":true,"id":24948}},"25023":{"timestamp":{"__isSmartRef__":true,"id":25024},"user":"sebastianwoinar","tags":[]},"25024":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"25025":{"varMapping":{"__isSmartRef__":true,"id":25026},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":25027},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25026":{"this":{"__isSmartRef__":true,"id":24948}},"25027":{"timestamp":{"__isSmartRef__":true,"id":25028},"user":"sebastianwoinar","tags":[]},"25028":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"25029":{"varMapping":{"__isSmartRef__":true,"id":25030},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":25031},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25030":{"this":{"__isSmartRef__":true,"id":24948}},"25031":{"timestamp":{"__isSmartRef__":true,"id":25032},"user":"sebastianwoinar","tags":[]},"25032":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"25033":{"varMapping":{"__isSmartRef__":true,"id":25034},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":25035},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25034":{"this":{"__isSmartRef__":true,"id":24948}},"25035":{"timestamp":{"__isSmartRef__":true,"id":25036},"user":"sebastianwoinar","tags":[]},"25036":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"25037":{"varMapping":{"__isSmartRef__":true,"id":25038},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":25043},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25038":{"this":{"__isSmartRef__":true,"id":24948},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":25039}},"25039":{"$super":{"__isSmartRef__":true,"id":25040}},"25040":{"varMapping":{"__isSmartRef__":true,"id":25041},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":25042},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25041":{"obj":{"__isSmartRef__":true,"id":24948},"name":"onMouseDown"},"25042":{},"25043":{"timestamp":{"__isSmartRef__":true,"id":25044},"user":"sebastianwoinar","tags":[]},"25044":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"25045":{"varMapping":{"__isSmartRef__":true,"id":25046},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":25047},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25046":{"this":{"__isSmartRef__":true,"id":24948}},"25047":{"timestamp":{"__isSmartRef__":true,"id":25048},"user":"sebastianwoinar","tags":[]},"25048":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"25049":{"varMapping":{"__isSmartRef__":true,"id":25050},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":25051},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25050":{"this":{"__isSmartRef__":true,"id":24948}},"25051":{"timestamp":{"__isSmartRef__":true,"id":25052},"user":"sebastianwoinar","tags":[]},"25052":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"25053":{"varMapping":{"__isSmartRef__":true,"id":25054},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":25055},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25054":{"this":{"__isSmartRef__":true,"id":24948}},"25055":{"timestamp":{"__isSmartRef__":true,"id":25056},"user":"sebastianwoinar","tags":[]},"25056":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"25057":{"varMapping":{"__isSmartRef__":true,"id":25058},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":25059},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25058":{"this":{"__isSmartRef__":true,"id":24948}},"25059":{"timestamp":{"__isSmartRef__":true,"id":25060},"user":"sebastianwoinar","tags":[]},"25060":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"25061":{"varMapping":{"__isSmartRef__":true,"id":25062},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":25063},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25062":{"this":{"__isSmartRef__":true,"id":24948}},"25063":{"timestamp":{"__isSmartRef__":true,"id":25064},"user":"sebastianwoinar","tags":[]},"25064":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"25065":{"varMapping":{"__isSmartRef__":true,"id":25066},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":25067},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25066":{"this":{"__isSmartRef__":true,"id":24948}},"25067":{"timestamp":{"__isSmartRef__":true,"id":25068},"user":"sebastianwoinar","tags":[]},"25068":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"25069":{"varMapping":{"__isSmartRef__":true,"id":25070},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":25071},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25070":{"this":{"__isSmartRef__":true,"id":24948}},"25071":{"timestamp":{"__isSmartRef__":true,"id":25072},"user":"sebastianwoinar","tags":[]},"25072":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"25073":{"varMapping":{"__isSmartRef__":true,"id":25074},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":25075},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25074":{"this":{"__isSmartRef__":true,"id":24948}},"25075":{"timestamp":{"__isSmartRef__":true,"id":25076},"user":"sebastianwoinar","tags":[]},"25076":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"25077":{"buildChildNodes":{"__isSmartRef__":true,"id":25078},"getGameTree":{"__isSmartRef__":true,"id":25082},"getLevel":{"__isSmartRef__":true,"id":25086},"getLevelWeight":{"__isSmartRef__":true,"id":25090},"getWeight":{"__isSmartRef__":true,"id":25094},"setNode":{"__isSmartRef__":true,"id":25098},"setParent":{"__isSmartRef__":true,"id":25102},"getParent":{"__isSmartRef__":true,"id":25106},"deactivate":{"__isSmartRef__":true,"id":25110},"blink":{"__isSmartRef__":true,"id":25114},"ABPreturn":{"__isSmartRef__":true,"id":25118},"ABPstart":{"__isSmartRef__":true,"id":25122},"ABPcontinue":{"__isSmartRef__":true,"id":25126},"ABPshowValue":{"__isSmartRef__":true,"id":25130},"ABPgetValue":{"__isSmartRef__":true,"id":25134},"ABPhasChildNodes":{"__isSmartRef__":true,"id":25138},"onMouseDown":{"__isSmartRef__":true,"id":25142},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":25150},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":25154},"ABPmarkAsDone":{"__isSmartRef__":true,"id":25158},"ABPmarkAsActive":{"__isSmartRef__":true,"id":25162},"getStateMorph":{"__isSmartRef__":true,"id":25166},"showState":{"__isSmartRef__":true,"id":25170},"ABPfailHard":{"__isSmartRef__":true,"id":25174},"markFinalDrawWith":{"__isSmartRef__":true,"id":25178}},"25078":{"varMapping":{"__isSmartRef__":true,"id":25079},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":25080},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25079":{"this":{"__isSmartRef__":true,"id":23892}},"25080":{"timestamp":{"__isSmartRef__":true,"id":25081},"user":"sebastianwoinar","tags":[]},"25081":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"25082":{"varMapping":{"__isSmartRef__":true,"id":25083},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":25084},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25083":{"this":{"__isSmartRef__":true,"id":23892}},"25084":{"timestamp":{"__isSmartRef__":true,"id":25085},"user":"sebastianwoinar","tags":[]},"25085":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25086":{"varMapping":{"__isSmartRef__":true,"id":25087},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":25088},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25087":{"this":{"__isSmartRef__":true,"id":23892}},"25088":{"timestamp":{"__isSmartRef__":true,"id":25089},"user":"sebastianwoinar","tags":[]},"25089":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25090":{"varMapping":{"__isSmartRef__":true,"id":25091},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":25092},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25091":{"this":{"__isSmartRef__":true,"id":23892}},"25092":{"timestamp":{"__isSmartRef__":true,"id":25093},"user":"sebastianwoinar","tags":[]},"25093":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25094":{"varMapping":{"__isSmartRef__":true,"id":25095},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":25096},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25095":{"this":{"__isSmartRef__":true,"id":23892}},"25096":{"timestamp":{"__isSmartRef__":true,"id":25097},"user":"sebastianwoinar","tags":[]},"25097":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25098":{"varMapping":{"__isSmartRef__":true,"id":25099},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":25100},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25099":{"this":{"__isSmartRef__":true,"id":23892}},"25100":{"timestamp":{"__isSmartRef__":true,"id":25101},"user":"sebastianwoinar","tags":[]},"25101":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25102":{"varMapping":{"__isSmartRef__":true,"id":25103},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":25104},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25103":{"this":{"__isSmartRef__":true,"id":23892}},"25104":{"timestamp":{"__isSmartRef__":true,"id":25105},"user":"sebastianwoinar","tags":[]},"25105":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25106":{"varMapping":{"__isSmartRef__":true,"id":25107},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":25108},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25107":{"this":{"__isSmartRef__":true,"id":23892}},"25108":{"timestamp":{"__isSmartRef__":true,"id":25109},"user":"sebastianwoinar","tags":[]},"25109":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"25110":{"varMapping":{"__isSmartRef__":true,"id":25111},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":25112},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25111":{"this":{"__isSmartRef__":true,"id":23892}},"25112":{"timestamp":{"__isSmartRef__":true,"id":25113},"user":"sebastianwoinar","tags":[]},"25113":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"25114":{"varMapping":{"__isSmartRef__":true,"id":25115},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":25116},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25115":{"this":{"__isSmartRef__":true,"id":23892}},"25116":{"timestamp":{"__isSmartRef__":true,"id":25117},"user":"sebastianwoinar","tags":[]},"25117":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"25118":{"varMapping":{"__isSmartRef__":true,"id":25119},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":25120},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25119":{"this":{"__isSmartRef__":true,"id":23892}},"25120":{"timestamp":{"__isSmartRef__":true,"id":25121},"user":"sebastianwoinar","tags":[]},"25121":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"25122":{"varMapping":{"__isSmartRef__":true,"id":25123},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":25124},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25123":{"this":{"__isSmartRef__":true,"id":23892}},"25124":{"timestamp":{"__isSmartRef__":true,"id":25125},"user":"sebastianwoinar","tags":[]},"25125":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"25126":{"varMapping":{"__isSmartRef__":true,"id":25127},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":25128},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25127":{"this":{"__isSmartRef__":true,"id":23892}},"25128":{"timestamp":{"__isSmartRef__":true,"id":25129},"user":"sebastianwoinar","tags":[]},"25129":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"25130":{"varMapping":{"__isSmartRef__":true,"id":25131},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":25132},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25131":{"this":{"__isSmartRef__":true,"id":23892}},"25132":{"timestamp":{"__isSmartRef__":true,"id":25133},"user":"sebastianwoinar","tags":[]},"25133":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"25134":{"varMapping":{"__isSmartRef__":true,"id":25135},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":25136},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25135":{"this":{"__isSmartRef__":true,"id":23892}},"25136":{"timestamp":{"__isSmartRef__":true,"id":25137},"user":"sebastianwoinar","tags":[]},"25137":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"25138":{"varMapping":{"__isSmartRef__":true,"id":25139},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":25140},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25139":{"this":{"__isSmartRef__":true,"id":23892}},"25140":{"timestamp":{"__isSmartRef__":true,"id":25141},"user":"sebastianwoinar","tags":[]},"25141":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"25142":{"varMapping":{"__isSmartRef__":true,"id":25143},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":25148},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25143":{"this":{"__isSmartRef__":true,"id":23892},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":25144}},"25144":{"$super":{"__isSmartRef__":true,"id":25145}},"25145":{"varMapping":{"__isSmartRef__":true,"id":25146},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":25147},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25146":{"obj":{"__isSmartRef__":true,"id":23892},"name":"onMouseDown"},"25147":{},"25148":{"timestamp":{"__isSmartRef__":true,"id":25149},"user":"sebastianwoinar","tags":[]},"25149":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"25150":{"varMapping":{"__isSmartRef__":true,"id":25151},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":25152},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25151":{"this":{"__isSmartRef__":true,"id":23892}},"25152":{"timestamp":{"__isSmartRef__":true,"id":25153},"user":"sebastianwoinar","tags":[]},"25153":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"25154":{"varMapping":{"__isSmartRef__":true,"id":25155},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":25156},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25155":{"this":{"__isSmartRef__":true,"id":23892}},"25156":{"timestamp":{"__isSmartRef__":true,"id":25157},"user":"sebastianwoinar","tags":[]},"25157":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"25158":{"varMapping":{"__isSmartRef__":true,"id":25159},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":25160},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25159":{"this":{"__isSmartRef__":true,"id":23892}},"25160":{"timestamp":{"__isSmartRef__":true,"id":25161},"user":"sebastianwoinar","tags":[]},"25161":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"25162":{"varMapping":{"__isSmartRef__":true,"id":25163},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":25164},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25163":{"this":{"__isSmartRef__":true,"id":23892}},"25164":{"timestamp":{"__isSmartRef__":true,"id":25165},"user":"sebastianwoinar","tags":[]},"25165":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"25166":{"varMapping":{"__isSmartRef__":true,"id":25167},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":25168},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25167":{"this":{"__isSmartRef__":true,"id":23892}},"25168":{"timestamp":{"__isSmartRef__":true,"id":25169},"user":"sebastianwoinar","tags":[]},"25169":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"25170":{"varMapping":{"__isSmartRef__":true,"id":25171},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":25172},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25171":{"this":{"__isSmartRef__":true,"id":23892}},"25172":{"timestamp":{"__isSmartRef__":true,"id":25173},"user":"sebastianwoinar","tags":[]},"25173":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"25174":{"varMapping":{"__isSmartRef__":true,"id":25175},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":25176},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25175":{"this":{"__isSmartRef__":true,"id":23892}},"25176":{"timestamp":{"__isSmartRef__":true,"id":25177},"user":"sebastianwoinar","tags":[]},"25177":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"25178":{"varMapping":{"__isSmartRef__":true,"id":25179},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":25180},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25179":{"this":{"__isSmartRef__":true,"id":23892}},"25180":{"timestamp":{"__isSmartRef__":true,"id":25181},"user":"sebastianwoinar","tags":[]},"25181":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"25182":{"buildChildNodes":{"__isSmartRef__":true,"id":25183},"getGameTree":{"__isSmartRef__":true,"id":25187},"getLevel":{"__isSmartRef__":true,"id":25191},"getLevelWeight":{"__isSmartRef__":true,"id":25195},"getWeight":{"__isSmartRef__":true,"id":25199},"setNode":{"__isSmartRef__":true,"id":25203},"setParent":{"__isSmartRef__":true,"id":25207},"getParent":{"__isSmartRef__":true,"id":25211},"deactivate":{"__isSmartRef__":true,"id":25215},"blink":{"__isSmartRef__":true,"id":25219},"ABPreturn":{"__isSmartRef__":true,"id":25223},"ABPstart":{"__isSmartRef__":true,"id":25227},"ABPcontinue":{"__isSmartRef__":true,"id":25231},"ABPshowValue":{"__isSmartRef__":true,"id":25235},"ABPgetValue":{"__isSmartRef__":true,"id":25239},"ABPhasChildNodes":{"__isSmartRef__":true,"id":25243},"onMouseDown":{"__isSmartRef__":true,"id":25247},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":25255},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":25259},"ABPmarkAsDone":{"__isSmartRef__":true,"id":25263},"ABPmarkAsActive":{"__isSmartRef__":true,"id":25267},"getStateMorph":{"__isSmartRef__":true,"id":25271},"showState":{"__isSmartRef__":true,"id":25275},"ABPfailHard":{"__isSmartRef__":true,"id":25279},"markFinalDrawWith":{"__isSmartRef__":true,"id":25283}},"25183":{"varMapping":{"__isSmartRef__":true,"id":25184},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":25185},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25184":{"this":{"__isSmartRef__":true,"id":17805}},"25185":{"timestamp":{"__isSmartRef__":true,"id":25186},"user":"sebastianwoinar","tags":[]},"25186":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"25187":{"varMapping":{"__isSmartRef__":true,"id":25188},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":25189},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25188":{"this":{"__isSmartRef__":true,"id":17805}},"25189":{"timestamp":{"__isSmartRef__":true,"id":25190},"user":"sebastianwoinar","tags":[]},"25190":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25191":{"varMapping":{"__isSmartRef__":true,"id":25192},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":25193},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25192":{"this":{"__isSmartRef__":true,"id":17805}},"25193":{"timestamp":{"__isSmartRef__":true,"id":25194},"user":"sebastianwoinar","tags":[]},"25194":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25195":{"varMapping":{"__isSmartRef__":true,"id":25196},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":25197},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25196":{"this":{"__isSmartRef__":true,"id":17805}},"25197":{"timestamp":{"__isSmartRef__":true,"id":25198},"user":"sebastianwoinar","tags":[]},"25198":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25199":{"varMapping":{"__isSmartRef__":true,"id":25200},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":25201},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25200":{"this":{"__isSmartRef__":true,"id":17805}},"25201":{"timestamp":{"__isSmartRef__":true,"id":25202},"user":"sebastianwoinar","tags":[]},"25202":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25203":{"varMapping":{"__isSmartRef__":true,"id":25204},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":25205},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25204":{"this":{"__isSmartRef__":true,"id":17805}},"25205":{"timestamp":{"__isSmartRef__":true,"id":25206},"user":"sebastianwoinar","tags":[]},"25206":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25207":{"varMapping":{"__isSmartRef__":true,"id":25208},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":25209},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25208":{"this":{"__isSmartRef__":true,"id":17805}},"25209":{"timestamp":{"__isSmartRef__":true,"id":25210},"user":"sebastianwoinar","tags":[]},"25210":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25211":{"varMapping":{"__isSmartRef__":true,"id":25212},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":25213},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25212":{"this":{"__isSmartRef__":true,"id":17805}},"25213":{"timestamp":{"__isSmartRef__":true,"id":25214},"user":"sebastianwoinar","tags":[]},"25214":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"25215":{"varMapping":{"__isSmartRef__":true,"id":25216},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":25217},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25216":{"this":{"__isSmartRef__":true,"id":17805}},"25217":{"timestamp":{"__isSmartRef__":true,"id":25218},"user":"sebastianwoinar","tags":[]},"25218":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"25219":{"varMapping":{"__isSmartRef__":true,"id":25220},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":25221},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25220":{"this":{"__isSmartRef__":true,"id":17805}},"25221":{"timestamp":{"__isSmartRef__":true,"id":25222},"user":"sebastianwoinar","tags":[]},"25222":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"25223":{"varMapping":{"__isSmartRef__":true,"id":25224},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":25225},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25224":{"this":{"__isSmartRef__":true,"id":17805}},"25225":{"timestamp":{"__isSmartRef__":true,"id":25226},"user":"sebastianwoinar","tags":[]},"25226":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"25227":{"varMapping":{"__isSmartRef__":true,"id":25228},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":25229},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25228":{"this":{"__isSmartRef__":true,"id":17805}},"25229":{"timestamp":{"__isSmartRef__":true,"id":25230},"user":"sebastianwoinar","tags":[]},"25230":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"25231":{"varMapping":{"__isSmartRef__":true,"id":25232},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":25233},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25232":{"this":{"__isSmartRef__":true,"id":17805}},"25233":{"timestamp":{"__isSmartRef__":true,"id":25234},"user":"sebastianwoinar","tags":[]},"25234":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"25235":{"varMapping":{"__isSmartRef__":true,"id":25236},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":25237},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25236":{"this":{"__isSmartRef__":true,"id":17805}},"25237":{"timestamp":{"__isSmartRef__":true,"id":25238},"user":"sebastianwoinar","tags":[]},"25238":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"25239":{"varMapping":{"__isSmartRef__":true,"id":25240},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":25241},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25240":{"this":{"__isSmartRef__":true,"id":17805}},"25241":{"timestamp":{"__isSmartRef__":true,"id":25242},"user":"sebastianwoinar","tags":[]},"25242":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"25243":{"varMapping":{"__isSmartRef__":true,"id":25244},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":25245},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25244":{"this":{"__isSmartRef__":true,"id":17805}},"25245":{"timestamp":{"__isSmartRef__":true,"id":25246},"user":"sebastianwoinar","tags":[]},"25246":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"25247":{"varMapping":{"__isSmartRef__":true,"id":25248},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":25253},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25248":{"this":{"__isSmartRef__":true,"id":17805},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":25249}},"25249":{"$super":{"__isSmartRef__":true,"id":25250}},"25250":{"varMapping":{"__isSmartRef__":true,"id":25251},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":25252},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25251":{"obj":{"__isSmartRef__":true,"id":17805},"name":"onMouseDown"},"25252":{},"25253":{"timestamp":{"__isSmartRef__":true,"id":25254},"user":"sebastianwoinar","tags":[]},"25254":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"25255":{"varMapping":{"__isSmartRef__":true,"id":25256},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":25257},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25256":{"this":{"__isSmartRef__":true,"id":17805}},"25257":{"timestamp":{"__isSmartRef__":true,"id":25258},"user":"sebastianwoinar","tags":[]},"25258":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"25259":{"varMapping":{"__isSmartRef__":true,"id":25260},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":25261},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25260":{"this":{"__isSmartRef__":true,"id":17805}},"25261":{"timestamp":{"__isSmartRef__":true,"id":25262},"user":"sebastianwoinar","tags":[]},"25262":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"25263":{"varMapping":{"__isSmartRef__":true,"id":25264},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":25265},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25264":{"this":{"__isSmartRef__":true,"id":17805}},"25265":{"timestamp":{"__isSmartRef__":true,"id":25266},"user":"sebastianwoinar","tags":[]},"25266":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"25267":{"varMapping":{"__isSmartRef__":true,"id":25268},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":25269},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25268":{"this":{"__isSmartRef__":true,"id":17805}},"25269":{"timestamp":{"__isSmartRef__":true,"id":25270},"user":"sebastianwoinar","tags":[]},"25270":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"25271":{"varMapping":{"__isSmartRef__":true,"id":25272},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":25273},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25272":{"this":{"__isSmartRef__":true,"id":17805}},"25273":{"timestamp":{"__isSmartRef__":true,"id":25274},"user":"sebastianwoinar","tags":[]},"25274":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"25275":{"varMapping":{"__isSmartRef__":true,"id":25276},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":25277},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25276":{"this":{"__isSmartRef__":true,"id":17805}},"25277":{"timestamp":{"__isSmartRef__":true,"id":25278},"user":"sebastianwoinar","tags":[]},"25278":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"25279":{"varMapping":{"__isSmartRef__":true,"id":25280},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":25281},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25280":{"this":{"__isSmartRef__":true,"id":17805}},"25281":{"timestamp":{"__isSmartRef__":true,"id":25282},"user":"sebastianwoinar","tags":[]},"25282":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"25283":{"varMapping":{"__isSmartRef__":true,"id":25284},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":25285},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25284":{"this":{"__isSmartRef__":true,"id":17805}},"25285":{"timestamp":{"__isSmartRef__":true,"id":25286},"user":"sebastianwoinar","tags":[]},"25286":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"25287":{"submorphs":[{"__isSmartRef__":true,"id":25288}],"scripts":[],"shape":{"__isSmartRef__":true,"id":25305},"id":"3AA22312-81FF-4A02-AF66-88B47C5FD5B4","eventHandler":{"__isSmartRef__":true,"id":25306},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":25307},"name":"node153","partsBinMetaInfo":{"__isSmartRef__":true,"id":25308},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5735},"owner":{"__isSmartRef__":true,"id":5408},"childNodes":[{"__isSmartRef__":true,"id":25311},{"__isSmartRef__":true,"id":26601},{"__isSmartRef__":true,"id":27762},{"__isSmartRef__":true,"id":29052},{"__isSmartRef__":true,"id":29826},{"__isSmartRef__":true,"id":30600},{"__isSmartRef__":true,"id":31890}],"parent":{"__isSmartRef__":true,"id":5409},"level":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":33180},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(780.6,110.0)"},"25288":{"submorphs":[],"scripts":[],"id":"726CE619-4E8C-41B8-ACAF-5AD771F7AE8C","shape":{"__isSmartRef__":true,"id":25289},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":25290},"textChunks":[{"__isSmartRef__":true,"id":25302}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":25304},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":25287},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"25289":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"25290":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":25291},{"__isSmartRef__":true,"id":25293},{"__isSmartRef__":true,"id":25295},{"__isSmartRef__":true,"id":25297},{"__isSmartRef__":true,"id":25299}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":25301},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"25291":{"date":{"__isSmartRef__":true,"id":25292},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"25292":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"25293":{"date":{"__isSmartRef__":true,"id":25294},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"25294":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"25295":{"date":{"__isSmartRef__":true,"id":25296},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"25296":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"25297":{"date":{"__isSmartRef__":true,"id":25298},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"25298":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"25299":{"date":{"__isSmartRef__":true,"id":25300},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"25300":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"25301":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"25302":{"style":{"__isSmartRef__":true,"id":25303},"morph":{"__isSmartRef__":true,"id":25288},"chunkOwner":{"__isSmartRef__":true,"id":25288},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"25303":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"25304":{"morph":{"__isSmartRef__":true,"id":25288},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"25305":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"25306":{"morph":{"__isSmartRef__":true,"id":25287},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"25307":{},"25308":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":25309}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"25309":{"date":{"__isSmartRef__":true,"id":25310},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"25310":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"25311":{"submorphs":[{"__isSmartRef__":true,"id":25312}],"scripts":[],"shape":{"__isSmartRef__":true,"id":25329},"id":"CFE9A9B5-349E-4628-9EC5-9E5C41346022","eventHandler":{"__isSmartRef__":true,"id":25330},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":25331},"name":"node154","partsBinMetaInfo":{"__isSmartRef__":true,"id":25332},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5737},"owner":{"__isSmartRef__":true,"id":5408},"childNodes":[{"__isSmartRef__":true,"id":25335},{"__isSmartRef__":true,"id":25464},{"__isSmartRef__":true,"id":25593},{"__isSmartRef__":true,"id":25722},{"__isSmartRef__":true,"id":25851},{"__isSmartRef__":true,"id":25980},{"__isSmartRef__":true,"id":26109},{"__isSmartRef__":true,"id":26238},{"__isSmartRef__":true,"id":26367}],"parent":{"__isSmartRef__":true,"id":25287},"level":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":26496},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(720.2,160.0)"},"25312":{"submorphs":[],"scripts":[],"id":"A86727D3-262E-4BF1-81E8-5ECD191F159F","shape":{"__isSmartRef__":true,"id":25313},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":25314},"textChunks":[{"__isSmartRef__":true,"id":25326}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":25328},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":25311},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"25313":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"25314":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":25315},{"__isSmartRef__":true,"id":25317},{"__isSmartRef__":true,"id":25319},{"__isSmartRef__":true,"id":25321},{"__isSmartRef__":true,"id":25323}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":25325},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"25315":{"date":{"__isSmartRef__":true,"id":25316},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"25316":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"25317":{"date":{"__isSmartRef__":true,"id":25318},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"25318":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"25319":{"date":{"__isSmartRef__":true,"id":25320},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"25320":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"25321":{"date":{"__isSmartRef__":true,"id":25322},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"25322":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"25323":{"date":{"__isSmartRef__":true,"id":25324},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"25324":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"25325":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"25326":{"style":{"__isSmartRef__":true,"id":25327},"morph":{"__isSmartRef__":true,"id":25312},"chunkOwner":{"__isSmartRef__":true,"id":25312},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"25327":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"25328":{"morph":{"__isSmartRef__":true,"id":25312},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"25329":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"25330":{"morph":{"__isSmartRef__":true,"id":25311},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"25331":{},"25332":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":25333}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"25333":{"date":{"__isSmartRef__":true,"id":25334},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"25334":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"25335":{"submorphs":[{"__isSmartRef__":true,"id":25336}],"scripts":[],"shape":{"__isSmartRef__":true,"id":25353},"id":"1CEB9100-E0E9-47EB-B988-943D5D6A1162","eventHandler":{"__isSmartRef__":true,"id":25354},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":25355},"name":"node155","partsBinMetaInfo":{"__isSmartRef__":true,"id":25356},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5739},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":25311},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":25359},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(704.7,210.0)"},"25336":{"submorphs":[],"scripts":[],"id":"9F2F636F-8FA6-469A-9D54-EA32D39F1670","shape":{"__isSmartRef__":true,"id":25337},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":25338},"textChunks":[{"__isSmartRef__":true,"id":25350}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":25352},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":25335},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"25337":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"25338":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":25339},{"__isSmartRef__":true,"id":25341},{"__isSmartRef__":true,"id":25343},{"__isSmartRef__":true,"id":25345},{"__isSmartRef__":true,"id":25347}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":25349},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"25339":{"date":{"__isSmartRef__":true,"id":25340},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"25340":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"25341":{"date":{"__isSmartRef__":true,"id":25342},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"25342":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"25343":{"date":{"__isSmartRef__":true,"id":25344},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"25344":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"25345":{"date":{"__isSmartRef__":true,"id":25346},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"25346":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"25347":{"date":{"__isSmartRef__":true,"id":25348},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"25348":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"25349":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"25350":{"style":{"__isSmartRef__":true,"id":25351},"morph":{"__isSmartRef__":true,"id":25336},"chunkOwner":{"__isSmartRef__":true,"id":25336},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"25351":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"25352":{"morph":{"__isSmartRef__":true,"id":25336},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"25353":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"25354":{"morph":{"__isSmartRef__":true,"id":25335},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"25355":{},"25356":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":25357}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"25357":{"date":{"__isSmartRef__":true,"id":25358},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"25358":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"25359":{"buildChildNodes":{"__isSmartRef__":true,"id":25360},"getGameTree":{"__isSmartRef__":true,"id":25364},"getLevel":{"__isSmartRef__":true,"id":25368},"getLevelWeight":{"__isSmartRef__":true,"id":25372},"getWeight":{"__isSmartRef__":true,"id":25376},"setNode":{"__isSmartRef__":true,"id":25380},"setParent":{"__isSmartRef__":true,"id":25384},"getParent":{"__isSmartRef__":true,"id":25388},"deactivate":{"__isSmartRef__":true,"id":25392},"blink":{"__isSmartRef__":true,"id":25396},"ABPreturn":{"__isSmartRef__":true,"id":25400},"ABPstart":{"__isSmartRef__":true,"id":25404},"ABPcontinue":{"__isSmartRef__":true,"id":25408},"ABPshowValue":{"__isSmartRef__":true,"id":25412},"ABPgetValue":{"__isSmartRef__":true,"id":25416},"ABPhasChildNodes":{"__isSmartRef__":true,"id":25420},"onMouseDown":{"__isSmartRef__":true,"id":25424},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":25432},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":25436},"ABPmarkAsDone":{"__isSmartRef__":true,"id":25440},"ABPmarkAsActive":{"__isSmartRef__":true,"id":25444},"getStateMorph":{"__isSmartRef__":true,"id":25448},"showState":{"__isSmartRef__":true,"id":25452},"ABPfailHard":{"__isSmartRef__":true,"id":25456},"markFinalDrawWith":{"__isSmartRef__":true,"id":25460}},"25360":{"varMapping":{"__isSmartRef__":true,"id":25361},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":25362},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25361":{"this":{"__isSmartRef__":true,"id":25335}},"25362":{"timestamp":{"__isSmartRef__":true,"id":25363},"user":"sebastianwoinar","tags":[]},"25363":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"25364":{"varMapping":{"__isSmartRef__":true,"id":25365},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":25366},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25365":{"this":{"__isSmartRef__":true,"id":25335}},"25366":{"timestamp":{"__isSmartRef__":true,"id":25367},"user":"sebastianwoinar","tags":[]},"25367":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25368":{"varMapping":{"__isSmartRef__":true,"id":25369},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":25370},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25369":{"this":{"__isSmartRef__":true,"id":25335}},"25370":{"timestamp":{"__isSmartRef__":true,"id":25371},"user":"sebastianwoinar","tags":[]},"25371":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25372":{"varMapping":{"__isSmartRef__":true,"id":25373},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":25374},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25373":{"this":{"__isSmartRef__":true,"id":25335}},"25374":{"timestamp":{"__isSmartRef__":true,"id":25375},"user":"sebastianwoinar","tags":[]},"25375":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25376":{"varMapping":{"__isSmartRef__":true,"id":25377},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":25378},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25377":{"this":{"__isSmartRef__":true,"id":25335}},"25378":{"timestamp":{"__isSmartRef__":true,"id":25379},"user":"sebastianwoinar","tags":[]},"25379":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25380":{"varMapping":{"__isSmartRef__":true,"id":25381},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":25382},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25381":{"this":{"__isSmartRef__":true,"id":25335}},"25382":{"timestamp":{"__isSmartRef__":true,"id":25383},"user":"sebastianwoinar","tags":[]},"25383":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25384":{"varMapping":{"__isSmartRef__":true,"id":25385},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":25386},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25385":{"this":{"__isSmartRef__":true,"id":25335}},"25386":{"timestamp":{"__isSmartRef__":true,"id":25387},"user":"sebastianwoinar","tags":[]},"25387":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25388":{"varMapping":{"__isSmartRef__":true,"id":25389},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":25390},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25389":{"this":{"__isSmartRef__":true,"id":25335}},"25390":{"timestamp":{"__isSmartRef__":true,"id":25391},"user":"sebastianwoinar","tags":[]},"25391":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"25392":{"varMapping":{"__isSmartRef__":true,"id":25393},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":25394},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25393":{"this":{"__isSmartRef__":true,"id":25335}},"25394":{"timestamp":{"__isSmartRef__":true,"id":25395},"user":"sebastianwoinar","tags":[]},"25395":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"25396":{"varMapping":{"__isSmartRef__":true,"id":25397},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":25398},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25397":{"this":{"__isSmartRef__":true,"id":25335}},"25398":{"timestamp":{"__isSmartRef__":true,"id":25399},"user":"sebastianwoinar","tags":[]},"25399":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"25400":{"varMapping":{"__isSmartRef__":true,"id":25401},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":25402},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25401":{"this":{"__isSmartRef__":true,"id":25335}},"25402":{"timestamp":{"__isSmartRef__":true,"id":25403},"user":"sebastianwoinar","tags":[]},"25403":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"25404":{"varMapping":{"__isSmartRef__":true,"id":25405},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":25406},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25405":{"this":{"__isSmartRef__":true,"id":25335}},"25406":{"timestamp":{"__isSmartRef__":true,"id":25407},"user":"sebastianwoinar","tags":[]},"25407":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"25408":{"varMapping":{"__isSmartRef__":true,"id":25409},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":25410},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25409":{"this":{"__isSmartRef__":true,"id":25335}},"25410":{"timestamp":{"__isSmartRef__":true,"id":25411},"user":"sebastianwoinar","tags":[]},"25411":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"25412":{"varMapping":{"__isSmartRef__":true,"id":25413},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":25414},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25413":{"this":{"__isSmartRef__":true,"id":25335}},"25414":{"timestamp":{"__isSmartRef__":true,"id":25415},"user":"sebastianwoinar","tags":[]},"25415":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"25416":{"varMapping":{"__isSmartRef__":true,"id":25417},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":25418},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25417":{"this":{"__isSmartRef__":true,"id":25335}},"25418":{"timestamp":{"__isSmartRef__":true,"id":25419},"user":"sebastianwoinar","tags":[]},"25419":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"25420":{"varMapping":{"__isSmartRef__":true,"id":25421},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":25422},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25421":{"this":{"__isSmartRef__":true,"id":25335}},"25422":{"timestamp":{"__isSmartRef__":true,"id":25423},"user":"sebastianwoinar","tags":[]},"25423":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"25424":{"varMapping":{"__isSmartRef__":true,"id":25425},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":25430},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25425":{"this":{"__isSmartRef__":true,"id":25335},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":25426}},"25426":{"$super":{"__isSmartRef__":true,"id":25427}},"25427":{"varMapping":{"__isSmartRef__":true,"id":25428},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":25429},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25428":{"obj":{"__isSmartRef__":true,"id":25335},"name":"onMouseDown"},"25429":{},"25430":{"timestamp":{"__isSmartRef__":true,"id":25431},"user":"sebastianwoinar","tags":[]},"25431":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"25432":{"varMapping":{"__isSmartRef__":true,"id":25433},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":25434},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25433":{"this":{"__isSmartRef__":true,"id":25335}},"25434":{"timestamp":{"__isSmartRef__":true,"id":25435},"user":"sebastianwoinar","tags":[]},"25435":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"25436":{"varMapping":{"__isSmartRef__":true,"id":25437},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":25438},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25437":{"this":{"__isSmartRef__":true,"id":25335}},"25438":{"timestamp":{"__isSmartRef__":true,"id":25439},"user":"sebastianwoinar","tags":[]},"25439":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"25440":{"varMapping":{"__isSmartRef__":true,"id":25441},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":25442},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25441":{"this":{"__isSmartRef__":true,"id":25335}},"25442":{"timestamp":{"__isSmartRef__":true,"id":25443},"user":"sebastianwoinar","tags":[]},"25443":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"25444":{"varMapping":{"__isSmartRef__":true,"id":25445},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":25446},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25445":{"this":{"__isSmartRef__":true,"id":25335}},"25446":{"timestamp":{"__isSmartRef__":true,"id":25447},"user":"sebastianwoinar","tags":[]},"25447":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"25448":{"varMapping":{"__isSmartRef__":true,"id":25449},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":25450},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25449":{"this":{"__isSmartRef__":true,"id":25335}},"25450":{"timestamp":{"__isSmartRef__":true,"id":25451},"user":"sebastianwoinar","tags":[]},"25451":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"25452":{"varMapping":{"__isSmartRef__":true,"id":25453},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":25454},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25453":{"this":{"__isSmartRef__":true,"id":25335}},"25454":{"timestamp":{"__isSmartRef__":true,"id":25455},"user":"sebastianwoinar","tags":[]},"25455":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"25456":{"varMapping":{"__isSmartRef__":true,"id":25457},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":25458},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25457":{"this":{"__isSmartRef__":true,"id":25335}},"25458":{"timestamp":{"__isSmartRef__":true,"id":25459},"user":"sebastianwoinar","tags":[]},"25459":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"25460":{"varMapping":{"__isSmartRef__":true,"id":25461},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":25462},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25461":{"this":{"__isSmartRef__":true,"id":25335}},"25462":{"timestamp":{"__isSmartRef__":true,"id":25463},"user":"sebastianwoinar","tags":[]},"25463":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"25464":{"submorphs":[{"__isSmartRef__":true,"id":25465}],"scripts":[],"shape":{"__isSmartRef__":true,"id":25482},"id":"0379B74E-E839-45FE-801D-76E2981FEC54","eventHandler":{"__isSmartRef__":true,"id":25483},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":25484},"name":"node156","partsBinMetaInfo":{"__isSmartRef__":true,"id":25485},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5741},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":25311},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":25488},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(709.9,210.0)"},"25465":{"submorphs":[],"scripts":[],"id":"E2DEB1C0-320B-480F-8100-1585E0FDA29B","shape":{"__isSmartRef__":true,"id":25466},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":25467},"textChunks":[{"__isSmartRef__":true,"id":25479}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":25481},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":25464},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"25466":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"25467":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":25468},{"__isSmartRef__":true,"id":25470},{"__isSmartRef__":true,"id":25472},{"__isSmartRef__":true,"id":25474},{"__isSmartRef__":true,"id":25476}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":25478},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"25468":{"date":{"__isSmartRef__":true,"id":25469},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"25469":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"25470":{"date":{"__isSmartRef__":true,"id":25471},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"25471":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"25472":{"date":{"__isSmartRef__":true,"id":25473},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"25473":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"25474":{"date":{"__isSmartRef__":true,"id":25475},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"25475":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"25476":{"date":{"__isSmartRef__":true,"id":25477},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"25477":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"25478":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"25479":{"style":{"__isSmartRef__":true,"id":25480},"morph":{"__isSmartRef__":true,"id":25465},"chunkOwner":{"__isSmartRef__":true,"id":25465},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"25480":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"25481":{"morph":{"__isSmartRef__":true,"id":25465},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"25482":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"25483":{"morph":{"__isSmartRef__":true,"id":25464},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"25484":{},"25485":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":25486}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"25486":{"date":{"__isSmartRef__":true,"id":25487},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"25487":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"25488":{"buildChildNodes":{"__isSmartRef__":true,"id":25489},"getGameTree":{"__isSmartRef__":true,"id":25493},"getLevel":{"__isSmartRef__":true,"id":25497},"getLevelWeight":{"__isSmartRef__":true,"id":25501},"getWeight":{"__isSmartRef__":true,"id":25505},"setNode":{"__isSmartRef__":true,"id":25509},"setParent":{"__isSmartRef__":true,"id":25513},"getParent":{"__isSmartRef__":true,"id":25517},"deactivate":{"__isSmartRef__":true,"id":25521},"blink":{"__isSmartRef__":true,"id":25525},"ABPreturn":{"__isSmartRef__":true,"id":25529},"ABPstart":{"__isSmartRef__":true,"id":25533},"ABPcontinue":{"__isSmartRef__":true,"id":25537},"ABPshowValue":{"__isSmartRef__":true,"id":25541},"ABPgetValue":{"__isSmartRef__":true,"id":25545},"ABPhasChildNodes":{"__isSmartRef__":true,"id":25549},"onMouseDown":{"__isSmartRef__":true,"id":25553},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":25561},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":25565},"ABPmarkAsDone":{"__isSmartRef__":true,"id":25569},"ABPmarkAsActive":{"__isSmartRef__":true,"id":25573},"getStateMorph":{"__isSmartRef__":true,"id":25577},"showState":{"__isSmartRef__":true,"id":25581},"ABPfailHard":{"__isSmartRef__":true,"id":25585},"markFinalDrawWith":{"__isSmartRef__":true,"id":25589}},"25489":{"varMapping":{"__isSmartRef__":true,"id":25490},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":25491},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25490":{"this":{"__isSmartRef__":true,"id":25464}},"25491":{"timestamp":{"__isSmartRef__":true,"id":25492},"user":"sebastianwoinar","tags":[]},"25492":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"25493":{"varMapping":{"__isSmartRef__":true,"id":25494},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":25495},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25494":{"this":{"__isSmartRef__":true,"id":25464}},"25495":{"timestamp":{"__isSmartRef__":true,"id":25496},"user":"sebastianwoinar","tags":[]},"25496":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25497":{"varMapping":{"__isSmartRef__":true,"id":25498},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":25499},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25498":{"this":{"__isSmartRef__":true,"id":25464}},"25499":{"timestamp":{"__isSmartRef__":true,"id":25500},"user":"sebastianwoinar","tags":[]},"25500":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25501":{"varMapping":{"__isSmartRef__":true,"id":25502},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":25503},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25502":{"this":{"__isSmartRef__":true,"id":25464}},"25503":{"timestamp":{"__isSmartRef__":true,"id":25504},"user":"sebastianwoinar","tags":[]},"25504":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25505":{"varMapping":{"__isSmartRef__":true,"id":25506},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":25507},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25506":{"this":{"__isSmartRef__":true,"id":25464}},"25507":{"timestamp":{"__isSmartRef__":true,"id":25508},"user":"sebastianwoinar","tags":[]},"25508":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25509":{"varMapping":{"__isSmartRef__":true,"id":25510},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":25511},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25510":{"this":{"__isSmartRef__":true,"id":25464}},"25511":{"timestamp":{"__isSmartRef__":true,"id":25512},"user":"sebastianwoinar","tags":[]},"25512":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25513":{"varMapping":{"__isSmartRef__":true,"id":25514},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":25515},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25514":{"this":{"__isSmartRef__":true,"id":25464}},"25515":{"timestamp":{"__isSmartRef__":true,"id":25516},"user":"sebastianwoinar","tags":[]},"25516":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25517":{"varMapping":{"__isSmartRef__":true,"id":25518},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":25519},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25518":{"this":{"__isSmartRef__":true,"id":25464}},"25519":{"timestamp":{"__isSmartRef__":true,"id":25520},"user":"sebastianwoinar","tags":[]},"25520":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"25521":{"varMapping":{"__isSmartRef__":true,"id":25522},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":25523},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25522":{"this":{"__isSmartRef__":true,"id":25464}},"25523":{"timestamp":{"__isSmartRef__":true,"id":25524},"user":"sebastianwoinar","tags":[]},"25524":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"25525":{"varMapping":{"__isSmartRef__":true,"id":25526},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":25527},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25526":{"this":{"__isSmartRef__":true,"id":25464}},"25527":{"timestamp":{"__isSmartRef__":true,"id":25528},"user":"sebastianwoinar","tags":[]},"25528":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"25529":{"varMapping":{"__isSmartRef__":true,"id":25530},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":25531},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25530":{"this":{"__isSmartRef__":true,"id":25464}},"25531":{"timestamp":{"__isSmartRef__":true,"id":25532},"user":"sebastianwoinar","tags":[]},"25532":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"25533":{"varMapping":{"__isSmartRef__":true,"id":25534},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":25535},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25534":{"this":{"__isSmartRef__":true,"id":25464}},"25535":{"timestamp":{"__isSmartRef__":true,"id":25536},"user":"sebastianwoinar","tags":[]},"25536":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"25537":{"varMapping":{"__isSmartRef__":true,"id":25538},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":25539},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25538":{"this":{"__isSmartRef__":true,"id":25464}},"25539":{"timestamp":{"__isSmartRef__":true,"id":25540},"user":"sebastianwoinar","tags":[]},"25540":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"25541":{"varMapping":{"__isSmartRef__":true,"id":25542},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":25543},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25542":{"this":{"__isSmartRef__":true,"id":25464}},"25543":{"timestamp":{"__isSmartRef__":true,"id":25544},"user":"sebastianwoinar","tags":[]},"25544":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"25545":{"varMapping":{"__isSmartRef__":true,"id":25546},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":25547},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25546":{"this":{"__isSmartRef__":true,"id":25464}},"25547":{"timestamp":{"__isSmartRef__":true,"id":25548},"user":"sebastianwoinar","tags":[]},"25548":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"25549":{"varMapping":{"__isSmartRef__":true,"id":25550},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":25551},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25550":{"this":{"__isSmartRef__":true,"id":25464}},"25551":{"timestamp":{"__isSmartRef__":true,"id":25552},"user":"sebastianwoinar","tags":[]},"25552":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"25553":{"varMapping":{"__isSmartRef__":true,"id":25554},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":25559},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25554":{"this":{"__isSmartRef__":true,"id":25464},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":25555}},"25555":{"$super":{"__isSmartRef__":true,"id":25556}},"25556":{"varMapping":{"__isSmartRef__":true,"id":25557},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":25558},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25557":{"obj":{"__isSmartRef__":true,"id":25464},"name":"onMouseDown"},"25558":{},"25559":{"timestamp":{"__isSmartRef__":true,"id":25560},"user":"sebastianwoinar","tags":[]},"25560":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"25561":{"varMapping":{"__isSmartRef__":true,"id":25562},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":25563},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25562":{"this":{"__isSmartRef__":true,"id":25464}},"25563":{"timestamp":{"__isSmartRef__":true,"id":25564},"user":"sebastianwoinar","tags":[]},"25564":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"25565":{"varMapping":{"__isSmartRef__":true,"id":25566},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":25567},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25566":{"this":{"__isSmartRef__":true,"id":25464}},"25567":{"timestamp":{"__isSmartRef__":true,"id":25568},"user":"sebastianwoinar","tags":[]},"25568":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"25569":{"varMapping":{"__isSmartRef__":true,"id":25570},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":25571},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25570":{"this":{"__isSmartRef__":true,"id":25464}},"25571":{"timestamp":{"__isSmartRef__":true,"id":25572},"user":"sebastianwoinar","tags":[]},"25572":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"25573":{"varMapping":{"__isSmartRef__":true,"id":25574},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":25575},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25574":{"this":{"__isSmartRef__":true,"id":25464}},"25575":{"timestamp":{"__isSmartRef__":true,"id":25576},"user":"sebastianwoinar","tags":[]},"25576":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"25577":{"varMapping":{"__isSmartRef__":true,"id":25578},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":25579},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25578":{"this":{"__isSmartRef__":true,"id":25464}},"25579":{"timestamp":{"__isSmartRef__":true,"id":25580},"user":"sebastianwoinar","tags":[]},"25580":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"25581":{"varMapping":{"__isSmartRef__":true,"id":25582},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":25583},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25582":{"this":{"__isSmartRef__":true,"id":25464}},"25583":{"timestamp":{"__isSmartRef__":true,"id":25584},"user":"sebastianwoinar","tags":[]},"25584":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"25585":{"varMapping":{"__isSmartRef__":true,"id":25586},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":25587},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25586":{"this":{"__isSmartRef__":true,"id":25464}},"25587":{"timestamp":{"__isSmartRef__":true,"id":25588},"user":"sebastianwoinar","tags":[]},"25588":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"25589":{"varMapping":{"__isSmartRef__":true,"id":25590},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":25591},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25590":{"this":{"__isSmartRef__":true,"id":25464}},"25591":{"timestamp":{"__isSmartRef__":true,"id":25592},"user":"sebastianwoinar","tags":[]},"25592":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"25593":{"submorphs":[{"__isSmartRef__":true,"id":25594}],"scripts":[],"shape":{"__isSmartRef__":true,"id":25611},"id":"9D9591BA-68D1-4966-ADEC-56173263E984","eventHandler":{"__isSmartRef__":true,"id":25612},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":25613},"name":"node157","partsBinMetaInfo":{"__isSmartRef__":true,"id":25614},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5743},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":25311},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":25617},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(715.0,210.0)"},"25594":{"submorphs":[],"scripts":[],"id":"0594D433-2AFE-4F30-B4A1-3DFD0667B446","shape":{"__isSmartRef__":true,"id":25595},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":25596},"textChunks":[{"__isSmartRef__":true,"id":25608}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":25610},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":25593},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"25595":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"25596":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":25597},{"__isSmartRef__":true,"id":25599},{"__isSmartRef__":true,"id":25601},{"__isSmartRef__":true,"id":25603},{"__isSmartRef__":true,"id":25605}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":25607},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"25597":{"date":{"__isSmartRef__":true,"id":25598},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"25598":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"25599":{"date":{"__isSmartRef__":true,"id":25600},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"25600":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"25601":{"date":{"__isSmartRef__":true,"id":25602},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"25602":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"25603":{"date":{"__isSmartRef__":true,"id":25604},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"25604":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"25605":{"date":{"__isSmartRef__":true,"id":25606},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"25606":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"25607":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"25608":{"style":{"__isSmartRef__":true,"id":25609},"morph":{"__isSmartRef__":true,"id":25594},"chunkOwner":{"__isSmartRef__":true,"id":25594},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"25609":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"25610":{"morph":{"__isSmartRef__":true,"id":25594},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"25611":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"25612":{"morph":{"__isSmartRef__":true,"id":25593},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"25613":{},"25614":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":25615}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"25615":{"date":{"__isSmartRef__":true,"id":25616},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"25616":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"25617":{"buildChildNodes":{"__isSmartRef__":true,"id":25618},"getGameTree":{"__isSmartRef__":true,"id":25622},"getLevel":{"__isSmartRef__":true,"id":25626},"getLevelWeight":{"__isSmartRef__":true,"id":25630},"getWeight":{"__isSmartRef__":true,"id":25634},"setNode":{"__isSmartRef__":true,"id":25638},"setParent":{"__isSmartRef__":true,"id":25642},"getParent":{"__isSmartRef__":true,"id":25646},"deactivate":{"__isSmartRef__":true,"id":25650},"blink":{"__isSmartRef__":true,"id":25654},"ABPreturn":{"__isSmartRef__":true,"id":25658},"ABPstart":{"__isSmartRef__":true,"id":25662},"ABPcontinue":{"__isSmartRef__":true,"id":25666},"ABPshowValue":{"__isSmartRef__":true,"id":25670},"ABPgetValue":{"__isSmartRef__":true,"id":25674},"ABPhasChildNodes":{"__isSmartRef__":true,"id":25678},"onMouseDown":{"__isSmartRef__":true,"id":25682},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":25690},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":25694},"ABPmarkAsDone":{"__isSmartRef__":true,"id":25698},"ABPmarkAsActive":{"__isSmartRef__":true,"id":25702},"getStateMorph":{"__isSmartRef__":true,"id":25706},"showState":{"__isSmartRef__":true,"id":25710},"ABPfailHard":{"__isSmartRef__":true,"id":25714},"markFinalDrawWith":{"__isSmartRef__":true,"id":25718}},"25618":{"varMapping":{"__isSmartRef__":true,"id":25619},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":25620},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25619":{"this":{"__isSmartRef__":true,"id":25593}},"25620":{"timestamp":{"__isSmartRef__":true,"id":25621},"user":"sebastianwoinar","tags":[]},"25621":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"25622":{"varMapping":{"__isSmartRef__":true,"id":25623},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":25624},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25623":{"this":{"__isSmartRef__":true,"id":25593}},"25624":{"timestamp":{"__isSmartRef__":true,"id":25625},"user":"sebastianwoinar","tags":[]},"25625":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25626":{"varMapping":{"__isSmartRef__":true,"id":25627},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":25628},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25627":{"this":{"__isSmartRef__":true,"id":25593}},"25628":{"timestamp":{"__isSmartRef__":true,"id":25629},"user":"sebastianwoinar","tags":[]},"25629":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25630":{"varMapping":{"__isSmartRef__":true,"id":25631},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":25632},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25631":{"this":{"__isSmartRef__":true,"id":25593}},"25632":{"timestamp":{"__isSmartRef__":true,"id":25633},"user":"sebastianwoinar","tags":[]},"25633":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25634":{"varMapping":{"__isSmartRef__":true,"id":25635},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":25636},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25635":{"this":{"__isSmartRef__":true,"id":25593}},"25636":{"timestamp":{"__isSmartRef__":true,"id":25637},"user":"sebastianwoinar","tags":[]},"25637":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25638":{"varMapping":{"__isSmartRef__":true,"id":25639},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":25640},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25639":{"this":{"__isSmartRef__":true,"id":25593}},"25640":{"timestamp":{"__isSmartRef__":true,"id":25641},"user":"sebastianwoinar","tags":[]},"25641":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25642":{"varMapping":{"__isSmartRef__":true,"id":25643},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":25644},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25643":{"this":{"__isSmartRef__":true,"id":25593}},"25644":{"timestamp":{"__isSmartRef__":true,"id":25645},"user":"sebastianwoinar","tags":[]},"25645":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25646":{"varMapping":{"__isSmartRef__":true,"id":25647},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":25648},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25647":{"this":{"__isSmartRef__":true,"id":25593}},"25648":{"timestamp":{"__isSmartRef__":true,"id":25649},"user":"sebastianwoinar","tags":[]},"25649":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"25650":{"varMapping":{"__isSmartRef__":true,"id":25651},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":25652},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25651":{"this":{"__isSmartRef__":true,"id":25593}},"25652":{"timestamp":{"__isSmartRef__":true,"id":25653},"user":"sebastianwoinar","tags":[]},"25653":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"25654":{"varMapping":{"__isSmartRef__":true,"id":25655},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":25656},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25655":{"this":{"__isSmartRef__":true,"id":25593}},"25656":{"timestamp":{"__isSmartRef__":true,"id":25657},"user":"sebastianwoinar","tags":[]},"25657":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"25658":{"varMapping":{"__isSmartRef__":true,"id":25659},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":25660},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25659":{"this":{"__isSmartRef__":true,"id":25593}},"25660":{"timestamp":{"__isSmartRef__":true,"id":25661},"user":"sebastianwoinar","tags":[]},"25661":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"25662":{"varMapping":{"__isSmartRef__":true,"id":25663},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":25664},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25663":{"this":{"__isSmartRef__":true,"id":25593}},"25664":{"timestamp":{"__isSmartRef__":true,"id":25665},"user":"sebastianwoinar","tags":[]},"25665":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"25666":{"varMapping":{"__isSmartRef__":true,"id":25667},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":25668},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25667":{"this":{"__isSmartRef__":true,"id":25593}},"25668":{"timestamp":{"__isSmartRef__":true,"id":25669},"user":"sebastianwoinar","tags":[]},"25669":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"25670":{"varMapping":{"__isSmartRef__":true,"id":25671},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":25672},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25671":{"this":{"__isSmartRef__":true,"id":25593}},"25672":{"timestamp":{"__isSmartRef__":true,"id":25673},"user":"sebastianwoinar","tags":[]},"25673":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"25674":{"varMapping":{"__isSmartRef__":true,"id":25675},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":25676},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25675":{"this":{"__isSmartRef__":true,"id":25593}},"25676":{"timestamp":{"__isSmartRef__":true,"id":25677},"user":"sebastianwoinar","tags":[]},"25677":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"25678":{"varMapping":{"__isSmartRef__":true,"id":25679},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":25680},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25679":{"this":{"__isSmartRef__":true,"id":25593}},"25680":{"timestamp":{"__isSmartRef__":true,"id":25681},"user":"sebastianwoinar","tags":[]},"25681":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"25682":{"varMapping":{"__isSmartRef__":true,"id":25683},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":25688},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25683":{"this":{"__isSmartRef__":true,"id":25593},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":25684}},"25684":{"$super":{"__isSmartRef__":true,"id":25685}},"25685":{"varMapping":{"__isSmartRef__":true,"id":25686},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":25687},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25686":{"obj":{"__isSmartRef__":true,"id":25593},"name":"onMouseDown"},"25687":{},"25688":{"timestamp":{"__isSmartRef__":true,"id":25689},"user":"sebastianwoinar","tags":[]},"25689":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"25690":{"varMapping":{"__isSmartRef__":true,"id":25691},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":25692},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25691":{"this":{"__isSmartRef__":true,"id":25593}},"25692":{"timestamp":{"__isSmartRef__":true,"id":25693},"user":"sebastianwoinar","tags":[]},"25693":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"25694":{"varMapping":{"__isSmartRef__":true,"id":25695},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":25696},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25695":{"this":{"__isSmartRef__":true,"id":25593}},"25696":{"timestamp":{"__isSmartRef__":true,"id":25697},"user":"sebastianwoinar","tags":[]},"25697":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"25698":{"varMapping":{"__isSmartRef__":true,"id":25699},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":25700},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25699":{"this":{"__isSmartRef__":true,"id":25593}},"25700":{"timestamp":{"__isSmartRef__":true,"id":25701},"user":"sebastianwoinar","tags":[]},"25701":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"25702":{"varMapping":{"__isSmartRef__":true,"id":25703},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":25704},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25703":{"this":{"__isSmartRef__":true,"id":25593}},"25704":{"timestamp":{"__isSmartRef__":true,"id":25705},"user":"sebastianwoinar","tags":[]},"25705":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"25706":{"varMapping":{"__isSmartRef__":true,"id":25707},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":25708},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25707":{"this":{"__isSmartRef__":true,"id":25593}},"25708":{"timestamp":{"__isSmartRef__":true,"id":25709},"user":"sebastianwoinar","tags":[]},"25709":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"25710":{"varMapping":{"__isSmartRef__":true,"id":25711},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":25712},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25711":{"this":{"__isSmartRef__":true,"id":25593}},"25712":{"timestamp":{"__isSmartRef__":true,"id":25713},"user":"sebastianwoinar","tags":[]},"25713":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"25714":{"varMapping":{"__isSmartRef__":true,"id":25715},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":25716},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25715":{"this":{"__isSmartRef__":true,"id":25593}},"25716":{"timestamp":{"__isSmartRef__":true,"id":25717},"user":"sebastianwoinar","tags":[]},"25717":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"25718":{"varMapping":{"__isSmartRef__":true,"id":25719},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":25720},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25719":{"this":{"__isSmartRef__":true,"id":25593}},"25720":{"timestamp":{"__isSmartRef__":true,"id":25721},"user":"sebastianwoinar","tags":[]},"25721":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"25722":{"submorphs":[{"__isSmartRef__":true,"id":25723}],"scripts":[],"shape":{"__isSmartRef__":true,"id":25740},"id":"B39D6EF7-CB45-474C-A6A6-0EDF223B92FC","eventHandler":{"__isSmartRef__":true,"id":25741},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":25742},"name":"node158","partsBinMetaInfo":{"__isSmartRef__":true,"id":25743},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5745},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":25311},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":25746},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(720.2,210.0)"},"25723":{"submorphs":[],"scripts":[],"id":"2A5476EE-3805-4B81-B7D4-73E626135C5E","shape":{"__isSmartRef__":true,"id":25724},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":25725},"textChunks":[{"__isSmartRef__":true,"id":25737}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":25739},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":25722},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"25724":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"25725":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":25726},{"__isSmartRef__":true,"id":25728},{"__isSmartRef__":true,"id":25730},{"__isSmartRef__":true,"id":25732},{"__isSmartRef__":true,"id":25734}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":25736},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"25726":{"date":{"__isSmartRef__":true,"id":25727},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"25727":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"25728":{"date":{"__isSmartRef__":true,"id":25729},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"25729":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"25730":{"date":{"__isSmartRef__":true,"id":25731},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"25731":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"25732":{"date":{"__isSmartRef__":true,"id":25733},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"25733":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"25734":{"date":{"__isSmartRef__":true,"id":25735},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"25735":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"25736":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"25737":{"style":{"__isSmartRef__":true,"id":25738},"morph":{"__isSmartRef__":true,"id":25723},"chunkOwner":{"__isSmartRef__":true,"id":25723},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"25738":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"25739":{"morph":{"__isSmartRef__":true,"id":25723},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"25740":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"25741":{"morph":{"__isSmartRef__":true,"id":25722},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"25742":{},"25743":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":25744}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"25744":{"date":{"__isSmartRef__":true,"id":25745},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"25745":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"25746":{"buildChildNodes":{"__isSmartRef__":true,"id":25747},"getGameTree":{"__isSmartRef__":true,"id":25751},"getLevel":{"__isSmartRef__":true,"id":25755},"getLevelWeight":{"__isSmartRef__":true,"id":25759},"getWeight":{"__isSmartRef__":true,"id":25763},"setNode":{"__isSmartRef__":true,"id":25767},"setParent":{"__isSmartRef__":true,"id":25771},"getParent":{"__isSmartRef__":true,"id":25775},"deactivate":{"__isSmartRef__":true,"id":25779},"blink":{"__isSmartRef__":true,"id":25783},"ABPreturn":{"__isSmartRef__":true,"id":25787},"ABPstart":{"__isSmartRef__":true,"id":25791},"ABPcontinue":{"__isSmartRef__":true,"id":25795},"ABPshowValue":{"__isSmartRef__":true,"id":25799},"ABPgetValue":{"__isSmartRef__":true,"id":25803},"ABPhasChildNodes":{"__isSmartRef__":true,"id":25807},"onMouseDown":{"__isSmartRef__":true,"id":25811},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":25819},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":25823},"ABPmarkAsDone":{"__isSmartRef__":true,"id":25827},"ABPmarkAsActive":{"__isSmartRef__":true,"id":25831},"getStateMorph":{"__isSmartRef__":true,"id":25835},"showState":{"__isSmartRef__":true,"id":25839},"ABPfailHard":{"__isSmartRef__":true,"id":25843},"markFinalDrawWith":{"__isSmartRef__":true,"id":25847}},"25747":{"varMapping":{"__isSmartRef__":true,"id":25748},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":25749},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25748":{"this":{"__isSmartRef__":true,"id":25722}},"25749":{"timestamp":{"__isSmartRef__":true,"id":25750},"user":"sebastianwoinar","tags":[]},"25750":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"25751":{"varMapping":{"__isSmartRef__":true,"id":25752},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":25753},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25752":{"this":{"__isSmartRef__":true,"id":25722}},"25753":{"timestamp":{"__isSmartRef__":true,"id":25754},"user":"sebastianwoinar","tags":[]},"25754":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25755":{"varMapping":{"__isSmartRef__":true,"id":25756},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":25757},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25756":{"this":{"__isSmartRef__":true,"id":25722}},"25757":{"timestamp":{"__isSmartRef__":true,"id":25758},"user":"sebastianwoinar","tags":[]},"25758":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25759":{"varMapping":{"__isSmartRef__":true,"id":25760},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":25761},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25760":{"this":{"__isSmartRef__":true,"id":25722}},"25761":{"timestamp":{"__isSmartRef__":true,"id":25762},"user":"sebastianwoinar","tags":[]},"25762":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25763":{"varMapping":{"__isSmartRef__":true,"id":25764},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":25765},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25764":{"this":{"__isSmartRef__":true,"id":25722}},"25765":{"timestamp":{"__isSmartRef__":true,"id":25766},"user":"sebastianwoinar","tags":[]},"25766":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25767":{"varMapping":{"__isSmartRef__":true,"id":25768},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":25769},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25768":{"this":{"__isSmartRef__":true,"id":25722}},"25769":{"timestamp":{"__isSmartRef__":true,"id":25770},"user":"sebastianwoinar","tags":[]},"25770":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25771":{"varMapping":{"__isSmartRef__":true,"id":25772},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":25773},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25772":{"this":{"__isSmartRef__":true,"id":25722}},"25773":{"timestamp":{"__isSmartRef__":true,"id":25774},"user":"sebastianwoinar","tags":[]},"25774":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25775":{"varMapping":{"__isSmartRef__":true,"id":25776},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":25777},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25776":{"this":{"__isSmartRef__":true,"id":25722}},"25777":{"timestamp":{"__isSmartRef__":true,"id":25778},"user":"sebastianwoinar","tags":[]},"25778":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"25779":{"varMapping":{"__isSmartRef__":true,"id":25780},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":25781},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25780":{"this":{"__isSmartRef__":true,"id":25722}},"25781":{"timestamp":{"__isSmartRef__":true,"id":25782},"user":"sebastianwoinar","tags":[]},"25782":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"25783":{"varMapping":{"__isSmartRef__":true,"id":25784},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":25785},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25784":{"this":{"__isSmartRef__":true,"id":25722}},"25785":{"timestamp":{"__isSmartRef__":true,"id":25786},"user":"sebastianwoinar","tags":[]},"25786":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"25787":{"varMapping":{"__isSmartRef__":true,"id":25788},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":25789},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25788":{"this":{"__isSmartRef__":true,"id":25722}},"25789":{"timestamp":{"__isSmartRef__":true,"id":25790},"user":"sebastianwoinar","tags":[]},"25790":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"25791":{"varMapping":{"__isSmartRef__":true,"id":25792},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":25793},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25792":{"this":{"__isSmartRef__":true,"id":25722}},"25793":{"timestamp":{"__isSmartRef__":true,"id":25794},"user":"sebastianwoinar","tags":[]},"25794":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"25795":{"varMapping":{"__isSmartRef__":true,"id":25796},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":25797},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25796":{"this":{"__isSmartRef__":true,"id":25722}},"25797":{"timestamp":{"__isSmartRef__":true,"id":25798},"user":"sebastianwoinar","tags":[]},"25798":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"25799":{"varMapping":{"__isSmartRef__":true,"id":25800},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":25801},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25800":{"this":{"__isSmartRef__":true,"id":25722}},"25801":{"timestamp":{"__isSmartRef__":true,"id":25802},"user":"sebastianwoinar","tags":[]},"25802":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"25803":{"varMapping":{"__isSmartRef__":true,"id":25804},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":25805},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25804":{"this":{"__isSmartRef__":true,"id":25722}},"25805":{"timestamp":{"__isSmartRef__":true,"id":25806},"user":"sebastianwoinar","tags":[]},"25806":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"25807":{"varMapping":{"__isSmartRef__":true,"id":25808},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":25809},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25808":{"this":{"__isSmartRef__":true,"id":25722}},"25809":{"timestamp":{"__isSmartRef__":true,"id":25810},"user":"sebastianwoinar","tags":[]},"25810":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"25811":{"varMapping":{"__isSmartRef__":true,"id":25812},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":25817},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25812":{"this":{"__isSmartRef__":true,"id":25722},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":25813}},"25813":{"$super":{"__isSmartRef__":true,"id":25814}},"25814":{"varMapping":{"__isSmartRef__":true,"id":25815},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":25816},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25815":{"obj":{"__isSmartRef__":true,"id":25722},"name":"onMouseDown"},"25816":{},"25817":{"timestamp":{"__isSmartRef__":true,"id":25818},"user":"sebastianwoinar","tags":[]},"25818":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"25819":{"varMapping":{"__isSmartRef__":true,"id":25820},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":25821},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25820":{"this":{"__isSmartRef__":true,"id":25722}},"25821":{"timestamp":{"__isSmartRef__":true,"id":25822},"user":"sebastianwoinar","tags":[]},"25822":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"25823":{"varMapping":{"__isSmartRef__":true,"id":25824},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":25825},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25824":{"this":{"__isSmartRef__":true,"id":25722}},"25825":{"timestamp":{"__isSmartRef__":true,"id":25826},"user":"sebastianwoinar","tags":[]},"25826":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"25827":{"varMapping":{"__isSmartRef__":true,"id":25828},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":25829},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25828":{"this":{"__isSmartRef__":true,"id":25722}},"25829":{"timestamp":{"__isSmartRef__":true,"id":25830},"user":"sebastianwoinar","tags":[]},"25830":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"25831":{"varMapping":{"__isSmartRef__":true,"id":25832},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":25833},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25832":{"this":{"__isSmartRef__":true,"id":25722}},"25833":{"timestamp":{"__isSmartRef__":true,"id":25834},"user":"sebastianwoinar","tags":[]},"25834":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"25835":{"varMapping":{"__isSmartRef__":true,"id":25836},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":25837},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25836":{"this":{"__isSmartRef__":true,"id":25722}},"25837":{"timestamp":{"__isSmartRef__":true,"id":25838},"user":"sebastianwoinar","tags":[]},"25838":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"25839":{"varMapping":{"__isSmartRef__":true,"id":25840},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":25841},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25840":{"this":{"__isSmartRef__":true,"id":25722}},"25841":{"timestamp":{"__isSmartRef__":true,"id":25842},"user":"sebastianwoinar","tags":[]},"25842":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"25843":{"varMapping":{"__isSmartRef__":true,"id":25844},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":25845},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25844":{"this":{"__isSmartRef__":true,"id":25722}},"25845":{"timestamp":{"__isSmartRef__":true,"id":25846},"user":"sebastianwoinar","tags":[]},"25846":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"25847":{"varMapping":{"__isSmartRef__":true,"id":25848},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":25849},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25848":{"this":{"__isSmartRef__":true,"id":25722}},"25849":{"timestamp":{"__isSmartRef__":true,"id":25850},"user":"sebastianwoinar","tags":[]},"25850":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"25851":{"submorphs":[{"__isSmartRef__":true,"id":25852}],"scripts":[],"shape":{"__isSmartRef__":true,"id":25869},"id":"93BE151B-83A1-4274-A3F2-401590337520","eventHandler":{"__isSmartRef__":true,"id":25870},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":25871},"name":"node159","partsBinMetaInfo":{"__isSmartRef__":true,"id":25872},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5747},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":25311},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":25875},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(725.4,210.0)"},"25852":{"submorphs":[],"scripts":[],"id":"574F0CF0-DF76-4E7A-9190-A37CEA1F7A62","shape":{"__isSmartRef__":true,"id":25853},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":25854},"textChunks":[{"__isSmartRef__":true,"id":25866}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":25868},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":25851},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"25853":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"25854":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":25855},{"__isSmartRef__":true,"id":25857},{"__isSmartRef__":true,"id":25859},{"__isSmartRef__":true,"id":25861},{"__isSmartRef__":true,"id":25863}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":25865},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"25855":{"date":{"__isSmartRef__":true,"id":25856},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"25856":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"25857":{"date":{"__isSmartRef__":true,"id":25858},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"25858":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"25859":{"date":{"__isSmartRef__":true,"id":25860},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"25860":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"25861":{"date":{"__isSmartRef__":true,"id":25862},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"25862":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"25863":{"date":{"__isSmartRef__":true,"id":25864},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"25864":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"25865":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"25866":{"style":{"__isSmartRef__":true,"id":25867},"morph":{"__isSmartRef__":true,"id":25852},"chunkOwner":{"__isSmartRef__":true,"id":25852},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"25867":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"25868":{"morph":{"__isSmartRef__":true,"id":25852},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"25869":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"25870":{"morph":{"__isSmartRef__":true,"id":25851},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"25871":{},"25872":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":25873}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"25873":{"date":{"__isSmartRef__":true,"id":25874},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"25874":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"25875":{"buildChildNodes":{"__isSmartRef__":true,"id":25876},"getGameTree":{"__isSmartRef__":true,"id":25880},"getLevel":{"__isSmartRef__":true,"id":25884},"getLevelWeight":{"__isSmartRef__":true,"id":25888},"getWeight":{"__isSmartRef__":true,"id":25892},"setNode":{"__isSmartRef__":true,"id":25896},"setParent":{"__isSmartRef__":true,"id":25900},"getParent":{"__isSmartRef__":true,"id":25904},"deactivate":{"__isSmartRef__":true,"id":25908},"blink":{"__isSmartRef__":true,"id":25912},"ABPreturn":{"__isSmartRef__":true,"id":25916},"ABPstart":{"__isSmartRef__":true,"id":25920},"ABPcontinue":{"__isSmartRef__":true,"id":25924},"ABPshowValue":{"__isSmartRef__":true,"id":25928},"ABPgetValue":{"__isSmartRef__":true,"id":25932},"ABPhasChildNodes":{"__isSmartRef__":true,"id":25936},"onMouseDown":{"__isSmartRef__":true,"id":25940},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":25948},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":25952},"ABPmarkAsDone":{"__isSmartRef__":true,"id":25956},"ABPmarkAsActive":{"__isSmartRef__":true,"id":25960},"getStateMorph":{"__isSmartRef__":true,"id":25964},"showState":{"__isSmartRef__":true,"id":25968},"ABPfailHard":{"__isSmartRef__":true,"id":25972},"markFinalDrawWith":{"__isSmartRef__":true,"id":25976}},"25876":{"varMapping":{"__isSmartRef__":true,"id":25877},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":25878},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25877":{"this":{"__isSmartRef__":true,"id":25851}},"25878":{"timestamp":{"__isSmartRef__":true,"id":25879},"user":"sebastianwoinar","tags":[]},"25879":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"25880":{"varMapping":{"__isSmartRef__":true,"id":25881},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":25882},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25881":{"this":{"__isSmartRef__":true,"id":25851}},"25882":{"timestamp":{"__isSmartRef__":true,"id":25883},"user":"sebastianwoinar","tags":[]},"25883":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25884":{"varMapping":{"__isSmartRef__":true,"id":25885},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":25886},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25885":{"this":{"__isSmartRef__":true,"id":25851}},"25886":{"timestamp":{"__isSmartRef__":true,"id":25887},"user":"sebastianwoinar","tags":[]},"25887":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25888":{"varMapping":{"__isSmartRef__":true,"id":25889},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":25890},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25889":{"this":{"__isSmartRef__":true,"id":25851}},"25890":{"timestamp":{"__isSmartRef__":true,"id":25891},"user":"sebastianwoinar","tags":[]},"25891":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25892":{"varMapping":{"__isSmartRef__":true,"id":25893},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":25894},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25893":{"this":{"__isSmartRef__":true,"id":25851}},"25894":{"timestamp":{"__isSmartRef__":true,"id":25895},"user":"sebastianwoinar","tags":[]},"25895":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25896":{"varMapping":{"__isSmartRef__":true,"id":25897},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":25898},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25897":{"this":{"__isSmartRef__":true,"id":25851}},"25898":{"timestamp":{"__isSmartRef__":true,"id":25899},"user":"sebastianwoinar","tags":[]},"25899":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25900":{"varMapping":{"__isSmartRef__":true,"id":25901},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":25902},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25901":{"this":{"__isSmartRef__":true,"id":25851}},"25902":{"timestamp":{"__isSmartRef__":true,"id":25903},"user":"sebastianwoinar","tags":[]},"25903":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"25904":{"varMapping":{"__isSmartRef__":true,"id":25905},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":25906},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25905":{"this":{"__isSmartRef__":true,"id":25851}},"25906":{"timestamp":{"__isSmartRef__":true,"id":25907},"user":"sebastianwoinar","tags":[]},"25907":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"25908":{"varMapping":{"__isSmartRef__":true,"id":25909},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":25910},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25909":{"this":{"__isSmartRef__":true,"id":25851}},"25910":{"timestamp":{"__isSmartRef__":true,"id":25911},"user":"sebastianwoinar","tags":[]},"25911":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"25912":{"varMapping":{"__isSmartRef__":true,"id":25913},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":25914},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25913":{"this":{"__isSmartRef__":true,"id":25851}},"25914":{"timestamp":{"__isSmartRef__":true,"id":25915},"user":"sebastianwoinar","tags":[]},"25915":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"25916":{"varMapping":{"__isSmartRef__":true,"id":25917},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":25918},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25917":{"this":{"__isSmartRef__":true,"id":25851}},"25918":{"timestamp":{"__isSmartRef__":true,"id":25919},"user":"sebastianwoinar","tags":[]},"25919":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"25920":{"varMapping":{"__isSmartRef__":true,"id":25921},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":25922},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25921":{"this":{"__isSmartRef__":true,"id":25851}},"25922":{"timestamp":{"__isSmartRef__":true,"id":25923},"user":"sebastianwoinar","tags":[]},"25923":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"25924":{"varMapping":{"__isSmartRef__":true,"id":25925},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":25926},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25925":{"this":{"__isSmartRef__":true,"id":25851}},"25926":{"timestamp":{"__isSmartRef__":true,"id":25927},"user":"sebastianwoinar","tags":[]},"25927":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"25928":{"varMapping":{"__isSmartRef__":true,"id":25929},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":25930},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25929":{"this":{"__isSmartRef__":true,"id":25851}},"25930":{"timestamp":{"__isSmartRef__":true,"id":25931},"user":"sebastianwoinar","tags":[]},"25931":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"25932":{"varMapping":{"__isSmartRef__":true,"id":25933},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":25934},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25933":{"this":{"__isSmartRef__":true,"id":25851}},"25934":{"timestamp":{"__isSmartRef__":true,"id":25935},"user":"sebastianwoinar","tags":[]},"25935":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"25936":{"varMapping":{"__isSmartRef__":true,"id":25937},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":25938},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25937":{"this":{"__isSmartRef__":true,"id":25851}},"25938":{"timestamp":{"__isSmartRef__":true,"id":25939},"user":"sebastianwoinar","tags":[]},"25939":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"25940":{"varMapping":{"__isSmartRef__":true,"id":25941},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":25946},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25941":{"this":{"__isSmartRef__":true,"id":25851},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":25942}},"25942":{"$super":{"__isSmartRef__":true,"id":25943}},"25943":{"varMapping":{"__isSmartRef__":true,"id":25944},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":25945},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25944":{"obj":{"__isSmartRef__":true,"id":25851},"name":"onMouseDown"},"25945":{},"25946":{"timestamp":{"__isSmartRef__":true,"id":25947},"user":"sebastianwoinar","tags":[]},"25947":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"25948":{"varMapping":{"__isSmartRef__":true,"id":25949},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":25950},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25949":{"this":{"__isSmartRef__":true,"id":25851}},"25950":{"timestamp":{"__isSmartRef__":true,"id":25951},"user":"sebastianwoinar","tags":[]},"25951":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"25952":{"varMapping":{"__isSmartRef__":true,"id":25953},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":25954},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25953":{"this":{"__isSmartRef__":true,"id":25851}},"25954":{"timestamp":{"__isSmartRef__":true,"id":25955},"user":"sebastianwoinar","tags":[]},"25955":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"25956":{"varMapping":{"__isSmartRef__":true,"id":25957},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":25958},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25957":{"this":{"__isSmartRef__":true,"id":25851}},"25958":{"timestamp":{"__isSmartRef__":true,"id":25959},"user":"sebastianwoinar","tags":[]},"25959":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"25960":{"varMapping":{"__isSmartRef__":true,"id":25961},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":25962},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25961":{"this":{"__isSmartRef__":true,"id":25851}},"25962":{"timestamp":{"__isSmartRef__":true,"id":25963},"user":"sebastianwoinar","tags":[]},"25963":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"25964":{"varMapping":{"__isSmartRef__":true,"id":25965},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":25966},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25965":{"this":{"__isSmartRef__":true,"id":25851}},"25966":{"timestamp":{"__isSmartRef__":true,"id":25967},"user":"sebastianwoinar","tags":[]},"25967":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"25968":{"varMapping":{"__isSmartRef__":true,"id":25969},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":25970},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25969":{"this":{"__isSmartRef__":true,"id":25851}},"25970":{"timestamp":{"__isSmartRef__":true,"id":25971},"user":"sebastianwoinar","tags":[]},"25971":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"25972":{"varMapping":{"__isSmartRef__":true,"id":25973},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":25974},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25973":{"this":{"__isSmartRef__":true,"id":25851}},"25974":{"timestamp":{"__isSmartRef__":true,"id":25975},"user":"sebastianwoinar","tags":[]},"25975":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"25976":{"varMapping":{"__isSmartRef__":true,"id":25977},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":25978},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25977":{"this":{"__isSmartRef__":true,"id":25851}},"25978":{"timestamp":{"__isSmartRef__":true,"id":25979},"user":"sebastianwoinar","tags":[]},"25979":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"25980":{"submorphs":[{"__isSmartRef__":true,"id":25981}],"scripts":[],"shape":{"__isSmartRef__":true,"id":25998},"id":"28E911CE-2D99-4D2D-AE26-188741D61121","eventHandler":{"__isSmartRef__":true,"id":25999},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":26000},"name":"node160","partsBinMetaInfo":{"__isSmartRef__":true,"id":26001},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5749},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":25311},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":26004},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(730.6,210.0)"},"25981":{"submorphs":[],"scripts":[],"id":"539C8A9F-1F4F-4F72-8E62-25CA64A07CC5","shape":{"__isSmartRef__":true,"id":25982},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":25983},"textChunks":[{"__isSmartRef__":true,"id":25995}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":25997},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":25980},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"25982":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"25983":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":25984},{"__isSmartRef__":true,"id":25986},{"__isSmartRef__":true,"id":25988},{"__isSmartRef__":true,"id":25990},{"__isSmartRef__":true,"id":25992}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":25994},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"25984":{"date":{"__isSmartRef__":true,"id":25985},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"25985":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"25986":{"date":{"__isSmartRef__":true,"id":25987},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"25987":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"25988":{"date":{"__isSmartRef__":true,"id":25989},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"25989":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"25990":{"date":{"__isSmartRef__":true,"id":25991},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"25991":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"25992":{"date":{"__isSmartRef__":true,"id":25993},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"25993":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"25994":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"25995":{"style":{"__isSmartRef__":true,"id":25996},"morph":{"__isSmartRef__":true,"id":25981},"chunkOwner":{"__isSmartRef__":true,"id":25981},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"25996":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"25997":{"morph":{"__isSmartRef__":true,"id":25981},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"25998":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"25999":{"morph":{"__isSmartRef__":true,"id":25980},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"26000":{},"26001":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":26002}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"26002":{"date":{"__isSmartRef__":true,"id":26003},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"26003":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"26004":{"buildChildNodes":{"__isSmartRef__":true,"id":26005},"getGameTree":{"__isSmartRef__":true,"id":26009},"getLevel":{"__isSmartRef__":true,"id":26013},"getLevelWeight":{"__isSmartRef__":true,"id":26017},"getWeight":{"__isSmartRef__":true,"id":26021},"setNode":{"__isSmartRef__":true,"id":26025},"setParent":{"__isSmartRef__":true,"id":26029},"getParent":{"__isSmartRef__":true,"id":26033},"deactivate":{"__isSmartRef__":true,"id":26037},"blink":{"__isSmartRef__":true,"id":26041},"ABPreturn":{"__isSmartRef__":true,"id":26045},"ABPstart":{"__isSmartRef__":true,"id":26049},"ABPcontinue":{"__isSmartRef__":true,"id":26053},"ABPshowValue":{"__isSmartRef__":true,"id":26057},"ABPgetValue":{"__isSmartRef__":true,"id":26061},"ABPhasChildNodes":{"__isSmartRef__":true,"id":26065},"onMouseDown":{"__isSmartRef__":true,"id":26069},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":26077},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":26081},"ABPmarkAsDone":{"__isSmartRef__":true,"id":26085},"ABPmarkAsActive":{"__isSmartRef__":true,"id":26089},"getStateMorph":{"__isSmartRef__":true,"id":26093},"showState":{"__isSmartRef__":true,"id":26097},"ABPfailHard":{"__isSmartRef__":true,"id":26101},"markFinalDrawWith":{"__isSmartRef__":true,"id":26105}},"26005":{"varMapping":{"__isSmartRef__":true,"id":26006},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":26007},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26006":{"this":{"__isSmartRef__":true,"id":25980}},"26007":{"timestamp":{"__isSmartRef__":true,"id":26008},"user":"sebastianwoinar","tags":[]},"26008":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"26009":{"varMapping":{"__isSmartRef__":true,"id":26010},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":26011},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26010":{"this":{"__isSmartRef__":true,"id":25980}},"26011":{"timestamp":{"__isSmartRef__":true,"id":26012},"user":"sebastianwoinar","tags":[]},"26012":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26013":{"varMapping":{"__isSmartRef__":true,"id":26014},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":26015},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26014":{"this":{"__isSmartRef__":true,"id":25980}},"26015":{"timestamp":{"__isSmartRef__":true,"id":26016},"user":"sebastianwoinar","tags":[]},"26016":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26017":{"varMapping":{"__isSmartRef__":true,"id":26018},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":26019},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26018":{"this":{"__isSmartRef__":true,"id":25980}},"26019":{"timestamp":{"__isSmartRef__":true,"id":26020},"user":"sebastianwoinar","tags":[]},"26020":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26021":{"varMapping":{"__isSmartRef__":true,"id":26022},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":26023},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26022":{"this":{"__isSmartRef__":true,"id":25980}},"26023":{"timestamp":{"__isSmartRef__":true,"id":26024},"user":"sebastianwoinar","tags":[]},"26024":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26025":{"varMapping":{"__isSmartRef__":true,"id":26026},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":26027},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26026":{"this":{"__isSmartRef__":true,"id":25980}},"26027":{"timestamp":{"__isSmartRef__":true,"id":26028},"user":"sebastianwoinar","tags":[]},"26028":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26029":{"varMapping":{"__isSmartRef__":true,"id":26030},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":26031},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26030":{"this":{"__isSmartRef__":true,"id":25980}},"26031":{"timestamp":{"__isSmartRef__":true,"id":26032},"user":"sebastianwoinar","tags":[]},"26032":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26033":{"varMapping":{"__isSmartRef__":true,"id":26034},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":26035},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26034":{"this":{"__isSmartRef__":true,"id":25980}},"26035":{"timestamp":{"__isSmartRef__":true,"id":26036},"user":"sebastianwoinar","tags":[]},"26036":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"26037":{"varMapping":{"__isSmartRef__":true,"id":26038},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":26039},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26038":{"this":{"__isSmartRef__":true,"id":25980}},"26039":{"timestamp":{"__isSmartRef__":true,"id":26040},"user":"sebastianwoinar","tags":[]},"26040":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"26041":{"varMapping":{"__isSmartRef__":true,"id":26042},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":26043},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26042":{"this":{"__isSmartRef__":true,"id":25980}},"26043":{"timestamp":{"__isSmartRef__":true,"id":26044},"user":"sebastianwoinar","tags":[]},"26044":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"26045":{"varMapping":{"__isSmartRef__":true,"id":26046},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":26047},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26046":{"this":{"__isSmartRef__":true,"id":25980}},"26047":{"timestamp":{"__isSmartRef__":true,"id":26048},"user":"sebastianwoinar","tags":[]},"26048":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"26049":{"varMapping":{"__isSmartRef__":true,"id":26050},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":26051},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26050":{"this":{"__isSmartRef__":true,"id":25980}},"26051":{"timestamp":{"__isSmartRef__":true,"id":26052},"user":"sebastianwoinar","tags":[]},"26052":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"26053":{"varMapping":{"__isSmartRef__":true,"id":26054},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":26055},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26054":{"this":{"__isSmartRef__":true,"id":25980}},"26055":{"timestamp":{"__isSmartRef__":true,"id":26056},"user":"sebastianwoinar","tags":[]},"26056":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"26057":{"varMapping":{"__isSmartRef__":true,"id":26058},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":26059},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26058":{"this":{"__isSmartRef__":true,"id":25980}},"26059":{"timestamp":{"__isSmartRef__":true,"id":26060},"user":"sebastianwoinar","tags":[]},"26060":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"26061":{"varMapping":{"__isSmartRef__":true,"id":26062},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":26063},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26062":{"this":{"__isSmartRef__":true,"id":25980}},"26063":{"timestamp":{"__isSmartRef__":true,"id":26064},"user":"sebastianwoinar","tags":[]},"26064":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"26065":{"varMapping":{"__isSmartRef__":true,"id":26066},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":26067},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26066":{"this":{"__isSmartRef__":true,"id":25980}},"26067":{"timestamp":{"__isSmartRef__":true,"id":26068},"user":"sebastianwoinar","tags":[]},"26068":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"26069":{"varMapping":{"__isSmartRef__":true,"id":26070},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":26075},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26070":{"this":{"__isSmartRef__":true,"id":25980},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":26071}},"26071":{"$super":{"__isSmartRef__":true,"id":26072}},"26072":{"varMapping":{"__isSmartRef__":true,"id":26073},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":26074},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26073":{"obj":{"__isSmartRef__":true,"id":25980},"name":"onMouseDown"},"26074":{},"26075":{"timestamp":{"__isSmartRef__":true,"id":26076},"user":"sebastianwoinar","tags":[]},"26076":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"26077":{"varMapping":{"__isSmartRef__":true,"id":26078},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":26079},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26078":{"this":{"__isSmartRef__":true,"id":25980}},"26079":{"timestamp":{"__isSmartRef__":true,"id":26080},"user":"sebastianwoinar","tags":[]},"26080":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"26081":{"varMapping":{"__isSmartRef__":true,"id":26082},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":26083},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26082":{"this":{"__isSmartRef__":true,"id":25980}},"26083":{"timestamp":{"__isSmartRef__":true,"id":26084},"user":"sebastianwoinar","tags":[]},"26084":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"26085":{"varMapping":{"__isSmartRef__":true,"id":26086},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":26087},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26086":{"this":{"__isSmartRef__":true,"id":25980}},"26087":{"timestamp":{"__isSmartRef__":true,"id":26088},"user":"sebastianwoinar","tags":[]},"26088":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"26089":{"varMapping":{"__isSmartRef__":true,"id":26090},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":26091},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26090":{"this":{"__isSmartRef__":true,"id":25980}},"26091":{"timestamp":{"__isSmartRef__":true,"id":26092},"user":"sebastianwoinar","tags":[]},"26092":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"26093":{"varMapping":{"__isSmartRef__":true,"id":26094},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":26095},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26094":{"this":{"__isSmartRef__":true,"id":25980}},"26095":{"timestamp":{"__isSmartRef__":true,"id":26096},"user":"sebastianwoinar","tags":[]},"26096":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"26097":{"varMapping":{"__isSmartRef__":true,"id":26098},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":26099},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26098":{"this":{"__isSmartRef__":true,"id":25980}},"26099":{"timestamp":{"__isSmartRef__":true,"id":26100},"user":"sebastianwoinar","tags":[]},"26100":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"26101":{"varMapping":{"__isSmartRef__":true,"id":26102},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":26103},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26102":{"this":{"__isSmartRef__":true,"id":25980}},"26103":{"timestamp":{"__isSmartRef__":true,"id":26104},"user":"sebastianwoinar","tags":[]},"26104":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"26105":{"varMapping":{"__isSmartRef__":true,"id":26106},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":26107},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26106":{"this":{"__isSmartRef__":true,"id":25980}},"26107":{"timestamp":{"__isSmartRef__":true,"id":26108},"user":"sebastianwoinar","tags":[]},"26108":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"26109":{"submorphs":[{"__isSmartRef__":true,"id":26110}],"scripts":[],"shape":{"__isSmartRef__":true,"id":26127},"id":"FEB7B7FB-18CD-428A-815B-E96FFEC1F69C","eventHandler":{"__isSmartRef__":true,"id":26128},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":26129},"name":"node161","partsBinMetaInfo":{"__isSmartRef__":true,"id":26130},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5751},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":25311},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":26133},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(735.8,210.0)"},"26110":{"submorphs":[],"scripts":[],"id":"101CC074-BA40-4675-A35C-AF60825BFB6E","shape":{"__isSmartRef__":true,"id":26111},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":26112},"textChunks":[{"__isSmartRef__":true,"id":26124}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":26126},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":26109},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"26111":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"26112":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":26113},{"__isSmartRef__":true,"id":26115},{"__isSmartRef__":true,"id":26117},{"__isSmartRef__":true,"id":26119},{"__isSmartRef__":true,"id":26121}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":26123},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"26113":{"date":{"__isSmartRef__":true,"id":26114},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"26114":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"26115":{"date":{"__isSmartRef__":true,"id":26116},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"26116":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"26117":{"date":{"__isSmartRef__":true,"id":26118},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"26118":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"26119":{"date":{"__isSmartRef__":true,"id":26120},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"26120":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"26121":{"date":{"__isSmartRef__":true,"id":26122},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"26122":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"26123":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"26124":{"style":{"__isSmartRef__":true,"id":26125},"morph":{"__isSmartRef__":true,"id":26110},"chunkOwner":{"__isSmartRef__":true,"id":26110},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"26125":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"26126":{"morph":{"__isSmartRef__":true,"id":26110},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"26127":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"26128":{"morph":{"__isSmartRef__":true,"id":26109},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"26129":{},"26130":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":26131}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"26131":{"date":{"__isSmartRef__":true,"id":26132},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"26132":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"26133":{"buildChildNodes":{"__isSmartRef__":true,"id":26134},"getGameTree":{"__isSmartRef__":true,"id":26138},"getLevel":{"__isSmartRef__":true,"id":26142},"getLevelWeight":{"__isSmartRef__":true,"id":26146},"getWeight":{"__isSmartRef__":true,"id":26150},"setNode":{"__isSmartRef__":true,"id":26154},"setParent":{"__isSmartRef__":true,"id":26158},"getParent":{"__isSmartRef__":true,"id":26162},"deactivate":{"__isSmartRef__":true,"id":26166},"blink":{"__isSmartRef__":true,"id":26170},"ABPreturn":{"__isSmartRef__":true,"id":26174},"ABPstart":{"__isSmartRef__":true,"id":26178},"ABPcontinue":{"__isSmartRef__":true,"id":26182},"ABPshowValue":{"__isSmartRef__":true,"id":26186},"ABPgetValue":{"__isSmartRef__":true,"id":26190},"ABPhasChildNodes":{"__isSmartRef__":true,"id":26194},"onMouseDown":{"__isSmartRef__":true,"id":26198},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":26206},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":26210},"ABPmarkAsDone":{"__isSmartRef__":true,"id":26214},"ABPmarkAsActive":{"__isSmartRef__":true,"id":26218},"getStateMorph":{"__isSmartRef__":true,"id":26222},"showState":{"__isSmartRef__":true,"id":26226},"ABPfailHard":{"__isSmartRef__":true,"id":26230},"markFinalDrawWith":{"__isSmartRef__":true,"id":26234}},"26134":{"varMapping":{"__isSmartRef__":true,"id":26135},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":26136},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26135":{"this":{"__isSmartRef__":true,"id":26109}},"26136":{"timestamp":{"__isSmartRef__":true,"id":26137},"user":"sebastianwoinar","tags":[]},"26137":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"26138":{"varMapping":{"__isSmartRef__":true,"id":26139},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":26140},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26139":{"this":{"__isSmartRef__":true,"id":26109}},"26140":{"timestamp":{"__isSmartRef__":true,"id":26141},"user":"sebastianwoinar","tags":[]},"26141":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26142":{"varMapping":{"__isSmartRef__":true,"id":26143},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":26144},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26143":{"this":{"__isSmartRef__":true,"id":26109}},"26144":{"timestamp":{"__isSmartRef__":true,"id":26145},"user":"sebastianwoinar","tags":[]},"26145":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26146":{"varMapping":{"__isSmartRef__":true,"id":26147},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":26148},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26147":{"this":{"__isSmartRef__":true,"id":26109}},"26148":{"timestamp":{"__isSmartRef__":true,"id":26149},"user":"sebastianwoinar","tags":[]},"26149":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26150":{"varMapping":{"__isSmartRef__":true,"id":26151},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":26152},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26151":{"this":{"__isSmartRef__":true,"id":26109}},"26152":{"timestamp":{"__isSmartRef__":true,"id":26153},"user":"sebastianwoinar","tags":[]},"26153":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26154":{"varMapping":{"__isSmartRef__":true,"id":26155},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":26156},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26155":{"this":{"__isSmartRef__":true,"id":26109}},"26156":{"timestamp":{"__isSmartRef__":true,"id":26157},"user":"sebastianwoinar","tags":[]},"26157":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26158":{"varMapping":{"__isSmartRef__":true,"id":26159},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":26160},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26159":{"this":{"__isSmartRef__":true,"id":26109}},"26160":{"timestamp":{"__isSmartRef__":true,"id":26161},"user":"sebastianwoinar","tags":[]},"26161":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26162":{"varMapping":{"__isSmartRef__":true,"id":26163},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":26164},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26163":{"this":{"__isSmartRef__":true,"id":26109}},"26164":{"timestamp":{"__isSmartRef__":true,"id":26165},"user":"sebastianwoinar","tags":[]},"26165":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"26166":{"varMapping":{"__isSmartRef__":true,"id":26167},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":26168},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26167":{"this":{"__isSmartRef__":true,"id":26109}},"26168":{"timestamp":{"__isSmartRef__":true,"id":26169},"user":"sebastianwoinar","tags":[]},"26169":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"26170":{"varMapping":{"__isSmartRef__":true,"id":26171},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":26172},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26171":{"this":{"__isSmartRef__":true,"id":26109}},"26172":{"timestamp":{"__isSmartRef__":true,"id":26173},"user":"sebastianwoinar","tags":[]},"26173":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"26174":{"varMapping":{"__isSmartRef__":true,"id":26175},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":26176},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26175":{"this":{"__isSmartRef__":true,"id":26109}},"26176":{"timestamp":{"__isSmartRef__":true,"id":26177},"user":"sebastianwoinar","tags":[]},"26177":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"26178":{"varMapping":{"__isSmartRef__":true,"id":26179},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":26180},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26179":{"this":{"__isSmartRef__":true,"id":26109}},"26180":{"timestamp":{"__isSmartRef__":true,"id":26181},"user":"sebastianwoinar","tags":[]},"26181":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"26182":{"varMapping":{"__isSmartRef__":true,"id":26183},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":26184},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26183":{"this":{"__isSmartRef__":true,"id":26109}},"26184":{"timestamp":{"__isSmartRef__":true,"id":26185},"user":"sebastianwoinar","tags":[]},"26185":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"26186":{"varMapping":{"__isSmartRef__":true,"id":26187},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":26188},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26187":{"this":{"__isSmartRef__":true,"id":26109}},"26188":{"timestamp":{"__isSmartRef__":true,"id":26189},"user":"sebastianwoinar","tags":[]},"26189":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"26190":{"varMapping":{"__isSmartRef__":true,"id":26191},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":26192},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26191":{"this":{"__isSmartRef__":true,"id":26109}},"26192":{"timestamp":{"__isSmartRef__":true,"id":26193},"user":"sebastianwoinar","tags":[]},"26193":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"26194":{"varMapping":{"__isSmartRef__":true,"id":26195},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":26196},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26195":{"this":{"__isSmartRef__":true,"id":26109}},"26196":{"timestamp":{"__isSmartRef__":true,"id":26197},"user":"sebastianwoinar","tags":[]},"26197":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"26198":{"varMapping":{"__isSmartRef__":true,"id":26199},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":26204},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26199":{"this":{"__isSmartRef__":true,"id":26109},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":26200}},"26200":{"$super":{"__isSmartRef__":true,"id":26201}},"26201":{"varMapping":{"__isSmartRef__":true,"id":26202},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":26203},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26202":{"obj":{"__isSmartRef__":true,"id":26109},"name":"onMouseDown"},"26203":{},"26204":{"timestamp":{"__isSmartRef__":true,"id":26205},"user":"sebastianwoinar","tags":[]},"26205":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"26206":{"varMapping":{"__isSmartRef__":true,"id":26207},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":26208},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26207":{"this":{"__isSmartRef__":true,"id":26109}},"26208":{"timestamp":{"__isSmartRef__":true,"id":26209},"user":"sebastianwoinar","tags":[]},"26209":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"26210":{"varMapping":{"__isSmartRef__":true,"id":26211},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":26212},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26211":{"this":{"__isSmartRef__":true,"id":26109}},"26212":{"timestamp":{"__isSmartRef__":true,"id":26213},"user":"sebastianwoinar","tags":[]},"26213":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"26214":{"varMapping":{"__isSmartRef__":true,"id":26215},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":26216},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26215":{"this":{"__isSmartRef__":true,"id":26109}},"26216":{"timestamp":{"__isSmartRef__":true,"id":26217},"user":"sebastianwoinar","tags":[]},"26217":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"26218":{"varMapping":{"__isSmartRef__":true,"id":26219},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":26220},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26219":{"this":{"__isSmartRef__":true,"id":26109}},"26220":{"timestamp":{"__isSmartRef__":true,"id":26221},"user":"sebastianwoinar","tags":[]},"26221":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"26222":{"varMapping":{"__isSmartRef__":true,"id":26223},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":26224},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26223":{"this":{"__isSmartRef__":true,"id":26109}},"26224":{"timestamp":{"__isSmartRef__":true,"id":26225},"user":"sebastianwoinar","tags":[]},"26225":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"26226":{"varMapping":{"__isSmartRef__":true,"id":26227},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":26228},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26227":{"this":{"__isSmartRef__":true,"id":26109}},"26228":{"timestamp":{"__isSmartRef__":true,"id":26229},"user":"sebastianwoinar","tags":[]},"26229":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"26230":{"varMapping":{"__isSmartRef__":true,"id":26231},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":26232},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26231":{"this":{"__isSmartRef__":true,"id":26109}},"26232":{"timestamp":{"__isSmartRef__":true,"id":26233},"user":"sebastianwoinar","tags":[]},"26233":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"26234":{"varMapping":{"__isSmartRef__":true,"id":26235},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":26236},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26235":{"this":{"__isSmartRef__":true,"id":26109}},"26236":{"timestamp":{"__isSmartRef__":true,"id":26237},"user":"sebastianwoinar","tags":[]},"26237":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"26238":{"submorphs":[{"__isSmartRef__":true,"id":26239}],"scripts":[],"shape":{"__isSmartRef__":true,"id":26256},"id":"2D33BB05-C58E-43FE-880E-6E075C17D483","eventHandler":{"__isSmartRef__":true,"id":26257},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":26258},"name":"node162","partsBinMetaInfo":{"__isSmartRef__":true,"id":26259},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5753},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":25311},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":26262},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(740.9,210.0)"},"26239":{"submorphs":[],"scripts":[],"id":"184D247B-0B47-4A34-BD77-8458339E714D","shape":{"__isSmartRef__":true,"id":26240},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":26241},"textChunks":[{"__isSmartRef__":true,"id":26253}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":26255},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":26238},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"26240":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"26241":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":26242},{"__isSmartRef__":true,"id":26244},{"__isSmartRef__":true,"id":26246},{"__isSmartRef__":true,"id":26248},{"__isSmartRef__":true,"id":26250}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":26252},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"26242":{"date":{"__isSmartRef__":true,"id":26243},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"26243":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"26244":{"date":{"__isSmartRef__":true,"id":26245},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"26245":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"26246":{"date":{"__isSmartRef__":true,"id":26247},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"26247":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"26248":{"date":{"__isSmartRef__":true,"id":26249},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"26249":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"26250":{"date":{"__isSmartRef__":true,"id":26251},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"26251":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"26252":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"26253":{"style":{"__isSmartRef__":true,"id":26254},"morph":{"__isSmartRef__":true,"id":26239},"chunkOwner":{"__isSmartRef__":true,"id":26239},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"26254":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"26255":{"morph":{"__isSmartRef__":true,"id":26239},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"26256":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"26257":{"morph":{"__isSmartRef__":true,"id":26238},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"26258":{},"26259":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":26260}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"26260":{"date":{"__isSmartRef__":true,"id":26261},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"26261":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"26262":{"buildChildNodes":{"__isSmartRef__":true,"id":26263},"getGameTree":{"__isSmartRef__":true,"id":26267},"getLevel":{"__isSmartRef__":true,"id":26271},"getLevelWeight":{"__isSmartRef__":true,"id":26275},"getWeight":{"__isSmartRef__":true,"id":26279},"setNode":{"__isSmartRef__":true,"id":26283},"setParent":{"__isSmartRef__":true,"id":26287},"getParent":{"__isSmartRef__":true,"id":26291},"deactivate":{"__isSmartRef__":true,"id":26295},"blink":{"__isSmartRef__":true,"id":26299},"ABPreturn":{"__isSmartRef__":true,"id":26303},"ABPstart":{"__isSmartRef__":true,"id":26307},"ABPcontinue":{"__isSmartRef__":true,"id":26311},"ABPshowValue":{"__isSmartRef__":true,"id":26315},"ABPgetValue":{"__isSmartRef__":true,"id":26319},"ABPhasChildNodes":{"__isSmartRef__":true,"id":26323},"onMouseDown":{"__isSmartRef__":true,"id":26327},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":26335},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":26339},"ABPmarkAsDone":{"__isSmartRef__":true,"id":26343},"ABPmarkAsActive":{"__isSmartRef__":true,"id":26347},"getStateMorph":{"__isSmartRef__":true,"id":26351},"showState":{"__isSmartRef__":true,"id":26355},"ABPfailHard":{"__isSmartRef__":true,"id":26359},"markFinalDrawWith":{"__isSmartRef__":true,"id":26363}},"26263":{"varMapping":{"__isSmartRef__":true,"id":26264},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":26265},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26264":{"this":{"__isSmartRef__":true,"id":26238}},"26265":{"timestamp":{"__isSmartRef__":true,"id":26266},"user":"sebastianwoinar","tags":[]},"26266":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"26267":{"varMapping":{"__isSmartRef__":true,"id":26268},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":26269},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26268":{"this":{"__isSmartRef__":true,"id":26238}},"26269":{"timestamp":{"__isSmartRef__":true,"id":26270},"user":"sebastianwoinar","tags":[]},"26270":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26271":{"varMapping":{"__isSmartRef__":true,"id":26272},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":26273},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26272":{"this":{"__isSmartRef__":true,"id":26238}},"26273":{"timestamp":{"__isSmartRef__":true,"id":26274},"user":"sebastianwoinar","tags":[]},"26274":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26275":{"varMapping":{"__isSmartRef__":true,"id":26276},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":26277},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26276":{"this":{"__isSmartRef__":true,"id":26238}},"26277":{"timestamp":{"__isSmartRef__":true,"id":26278},"user":"sebastianwoinar","tags":[]},"26278":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26279":{"varMapping":{"__isSmartRef__":true,"id":26280},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":26281},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26280":{"this":{"__isSmartRef__":true,"id":26238}},"26281":{"timestamp":{"__isSmartRef__":true,"id":26282},"user":"sebastianwoinar","tags":[]},"26282":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26283":{"varMapping":{"__isSmartRef__":true,"id":26284},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":26285},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26284":{"this":{"__isSmartRef__":true,"id":26238}},"26285":{"timestamp":{"__isSmartRef__":true,"id":26286},"user":"sebastianwoinar","tags":[]},"26286":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26287":{"varMapping":{"__isSmartRef__":true,"id":26288},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":26289},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26288":{"this":{"__isSmartRef__":true,"id":26238}},"26289":{"timestamp":{"__isSmartRef__":true,"id":26290},"user":"sebastianwoinar","tags":[]},"26290":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26291":{"varMapping":{"__isSmartRef__":true,"id":26292},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":26293},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26292":{"this":{"__isSmartRef__":true,"id":26238}},"26293":{"timestamp":{"__isSmartRef__":true,"id":26294},"user":"sebastianwoinar","tags":[]},"26294":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"26295":{"varMapping":{"__isSmartRef__":true,"id":26296},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":26297},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26296":{"this":{"__isSmartRef__":true,"id":26238}},"26297":{"timestamp":{"__isSmartRef__":true,"id":26298},"user":"sebastianwoinar","tags":[]},"26298":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"26299":{"varMapping":{"__isSmartRef__":true,"id":26300},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":26301},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26300":{"this":{"__isSmartRef__":true,"id":26238}},"26301":{"timestamp":{"__isSmartRef__":true,"id":26302},"user":"sebastianwoinar","tags":[]},"26302":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"26303":{"varMapping":{"__isSmartRef__":true,"id":26304},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":26305},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26304":{"this":{"__isSmartRef__":true,"id":26238}},"26305":{"timestamp":{"__isSmartRef__":true,"id":26306},"user":"sebastianwoinar","tags":[]},"26306":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"26307":{"varMapping":{"__isSmartRef__":true,"id":26308},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":26309},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26308":{"this":{"__isSmartRef__":true,"id":26238}},"26309":{"timestamp":{"__isSmartRef__":true,"id":26310},"user":"sebastianwoinar","tags":[]},"26310":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"26311":{"varMapping":{"__isSmartRef__":true,"id":26312},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":26313},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26312":{"this":{"__isSmartRef__":true,"id":26238}},"26313":{"timestamp":{"__isSmartRef__":true,"id":26314},"user":"sebastianwoinar","tags":[]},"26314":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"26315":{"varMapping":{"__isSmartRef__":true,"id":26316},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":26317},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26316":{"this":{"__isSmartRef__":true,"id":26238}},"26317":{"timestamp":{"__isSmartRef__":true,"id":26318},"user":"sebastianwoinar","tags":[]},"26318":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"26319":{"varMapping":{"__isSmartRef__":true,"id":26320},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":26321},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26320":{"this":{"__isSmartRef__":true,"id":26238}},"26321":{"timestamp":{"__isSmartRef__":true,"id":26322},"user":"sebastianwoinar","tags":[]},"26322":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"26323":{"varMapping":{"__isSmartRef__":true,"id":26324},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":26325},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26324":{"this":{"__isSmartRef__":true,"id":26238}},"26325":{"timestamp":{"__isSmartRef__":true,"id":26326},"user":"sebastianwoinar","tags":[]},"26326":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"26327":{"varMapping":{"__isSmartRef__":true,"id":26328},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":26333},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26328":{"this":{"__isSmartRef__":true,"id":26238},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":26329}},"26329":{"$super":{"__isSmartRef__":true,"id":26330}},"26330":{"varMapping":{"__isSmartRef__":true,"id":26331},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":26332},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26331":{"obj":{"__isSmartRef__":true,"id":26238},"name":"onMouseDown"},"26332":{},"26333":{"timestamp":{"__isSmartRef__":true,"id":26334},"user":"sebastianwoinar","tags":[]},"26334":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"26335":{"varMapping":{"__isSmartRef__":true,"id":26336},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":26337},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26336":{"this":{"__isSmartRef__":true,"id":26238}},"26337":{"timestamp":{"__isSmartRef__":true,"id":26338},"user":"sebastianwoinar","tags":[]},"26338":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"26339":{"varMapping":{"__isSmartRef__":true,"id":26340},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":26341},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26340":{"this":{"__isSmartRef__":true,"id":26238}},"26341":{"timestamp":{"__isSmartRef__":true,"id":26342},"user":"sebastianwoinar","tags":[]},"26342":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"26343":{"varMapping":{"__isSmartRef__":true,"id":26344},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":26345},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26344":{"this":{"__isSmartRef__":true,"id":26238}},"26345":{"timestamp":{"__isSmartRef__":true,"id":26346},"user":"sebastianwoinar","tags":[]},"26346":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"26347":{"varMapping":{"__isSmartRef__":true,"id":26348},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":26349},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26348":{"this":{"__isSmartRef__":true,"id":26238}},"26349":{"timestamp":{"__isSmartRef__":true,"id":26350},"user":"sebastianwoinar","tags":[]},"26350":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"26351":{"varMapping":{"__isSmartRef__":true,"id":26352},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":26353},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26352":{"this":{"__isSmartRef__":true,"id":26238}},"26353":{"timestamp":{"__isSmartRef__":true,"id":26354},"user":"sebastianwoinar","tags":[]},"26354":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"26355":{"varMapping":{"__isSmartRef__":true,"id":26356},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":26357},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26356":{"this":{"__isSmartRef__":true,"id":26238}},"26357":{"timestamp":{"__isSmartRef__":true,"id":26358},"user":"sebastianwoinar","tags":[]},"26358":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"26359":{"varMapping":{"__isSmartRef__":true,"id":26360},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":26361},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26360":{"this":{"__isSmartRef__":true,"id":26238}},"26361":{"timestamp":{"__isSmartRef__":true,"id":26362},"user":"sebastianwoinar","tags":[]},"26362":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"26363":{"varMapping":{"__isSmartRef__":true,"id":26364},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":26365},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26364":{"this":{"__isSmartRef__":true,"id":26238}},"26365":{"timestamp":{"__isSmartRef__":true,"id":26366},"user":"sebastianwoinar","tags":[]},"26366":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"26367":{"submorphs":[{"__isSmartRef__":true,"id":26368}],"scripts":[],"shape":{"__isSmartRef__":true,"id":26385},"id":"9DF883A5-5E8F-406A-B4BC-FC927E071180","eventHandler":{"__isSmartRef__":true,"id":26386},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":26387},"name":"node163","partsBinMetaInfo":{"__isSmartRef__":true,"id":26388},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5755},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":25311},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":26391},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(746.1,210.0)"},"26368":{"submorphs":[],"scripts":[],"id":"33C4E2BB-B19C-4924-A122-D943D596C17A","shape":{"__isSmartRef__":true,"id":26369},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":26370},"textChunks":[{"__isSmartRef__":true,"id":26382}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":26384},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":26367},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"26369":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"26370":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":26371},{"__isSmartRef__":true,"id":26373},{"__isSmartRef__":true,"id":26375},{"__isSmartRef__":true,"id":26377},{"__isSmartRef__":true,"id":26379}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":26381},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"26371":{"date":{"__isSmartRef__":true,"id":26372},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"26372":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"26373":{"date":{"__isSmartRef__":true,"id":26374},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"26374":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"26375":{"date":{"__isSmartRef__":true,"id":26376},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"26376":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"26377":{"date":{"__isSmartRef__":true,"id":26378},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"26378":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"26379":{"date":{"__isSmartRef__":true,"id":26380},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"26380":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"26381":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"26382":{"style":{"__isSmartRef__":true,"id":26383},"morph":{"__isSmartRef__":true,"id":26368},"chunkOwner":{"__isSmartRef__":true,"id":26368},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"26383":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"26384":{"morph":{"__isSmartRef__":true,"id":26368},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"26385":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"26386":{"morph":{"__isSmartRef__":true,"id":26367},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"26387":{},"26388":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":26389}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"26389":{"date":{"__isSmartRef__":true,"id":26390},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"26390":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"26391":{"buildChildNodes":{"__isSmartRef__":true,"id":26392},"getGameTree":{"__isSmartRef__":true,"id":26396},"getLevel":{"__isSmartRef__":true,"id":26400},"getLevelWeight":{"__isSmartRef__":true,"id":26404},"getWeight":{"__isSmartRef__":true,"id":26408},"setNode":{"__isSmartRef__":true,"id":26412},"setParent":{"__isSmartRef__":true,"id":26416},"getParent":{"__isSmartRef__":true,"id":26420},"deactivate":{"__isSmartRef__":true,"id":26424},"blink":{"__isSmartRef__":true,"id":26428},"ABPreturn":{"__isSmartRef__":true,"id":26432},"ABPstart":{"__isSmartRef__":true,"id":26436},"ABPcontinue":{"__isSmartRef__":true,"id":26440},"ABPshowValue":{"__isSmartRef__":true,"id":26444},"ABPgetValue":{"__isSmartRef__":true,"id":26448},"ABPhasChildNodes":{"__isSmartRef__":true,"id":26452},"onMouseDown":{"__isSmartRef__":true,"id":26456},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":26464},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":26468},"ABPmarkAsDone":{"__isSmartRef__":true,"id":26472},"ABPmarkAsActive":{"__isSmartRef__":true,"id":26476},"getStateMorph":{"__isSmartRef__":true,"id":26480},"showState":{"__isSmartRef__":true,"id":26484},"ABPfailHard":{"__isSmartRef__":true,"id":26488},"markFinalDrawWith":{"__isSmartRef__":true,"id":26492}},"26392":{"varMapping":{"__isSmartRef__":true,"id":26393},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":26394},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26393":{"this":{"__isSmartRef__":true,"id":26367}},"26394":{"timestamp":{"__isSmartRef__":true,"id":26395},"user":"sebastianwoinar","tags":[]},"26395":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"26396":{"varMapping":{"__isSmartRef__":true,"id":26397},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":26398},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26397":{"this":{"__isSmartRef__":true,"id":26367}},"26398":{"timestamp":{"__isSmartRef__":true,"id":26399},"user":"sebastianwoinar","tags":[]},"26399":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26400":{"varMapping":{"__isSmartRef__":true,"id":26401},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":26402},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26401":{"this":{"__isSmartRef__":true,"id":26367}},"26402":{"timestamp":{"__isSmartRef__":true,"id":26403},"user":"sebastianwoinar","tags":[]},"26403":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26404":{"varMapping":{"__isSmartRef__":true,"id":26405},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":26406},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26405":{"this":{"__isSmartRef__":true,"id":26367}},"26406":{"timestamp":{"__isSmartRef__":true,"id":26407},"user":"sebastianwoinar","tags":[]},"26407":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26408":{"varMapping":{"__isSmartRef__":true,"id":26409},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":26410},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26409":{"this":{"__isSmartRef__":true,"id":26367}},"26410":{"timestamp":{"__isSmartRef__":true,"id":26411},"user":"sebastianwoinar","tags":[]},"26411":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26412":{"varMapping":{"__isSmartRef__":true,"id":26413},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":26414},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26413":{"this":{"__isSmartRef__":true,"id":26367}},"26414":{"timestamp":{"__isSmartRef__":true,"id":26415},"user":"sebastianwoinar","tags":[]},"26415":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26416":{"varMapping":{"__isSmartRef__":true,"id":26417},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":26418},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26417":{"this":{"__isSmartRef__":true,"id":26367}},"26418":{"timestamp":{"__isSmartRef__":true,"id":26419},"user":"sebastianwoinar","tags":[]},"26419":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26420":{"varMapping":{"__isSmartRef__":true,"id":26421},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":26422},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26421":{"this":{"__isSmartRef__":true,"id":26367}},"26422":{"timestamp":{"__isSmartRef__":true,"id":26423},"user":"sebastianwoinar","tags":[]},"26423":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"26424":{"varMapping":{"__isSmartRef__":true,"id":26425},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":26426},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26425":{"this":{"__isSmartRef__":true,"id":26367}},"26426":{"timestamp":{"__isSmartRef__":true,"id":26427},"user":"sebastianwoinar","tags":[]},"26427":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"26428":{"varMapping":{"__isSmartRef__":true,"id":26429},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":26430},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26429":{"this":{"__isSmartRef__":true,"id":26367}},"26430":{"timestamp":{"__isSmartRef__":true,"id":26431},"user":"sebastianwoinar","tags":[]},"26431":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"26432":{"varMapping":{"__isSmartRef__":true,"id":26433},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":26434},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26433":{"this":{"__isSmartRef__":true,"id":26367}},"26434":{"timestamp":{"__isSmartRef__":true,"id":26435},"user":"sebastianwoinar","tags":[]},"26435":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"26436":{"varMapping":{"__isSmartRef__":true,"id":26437},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":26438},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26437":{"this":{"__isSmartRef__":true,"id":26367}},"26438":{"timestamp":{"__isSmartRef__":true,"id":26439},"user":"sebastianwoinar","tags":[]},"26439":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"26440":{"varMapping":{"__isSmartRef__":true,"id":26441},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":26442},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26441":{"this":{"__isSmartRef__":true,"id":26367}},"26442":{"timestamp":{"__isSmartRef__":true,"id":26443},"user":"sebastianwoinar","tags":[]},"26443":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"26444":{"varMapping":{"__isSmartRef__":true,"id":26445},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":26446},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26445":{"this":{"__isSmartRef__":true,"id":26367}},"26446":{"timestamp":{"__isSmartRef__":true,"id":26447},"user":"sebastianwoinar","tags":[]},"26447":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"26448":{"varMapping":{"__isSmartRef__":true,"id":26449},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":26450},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26449":{"this":{"__isSmartRef__":true,"id":26367}},"26450":{"timestamp":{"__isSmartRef__":true,"id":26451},"user":"sebastianwoinar","tags":[]},"26451":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"26452":{"varMapping":{"__isSmartRef__":true,"id":26453},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":26454},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26453":{"this":{"__isSmartRef__":true,"id":26367}},"26454":{"timestamp":{"__isSmartRef__":true,"id":26455},"user":"sebastianwoinar","tags":[]},"26455":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"26456":{"varMapping":{"__isSmartRef__":true,"id":26457},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":26462},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26457":{"this":{"__isSmartRef__":true,"id":26367},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":26458}},"26458":{"$super":{"__isSmartRef__":true,"id":26459}},"26459":{"varMapping":{"__isSmartRef__":true,"id":26460},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":26461},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26460":{"obj":{"__isSmartRef__":true,"id":26367},"name":"onMouseDown"},"26461":{},"26462":{"timestamp":{"__isSmartRef__":true,"id":26463},"user":"sebastianwoinar","tags":[]},"26463":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"26464":{"varMapping":{"__isSmartRef__":true,"id":26465},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":26466},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26465":{"this":{"__isSmartRef__":true,"id":26367}},"26466":{"timestamp":{"__isSmartRef__":true,"id":26467},"user":"sebastianwoinar","tags":[]},"26467":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"26468":{"varMapping":{"__isSmartRef__":true,"id":26469},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":26470},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26469":{"this":{"__isSmartRef__":true,"id":26367}},"26470":{"timestamp":{"__isSmartRef__":true,"id":26471},"user":"sebastianwoinar","tags":[]},"26471":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"26472":{"varMapping":{"__isSmartRef__":true,"id":26473},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":26474},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26473":{"this":{"__isSmartRef__":true,"id":26367}},"26474":{"timestamp":{"__isSmartRef__":true,"id":26475},"user":"sebastianwoinar","tags":[]},"26475":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"26476":{"varMapping":{"__isSmartRef__":true,"id":26477},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":26478},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26477":{"this":{"__isSmartRef__":true,"id":26367}},"26478":{"timestamp":{"__isSmartRef__":true,"id":26479},"user":"sebastianwoinar","tags":[]},"26479":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"26480":{"varMapping":{"__isSmartRef__":true,"id":26481},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":26482},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26481":{"this":{"__isSmartRef__":true,"id":26367}},"26482":{"timestamp":{"__isSmartRef__":true,"id":26483},"user":"sebastianwoinar","tags":[]},"26483":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"26484":{"varMapping":{"__isSmartRef__":true,"id":26485},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":26486},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26485":{"this":{"__isSmartRef__":true,"id":26367}},"26486":{"timestamp":{"__isSmartRef__":true,"id":26487},"user":"sebastianwoinar","tags":[]},"26487":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"26488":{"varMapping":{"__isSmartRef__":true,"id":26489},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":26490},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26489":{"this":{"__isSmartRef__":true,"id":26367}},"26490":{"timestamp":{"__isSmartRef__":true,"id":26491},"user":"sebastianwoinar","tags":[]},"26491":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"26492":{"varMapping":{"__isSmartRef__":true,"id":26493},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":26494},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26493":{"this":{"__isSmartRef__":true,"id":26367}},"26494":{"timestamp":{"__isSmartRef__":true,"id":26495},"user":"sebastianwoinar","tags":[]},"26495":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"26496":{"buildChildNodes":{"__isSmartRef__":true,"id":26497},"getGameTree":{"__isSmartRef__":true,"id":26501},"getLevel":{"__isSmartRef__":true,"id":26505},"getLevelWeight":{"__isSmartRef__":true,"id":26509},"getWeight":{"__isSmartRef__":true,"id":26513},"setNode":{"__isSmartRef__":true,"id":26517},"setParent":{"__isSmartRef__":true,"id":26521},"getParent":{"__isSmartRef__":true,"id":26525},"deactivate":{"__isSmartRef__":true,"id":26529},"blink":{"__isSmartRef__":true,"id":26533},"ABPreturn":{"__isSmartRef__":true,"id":26537},"ABPstart":{"__isSmartRef__":true,"id":26541},"ABPcontinue":{"__isSmartRef__":true,"id":26545},"ABPshowValue":{"__isSmartRef__":true,"id":26549},"ABPgetValue":{"__isSmartRef__":true,"id":26553},"ABPhasChildNodes":{"__isSmartRef__":true,"id":26557},"onMouseDown":{"__isSmartRef__":true,"id":26561},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":26569},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":26573},"ABPmarkAsDone":{"__isSmartRef__":true,"id":26577},"ABPmarkAsActive":{"__isSmartRef__":true,"id":26581},"getStateMorph":{"__isSmartRef__":true,"id":26585},"showState":{"__isSmartRef__":true,"id":26589},"ABPfailHard":{"__isSmartRef__":true,"id":26593},"markFinalDrawWith":{"__isSmartRef__":true,"id":26597}},"26497":{"varMapping":{"__isSmartRef__":true,"id":26498},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":26499},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26498":{"this":{"__isSmartRef__":true,"id":25311}},"26499":{"timestamp":{"__isSmartRef__":true,"id":26500},"user":"sebastianwoinar","tags":[]},"26500":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"26501":{"varMapping":{"__isSmartRef__":true,"id":26502},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":26503},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26502":{"this":{"__isSmartRef__":true,"id":25311}},"26503":{"timestamp":{"__isSmartRef__":true,"id":26504},"user":"sebastianwoinar","tags":[]},"26504":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26505":{"varMapping":{"__isSmartRef__":true,"id":26506},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":26507},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26506":{"this":{"__isSmartRef__":true,"id":25311}},"26507":{"timestamp":{"__isSmartRef__":true,"id":26508},"user":"sebastianwoinar","tags":[]},"26508":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26509":{"varMapping":{"__isSmartRef__":true,"id":26510},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":26511},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26510":{"this":{"__isSmartRef__":true,"id":25311}},"26511":{"timestamp":{"__isSmartRef__":true,"id":26512},"user":"sebastianwoinar","tags":[]},"26512":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26513":{"varMapping":{"__isSmartRef__":true,"id":26514},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":26515},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26514":{"this":{"__isSmartRef__":true,"id":25311}},"26515":{"timestamp":{"__isSmartRef__":true,"id":26516},"user":"sebastianwoinar","tags":[]},"26516":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26517":{"varMapping":{"__isSmartRef__":true,"id":26518},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":26519},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26518":{"this":{"__isSmartRef__":true,"id":25311}},"26519":{"timestamp":{"__isSmartRef__":true,"id":26520},"user":"sebastianwoinar","tags":[]},"26520":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26521":{"varMapping":{"__isSmartRef__":true,"id":26522},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":26523},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26522":{"this":{"__isSmartRef__":true,"id":25311}},"26523":{"timestamp":{"__isSmartRef__":true,"id":26524},"user":"sebastianwoinar","tags":[]},"26524":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26525":{"varMapping":{"__isSmartRef__":true,"id":26526},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":26527},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26526":{"this":{"__isSmartRef__":true,"id":25311}},"26527":{"timestamp":{"__isSmartRef__":true,"id":26528},"user":"sebastianwoinar","tags":[]},"26528":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"26529":{"varMapping":{"__isSmartRef__":true,"id":26530},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":26531},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26530":{"this":{"__isSmartRef__":true,"id":25311}},"26531":{"timestamp":{"__isSmartRef__":true,"id":26532},"user":"sebastianwoinar","tags":[]},"26532":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"26533":{"varMapping":{"__isSmartRef__":true,"id":26534},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":26535},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26534":{"this":{"__isSmartRef__":true,"id":25311}},"26535":{"timestamp":{"__isSmartRef__":true,"id":26536},"user":"sebastianwoinar","tags":[]},"26536":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"26537":{"varMapping":{"__isSmartRef__":true,"id":26538},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":26539},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26538":{"this":{"__isSmartRef__":true,"id":25311}},"26539":{"timestamp":{"__isSmartRef__":true,"id":26540},"user":"sebastianwoinar","tags":[]},"26540":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"26541":{"varMapping":{"__isSmartRef__":true,"id":26542},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":26543},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26542":{"this":{"__isSmartRef__":true,"id":25311}},"26543":{"timestamp":{"__isSmartRef__":true,"id":26544},"user":"sebastianwoinar","tags":[]},"26544":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"26545":{"varMapping":{"__isSmartRef__":true,"id":26546},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":26547},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26546":{"this":{"__isSmartRef__":true,"id":25311}},"26547":{"timestamp":{"__isSmartRef__":true,"id":26548},"user":"sebastianwoinar","tags":[]},"26548":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"26549":{"varMapping":{"__isSmartRef__":true,"id":26550},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":26551},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26550":{"this":{"__isSmartRef__":true,"id":25311}},"26551":{"timestamp":{"__isSmartRef__":true,"id":26552},"user":"sebastianwoinar","tags":[]},"26552":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"26553":{"varMapping":{"__isSmartRef__":true,"id":26554},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":26555},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26554":{"this":{"__isSmartRef__":true,"id":25311}},"26555":{"timestamp":{"__isSmartRef__":true,"id":26556},"user":"sebastianwoinar","tags":[]},"26556":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"26557":{"varMapping":{"__isSmartRef__":true,"id":26558},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":26559},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26558":{"this":{"__isSmartRef__":true,"id":25311}},"26559":{"timestamp":{"__isSmartRef__":true,"id":26560},"user":"sebastianwoinar","tags":[]},"26560":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"26561":{"varMapping":{"__isSmartRef__":true,"id":26562},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":26567},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26562":{"this":{"__isSmartRef__":true,"id":25311},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":26563}},"26563":{"$super":{"__isSmartRef__":true,"id":26564}},"26564":{"varMapping":{"__isSmartRef__":true,"id":26565},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":26566},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26565":{"obj":{"__isSmartRef__":true,"id":25311},"name":"onMouseDown"},"26566":{},"26567":{"timestamp":{"__isSmartRef__":true,"id":26568},"user":"sebastianwoinar","tags":[]},"26568":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"26569":{"varMapping":{"__isSmartRef__":true,"id":26570},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":26571},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26570":{"this":{"__isSmartRef__":true,"id":25311}},"26571":{"timestamp":{"__isSmartRef__":true,"id":26572},"user":"sebastianwoinar","tags":[]},"26572":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"26573":{"varMapping":{"__isSmartRef__":true,"id":26574},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":26575},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26574":{"this":{"__isSmartRef__":true,"id":25311}},"26575":{"timestamp":{"__isSmartRef__":true,"id":26576},"user":"sebastianwoinar","tags":[]},"26576":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"26577":{"varMapping":{"__isSmartRef__":true,"id":26578},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":26579},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26578":{"this":{"__isSmartRef__":true,"id":25311}},"26579":{"timestamp":{"__isSmartRef__":true,"id":26580},"user":"sebastianwoinar","tags":[]},"26580":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"26581":{"varMapping":{"__isSmartRef__":true,"id":26582},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":26583},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26582":{"this":{"__isSmartRef__":true,"id":25311}},"26583":{"timestamp":{"__isSmartRef__":true,"id":26584},"user":"sebastianwoinar","tags":[]},"26584":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"26585":{"varMapping":{"__isSmartRef__":true,"id":26586},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":26587},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26586":{"this":{"__isSmartRef__":true,"id":25311}},"26587":{"timestamp":{"__isSmartRef__":true,"id":26588},"user":"sebastianwoinar","tags":[]},"26588":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"26589":{"varMapping":{"__isSmartRef__":true,"id":26590},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":26591},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26590":{"this":{"__isSmartRef__":true,"id":25311}},"26591":{"timestamp":{"__isSmartRef__":true,"id":26592},"user":"sebastianwoinar","tags":[]},"26592":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"26593":{"varMapping":{"__isSmartRef__":true,"id":26594},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":26595},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26594":{"this":{"__isSmartRef__":true,"id":25311}},"26595":{"timestamp":{"__isSmartRef__":true,"id":26596},"user":"sebastianwoinar","tags":[]},"26596":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"26597":{"varMapping":{"__isSmartRef__":true,"id":26598},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":26599},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26598":{"this":{"__isSmartRef__":true,"id":25311}},"26599":{"timestamp":{"__isSmartRef__":true,"id":26600},"user":"sebastianwoinar","tags":[]},"26600":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"26601":{"submorphs":[{"__isSmartRef__":true,"id":26602}],"scripts":[],"shape":{"__isSmartRef__":true,"id":26619},"id":"C35FFC97-7200-46F0-B17B-1D59D85BCEBB","eventHandler":{"__isSmartRef__":true,"id":26620},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":26621},"name":"node164","partsBinMetaInfo":{"__isSmartRef__":true,"id":26622},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5757},"owner":{"__isSmartRef__":true,"id":5408},"childNodes":[{"__isSmartRef__":true,"id":26625},{"__isSmartRef__":true,"id":26754},{"__isSmartRef__":true,"id":26883},{"__isSmartRef__":true,"id":27012},{"__isSmartRef__":true,"id":27141},{"__isSmartRef__":true,"id":27270},{"__isSmartRef__":true,"id":27399},{"__isSmartRef__":true,"id":27528}],"parent":{"__isSmartRef__":true,"id":25287},"level":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":27657},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(756.5,160.0)"},"26602":{"submorphs":[],"scripts":[],"id":"DA245392-7034-4A08-98D5-58D16FC7B321","shape":{"__isSmartRef__":true,"id":26603},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":26604},"textChunks":[{"__isSmartRef__":true,"id":26616}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":26618},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":26601},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"26603":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"26604":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":26605},{"__isSmartRef__":true,"id":26607},{"__isSmartRef__":true,"id":26609},{"__isSmartRef__":true,"id":26611},{"__isSmartRef__":true,"id":26613}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":26615},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"26605":{"date":{"__isSmartRef__":true,"id":26606},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"26606":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"26607":{"date":{"__isSmartRef__":true,"id":26608},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"26608":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"26609":{"date":{"__isSmartRef__":true,"id":26610},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"26610":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"26611":{"date":{"__isSmartRef__":true,"id":26612},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"26612":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"26613":{"date":{"__isSmartRef__":true,"id":26614},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"26614":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"26615":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"26616":{"style":{"__isSmartRef__":true,"id":26617},"morph":{"__isSmartRef__":true,"id":26602},"chunkOwner":{"__isSmartRef__":true,"id":26602},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"26617":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"26618":{"morph":{"__isSmartRef__":true,"id":26602},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"26619":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"26620":{"morph":{"__isSmartRef__":true,"id":26601},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"26621":{},"26622":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":26623}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"26623":{"date":{"__isSmartRef__":true,"id":26624},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"26624":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"26625":{"submorphs":[{"__isSmartRef__":true,"id":26626}],"scripts":[],"shape":{"__isSmartRef__":true,"id":26643},"id":"9D5C9098-DEF3-47DB-811D-BA62BED23756","eventHandler":{"__isSmartRef__":true,"id":26644},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":26645},"name":"node165","partsBinMetaInfo":{"__isSmartRef__":true,"id":26646},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5759},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":26601},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":26649},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(751.3,210.0)"},"26626":{"submorphs":[],"scripts":[],"id":"49653026-922C-40F9-AF96-AC161CC1949F","shape":{"__isSmartRef__":true,"id":26627},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":26628},"textChunks":[{"__isSmartRef__":true,"id":26640}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":26642},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":26625},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"26627":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"26628":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":26629},{"__isSmartRef__":true,"id":26631},{"__isSmartRef__":true,"id":26633},{"__isSmartRef__":true,"id":26635},{"__isSmartRef__":true,"id":26637}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":26639},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"26629":{"date":{"__isSmartRef__":true,"id":26630},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"26630":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"26631":{"date":{"__isSmartRef__":true,"id":26632},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"26632":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"26633":{"date":{"__isSmartRef__":true,"id":26634},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"26634":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"26635":{"date":{"__isSmartRef__":true,"id":26636},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"26636":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"26637":{"date":{"__isSmartRef__":true,"id":26638},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"26638":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"26639":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"26640":{"style":{"__isSmartRef__":true,"id":26641},"morph":{"__isSmartRef__":true,"id":26626},"chunkOwner":{"__isSmartRef__":true,"id":26626},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"26641":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"26642":{"morph":{"__isSmartRef__":true,"id":26626},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"26643":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"26644":{"morph":{"__isSmartRef__":true,"id":26625},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"26645":{},"26646":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":26647}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"26647":{"date":{"__isSmartRef__":true,"id":26648},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"26648":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"26649":{"buildChildNodes":{"__isSmartRef__":true,"id":26650},"getGameTree":{"__isSmartRef__":true,"id":26654},"getLevel":{"__isSmartRef__":true,"id":26658},"getLevelWeight":{"__isSmartRef__":true,"id":26662},"getWeight":{"__isSmartRef__":true,"id":26666},"setNode":{"__isSmartRef__":true,"id":26670},"setParent":{"__isSmartRef__":true,"id":26674},"getParent":{"__isSmartRef__":true,"id":26678},"deactivate":{"__isSmartRef__":true,"id":26682},"blink":{"__isSmartRef__":true,"id":26686},"ABPreturn":{"__isSmartRef__":true,"id":26690},"ABPstart":{"__isSmartRef__":true,"id":26694},"ABPcontinue":{"__isSmartRef__":true,"id":26698},"ABPshowValue":{"__isSmartRef__":true,"id":26702},"ABPgetValue":{"__isSmartRef__":true,"id":26706},"ABPhasChildNodes":{"__isSmartRef__":true,"id":26710},"onMouseDown":{"__isSmartRef__":true,"id":26714},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":26722},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":26726},"ABPmarkAsDone":{"__isSmartRef__":true,"id":26730},"ABPmarkAsActive":{"__isSmartRef__":true,"id":26734},"getStateMorph":{"__isSmartRef__":true,"id":26738},"showState":{"__isSmartRef__":true,"id":26742},"ABPfailHard":{"__isSmartRef__":true,"id":26746},"markFinalDrawWith":{"__isSmartRef__":true,"id":26750}},"26650":{"varMapping":{"__isSmartRef__":true,"id":26651},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":26652},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26651":{"this":{"__isSmartRef__":true,"id":26625}},"26652":{"timestamp":{"__isSmartRef__":true,"id":26653},"user":"sebastianwoinar","tags":[]},"26653":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"26654":{"varMapping":{"__isSmartRef__":true,"id":26655},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":26656},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26655":{"this":{"__isSmartRef__":true,"id":26625}},"26656":{"timestamp":{"__isSmartRef__":true,"id":26657},"user":"sebastianwoinar","tags":[]},"26657":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26658":{"varMapping":{"__isSmartRef__":true,"id":26659},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":26660},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26659":{"this":{"__isSmartRef__":true,"id":26625}},"26660":{"timestamp":{"__isSmartRef__":true,"id":26661},"user":"sebastianwoinar","tags":[]},"26661":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26662":{"varMapping":{"__isSmartRef__":true,"id":26663},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":26664},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26663":{"this":{"__isSmartRef__":true,"id":26625}},"26664":{"timestamp":{"__isSmartRef__":true,"id":26665},"user":"sebastianwoinar","tags":[]},"26665":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26666":{"varMapping":{"__isSmartRef__":true,"id":26667},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":26668},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26667":{"this":{"__isSmartRef__":true,"id":26625}},"26668":{"timestamp":{"__isSmartRef__":true,"id":26669},"user":"sebastianwoinar","tags":[]},"26669":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26670":{"varMapping":{"__isSmartRef__":true,"id":26671},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":26672},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26671":{"this":{"__isSmartRef__":true,"id":26625}},"26672":{"timestamp":{"__isSmartRef__":true,"id":26673},"user":"sebastianwoinar","tags":[]},"26673":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26674":{"varMapping":{"__isSmartRef__":true,"id":26675},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":26676},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26675":{"this":{"__isSmartRef__":true,"id":26625}},"26676":{"timestamp":{"__isSmartRef__":true,"id":26677},"user":"sebastianwoinar","tags":[]},"26677":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26678":{"varMapping":{"__isSmartRef__":true,"id":26679},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":26680},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26679":{"this":{"__isSmartRef__":true,"id":26625}},"26680":{"timestamp":{"__isSmartRef__":true,"id":26681},"user":"sebastianwoinar","tags":[]},"26681":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"26682":{"varMapping":{"__isSmartRef__":true,"id":26683},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":26684},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26683":{"this":{"__isSmartRef__":true,"id":26625}},"26684":{"timestamp":{"__isSmartRef__":true,"id":26685},"user":"sebastianwoinar","tags":[]},"26685":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"26686":{"varMapping":{"__isSmartRef__":true,"id":26687},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":26688},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26687":{"this":{"__isSmartRef__":true,"id":26625}},"26688":{"timestamp":{"__isSmartRef__":true,"id":26689},"user":"sebastianwoinar","tags":[]},"26689":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"26690":{"varMapping":{"__isSmartRef__":true,"id":26691},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":26692},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26691":{"this":{"__isSmartRef__":true,"id":26625}},"26692":{"timestamp":{"__isSmartRef__":true,"id":26693},"user":"sebastianwoinar","tags":[]},"26693":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"26694":{"varMapping":{"__isSmartRef__":true,"id":26695},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":26696},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26695":{"this":{"__isSmartRef__":true,"id":26625}},"26696":{"timestamp":{"__isSmartRef__":true,"id":26697},"user":"sebastianwoinar","tags":[]},"26697":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"26698":{"varMapping":{"__isSmartRef__":true,"id":26699},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":26700},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26699":{"this":{"__isSmartRef__":true,"id":26625}},"26700":{"timestamp":{"__isSmartRef__":true,"id":26701},"user":"sebastianwoinar","tags":[]},"26701":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"26702":{"varMapping":{"__isSmartRef__":true,"id":26703},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":26704},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26703":{"this":{"__isSmartRef__":true,"id":26625}},"26704":{"timestamp":{"__isSmartRef__":true,"id":26705},"user":"sebastianwoinar","tags":[]},"26705":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"26706":{"varMapping":{"__isSmartRef__":true,"id":26707},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":26708},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26707":{"this":{"__isSmartRef__":true,"id":26625}},"26708":{"timestamp":{"__isSmartRef__":true,"id":26709},"user":"sebastianwoinar","tags":[]},"26709":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"26710":{"varMapping":{"__isSmartRef__":true,"id":26711},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":26712},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26711":{"this":{"__isSmartRef__":true,"id":26625}},"26712":{"timestamp":{"__isSmartRef__":true,"id":26713},"user":"sebastianwoinar","tags":[]},"26713":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"26714":{"varMapping":{"__isSmartRef__":true,"id":26715},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":26720},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26715":{"this":{"__isSmartRef__":true,"id":26625},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":26716}},"26716":{"$super":{"__isSmartRef__":true,"id":26717}},"26717":{"varMapping":{"__isSmartRef__":true,"id":26718},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":26719},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26718":{"obj":{"__isSmartRef__":true,"id":26625},"name":"onMouseDown"},"26719":{},"26720":{"timestamp":{"__isSmartRef__":true,"id":26721},"user":"sebastianwoinar","tags":[]},"26721":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"26722":{"varMapping":{"__isSmartRef__":true,"id":26723},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":26724},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26723":{"this":{"__isSmartRef__":true,"id":26625}},"26724":{"timestamp":{"__isSmartRef__":true,"id":26725},"user":"sebastianwoinar","tags":[]},"26725":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"26726":{"varMapping":{"__isSmartRef__":true,"id":26727},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":26728},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26727":{"this":{"__isSmartRef__":true,"id":26625}},"26728":{"timestamp":{"__isSmartRef__":true,"id":26729},"user":"sebastianwoinar","tags":[]},"26729":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"26730":{"varMapping":{"__isSmartRef__":true,"id":26731},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":26732},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26731":{"this":{"__isSmartRef__":true,"id":26625}},"26732":{"timestamp":{"__isSmartRef__":true,"id":26733},"user":"sebastianwoinar","tags":[]},"26733":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"26734":{"varMapping":{"__isSmartRef__":true,"id":26735},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":26736},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26735":{"this":{"__isSmartRef__":true,"id":26625}},"26736":{"timestamp":{"__isSmartRef__":true,"id":26737},"user":"sebastianwoinar","tags":[]},"26737":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"26738":{"varMapping":{"__isSmartRef__":true,"id":26739},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":26740},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26739":{"this":{"__isSmartRef__":true,"id":26625}},"26740":{"timestamp":{"__isSmartRef__":true,"id":26741},"user":"sebastianwoinar","tags":[]},"26741":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"26742":{"varMapping":{"__isSmartRef__":true,"id":26743},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":26744},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26743":{"this":{"__isSmartRef__":true,"id":26625}},"26744":{"timestamp":{"__isSmartRef__":true,"id":26745},"user":"sebastianwoinar","tags":[]},"26745":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"26746":{"varMapping":{"__isSmartRef__":true,"id":26747},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":26748},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26747":{"this":{"__isSmartRef__":true,"id":26625}},"26748":{"timestamp":{"__isSmartRef__":true,"id":26749},"user":"sebastianwoinar","tags":[]},"26749":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"26750":{"varMapping":{"__isSmartRef__":true,"id":26751},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":26752},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26751":{"this":{"__isSmartRef__":true,"id":26625}},"26752":{"timestamp":{"__isSmartRef__":true,"id":26753},"user":"sebastianwoinar","tags":[]},"26753":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"26754":{"submorphs":[{"__isSmartRef__":true,"id":26755}],"scripts":[],"shape":{"__isSmartRef__":true,"id":26772},"id":"308F6DEA-0908-4CD4-80C5-CC7502204F27","eventHandler":{"__isSmartRef__":true,"id":26773},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":26774},"name":"node166","partsBinMetaInfo":{"__isSmartRef__":true,"id":26775},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5761},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":26601},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":26778},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(756.5,210.0)"},"26755":{"submorphs":[],"scripts":[],"id":"942EB5B8-322D-4E48-B7AF-80967F740CDD","shape":{"__isSmartRef__":true,"id":26756},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":26757},"textChunks":[{"__isSmartRef__":true,"id":26769}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":26771},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":26754},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"26756":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"26757":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":26758},{"__isSmartRef__":true,"id":26760},{"__isSmartRef__":true,"id":26762},{"__isSmartRef__":true,"id":26764},{"__isSmartRef__":true,"id":26766}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":26768},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"26758":{"date":{"__isSmartRef__":true,"id":26759},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"26759":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"26760":{"date":{"__isSmartRef__":true,"id":26761},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"26761":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"26762":{"date":{"__isSmartRef__":true,"id":26763},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"26763":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"26764":{"date":{"__isSmartRef__":true,"id":26765},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"26765":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"26766":{"date":{"__isSmartRef__":true,"id":26767},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"26767":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"26768":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"26769":{"style":{"__isSmartRef__":true,"id":26770},"morph":{"__isSmartRef__":true,"id":26755},"chunkOwner":{"__isSmartRef__":true,"id":26755},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"26770":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"26771":{"morph":{"__isSmartRef__":true,"id":26755},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"26772":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"26773":{"morph":{"__isSmartRef__":true,"id":26754},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"26774":{},"26775":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":26776}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"26776":{"date":{"__isSmartRef__":true,"id":26777},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"26777":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"26778":{"buildChildNodes":{"__isSmartRef__":true,"id":26779},"getGameTree":{"__isSmartRef__":true,"id":26783},"getLevel":{"__isSmartRef__":true,"id":26787},"getLevelWeight":{"__isSmartRef__":true,"id":26791},"getWeight":{"__isSmartRef__":true,"id":26795},"setNode":{"__isSmartRef__":true,"id":26799},"setParent":{"__isSmartRef__":true,"id":26803},"getParent":{"__isSmartRef__":true,"id":26807},"deactivate":{"__isSmartRef__":true,"id":26811},"blink":{"__isSmartRef__":true,"id":26815},"ABPreturn":{"__isSmartRef__":true,"id":26819},"ABPstart":{"__isSmartRef__":true,"id":26823},"ABPcontinue":{"__isSmartRef__":true,"id":26827},"ABPshowValue":{"__isSmartRef__":true,"id":26831},"ABPgetValue":{"__isSmartRef__":true,"id":26835},"ABPhasChildNodes":{"__isSmartRef__":true,"id":26839},"onMouseDown":{"__isSmartRef__":true,"id":26843},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":26851},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":26855},"ABPmarkAsDone":{"__isSmartRef__":true,"id":26859},"ABPmarkAsActive":{"__isSmartRef__":true,"id":26863},"getStateMorph":{"__isSmartRef__":true,"id":26867},"showState":{"__isSmartRef__":true,"id":26871},"ABPfailHard":{"__isSmartRef__":true,"id":26875},"markFinalDrawWith":{"__isSmartRef__":true,"id":26879}},"26779":{"varMapping":{"__isSmartRef__":true,"id":26780},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":26781},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26780":{"this":{"__isSmartRef__":true,"id":26754}},"26781":{"timestamp":{"__isSmartRef__":true,"id":26782},"user":"sebastianwoinar","tags":[]},"26782":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"26783":{"varMapping":{"__isSmartRef__":true,"id":26784},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":26785},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26784":{"this":{"__isSmartRef__":true,"id":26754}},"26785":{"timestamp":{"__isSmartRef__":true,"id":26786},"user":"sebastianwoinar","tags":[]},"26786":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26787":{"varMapping":{"__isSmartRef__":true,"id":26788},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":26789},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26788":{"this":{"__isSmartRef__":true,"id":26754}},"26789":{"timestamp":{"__isSmartRef__":true,"id":26790},"user":"sebastianwoinar","tags":[]},"26790":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26791":{"varMapping":{"__isSmartRef__":true,"id":26792},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":26793},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26792":{"this":{"__isSmartRef__":true,"id":26754}},"26793":{"timestamp":{"__isSmartRef__":true,"id":26794},"user":"sebastianwoinar","tags":[]},"26794":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26795":{"varMapping":{"__isSmartRef__":true,"id":26796},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":26797},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26796":{"this":{"__isSmartRef__":true,"id":26754}},"26797":{"timestamp":{"__isSmartRef__":true,"id":26798},"user":"sebastianwoinar","tags":[]},"26798":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26799":{"varMapping":{"__isSmartRef__":true,"id":26800},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":26801},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26800":{"this":{"__isSmartRef__":true,"id":26754}},"26801":{"timestamp":{"__isSmartRef__":true,"id":26802},"user":"sebastianwoinar","tags":[]},"26802":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26803":{"varMapping":{"__isSmartRef__":true,"id":26804},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":26805},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26804":{"this":{"__isSmartRef__":true,"id":26754}},"26805":{"timestamp":{"__isSmartRef__":true,"id":26806},"user":"sebastianwoinar","tags":[]},"26806":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26807":{"varMapping":{"__isSmartRef__":true,"id":26808},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":26809},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26808":{"this":{"__isSmartRef__":true,"id":26754}},"26809":{"timestamp":{"__isSmartRef__":true,"id":26810},"user":"sebastianwoinar","tags":[]},"26810":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"26811":{"varMapping":{"__isSmartRef__":true,"id":26812},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":26813},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26812":{"this":{"__isSmartRef__":true,"id":26754}},"26813":{"timestamp":{"__isSmartRef__":true,"id":26814},"user":"sebastianwoinar","tags":[]},"26814":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"26815":{"varMapping":{"__isSmartRef__":true,"id":26816},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":26817},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26816":{"this":{"__isSmartRef__":true,"id":26754}},"26817":{"timestamp":{"__isSmartRef__":true,"id":26818},"user":"sebastianwoinar","tags":[]},"26818":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"26819":{"varMapping":{"__isSmartRef__":true,"id":26820},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":26821},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26820":{"this":{"__isSmartRef__":true,"id":26754}},"26821":{"timestamp":{"__isSmartRef__":true,"id":26822},"user":"sebastianwoinar","tags":[]},"26822":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"26823":{"varMapping":{"__isSmartRef__":true,"id":26824},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":26825},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26824":{"this":{"__isSmartRef__":true,"id":26754}},"26825":{"timestamp":{"__isSmartRef__":true,"id":26826},"user":"sebastianwoinar","tags":[]},"26826":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"26827":{"varMapping":{"__isSmartRef__":true,"id":26828},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":26829},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26828":{"this":{"__isSmartRef__":true,"id":26754}},"26829":{"timestamp":{"__isSmartRef__":true,"id":26830},"user":"sebastianwoinar","tags":[]},"26830":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"26831":{"varMapping":{"__isSmartRef__":true,"id":26832},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":26833},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26832":{"this":{"__isSmartRef__":true,"id":26754}},"26833":{"timestamp":{"__isSmartRef__":true,"id":26834},"user":"sebastianwoinar","tags":[]},"26834":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"26835":{"varMapping":{"__isSmartRef__":true,"id":26836},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":26837},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26836":{"this":{"__isSmartRef__":true,"id":26754}},"26837":{"timestamp":{"__isSmartRef__":true,"id":26838},"user":"sebastianwoinar","tags":[]},"26838":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"26839":{"varMapping":{"__isSmartRef__":true,"id":26840},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":26841},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26840":{"this":{"__isSmartRef__":true,"id":26754}},"26841":{"timestamp":{"__isSmartRef__":true,"id":26842},"user":"sebastianwoinar","tags":[]},"26842":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"26843":{"varMapping":{"__isSmartRef__":true,"id":26844},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":26849},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26844":{"this":{"__isSmartRef__":true,"id":26754},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":26845}},"26845":{"$super":{"__isSmartRef__":true,"id":26846}},"26846":{"varMapping":{"__isSmartRef__":true,"id":26847},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":26848},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26847":{"obj":{"__isSmartRef__":true,"id":26754},"name":"onMouseDown"},"26848":{},"26849":{"timestamp":{"__isSmartRef__":true,"id":26850},"user":"sebastianwoinar","tags":[]},"26850":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"26851":{"varMapping":{"__isSmartRef__":true,"id":26852},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":26853},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26852":{"this":{"__isSmartRef__":true,"id":26754}},"26853":{"timestamp":{"__isSmartRef__":true,"id":26854},"user":"sebastianwoinar","tags":[]},"26854":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"26855":{"varMapping":{"__isSmartRef__":true,"id":26856},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":26857},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26856":{"this":{"__isSmartRef__":true,"id":26754}},"26857":{"timestamp":{"__isSmartRef__":true,"id":26858},"user":"sebastianwoinar","tags":[]},"26858":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"26859":{"varMapping":{"__isSmartRef__":true,"id":26860},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":26861},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26860":{"this":{"__isSmartRef__":true,"id":26754}},"26861":{"timestamp":{"__isSmartRef__":true,"id":26862},"user":"sebastianwoinar","tags":[]},"26862":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"26863":{"varMapping":{"__isSmartRef__":true,"id":26864},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":26865},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26864":{"this":{"__isSmartRef__":true,"id":26754}},"26865":{"timestamp":{"__isSmartRef__":true,"id":26866},"user":"sebastianwoinar","tags":[]},"26866":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"26867":{"varMapping":{"__isSmartRef__":true,"id":26868},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":26869},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26868":{"this":{"__isSmartRef__":true,"id":26754}},"26869":{"timestamp":{"__isSmartRef__":true,"id":26870},"user":"sebastianwoinar","tags":[]},"26870":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"26871":{"varMapping":{"__isSmartRef__":true,"id":26872},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":26873},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26872":{"this":{"__isSmartRef__":true,"id":26754}},"26873":{"timestamp":{"__isSmartRef__":true,"id":26874},"user":"sebastianwoinar","tags":[]},"26874":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"26875":{"varMapping":{"__isSmartRef__":true,"id":26876},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":26877},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26876":{"this":{"__isSmartRef__":true,"id":26754}},"26877":{"timestamp":{"__isSmartRef__":true,"id":26878},"user":"sebastianwoinar","tags":[]},"26878":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"26879":{"varMapping":{"__isSmartRef__":true,"id":26880},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":26881},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26880":{"this":{"__isSmartRef__":true,"id":26754}},"26881":{"timestamp":{"__isSmartRef__":true,"id":26882},"user":"sebastianwoinar","tags":[]},"26882":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"26883":{"submorphs":[{"__isSmartRef__":true,"id":26884}],"scripts":[],"shape":{"__isSmartRef__":true,"id":26901},"id":"AB1CC480-2F11-4179-8068-494A66DA65A9","eventHandler":{"__isSmartRef__":true,"id":26902},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":26903},"name":"node167","partsBinMetaInfo":{"__isSmartRef__":true,"id":26904},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5763},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":26601},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":26907},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(761.6,210.0)"},"26884":{"submorphs":[],"scripts":[],"id":"3313A129-209E-4E22-A1FC-66158AE59BBC","shape":{"__isSmartRef__":true,"id":26885},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":26886},"textChunks":[{"__isSmartRef__":true,"id":26898}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":26900},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":26883},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"26885":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"26886":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":26887},{"__isSmartRef__":true,"id":26889},{"__isSmartRef__":true,"id":26891},{"__isSmartRef__":true,"id":26893},{"__isSmartRef__":true,"id":26895}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":26897},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"26887":{"date":{"__isSmartRef__":true,"id":26888},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"26888":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"26889":{"date":{"__isSmartRef__":true,"id":26890},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"26890":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"26891":{"date":{"__isSmartRef__":true,"id":26892},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"26892":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"26893":{"date":{"__isSmartRef__":true,"id":26894},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"26894":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"26895":{"date":{"__isSmartRef__":true,"id":26896},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"26896":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"26897":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"26898":{"style":{"__isSmartRef__":true,"id":26899},"morph":{"__isSmartRef__":true,"id":26884},"chunkOwner":{"__isSmartRef__":true,"id":26884},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"26899":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"26900":{"morph":{"__isSmartRef__":true,"id":26884},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"26901":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"26902":{"morph":{"__isSmartRef__":true,"id":26883},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"26903":{},"26904":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":26905}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"26905":{"date":{"__isSmartRef__":true,"id":26906},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"26906":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"26907":{"buildChildNodes":{"__isSmartRef__":true,"id":26908},"getGameTree":{"__isSmartRef__":true,"id":26912},"getLevel":{"__isSmartRef__":true,"id":26916},"getLevelWeight":{"__isSmartRef__":true,"id":26920},"getWeight":{"__isSmartRef__":true,"id":26924},"setNode":{"__isSmartRef__":true,"id":26928},"setParent":{"__isSmartRef__":true,"id":26932},"getParent":{"__isSmartRef__":true,"id":26936},"deactivate":{"__isSmartRef__":true,"id":26940},"blink":{"__isSmartRef__":true,"id":26944},"ABPreturn":{"__isSmartRef__":true,"id":26948},"ABPstart":{"__isSmartRef__":true,"id":26952},"ABPcontinue":{"__isSmartRef__":true,"id":26956},"ABPshowValue":{"__isSmartRef__":true,"id":26960},"ABPgetValue":{"__isSmartRef__":true,"id":26964},"ABPhasChildNodes":{"__isSmartRef__":true,"id":26968},"onMouseDown":{"__isSmartRef__":true,"id":26972},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":26980},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":26984},"ABPmarkAsDone":{"__isSmartRef__":true,"id":26988},"ABPmarkAsActive":{"__isSmartRef__":true,"id":26992},"getStateMorph":{"__isSmartRef__":true,"id":26996},"showState":{"__isSmartRef__":true,"id":27000},"ABPfailHard":{"__isSmartRef__":true,"id":27004},"markFinalDrawWith":{"__isSmartRef__":true,"id":27008}},"26908":{"varMapping":{"__isSmartRef__":true,"id":26909},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":26910},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26909":{"this":{"__isSmartRef__":true,"id":26883}},"26910":{"timestamp":{"__isSmartRef__":true,"id":26911},"user":"sebastianwoinar","tags":[]},"26911":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"26912":{"varMapping":{"__isSmartRef__":true,"id":26913},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":26914},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26913":{"this":{"__isSmartRef__":true,"id":26883}},"26914":{"timestamp":{"__isSmartRef__":true,"id":26915},"user":"sebastianwoinar","tags":[]},"26915":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26916":{"varMapping":{"__isSmartRef__":true,"id":26917},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":26918},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26917":{"this":{"__isSmartRef__":true,"id":26883}},"26918":{"timestamp":{"__isSmartRef__":true,"id":26919},"user":"sebastianwoinar","tags":[]},"26919":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26920":{"varMapping":{"__isSmartRef__":true,"id":26921},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":26922},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26921":{"this":{"__isSmartRef__":true,"id":26883}},"26922":{"timestamp":{"__isSmartRef__":true,"id":26923},"user":"sebastianwoinar","tags":[]},"26923":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26924":{"varMapping":{"__isSmartRef__":true,"id":26925},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":26926},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26925":{"this":{"__isSmartRef__":true,"id":26883}},"26926":{"timestamp":{"__isSmartRef__":true,"id":26927},"user":"sebastianwoinar","tags":[]},"26927":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26928":{"varMapping":{"__isSmartRef__":true,"id":26929},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":26930},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26929":{"this":{"__isSmartRef__":true,"id":26883}},"26930":{"timestamp":{"__isSmartRef__":true,"id":26931},"user":"sebastianwoinar","tags":[]},"26931":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26932":{"varMapping":{"__isSmartRef__":true,"id":26933},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":26934},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26933":{"this":{"__isSmartRef__":true,"id":26883}},"26934":{"timestamp":{"__isSmartRef__":true,"id":26935},"user":"sebastianwoinar","tags":[]},"26935":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"26936":{"varMapping":{"__isSmartRef__":true,"id":26937},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":26938},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26937":{"this":{"__isSmartRef__":true,"id":26883}},"26938":{"timestamp":{"__isSmartRef__":true,"id":26939},"user":"sebastianwoinar","tags":[]},"26939":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"26940":{"varMapping":{"__isSmartRef__":true,"id":26941},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":26942},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26941":{"this":{"__isSmartRef__":true,"id":26883}},"26942":{"timestamp":{"__isSmartRef__":true,"id":26943},"user":"sebastianwoinar","tags":[]},"26943":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"26944":{"varMapping":{"__isSmartRef__":true,"id":26945},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":26946},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26945":{"this":{"__isSmartRef__":true,"id":26883}},"26946":{"timestamp":{"__isSmartRef__":true,"id":26947},"user":"sebastianwoinar","tags":[]},"26947":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"26948":{"varMapping":{"__isSmartRef__":true,"id":26949},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":26950},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26949":{"this":{"__isSmartRef__":true,"id":26883}},"26950":{"timestamp":{"__isSmartRef__":true,"id":26951},"user":"sebastianwoinar","tags":[]},"26951":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"26952":{"varMapping":{"__isSmartRef__":true,"id":26953},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":26954},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26953":{"this":{"__isSmartRef__":true,"id":26883}},"26954":{"timestamp":{"__isSmartRef__":true,"id":26955},"user":"sebastianwoinar","tags":[]},"26955":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"26956":{"varMapping":{"__isSmartRef__":true,"id":26957},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":26958},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26957":{"this":{"__isSmartRef__":true,"id":26883}},"26958":{"timestamp":{"__isSmartRef__":true,"id":26959},"user":"sebastianwoinar","tags":[]},"26959":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"26960":{"varMapping":{"__isSmartRef__":true,"id":26961},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":26962},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26961":{"this":{"__isSmartRef__":true,"id":26883}},"26962":{"timestamp":{"__isSmartRef__":true,"id":26963},"user":"sebastianwoinar","tags":[]},"26963":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"26964":{"varMapping":{"__isSmartRef__":true,"id":26965},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":26966},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26965":{"this":{"__isSmartRef__":true,"id":26883}},"26966":{"timestamp":{"__isSmartRef__":true,"id":26967},"user":"sebastianwoinar","tags":[]},"26967":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"26968":{"varMapping":{"__isSmartRef__":true,"id":26969},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":26970},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26969":{"this":{"__isSmartRef__":true,"id":26883}},"26970":{"timestamp":{"__isSmartRef__":true,"id":26971},"user":"sebastianwoinar","tags":[]},"26971":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"26972":{"varMapping":{"__isSmartRef__":true,"id":26973},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":26978},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26973":{"this":{"__isSmartRef__":true,"id":26883},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":26974}},"26974":{"$super":{"__isSmartRef__":true,"id":26975}},"26975":{"varMapping":{"__isSmartRef__":true,"id":26976},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":26977},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26976":{"obj":{"__isSmartRef__":true,"id":26883},"name":"onMouseDown"},"26977":{},"26978":{"timestamp":{"__isSmartRef__":true,"id":26979},"user":"sebastianwoinar","tags":[]},"26979":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"26980":{"varMapping":{"__isSmartRef__":true,"id":26981},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":26982},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26981":{"this":{"__isSmartRef__":true,"id":26883}},"26982":{"timestamp":{"__isSmartRef__":true,"id":26983},"user":"sebastianwoinar","tags":[]},"26983":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"26984":{"varMapping":{"__isSmartRef__":true,"id":26985},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":26986},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26985":{"this":{"__isSmartRef__":true,"id":26883}},"26986":{"timestamp":{"__isSmartRef__":true,"id":26987},"user":"sebastianwoinar","tags":[]},"26987":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"26988":{"varMapping":{"__isSmartRef__":true,"id":26989},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":26990},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26989":{"this":{"__isSmartRef__":true,"id":26883}},"26990":{"timestamp":{"__isSmartRef__":true,"id":26991},"user":"sebastianwoinar","tags":[]},"26991":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"26992":{"varMapping":{"__isSmartRef__":true,"id":26993},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":26994},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26993":{"this":{"__isSmartRef__":true,"id":26883}},"26994":{"timestamp":{"__isSmartRef__":true,"id":26995},"user":"sebastianwoinar","tags":[]},"26995":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"26996":{"varMapping":{"__isSmartRef__":true,"id":26997},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":26998},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"26997":{"this":{"__isSmartRef__":true,"id":26883}},"26998":{"timestamp":{"__isSmartRef__":true,"id":26999},"user":"sebastianwoinar","tags":[]},"26999":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"27000":{"varMapping":{"__isSmartRef__":true,"id":27001},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":27002},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27001":{"this":{"__isSmartRef__":true,"id":26883}},"27002":{"timestamp":{"__isSmartRef__":true,"id":27003},"user":"sebastianwoinar","tags":[]},"27003":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"27004":{"varMapping":{"__isSmartRef__":true,"id":27005},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":27006},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27005":{"this":{"__isSmartRef__":true,"id":26883}},"27006":{"timestamp":{"__isSmartRef__":true,"id":27007},"user":"sebastianwoinar","tags":[]},"27007":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"27008":{"varMapping":{"__isSmartRef__":true,"id":27009},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":27010},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27009":{"this":{"__isSmartRef__":true,"id":26883}},"27010":{"timestamp":{"__isSmartRef__":true,"id":27011},"user":"sebastianwoinar","tags":[]},"27011":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"27012":{"submorphs":[{"__isSmartRef__":true,"id":27013}],"scripts":[],"shape":{"__isSmartRef__":true,"id":27030},"id":"1ABD4DB6-FD9F-44AA-AC39-30DC1B5E9BF6","eventHandler":{"__isSmartRef__":true,"id":27031},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":27032},"name":"node168","partsBinMetaInfo":{"__isSmartRef__":true,"id":27033},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5765},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":26601},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":27036},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(766.8,210.0)"},"27013":{"submorphs":[],"scripts":[],"id":"5FD82FCA-4122-4CC9-AD89-2B618E672AF5","shape":{"__isSmartRef__":true,"id":27014},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":27015},"textChunks":[{"__isSmartRef__":true,"id":27027}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":27029},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":27012},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"27014":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"27015":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":27016},{"__isSmartRef__":true,"id":27018},{"__isSmartRef__":true,"id":27020},{"__isSmartRef__":true,"id":27022},{"__isSmartRef__":true,"id":27024}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":27026},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"27016":{"date":{"__isSmartRef__":true,"id":27017},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"27017":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"27018":{"date":{"__isSmartRef__":true,"id":27019},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"27019":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"27020":{"date":{"__isSmartRef__":true,"id":27021},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"27021":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"27022":{"date":{"__isSmartRef__":true,"id":27023},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"27023":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"27024":{"date":{"__isSmartRef__":true,"id":27025},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"27025":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"27026":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"27027":{"style":{"__isSmartRef__":true,"id":27028},"morph":{"__isSmartRef__":true,"id":27013},"chunkOwner":{"__isSmartRef__":true,"id":27013},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"27028":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"27029":{"morph":{"__isSmartRef__":true,"id":27013},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"27030":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"27031":{"morph":{"__isSmartRef__":true,"id":27012},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"27032":{},"27033":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":27034}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"27034":{"date":{"__isSmartRef__":true,"id":27035},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"27035":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"27036":{"buildChildNodes":{"__isSmartRef__":true,"id":27037},"getGameTree":{"__isSmartRef__":true,"id":27041},"getLevel":{"__isSmartRef__":true,"id":27045},"getLevelWeight":{"__isSmartRef__":true,"id":27049},"getWeight":{"__isSmartRef__":true,"id":27053},"setNode":{"__isSmartRef__":true,"id":27057},"setParent":{"__isSmartRef__":true,"id":27061},"getParent":{"__isSmartRef__":true,"id":27065},"deactivate":{"__isSmartRef__":true,"id":27069},"blink":{"__isSmartRef__":true,"id":27073},"ABPreturn":{"__isSmartRef__":true,"id":27077},"ABPstart":{"__isSmartRef__":true,"id":27081},"ABPcontinue":{"__isSmartRef__":true,"id":27085},"ABPshowValue":{"__isSmartRef__":true,"id":27089},"ABPgetValue":{"__isSmartRef__":true,"id":27093},"ABPhasChildNodes":{"__isSmartRef__":true,"id":27097},"onMouseDown":{"__isSmartRef__":true,"id":27101},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":27109},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":27113},"ABPmarkAsDone":{"__isSmartRef__":true,"id":27117},"ABPmarkAsActive":{"__isSmartRef__":true,"id":27121},"getStateMorph":{"__isSmartRef__":true,"id":27125},"showState":{"__isSmartRef__":true,"id":27129},"ABPfailHard":{"__isSmartRef__":true,"id":27133},"markFinalDrawWith":{"__isSmartRef__":true,"id":27137}},"27037":{"varMapping":{"__isSmartRef__":true,"id":27038},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":27039},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27038":{"this":{"__isSmartRef__":true,"id":27012}},"27039":{"timestamp":{"__isSmartRef__":true,"id":27040},"user":"sebastianwoinar","tags":[]},"27040":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"27041":{"varMapping":{"__isSmartRef__":true,"id":27042},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":27043},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27042":{"this":{"__isSmartRef__":true,"id":27012}},"27043":{"timestamp":{"__isSmartRef__":true,"id":27044},"user":"sebastianwoinar","tags":[]},"27044":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27045":{"varMapping":{"__isSmartRef__":true,"id":27046},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":27047},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27046":{"this":{"__isSmartRef__":true,"id":27012}},"27047":{"timestamp":{"__isSmartRef__":true,"id":27048},"user":"sebastianwoinar","tags":[]},"27048":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27049":{"varMapping":{"__isSmartRef__":true,"id":27050},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":27051},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27050":{"this":{"__isSmartRef__":true,"id":27012}},"27051":{"timestamp":{"__isSmartRef__":true,"id":27052},"user":"sebastianwoinar","tags":[]},"27052":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27053":{"varMapping":{"__isSmartRef__":true,"id":27054},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":27055},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27054":{"this":{"__isSmartRef__":true,"id":27012}},"27055":{"timestamp":{"__isSmartRef__":true,"id":27056},"user":"sebastianwoinar","tags":[]},"27056":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27057":{"varMapping":{"__isSmartRef__":true,"id":27058},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":27059},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27058":{"this":{"__isSmartRef__":true,"id":27012}},"27059":{"timestamp":{"__isSmartRef__":true,"id":27060},"user":"sebastianwoinar","tags":[]},"27060":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27061":{"varMapping":{"__isSmartRef__":true,"id":27062},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":27063},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27062":{"this":{"__isSmartRef__":true,"id":27012}},"27063":{"timestamp":{"__isSmartRef__":true,"id":27064},"user":"sebastianwoinar","tags":[]},"27064":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27065":{"varMapping":{"__isSmartRef__":true,"id":27066},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":27067},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27066":{"this":{"__isSmartRef__":true,"id":27012}},"27067":{"timestamp":{"__isSmartRef__":true,"id":27068},"user":"sebastianwoinar","tags":[]},"27068":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"27069":{"varMapping":{"__isSmartRef__":true,"id":27070},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":27071},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27070":{"this":{"__isSmartRef__":true,"id":27012}},"27071":{"timestamp":{"__isSmartRef__":true,"id":27072},"user":"sebastianwoinar","tags":[]},"27072":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"27073":{"varMapping":{"__isSmartRef__":true,"id":27074},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":27075},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27074":{"this":{"__isSmartRef__":true,"id":27012}},"27075":{"timestamp":{"__isSmartRef__":true,"id":27076},"user":"sebastianwoinar","tags":[]},"27076":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"27077":{"varMapping":{"__isSmartRef__":true,"id":27078},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":27079},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27078":{"this":{"__isSmartRef__":true,"id":27012}},"27079":{"timestamp":{"__isSmartRef__":true,"id":27080},"user":"sebastianwoinar","tags":[]},"27080":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"27081":{"varMapping":{"__isSmartRef__":true,"id":27082},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":27083},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27082":{"this":{"__isSmartRef__":true,"id":27012}},"27083":{"timestamp":{"__isSmartRef__":true,"id":27084},"user":"sebastianwoinar","tags":[]},"27084":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"27085":{"varMapping":{"__isSmartRef__":true,"id":27086},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":27087},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27086":{"this":{"__isSmartRef__":true,"id":27012}},"27087":{"timestamp":{"__isSmartRef__":true,"id":27088},"user":"sebastianwoinar","tags":[]},"27088":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"27089":{"varMapping":{"__isSmartRef__":true,"id":27090},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":27091},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27090":{"this":{"__isSmartRef__":true,"id":27012}},"27091":{"timestamp":{"__isSmartRef__":true,"id":27092},"user":"sebastianwoinar","tags":[]},"27092":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"27093":{"varMapping":{"__isSmartRef__":true,"id":27094},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":27095},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27094":{"this":{"__isSmartRef__":true,"id":27012}},"27095":{"timestamp":{"__isSmartRef__":true,"id":27096},"user":"sebastianwoinar","tags":[]},"27096":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"27097":{"varMapping":{"__isSmartRef__":true,"id":27098},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":27099},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27098":{"this":{"__isSmartRef__":true,"id":27012}},"27099":{"timestamp":{"__isSmartRef__":true,"id":27100},"user":"sebastianwoinar","tags":[]},"27100":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"27101":{"varMapping":{"__isSmartRef__":true,"id":27102},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":27107},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27102":{"this":{"__isSmartRef__":true,"id":27012},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":27103}},"27103":{"$super":{"__isSmartRef__":true,"id":27104}},"27104":{"varMapping":{"__isSmartRef__":true,"id":27105},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":27106},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27105":{"obj":{"__isSmartRef__":true,"id":27012},"name":"onMouseDown"},"27106":{},"27107":{"timestamp":{"__isSmartRef__":true,"id":27108},"user":"sebastianwoinar","tags":[]},"27108":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"27109":{"varMapping":{"__isSmartRef__":true,"id":27110},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":27111},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27110":{"this":{"__isSmartRef__":true,"id":27012}},"27111":{"timestamp":{"__isSmartRef__":true,"id":27112},"user":"sebastianwoinar","tags":[]},"27112":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"27113":{"varMapping":{"__isSmartRef__":true,"id":27114},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":27115},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27114":{"this":{"__isSmartRef__":true,"id":27012}},"27115":{"timestamp":{"__isSmartRef__":true,"id":27116},"user":"sebastianwoinar","tags":[]},"27116":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"27117":{"varMapping":{"__isSmartRef__":true,"id":27118},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":27119},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27118":{"this":{"__isSmartRef__":true,"id":27012}},"27119":{"timestamp":{"__isSmartRef__":true,"id":27120},"user":"sebastianwoinar","tags":[]},"27120":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"27121":{"varMapping":{"__isSmartRef__":true,"id":27122},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":27123},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27122":{"this":{"__isSmartRef__":true,"id":27012}},"27123":{"timestamp":{"__isSmartRef__":true,"id":27124},"user":"sebastianwoinar","tags":[]},"27124":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"27125":{"varMapping":{"__isSmartRef__":true,"id":27126},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":27127},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27126":{"this":{"__isSmartRef__":true,"id":27012}},"27127":{"timestamp":{"__isSmartRef__":true,"id":27128},"user":"sebastianwoinar","tags":[]},"27128":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"27129":{"varMapping":{"__isSmartRef__":true,"id":27130},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":27131},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27130":{"this":{"__isSmartRef__":true,"id":27012}},"27131":{"timestamp":{"__isSmartRef__":true,"id":27132},"user":"sebastianwoinar","tags":[]},"27132":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"27133":{"varMapping":{"__isSmartRef__":true,"id":27134},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":27135},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27134":{"this":{"__isSmartRef__":true,"id":27012}},"27135":{"timestamp":{"__isSmartRef__":true,"id":27136},"user":"sebastianwoinar","tags":[]},"27136":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"27137":{"varMapping":{"__isSmartRef__":true,"id":27138},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":27139},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27138":{"this":{"__isSmartRef__":true,"id":27012}},"27139":{"timestamp":{"__isSmartRef__":true,"id":27140},"user":"sebastianwoinar","tags":[]},"27140":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"27141":{"submorphs":[{"__isSmartRef__":true,"id":27142}],"scripts":[],"shape":{"__isSmartRef__":true,"id":27159},"id":"3DA79A03-0EBF-4813-AD67-C18B197AB9F8","eventHandler":{"__isSmartRef__":true,"id":27160},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":27161},"name":"node169","partsBinMetaInfo":{"__isSmartRef__":true,"id":27162},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5767},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":26601},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":27165},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(772.0,210.0)"},"27142":{"submorphs":[],"scripts":[],"id":"F6E1266F-4AB8-4C26-83EA-A94B66D924D4","shape":{"__isSmartRef__":true,"id":27143},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":27144},"textChunks":[{"__isSmartRef__":true,"id":27156}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":27158},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":27141},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"27143":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"27144":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":27145},{"__isSmartRef__":true,"id":27147},{"__isSmartRef__":true,"id":27149},{"__isSmartRef__":true,"id":27151},{"__isSmartRef__":true,"id":27153}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":27155},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"27145":{"date":{"__isSmartRef__":true,"id":27146},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"27146":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"27147":{"date":{"__isSmartRef__":true,"id":27148},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"27148":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"27149":{"date":{"__isSmartRef__":true,"id":27150},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"27150":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"27151":{"date":{"__isSmartRef__":true,"id":27152},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"27152":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"27153":{"date":{"__isSmartRef__":true,"id":27154},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"27154":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"27155":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"27156":{"style":{"__isSmartRef__":true,"id":27157},"morph":{"__isSmartRef__":true,"id":27142},"chunkOwner":{"__isSmartRef__":true,"id":27142},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"27157":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"27158":{"morph":{"__isSmartRef__":true,"id":27142},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"27159":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"27160":{"morph":{"__isSmartRef__":true,"id":27141},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"27161":{},"27162":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":27163}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"27163":{"date":{"__isSmartRef__":true,"id":27164},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"27164":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"27165":{"buildChildNodes":{"__isSmartRef__":true,"id":27166},"getGameTree":{"__isSmartRef__":true,"id":27170},"getLevel":{"__isSmartRef__":true,"id":27174},"getLevelWeight":{"__isSmartRef__":true,"id":27178},"getWeight":{"__isSmartRef__":true,"id":27182},"setNode":{"__isSmartRef__":true,"id":27186},"setParent":{"__isSmartRef__":true,"id":27190},"getParent":{"__isSmartRef__":true,"id":27194},"deactivate":{"__isSmartRef__":true,"id":27198},"blink":{"__isSmartRef__":true,"id":27202},"ABPreturn":{"__isSmartRef__":true,"id":27206},"ABPstart":{"__isSmartRef__":true,"id":27210},"ABPcontinue":{"__isSmartRef__":true,"id":27214},"ABPshowValue":{"__isSmartRef__":true,"id":27218},"ABPgetValue":{"__isSmartRef__":true,"id":27222},"ABPhasChildNodes":{"__isSmartRef__":true,"id":27226},"onMouseDown":{"__isSmartRef__":true,"id":27230},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":27238},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":27242},"ABPmarkAsDone":{"__isSmartRef__":true,"id":27246},"ABPmarkAsActive":{"__isSmartRef__":true,"id":27250},"getStateMorph":{"__isSmartRef__":true,"id":27254},"showState":{"__isSmartRef__":true,"id":27258},"ABPfailHard":{"__isSmartRef__":true,"id":27262},"markFinalDrawWith":{"__isSmartRef__":true,"id":27266}},"27166":{"varMapping":{"__isSmartRef__":true,"id":27167},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":27168},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27167":{"this":{"__isSmartRef__":true,"id":27141}},"27168":{"timestamp":{"__isSmartRef__":true,"id":27169},"user":"sebastianwoinar","tags":[]},"27169":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"27170":{"varMapping":{"__isSmartRef__":true,"id":27171},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":27172},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27171":{"this":{"__isSmartRef__":true,"id":27141}},"27172":{"timestamp":{"__isSmartRef__":true,"id":27173},"user":"sebastianwoinar","tags":[]},"27173":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27174":{"varMapping":{"__isSmartRef__":true,"id":27175},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":27176},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27175":{"this":{"__isSmartRef__":true,"id":27141}},"27176":{"timestamp":{"__isSmartRef__":true,"id":27177},"user":"sebastianwoinar","tags":[]},"27177":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27178":{"varMapping":{"__isSmartRef__":true,"id":27179},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":27180},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27179":{"this":{"__isSmartRef__":true,"id":27141}},"27180":{"timestamp":{"__isSmartRef__":true,"id":27181},"user":"sebastianwoinar","tags":[]},"27181":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27182":{"varMapping":{"__isSmartRef__":true,"id":27183},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":27184},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27183":{"this":{"__isSmartRef__":true,"id":27141}},"27184":{"timestamp":{"__isSmartRef__":true,"id":27185},"user":"sebastianwoinar","tags":[]},"27185":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27186":{"varMapping":{"__isSmartRef__":true,"id":27187},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":27188},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27187":{"this":{"__isSmartRef__":true,"id":27141}},"27188":{"timestamp":{"__isSmartRef__":true,"id":27189},"user":"sebastianwoinar","tags":[]},"27189":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27190":{"varMapping":{"__isSmartRef__":true,"id":27191},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":27192},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27191":{"this":{"__isSmartRef__":true,"id":27141}},"27192":{"timestamp":{"__isSmartRef__":true,"id":27193},"user":"sebastianwoinar","tags":[]},"27193":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27194":{"varMapping":{"__isSmartRef__":true,"id":27195},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":27196},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27195":{"this":{"__isSmartRef__":true,"id":27141}},"27196":{"timestamp":{"__isSmartRef__":true,"id":27197},"user":"sebastianwoinar","tags":[]},"27197":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"27198":{"varMapping":{"__isSmartRef__":true,"id":27199},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":27200},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27199":{"this":{"__isSmartRef__":true,"id":27141}},"27200":{"timestamp":{"__isSmartRef__":true,"id":27201},"user":"sebastianwoinar","tags":[]},"27201":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"27202":{"varMapping":{"__isSmartRef__":true,"id":27203},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":27204},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27203":{"this":{"__isSmartRef__":true,"id":27141}},"27204":{"timestamp":{"__isSmartRef__":true,"id":27205},"user":"sebastianwoinar","tags":[]},"27205":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"27206":{"varMapping":{"__isSmartRef__":true,"id":27207},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":27208},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27207":{"this":{"__isSmartRef__":true,"id":27141}},"27208":{"timestamp":{"__isSmartRef__":true,"id":27209},"user":"sebastianwoinar","tags":[]},"27209":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"27210":{"varMapping":{"__isSmartRef__":true,"id":27211},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":27212},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27211":{"this":{"__isSmartRef__":true,"id":27141}},"27212":{"timestamp":{"__isSmartRef__":true,"id":27213},"user":"sebastianwoinar","tags":[]},"27213":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"27214":{"varMapping":{"__isSmartRef__":true,"id":27215},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":27216},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27215":{"this":{"__isSmartRef__":true,"id":27141}},"27216":{"timestamp":{"__isSmartRef__":true,"id":27217},"user":"sebastianwoinar","tags":[]},"27217":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"27218":{"varMapping":{"__isSmartRef__":true,"id":27219},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":27220},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27219":{"this":{"__isSmartRef__":true,"id":27141}},"27220":{"timestamp":{"__isSmartRef__":true,"id":27221},"user":"sebastianwoinar","tags":[]},"27221":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"27222":{"varMapping":{"__isSmartRef__":true,"id":27223},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":27224},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27223":{"this":{"__isSmartRef__":true,"id":27141}},"27224":{"timestamp":{"__isSmartRef__":true,"id":27225},"user":"sebastianwoinar","tags":[]},"27225":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"27226":{"varMapping":{"__isSmartRef__":true,"id":27227},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":27228},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27227":{"this":{"__isSmartRef__":true,"id":27141}},"27228":{"timestamp":{"__isSmartRef__":true,"id":27229},"user":"sebastianwoinar","tags":[]},"27229":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"27230":{"varMapping":{"__isSmartRef__":true,"id":27231},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":27236},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27231":{"this":{"__isSmartRef__":true,"id":27141},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":27232}},"27232":{"$super":{"__isSmartRef__":true,"id":27233}},"27233":{"varMapping":{"__isSmartRef__":true,"id":27234},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":27235},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27234":{"obj":{"__isSmartRef__":true,"id":27141},"name":"onMouseDown"},"27235":{},"27236":{"timestamp":{"__isSmartRef__":true,"id":27237},"user":"sebastianwoinar","tags":[]},"27237":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"27238":{"varMapping":{"__isSmartRef__":true,"id":27239},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":27240},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27239":{"this":{"__isSmartRef__":true,"id":27141}},"27240":{"timestamp":{"__isSmartRef__":true,"id":27241},"user":"sebastianwoinar","tags":[]},"27241":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"27242":{"varMapping":{"__isSmartRef__":true,"id":27243},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":27244},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27243":{"this":{"__isSmartRef__":true,"id":27141}},"27244":{"timestamp":{"__isSmartRef__":true,"id":27245},"user":"sebastianwoinar","tags":[]},"27245":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"27246":{"varMapping":{"__isSmartRef__":true,"id":27247},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":27248},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27247":{"this":{"__isSmartRef__":true,"id":27141}},"27248":{"timestamp":{"__isSmartRef__":true,"id":27249},"user":"sebastianwoinar","tags":[]},"27249":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"27250":{"varMapping":{"__isSmartRef__":true,"id":27251},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":27252},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27251":{"this":{"__isSmartRef__":true,"id":27141}},"27252":{"timestamp":{"__isSmartRef__":true,"id":27253},"user":"sebastianwoinar","tags":[]},"27253":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"27254":{"varMapping":{"__isSmartRef__":true,"id":27255},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":27256},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27255":{"this":{"__isSmartRef__":true,"id":27141}},"27256":{"timestamp":{"__isSmartRef__":true,"id":27257},"user":"sebastianwoinar","tags":[]},"27257":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"27258":{"varMapping":{"__isSmartRef__":true,"id":27259},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":27260},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27259":{"this":{"__isSmartRef__":true,"id":27141}},"27260":{"timestamp":{"__isSmartRef__":true,"id":27261},"user":"sebastianwoinar","tags":[]},"27261":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"27262":{"varMapping":{"__isSmartRef__":true,"id":27263},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":27264},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27263":{"this":{"__isSmartRef__":true,"id":27141}},"27264":{"timestamp":{"__isSmartRef__":true,"id":27265},"user":"sebastianwoinar","tags":[]},"27265":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"27266":{"varMapping":{"__isSmartRef__":true,"id":27267},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":27268},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27267":{"this":{"__isSmartRef__":true,"id":27141}},"27268":{"timestamp":{"__isSmartRef__":true,"id":27269},"user":"sebastianwoinar","tags":[]},"27269":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"27270":{"submorphs":[{"__isSmartRef__":true,"id":27271}],"scripts":[],"shape":{"__isSmartRef__":true,"id":27288},"id":"E4350CBE-D84F-4D2C-AC7F-AD665E3229BC","eventHandler":{"__isSmartRef__":true,"id":27289},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":27290},"name":"node170","partsBinMetaInfo":{"__isSmartRef__":true,"id":27291},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5769},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":26601},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":27294},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(777.2,210.0)"},"27271":{"submorphs":[],"scripts":[],"id":"62FEC409-F40F-43A9-BE6E-5DEF787AF7E0","shape":{"__isSmartRef__":true,"id":27272},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":27273},"textChunks":[{"__isSmartRef__":true,"id":27285}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":27287},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":27270},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"27272":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"27273":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":27274},{"__isSmartRef__":true,"id":27276},{"__isSmartRef__":true,"id":27278},{"__isSmartRef__":true,"id":27280},{"__isSmartRef__":true,"id":27282}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":27284},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"27274":{"date":{"__isSmartRef__":true,"id":27275},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"27275":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"27276":{"date":{"__isSmartRef__":true,"id":27277},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"27277":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"27278":{"date":{"__isSmartRef__":true,"id":27279},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"27279":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"27280":{"date":{"__isSmartRef__":true,"id":27281},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"27281":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"27282":{"date":{"__isSmartRef__":true,"id":27283},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"27283":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"27284":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"27285":{"style":{"__isSmartRef__":true,"id":27286},"morph":{"__isSmartRef__":true,"id":27271},"chunkOwner":{"__isSmartRef__":true,"id":27271},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"27286":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"27287":{"morph":{"__isSmartRef__":true,"id":27271},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"27288":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"27289":{"morph":{"__isSmartRef__":true,"id":27270},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"27290":{},"27291":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":27292}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"27292":{"date":{"__isSmartRef__":true,"id":27293},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"27293":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"27294":{"buildChildNodes":{"__isSmartRef__":true,"id":27295},"getGameTree":{"__isSmartRef__":true,"id":27299},"getLevel":{"__isSmartRef__":true,"id":27303},"getLevelWeight":{"__isSmartRef__":true,"id":27307},"getWeight":{"__isSmartRef__":true,"id":27311},"setNode":{"__isSmartRef__":true,"id":27315},"setParent":{"__isSmartRef__":true,"id":27319},"getParent":{"__isSmartRef__":true,"id":27323},"deactivate":{"__isSmartRef__":true,"id":27327},"blink":{"__isSmartRef__":true,"id":27331},"ABPreturn":{"__isSmartRef__":true,"id":27335},"ABPstart":{"__isSmartRef__":true,"id":27339},"ABPcontinue":{"__isSmartRef__":true,"id":27343},"ABPshowValue":{"__isSmartRef__":true,"id":27347},"ABPgetValue":{"__isSmartRef__":true,"id":27351},"ABPhasChildNodes":{"__isSmartRef__":true,"id":27355},"onMouseDown":{"__isSmartRef__":true,"id":27359},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":27367},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":27371},"ABPmarkAsDone":{"__isSmartRef__":true,"id":27375},"ABPmarkAsActive":{"__isSmartRef__":true,"id":27379},"getStateMorph":{"__isSmartRef__":true,"id":27383},"showState":{"__isSmartRef__":true,"id":27387},"ABPfailHard":{"__isSmartRef__":true,"id":27391},"markFinalDrawWith":{"__isSmartRef__":true,"id":27395}},"27295":{"varMapping":{"__isSmartRef__":true,"id":27296},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":27297},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27296":{"this":{"__isSmartRef__":true,"id":27270}},"27297":{"timestamp":{"__isSmartRef__":true,"id":27298},"user":"sebastianwoinar","tags":[]},"27298":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"27299":{"varMapping":{"__isSmartRef__":true,"id":27300},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":27301},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27300":{"this":{"__isSmartRef__":true,"id":27270}},"27301":{"timestamp":{"__isSmartRef__":true,"id":27302},"user":"sebastianwoinar","tags":[]},"27302":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27303":{"varMapping":{"__isSmartRef__":true,"id":27304},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":27305},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27304":{"this":{"__isSmartRef__":true,"id":27270}},"27305":{"timestamp":{"__isSmartRef__":true,"id":27306},"user":"sebastianwoinar","tags":[]},"27306":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27307":{"varMapping":{"__isSmartRef__":true,"id":27308},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":27309},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27308":{"this":{"__isSmartRef__":true,"id":27270}},"27309":{"timestamp":{"__isSmartRef__":true,"id":27310},"user":"sebastianwoinar","tags":[]},"27310":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27311":{"varMapping":{"__isSmartRef__":true,"id":27312},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":27313},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27312":{"this":{"__isSmartRef__":true,"id":27270}},"27313":{"timestamp":{"__isSmartRef__":true,"id":27314},"user":"sebastianwoinar","tags":[]},"27314":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27315":{"varMapping":{"__isSmartRef__":true,"id":27316},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":27317},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27316":{"this":{"__isSmartRef__":true,"id":27270}},"27317":{"timestamp":{"__isSmartRef__":true,"id":27318},"user":"sebastianwoinar","tags":[]},"27318":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27319":{"varMapping":{"__isSmartRef__":true,"id":27320},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":27321},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27320":{"this":{"__isSmartRef__":true,"id":27270}},"27321":{"timestamp":{"__isSmartRef__":true,"id":27322},"user":"sebastianwoinar","tags":[]},"27322":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27323":{"varMapping":{"__isSmartRef__":true,"id":27324},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":27325},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27324":{"this":{"__isSmartRef__":true,"id":27270}},"27325":{"timestamp":{"__isSmartRef__":true,"id":27326},"user":"sebastianwoinar","tags":[]},"27326":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"27327":{"varMapping":{"__isSmartRef__":true,"id":27328},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":27329},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27328":{"this":{"__isSmartRef__":true,"id":27270}},"27329":{"timestamp":{"__isSmartRef__":true,"id":27330},"user":"sebastianwoinar","tags":[]},"27330":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"27331":{"varMapping":{"__isSmartRef__":true,"id":27332},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":27333},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27332":{"this":{"__isSmartRef__":true,"id":27270}},"27333":{"timestamp":{"__isSmartRef__":true,"id":27334},"user":"sebastianwoinar","tags":[]},"27334":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"27335":{"varMapping":{"__isSmartRef__":true,"id":27336},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":27337},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27336":{"this":{"__isSmartRef__":true,"id":27270}},"27337":{"timestamp":{"__isSmartRef__":true,"id":27338},"user":"sebastianwoinar","tags":[]},"27338":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"27339":{"varMapping":{"__isSmartRef__":true,"id":27340},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":27341},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27340":{"this":{"__isSmartRef__":true,"id":27270}},"27341":{"timestamp":{"__isSmartRef__":true,"id":27342},"user":"sebastianwoinar","tags":[]},"27342":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"27343":{"varMapping":{"__isSmartRef__":true,"id":27344},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":27345},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27344":{"this":{"__isSmartRef__":true,"id":27270}},"27345":{"timestamp":{"__isSmartRef__":true,"id":27346},"user":"sebastianwoinar","tags":[]},"27346":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"27347":{"varMapping":{"__isSmartRef__":true,"id":27348},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":27349},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27348":{"this":{"__isSmartRef__":true,"id":27270}},"27349":{"timestamp":{"__isSmartRef__":true,"id":27350},"user":"sebastianwoinar","tags":[]},"27350":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"27351":{"varMapping":{"__isSmartRef__":true,"id":27352},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":27353},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27352":{"this":{"__isSmartRef__":true,"id":27270}},"27353":{"timestamp":{"__isSmartRef__":true,"id":27354},"user":"sebastianwoinar","tags":[]},"27354":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"27355":{"varMapping":{"__isSmartRef__":true,"id":27356},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":27357},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27356":{"this":{"__isSmartRef__":true,"id":27270}},"27357":{"timestamp":{"__isSmartRef__":true,"id":27358},"user":"sebastianwoinar","tags":[]},"27358":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"27359":{"varMapping":{"__isSmartRef__":true,"id":27360},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":27365},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27360":{"this":{"__isSmartRef__":true,"id":27270},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":27361}},"27361":{"$super":{"__isSmartRef__":true,"id":27362}},"27362":{"varMapping":{"__isSmartRef__":true,"id":27363},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":27364},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27363":{"obj":{"__isSmartRef__":true,"id":27270},"name":"onMouseDown"},"27364":{},"27365":{"timestamp":{"__isSmartRef__":true,"id":27366},"user":"sebastianwoinar","tags":[]},"27366":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"27367":{"varMapping":{"__isSmartRef__":true,"id":27368},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":27369},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27368":{"this":{"__isSmartRef__":true,"id":27270}},"27369":{"timestamp":{"__isSmartRef__":true,"id":27370},"user":"sebastianwoinar","tags":[]},"27370":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"27371":{"varMapping":{"__isSmartRef__":true,"id":27372},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":27373},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27372":{"this":{"__isSmartRef__":true,"id":27270}},"27373":{"timestamp":{"__isSmartRef__":true,"id":27374},"user":"sebastianwoinar","tags":[]},"27374":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"27375":{"varMapping":{"__isSmartRef__":true,"id":27376},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":27377},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27376":{"this":{"__isSmartRef__":true,"id":27270}},"27377":{"timestamp":{"__isSmartRef__":true,"id":27378},"user":"sebastianwoinar","tags":[]},"27378":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"27379":{"varMapping":{"__isSmartRef__":true,"id":27380},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":27381},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27380":{"this":{"__isSmartRef__":true,"id":27270}},"27381":{"timestamp":{"__isSmartRef__":true,"id":27382},"user":"sebastianwoinar","tags":[]},"27382":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"27383":{"varMapping":{"__isSmartRef__":true,"id":27384},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":27385},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27384":{"this":{"__isSmartRef__":true,"id":27270}},"27385":{"timestamp":{"__isSmartRef__":true,"id":27386},"user":"sebastianwoinar","tags":[]},"27386":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"27387":{"varMapping":{"__isSmartRef__":true,"id":27388},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":27389},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27388":{"this":{"__isSmartRef__":true,"id":27270}},"27389":{"timestamp":{"__isSmartRef__":true,"id":27390},"user":"sebastianwoinar","tags":[]},"27390":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"27391":{"varMapping":{"__isSmartRef__":true,"id":27392},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":27393},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27392":{"this":{"__isSmartRef__":true,"id":27270}},"27393":{"timestamp":{"__isSmartRef__":true,"id":27394},"user":"sebastianwoinar","tags":[]},"27394":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"27395":{"varMapping":{"__isSmartRef__":true,"id":27396},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":27397},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27396":{"this":{"__isSmartRef__":true,"id":27270}},"27397":{"timestamp":{"__isSmartRef__":true,"id":27398},"user":"sebastianwoinar","tags":[]},"27398":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"27399":{"submorphs":[{"__isSmartRef__":true,"id":27400}],"scripts":[],"shape":{"__isSmartRef__":true,"id":27417},"id":"CB96A4DE-2D71-45E2-ADF3-F3282A22DDB6","eventHandler":{"__isSmartRef__":true,"id":27418},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":27419},"name":"node171","partsBinMetaInfo":{"__isSmartRef__":true,"id":27420},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5771},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":26601},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":27423},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(782.4,210.0)"},"27400":{"submorphs":[],"scripts":[],"id":"79106BE9-07A1-4911-B120-D03D57F8CF35","shape":{"__isSmartRef__":true,"id":27401},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":27402},"textChunks":[{"__isSmartRef__":true,"id":27414}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":27416},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":27399},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"27401":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"27402":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":27403},{"__isSmartRef__":true,"id":27405},{"__isSmartRef__":true,"id":27407},{"__isSmartRef__":true,"id":27409},{"__isSmartRef__":true,"id":27411}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":27413},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"27403":{"date":{"__isSmartRef__":true,"id":27404},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"27404":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"27405":{"date":{"__isSmartRef__":true,"id":27406},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"27406":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"27407":{"date":{"__isSmartRef__":true,"id":27408},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"27408":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"27409":{"date":{"__isSmartRef__":true,"id":27410},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"27410":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"27411":{"date":{"__isSmartRef__":true,"id":27412},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"27412":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"27413":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"27414":{"style":{"__isSmartRef__":true,"id":27415},"morph":{"__isSmartRef__":true,"id":27400},"chunkOwner":{"__isSmartRef__":true,"id":27400},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"27415":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"27416":{"morph":{"__isSmartRef__":true,"id":27400},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"27417":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"27418":{"morph":{"__isSmartRef__":true,"id":27399},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"27419":{},"27420":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":27421}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"27421":{"date":{"__isSmartRef__":true,"id":27422},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"27422":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"27423":{"buildChildNodes":{"__isSmartRef__":true,"id":27424},"getGameTree":{"__isSmartRef__":true,"id":27428},"getLevel":{"__isSmartRef__":true,"id":27432},"getLevelWeight":{"__isSmartRef__":true,"id":27436},"getWeight":{"__isSmartRef__":true,"id":27440},"setNode":{"__isSmartRef__":true,"id":27444},"setParent":{"__isSmartRef__":true,"id":27448},"getParent":{"__isSmartRef__":true,"id":27452},"deactivate":{"__isSmartRef__":true,"id":27456},"blink":{"__isSmartRef__":true,"id":27460},"ABPreturn":{"__isSmartRef__":true,"id":27464},"ABPstart":{"__isSmartRef__":true,"id":27468},"ABPcontinue":{"__isSmartRef__":true,"id":27472},"ABPshowValue":{"__isSmartRef__":true,"id":27476},"ABPgetValue":{"__isSmartRef__":true,"id":27480},"ABPhasChildNodes":{"__isSmartRef__":true,"id":27484},"onMouseDown":{"__isSmartRef__":true,"id":27488},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":27496},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":27500},"ABPmarkAsDone":{"__isSmartRef__":true,"id":27504},"ABPmarkAsActive":{"__isSmartRef__":true,"id":27508},"getStateMorph":{"__isSmartRef__":true,"id":27512},"showState":{"__isSmartRef__":true,"id":27516},"ABPfailHard":{"__isSmartRef__":true,"id":27520},"markFinalDrawWith":{"__isSmartRef__":true,"id":27524}},"27424":{"varMapping":{"__isSmartRef__":true,"id":27425},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":27426},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27425":{"this":{"__isSmartRef__":true,"id":27399}},"27426":{"timestamp":{"__isSmartRef__":true,"id":27427},"user":"sebastianwoinar","tags":[]},"27427":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"27428":{"varMapping":{"__isSmartRef__":true,"id":27429},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":27430},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27429":{"this":{"__isSmartRef__":true,"id":27399}},"27430":{"timestamp":{"__isSmartRef__":true,"id":27431},"user":"sebastianwoinar","tags":[]},"27431":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27432":{"varMapping":{"__isSmartRef__":true,"id":27433},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":27434},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27433":{"this":{"__isSmartRef__":true,"id":27399}},"27434":{"timestamp":{"__isSmartRef__":true,"id":27435},"user":"sebastianwoinar","tags":[]},"27435":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27436":{"varMapping":{"__isSmartRef__":true,"id":27437},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":27438},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27437":{"this":{"__isSmartRef__":true,"id":27399}},"27438":{"timestamp":{"__isSmartRef__":true,"id":27439},"user":"sebastianwoinar","tags":[]},"27439":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27440":{"varMapping":{"__isSmartRef__":true,"id":27441},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":27442},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27441":{"this":{"__isSmartRef__":true,"id":27399}},"27442":{"timestamp":{"__isSmartRef__":true,"id":27443},"user":"sebastianwoinar","tags":[]},"27443":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27444":{"varMapping":{"__isSmartRef__":true,"id":27445},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":27446},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27445":{"this":{"__isSmartRef__":true,"id":27399}},"27446":{"timestamp":{"__isSmartRef__":true,"id":27447},"user":"sebastianwoinar","tags":[]},"27447":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27448":{"varMapping":{"__isSmartRef__":true,"id":27449},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":27450},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27449":{"this":{"__isSmartRef__":true,"id":27399}},"27450":{"timestamp":{"__isSmartRef__":true,"id":27451},"user":"sebastianwoinar","tags":[]},"27451":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27452":{"varMapping":{"__isSmartRef__":true,"id":27453},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":27454},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27453":{"this":{"__isSmartRef__":true,"id":27399}},"27454":{"timestamp":{"__isSmartRef__":true,"id":27455},"user":"sebastianwoinar","tags":[]},"27455":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"27456":{"varMapping":{"__isSmartRef__":true,"id":27457},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":27458},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27457":{"this":{"__isSmartRef__":true,"id":27399}},"27458":{"timestamp":{"__isSmartRef__":true,"id":27459},"user":"sebastianwoinar","tags":[]},"27459":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"27460":{"varMapping":{"__isSmartRef__":true,"id":27461},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":27462},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27461":{"this":{"__isSmartRef__":true,"id":27399}},"27462":{"timestamp":{"__isSmartRef__":true,"id":27463},"user":"sebastianwoinar","tags":[]},"27463":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"27464":{"varMapping":{"__isSmartRef__":true,"id":27465},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":27466},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27465":{"this":{"__isSmartRef__":true,"id":27399}},"27466":{"timestamp":{"__isSmartRef__":true,"id":27467},"user":"sebastianwoinar","tags":[]},"27467":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"27468":{"varMapping":{"__isSmartRef__":true,"id":27469},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":27470},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27469":{"this":{"__isSmartRef__":true,"id":27399}},"27470":{"timestamp":{"__isSmartRef__":true,"id":27471},"user":"sebastianwoinar","tags":[]},"27471":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"27472":{"varMapping":{"__isSmartRef__":true,"id":27473},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":27474},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27473":{"this":{"__isSmartRef__":true,"id":27399}},"27474":{"timestamp":{"__isSmartRef__":true,"id":27475},"user":"sebastianwoinar","tags":[]},"27475":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"27476":{"varMapping":{"__isSmartRef__":true,"id":27477},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":27478},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27477":{"this":{"__isSmartRef__":true,"id":27399}},"27478":{"timestamp":{"__isSmartRef__":true,"id":27479},"user":"sebastianwoinar","tags":[]},"27479":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"27480":{"varMapping":{"__isSmartRef__":true,"id":27481},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":27482},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27481":{"this":{"__isSmartRef__":true,"id":27399}},"27482":{"timestamp":{"__isSmartRef__":true,"id":27483},"user":"sebastianwoinar","tags":[]},"27483":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"27484":{"varMapping":{"__isSmartRef__":true,"id":27485},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":27486},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27485":{"this":{"__isSmartRef__":true,"id":27399}},"27486":{"timestamp":{"__isSmartRef__":true,"id":27487},"user":"sebastianwoinar","tags":[]},"27487":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"27488":{"varMapping":{"__isSmartRef__":true,"id":27489},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":27494},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27489":{"this":{"__isSmartRef__":true,"id":27399},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":27490}},"27490":{"$super":{"__isSmartRef__":true,"id":27491}},"27491":{"varMapping":{"__isSmartRef__":true,"id":27492},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":27493},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27492":{"obj":{"__isSmartRef__":true,"id":27399},"name":"onMouseDown"},"27493":{},"27494":{"timestamp":{"__isSmartRef__":true,"id":27495},"user":"sebastianwoinar","tags":[]},"27495":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"27496":{"varMapping":{"__isSmartRef__":true,"id":27497},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":27498},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27497":{"this":{"__isSmartRef__":true,"id":27399}},"27498":{"timestamp":{"__isSmartRef__":true,"id":27499},"user":"sebastianwoinar","tags":[]},"27499":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"27500":{"varMapping":{"__isSmartRef__":true,"id":27501},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":27502},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27501":{"this":{"__isSmartRef__":true,"id":27399}},"27502":{"timestamp":{"__isSmartRef__":true,"id":27503},"user":"sebastianwoinar","tags":[]},"27503":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"27504":{"varMapping":{"__isSmartRef__":true,"id":27505},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":27506},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27505":{"this":{"__isSmartRef__":true,"id":27399}},"27506":{"timestamp":{"__isSmartRef__":true,"id":27507},"user":"sebastianwoinar","tags":[]},"27507":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"27508":{"varMapping":{"__isSmartRef__":true,"id":27509},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":27510},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27509":{"this":{"__isSmartRef__":true,"id":27399}},"27510":{"timestamp":{"__isSmartRef__":true,"id":27511},"user":"sebastianwoinar","tags":[]},"27511":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"27512":{"varMapping":{"__isSmartRef__":true,"id":27513},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":27514},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27513":{"this":{"__isSmartRef__":true,"id":27399}},"27514":{"timestamp":{"__isSmartRef__":true,"id":27515},"user":"sebastianwoinar","tags":[]},"27515":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"27516":{"varMapping":{"__isSmartRef__":true,"id":27517},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":27518},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27517":{"this":{"__isSmartRef__":true,"id":27399}},"27518":{"timestamp":{"__isSmartRef__":true,"id":27519},"user":"sebastianwoinar","tags":[]},"27519":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"27520":{"varMapping":{"__isSmartRef__":true,"id":27521},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":27522},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27521":{"this":{"__isSmartRef__":true,"id":27399}},"27522":{"timestamp":{"__isSmartRef__":true,"id":27523},"user":"sebastianwoinar","tags":[]},"27523":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"27524":{"varMapping":{"__isSmartRef__":true,"id":27525},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":27526},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27525":{"this":{"__isSmartRef__":true,"id":27399}},"27526":{"timestamp":{"__isSmartRef__":true,"id":27527},"user":"sebastianwoinar","tags":[]},"27527":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"27528":{"submorphs":[{"__isSmartRef__":true,"id":27529}],"scripts":[],"shape":{"__isSmartRef__":true,"id":27546},"id":"8811C065-6101-4DE2-B4E8-214738C1D3D7","eventHandler":{"__isSmartRef__":true,"id":27547},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":27548},"name":"node172","partsBinMetaInfo":{"__isSmartRef__":true,"id":27549},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5773},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":26601},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":27552},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(787.5,210.0)"},"27529":{"submorphs":[],"scripts":[],"id":"0041275A-22E1-4785-9F54-809C1E761AB4","shape":{"__isSmartRef__":true,"id":27530},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":27531},"textChunks":[{"__isSmartRef__":true,"id":27543}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":27545},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":27528},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"27530":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"27531":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":27532},{"__isSmartRef__":true,"id":27534},{"__isSmartRef__":true,"id":27536},{"__isSmartRef__":true,"id":27538},{"__isSmartRef__":true,"id":27540}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":27542},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"27532":{"date":{"__isSmartRef__":true,"id":27533},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"27533":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"27534":{"date":{"__isSmartRef__":true,"id":27535},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"27535":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"27536":{"date":{"__isSmartRef__":true,"id":27537},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"27537":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"27538":{"date":{"__isSmartRef__":true,"id":27539},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"27539":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"27540":{"date":{"__isSmartRef__":true,"id":27541},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"27541":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"27542":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"27543":{"style":{"__isSmartRef__":true,"id":27544},"morph":{"__isSmartRef__":true,"id":27529},"chunkOwner":{"__isSmartRef__":true,"id":27529},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"27544":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"27545":{"morph":{"__isSmartRef__":true,"id":27529},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"27546":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"27547":{"morph":{"__isSmartRef__":true,"id":27528},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"27548":{},"27549":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":27550}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"27550":{"date":{"__isSmartRef__":true,"id":27551},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"27551":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"27552":{"buildChildNodes":{"__isSmartRef__":true,"id":27553},"getGameTree":{"__isSmartRef__":true,"id":27557},"getLevel":{"__isSmartRef__":true,"id":27561},"getLevelWeight":{"__isSmartRef__":true,"id":27565},"getWeight":{"__isSmartRef__":true,"id":27569},"setNode":{"__isSmartRef__":true,"id":27573},"setParent":{"__isSmartRef__":true,"id":27577},"getParent":{"__isSmartRef__":true,"id":27581},"deactivate":{"__isSmartRef__":true,"id":27585},"blink":{"__isSmartRef__":true,"id":27589},"ABPreturn":{"__isSmartRef__":true,"id":27593},"ABPstart":{"__isSmartRef__":true,"id":27597},"ABPcontinue":{"__isSmartRef__":true,"id":27601},"ABPshowValue":{"__isSmartRef__":true,"id":27605},"ABPgetValue":{"__isSmartRef__":true,"id":27609},"ABPhasChildNodes":{"__isSmartRef__":true,"id":27613},"onMouseDown":{"__isSmartRef__":true,"id":27617},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":27625},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":27629},"ABPmarkAsDone":{"__isSmartRef__":true,"id":27633},"ABPmarkAsActive":{"__isSmartRef__":true,"id":27637},"getStateMorph":{"__isSmartRef__":true,"id":27641},"showState":{"__isSmartRef__":true,"id":27645},"ABPfailHard":{"__isSmartRef__":true,"id":27649},"markFinalDrawWith":{"__isSmartRef__":true,"id":27653}},"27553":{"varMapping":{"__isSmartRef__":true,"id":27554},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":27555},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27554":{"this":{"__isSmartRef__":true,"id":27528}},"27555":{"timestamp":{"__isSmartRef__":true,"id":27556},"user":"sebastianwoinar","tags":[]},"27556":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"27557":{"varMapping":{"__isSmartRef__":true,"id":27558},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":27559},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27558":{"this":{"__isSmartRef__":true,"id":27528}},"27559":{"timestamp":{"__isSmartRef__":true,"id":27560},"user":"sebastianwoinar","tags":[]},"27560":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27561":{"varMapping":{"__isSmartRef__":true,"id":27562},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":27563},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27562":{"this":{"__isSmartRef__":true,"id":27528}},"27563":{"timestamp":{"__isSmartRef__":true,"id":27564},"user":"sebastianwoinar","tags":[]},"27564":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27565":{"varMapping":{"__isSmartRef__":true,"id":27566},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":27567},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27566":{"this":{"__isSmartRef__":true,"id":27528}},"27567":{"timestamp":{"__isSmartRef__":true,"id":27568},"user":"sebastianwoinar","tags":[]},"27568":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27569":{"varMapping":{"__isSmartRef__":true,"id":27570},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":27571},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27570":{"this":{"__isSmartRef__":true,"id":27528}},"27571":{"timestamp":{"__isSmartRef__":true,"id":27572},"user":"sebastianwoinar","tags":[]},"27572":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27573":{"varMapping":{"__isSmartRef__":true,"id":27574},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":27575},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27574":{"this":{"__isSmartRef__":true,"id":27528}},"27575":{"timestamp":{"__isSmartRef__":true,"id":27576},"user":"sebastianwoinar","tags":[]},"27576":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27577":{"varMapping":{"__isSmartRef__":true,"id":27578},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":27579},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27578":{"this":{"__isSmartRef__":true,"id":27528}},"27579":{"timestamp":{"__isSmartRef__":true,"id":27580},"user":"sebastianwoinar","tags":[]},"27580":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27581":{"varMapping":{"__isSmartRef__":true,"id":27582},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":27583},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27582":{"this":{"__isSmartRef__":true,"id":27528}},"27583":{"timestamp":{"__isSmartRef__":true,"id":27584},"user":"sebastianwoinar","tags":[]},"27584":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"27585":{"varMapping":{"__isSmartRef__":true,"id":27586},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":27587},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27586":{"this":{"__isSmartRef__":true,"id":27528}},"27587":{"timestamp":{"__isSmartRef__":true,"id":27588},"user":"sebastianwoinar","tags":[]},"27588":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"27589":{"varMapping":{"__isSmartRef__":true,"id":27590},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":27591},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27590":{"this":{"__isSmartRef__":true,"id":27528}},"27591":{"timestamp":{"__isSmartRef__":true,"id":27592},"user":"sebastianwoinar","tags":[]},"27592":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"27593":{"varMapping":{"__isSmartRef__":true,"id":27594},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":27595},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27594":{"this":{"__isSmartRef__":true,"id":27528}},"27595":{"timestamp":{"__isSmartRef__":true,"id":27596},"user":"sebastianwoinar","tags":[]},"27596":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"27597":{"varMapping":{"__isSmartRef__":true,"id":27598},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":27599},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27598":{"this":{"__isSmartRef__":true,"id":27528}},"27599":{"timestamp":{"__isSmartRef__":true,"id":27600},"user":"sebastianwoinar","tags":[]},"27600":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"27601":{"varMapping":{"__isSmartRef__":true,"id":27602},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":27603},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27602":{"this":{"__isSmartRef__":true,"id":27528}},"27603":{"timestamp":{"__isSmartRef__":true,"id":27604},"user":"sebastianwoinar","tags":[]},"27604":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"27605":{"varMapping":{"__isSmartRef__":true,"id":27606},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":27607},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27606":{"this":{"__isSmartRef__":true,"id":27528}},"27607":{"timestamp":{"__isSmartRef__":true,"id":27608},"user":"sebastianwoinar","tags":[]},"27608":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"27609":{"varMapping":{"__isSmartRef__":true,"id":27610},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":27611},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27610":{"this":{"__isSmartRef__":true,"id":27528}},"27611":{"timestamp":{"__isSmartRef__":true,"id":27612},"user":"sebastianwoinar","tags":[]},"27612":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"27613":{"varMapping":{"__isSmartRef__":true,"id":27614},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":27615},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27614":{"this":{"__isSmartRef__":true,"id":27528}},"27615":{"timestamp":{"__isSmartRef__":true,"id":27616},"user":"sebastianwoinar","tags":[]},"27616":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"27617":{"varMapping":{"__isSmartRef__":true,"id":27618},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":27623},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27618":{"this":{"__isSmartRef__":true,"id":27528},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":27619}},"27619":{"$super":{"__isSmartRef__":true,"id":27620}},"27620":{"varMapping":{"__isSmartRef__":true,"id":27621},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":27622},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27621":{"obj":{"__isSmartRef__":true,"id":27528},"name":"onMouseDown"},"27622":{},"27623":{"timestamp":{"__isSmartRef__":true,"id":27624},"user":"sebastianwoinar","tags":[]},"27624":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"27625":{"varMapping":{"__isSmartRef__":true,"id":27626},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":27627},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27626":{"this":{"__isSmartRef__":true,"id":27528}},"27627":{"timestamp":{"__isSmartRef__":true,"id":27628},"user":"sebastianwoinar","tags":[]},"27628":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"27629":{"varMapping":{"__isSmartRef__":true,"id":27630},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":27631},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27630":{"this":{"__isSmartRef__":true,"id":27528}},"27631":{"timestamp":{"__isSmartRef__":true,"id":27632},"user":"sebastianwoinar","tags":[]},"27632":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"27633":{"varMapping":{"__isSmartRef__":true,"id":27634},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":27635},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27634":{"this":{"__isSmartRef__":true,"id":27528}},"27635":{"timestamp":{"__isSmartRef__":true,"id":27636},"user":"sebastianwoinar","tags":[]},"27636":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"27637":{"varMapping":{"__isSmartRef__":true,"id":27638},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":27639},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27638":{"this":{"__isSmartRef__":true,"id":27528}},"27639":{"timestamp":{"__isSmartRef__":true,"id":27640},"user":"sebastianwoinar","tags":[]},"27640":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"27641":{"varMapping":{"__isSmartRef__":true,"id":27642},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":27643},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27642":{"this":{"__isSmartRef__":true,"id":27528}},"27643":{"timestamp":{"__isSmartRef__":true,"id":27644},"user":"sebastianwoinar","tags":[]},"27644":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"27645":{"varMapping":{"__isSmartRef__":true,"id":27646},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":27647},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27646":{"this":{"__isSmartRef__":true,"id":27528}},"27647":{"timestamp":{"__isSmartRef__":true,"id":27648},"user":"sebastianwoinar","tags":[]},"27648":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"27649":{"varMapping":{"__isSmartRef__":true,"id":27650},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":27651},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27650":{"this":{"__isSmartRef__":true,"id":27528}},"27651":{"timestamp":{"__isSmartRef__":true,"id":27652},"user":"sebastianwoinar","tags":[]},"27652":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"27653":{"varMapping":{"__isSmartRef__":true,"id":27654},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":27655},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27654":{"this":{"__isSmartRef__":true,"id":27528}},"27655":{"timestamp":{"__isSmartRef__":true,"id":27656},"user":"sebastianwoinar","tags":[]},"27656":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"27657":{"buildChildNodes":{"__isSmartRef__":true,"id":27658},"getGameTree":{"__isSmartRef__":true,"id":27662},"getLevel":{"__isSmartRef__":true,"id":27666},"getLevelWeight":{"__isSmartRef__":true,"id":27670},"getWeight":{"__isSmartRef__":true,"id":27674},"setNode":{"__isSmartRef__":true,"id":27678},"setParent":{"__isSmartRef__":true,"id":27682},"getParent":{"__isSmartRef__":true,"id":27686},"deactivate":{"__isSmartRef__":true,"id":27690},"blink":{"__isSmartRef__":true,"id":27694},"ABPreturn":{"__isSmartRef__":true,"id":27698},"ABPstart":{"__isSmartRef__":true,"id":27702},"ABPcontinue":{"__isSmartRef__":true,"id":27706},"ABPshowValue":{"__isSmartRef__":true,"id":27710},"ABPgetValue":{"__isSmartRef__":true,"id":27714},"ABPhasChildNodes":{"__isSmartRef__":true,"id":27718},"onMouseDown":{"__isSmartRef__":true,"id":27722},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":27730},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":27734},"ABPmarkAsDone":{"__isSmartRef__":true,"id":27738},"ABPmarkAsActive":{"__isSmartRef__":true,"id":27742},"getStateMorph":{"__isSmartRef__":true,"id":27746},"showState":{"__isSmartRef__":true,"id":27750},"ABPfailHard":{"__isSmartRef__":true,"id":27754},"markFinalDrawWith":{"__isSmartRef__":true,"id":27758}},"27658":{"varMapping":{"__isSmartRef__":true,"id":27659},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":27660},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27659":{"this":{"__isSmartRef__":true,"id":26601}},"27660":{"timestamp":{"__isSmartRef__":true,"id":27661},"user":"sebastianwoinar","tags":[]},"27661":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"27662":{"varMapping":{"__isSmartRef__":true,"id":27663},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":27664},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27663":{"this":{"__isSmartRef__":true,"id":26601}},"27664":{"timestamp":{"__isSmartRef__":true,"id":27665},"user":"sebastianwoinar","tags":[]},"27665":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27666":{"varMapping":{"__isSmartRef__":true,"id":27667},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":27668},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27667":{"this":{"__isSmartRef__":true,"id":26601}},"27668":{"timestamp":{"__isSmartRef__":true,"id":27669},"user":"sebastianwoinar","tags":[]},"27669":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27670":{"varMapping":{"__isSmartRef__":true,"id":27671},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":27672},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27671":{"this":{"__isSmartRef__":true,"id":26601}},"27672":{"timestamp":{"__isSmartRef__":true,"id":27673},"user":"sebastianwoinar","tags":[]},"27673":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27674":{"varMapping":{"__isSmartRef__":true,"id":27675},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":27676},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27675":{"this":{"__isSmartRef__":true,"id":26601}},"27676":{"timestamp":{"__isSmartRef__":true,"id":27677},"user":"sebastianwoinar","tags":[]},"27677":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27678":{"varMapping":{"__isSmartRef__":true,"id":27679},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":27680},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27679":{"this":{"__isSmartRef__":true,"id":26601}},"27680":{"timestamp":{"__isSmartRef__":true,"id":27681},"user":"sebastianwoinar","tags":[]},"27681":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27682":{"varMapping":{"__isSmartRef__":true,"id":27683},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":27684},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27683":{"this":{"__isSmartRef__":true,"id":26601}},"27684":{"timestamp":{"__isSmartRef__":true,"id":27685},"user":"sebastianwoinar","tags":[]},"27685":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27686":{"varMapping":{"__isSmartRef__":true,"id":27687},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":27688},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27687":{"this":{"__isSmartRef__":true,"id":26601}},"27688":{"timestamp":{"__isSmartRef__":true,"id":27689},"user":"sebastianwoinar","tags":[]},"27689":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"27690":{"varMapping":{"__isSmartRef__":true,"id":27691},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":27692},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27691":{"this":{"__isSmartRef__":true,"id":26601}},"27692":{"timestamp":{"__isSmartRef__":true,"id":27693},"user":"sebastianwoinar","tags":[]},"27693":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"27694":{"varMapping":{"__isSmartRef__":true,"id":27695},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":27696},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27695":{"this":{"__isSmartRef__":true,"id":26601}},"27696":{"timestamp":{"__isSmartRef__":true,"id":27697},"user":"sebastianwoinar","tags":[]},"27697":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"27698":{"varMapping":{"__isSmartRef__":true,"id":27699},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":27700},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27699":{"this":{"__isSmartRef__":true,"id":26601}},"27700":{"timestamp":{"__isSmartRef__":true,"id":27701},"user":"sebastianwoinar","tags":[]},"27701":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"27702":{"varMapping":{"__isSmartRef__":true,"id":27703},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":27704},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27703":{"this":{"__isSmartRef__":true,"id":26601}},"27704":{"timestamp":{"__isSmartRef__":true,"id":27705},"user":"sebastianwoinar","tags":[]},"27705":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"27706":{"varMapping":{"__isSmartRef__":true,"id":27707},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":27708},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27707":{"this":{"__isSmartRef__":true,"id":26601}},"27708":{"timestamp":{"__isSmartRef__":true,"id":27709},"user":"sebastianwoinar","tags":[]},"27709":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"27710":{"varMapping":{"__isSmartRef__":true,"id":27711},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":27712},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27711":{"this":{"__isSmartRef__":true,"id":26601}},"27712":{"timestamp":{"__isSmartRef__":true,"id":27713},"user":"sebastianwoinar","tags":[]},"27713":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"27714":{"varMapping":{"__isSmartRef__":true,"id":27715},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":27716},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27715":{"this":{"__isSmartRef__":true,"id":26601}},"27716":{"timestamp":{"__isSmartRef__":true,"id":27717},"user":"sebastianwoinar","tags":[]},"27717":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"27718":{"varMapping":{"__isSmartRef__":true,"id":27719},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":27720},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27719":{"this":{"__isSmartRef__":true,"id":26601}},"27720":{"timestamp":{"__isSmartRef__":true,"id":27721},"user":"sebastianwoinar","tags":[]},"27721":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"27722":{"varMapping":{"__isSmartRef__":true,"id":27723},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":27728},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27723":{"this":{"__isSmartRef__":true,"id":26601},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":27724}},"27724":{"$super":{"__isSmartRef__":true,"id":27725}},"27725":{"varMapping":{"__isSmartRef__":true,"id":27726},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":27727},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27726":{"obj":{"__isSmartRef__":true,"id":26601},"name":"onMouseDown"},"27727":{},"27728":{"timestamp":{"__isSmartRef__":true,"id":27729},"user":"sebastianwoinar","tags":[]},"27729":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"27730":{"varMapping":{"__isSmartRef__":true,"id":27731},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":27732},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27731":{"this":{"__isSmartRef__":true,"id":26601}},"27732":{"timestamp":{"__isSmartRef__":true,"id":27733},"user":"sebastianwoinar","tags":[]},"27733":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"27734":{"varMapping":{"__isSmartRef__":true,"id":27735},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":27736},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27735":{"this":{"__isSmartRef__":true,"id":26601}},"27736":{"timestamp":{"__isSmartRef__":true,"id":27737},"user":"sebastianwoinar","tags":[]},"27737":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"27738":{"varMapping":{"__isSmartRef__":true,"id":27739},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":27740},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27739":{"this":{"__isSmartRef__":true,"id":26601}},"27740":{"timestamp":{"__isSmartRef__":true,"id":27741},"user":"sebastianwoinar","tags":[]},"27741":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"27742":{"varMapping":{"__isSmartRef__":true,"id":27743},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":27744},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27743":{"this":{"__isSmartRef__":true,"id":26601}},"27744":{"timestamp":{"__isSmartRef__":true,"id":27745},"user":"sebastianwoinar","tags":[]},"27745":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"27746":{"varMapping":{"__isSmartRef__":true,"id":27747},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":27748},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27747":{"this":{"__isSmartRef__":true,"id":26601}},"27748":{"timestamp":{"__isSmartRef__":true,"id":27749},"user":"sebastianwoinar","tags":[]},"27749":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"27750":{"varMapping":{"__isSmartRef__":true,"id":27751},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":27752},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27751":{"this":{"__isSmartRef__":true,"id":26601}},"27752":{"timestamp":{"__isSmartRef__":true,"id":27753},"user":"sebastianwoinar","tags":[]},"27753":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"27754":{"varMapping":{"__isSmartRef__":true,"id":27755},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":27756},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27755":{"this":{"__isSmartRef__":true,"id":26601}},"27756":{"timestamp":{"__isSmartRef__":true,"id":27757},"user":"sebastianwoinar","tags":[]},"27757":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"27758":{"varMapping":{"__isSmartRef__":true,"id":27759},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":27760},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27759":{"this":{"__isSmartRef__":true,"id":26601}},"27760":{"timestamp":{"__isSmartRef__":true,"id":27761},"user":"sebastianwoinar","tags":[]},"27761":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"27762":{"submorphs":[{"__isSmartRef__":true,"id":27763}],"scripts":[],"shape":{"__isSmartRef__":true,"id":27780},"id":"04755CD8-3EF7-43DA-A130-7B0793C0F242","eventHandler":{"__isSmartRef__":true,"id":27781},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":27782},"name":"node173","partsBinMetaInfo":{"__isSmartRef__":true,"id":27783},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5775},"owner":{"__isSmartRef__":true,"id":5408},"childNodes":[{"__isSmartRef__":true,"id":27786},{"__isSmartRef__":true,"id":27915},{"__isSmartRef__":true,"id":28044},{"__isSmartRef__":true,"id":28173},{"__isSmartRef__":true,"id":28302},{"__isSmartRef__":true,"id":28431},{"__isSmartRef__":true,"id":28560},{"__isSmartRef__":true,"id":28689},{"__isSmartRef__":true,"id":28818}],"parent":{"__isSmartRef__":true,"id":25287},"level":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":28947},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(792.7,160.0)"},"27763":{"submorphs":[],"scripts":[],"id":"3F7B8F44-2936-4F13-8598-D2C7158987EC","shape":{"__isSmartRef__":true,"id":27764},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":27765},"textChunks":[{"__isSmartRef__":true,"id":27777}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":27779},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":27762},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"27764":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"27765":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":27766},{"__isSmartRef__":true,"id":27768},{"__isSmartRef__":true,"id":27770},{"__isSmartRef__":true,"id":27772},{"__isSmartRef__":true,"id":27774}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":27776},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"27766":{"date":{"__isSmartRef__":true,"id":27767},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"27767":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"27768":{"date":{"__isSmartRef__":true,"id":27769},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"27769":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"27770":{"date":{"__isSmartRef__":true,"id":27771},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"27771":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"27772":{"date":{"__isSmartRef__":true,"id":27773},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"27773":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"27774":{"date":{"__isSmartRef__":true,"id":27775},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"27775":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"27776":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"27777":{"style":{"__isSmartRef__":true,"id":27778},"morph":{"__isSmartRef__":true,"id":27763},"chunkOwner":{"__isSmartRef__":true,"id":27763},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"27778":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"27779":{"morph":{"__isSmartRef__":true,"id":27763},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"27780":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"27781":{"morph":{"__isSmartRef__":true,"id":27762},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"27782":{},"27783":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":27784}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"27784":{"date":{"__isSmartRef__":true,"id":27785},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"27785":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"27786":{"submorphs":[{"__isSmartRef__":true,"id":27787}],"scripts":[],"shape":{"__isSmartRef__":true,"id":27804},"id":"AD5532C3-A365-4BF2-8315-127C58A2DB1F","eventHandler":{"__isSmartRef__":true,"id":27805},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":27806},"name":"node174","partsBinMetaInfo":{"__isSmartRef__":true,"id":27807},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5777},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":27762},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":27810},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(792.7,210.0)"},"27787":{"submorphs":[],"scripts":[],"id":"128FA9B8-E5C6-4D70-A97C-BBF255C928A3","shape":{"__isSmartRef__":true,"id":27788},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":27789},"textChunks":[{"__isSmartRef__":true,"id":27801}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":27803},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":27786},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"27788":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"27789":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":27790},{"__isSmartRef__":true,"id":27792},{"__isSmartRef__":true,"id":27794},{"__isSmartRef__":true,"id":27796},{"__isSmartRef__":true,"id":27798}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":27800},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"27790":{"date":{"__isSmartRef__":true,"id":27791},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"27791":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"27792":{"date":{"__isSmartRef__":true,"id":27793},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"27793":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"27794":{"date":{"__isSmartRef__":true,"id":27795},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"27795":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"27796":{"date":{"__isSmartRef__":true,"id":27797},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"27797":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"27798":{"date":{"__isSmartRef__":true,"id":27799},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"27799":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"27800":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"27801":{"style":{"__isSmartRef__":true,"id":27802},"morph":{"__isSmartRef__":true,"id":27787},"chunkOwner":{"__isSmartRef__":true,"id":27787},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"27802":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"27803":{"morph":{"__isSmartRef__":true,"id":27787},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"27804":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"27805":{"morph":{"__isSmartRef__":true,"id":27786},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"27806":{},"27807":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":27808}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"27808":{"date":{"__isSmartRef__":true,"id":27809},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"27809":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"27810":{"buildChildNodes":{"__isSmartRef__":true,"id":27811},"getGameTree":{"__isSmartRef__":true,"id":27815},"getLevel":{"__isSmartRef__":true,"id":27819},"getLevelWeight":{"__isSmartRef__":true,"id":27823},"getWeight":{"__isSmartRef__":true,"id":27827},"setNode":{"__isSmartRef__":true,"id":27831},"setParent":{"__isSmartRef__":true,"id":27835},"getParent":{"__isSmartRef__":true,"id":27839},"deactivate":{"__isSmartRef__":true,"id":27843},"blink":{"__isSmartRef__":true,"id":27847},"ABPreturn":{"__isSmartRef__":true,"id":27851},"ABPstart":{"__isSmartRef__":true,"id":27855},"ABPcontinue":{"__isSmartRef__":true,"id":27859},"ABPshowValue":{"__isSmartRef__":true,"id":27863},"ABPgetValue":{"__isSmartRef__":true,"id":27867},"ABPhasChildNodes":{"__isSmartRef__":true,"id":27871},"onMouseDown":{"__isSmartRef__":true,"id":27875},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":27883},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":27887},"ABPmarkAsDone":{"__isSmartRef__":true,"id":27891},"ABPmarkAsActive":{"__isSmartRef__":true,"id":27895},"getStateMorph":{"__isSmartRef__":true,"id":27899},"showState":{"__isSmartRef__":true,"id":27903},"ABPfailHard":{"__isSmartRef__":true,"id":27907},"markFinalDrawWith":{"__isSmartRef__":true,"id":27911}},"27811":{"varMapping":{"__isSmartRef__":true,"id":27812},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":27813},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27812":{"this":{"__isSmartRef__":true,"id":27786}},"27813":{"timestamp":{"__isSmartRef__":true,"id":27814},"user":"sebastianwoinar","tags":[]},"27814":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"27815":{"varMapping":{"__isSmartRef__":true,"id":27816},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":27817},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27816":{"this":{"__isSmartRef__":true,"id":27786}},"27817":{"timestamp":{"__isSmartRef__":true,"id":27818},"user":"sebastianwoinar","tags":[]},"27818":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27819":{"varMapping":{"__isSmartRef__":true,"id":27820},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":27821},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27820":{"this":{"__isSmartRef__":true,"id":27786}},"27821":{"timestamp":{"__isSmartRef__":true,"id":27822},"user":"sebastianwoinar","tags":[]},"27822":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27823":{"varMapping":{"__isSmartRef__":true,"id":27824},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":27825},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27824":{"this":{"__isSmartRef__":true,"id":27786}},"27825":{"timestamp":{"__isSmartRef__":true,"id":27826},"user":"sebastianwoinar","tags":[]},"27826":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27827":{"varMapping":{"__isSmartRef__":true,"id":27828},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":27829},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27828":{"this":{"__isSmartRef__":true,"id":27786}},"27829":{"timestamp":{"__isSmartRef__":true,"id":27830},"user":"sebastianwoinar","tags":[]},"27830":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27831":{"varMapping":{"__isSmartRef__":true,"id":27832},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":27833},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27832":{"this":{"__isSmartRef__":true,"id":27786}},"27833":{"timestamp":{"__isSmartRef__":true,"id":27834},"user":"sebastianwoinar","tags":[]},"27834":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27835":{"varMapping":{"__isSmartRef__":true,"id":27836},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":27837},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27836":{"this":{"__isSmartRef__":true,"id":27786}},"27837":{"timestamp":{"__isSmartRef__":true,"id":27838},"user":"sebastianwoinar","tags":[]},"27838":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27839":{"varMapping":{"__isSmartRef__":true,"id":27840},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":27841},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27840":{"this":{"__isSmartRef__":true,"id":27786}},"27841":{"timestamp":{"__isSmartRef__":true,"id":27842},"user":"sebastianwoinar","tags":[]},"27842":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"27843":{"varMapping":{"__isSmartRef__":true,"id":27844},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":27845},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27844":{"this":{"__isSmartRef__":true,"id":27786}},"27845":{"timestamp":{"__isSmartRef__":true,"id":27846},"user":"sebastianwoinar","tags":[]},"27846":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"27847":{"varMapping":{"__isSmartRef__":true,"id":27848},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":27849},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27848":{"this":{"__isSmartRef__":true,"id":27786}},"27849":{"timestamp":{"__isSmartRef__":true,"id":27850},"user":"sebastianwoinar","tags":[]},"27850":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"27851":{"varMapping":{"__isSmartRef__":true,"id":27852},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":27853},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27852":{"this":{"__isSmartRef__":true,"id":27786}},"27853":{"timestamp":{"__isSmartRef__":true,"id":27854},"user":"sebastianwoinar","tags":[]},"27854":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"27855":{"varMapping":{"__isSmartRef__":true,"id":27856},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":27857},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27856":{"this":{"__isSmartRef__":true,"id":27786}},"27857":{"timestamp":{"__isSmartRef__":true,"id":27858},"user":"sebastianwoinar","tags":[]},"27858":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"27859":{"varMapping":{"__isSmartRef__":true,"id":27860},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":27861},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27860":{"this":{"__isSmartRef__":true,"id":27786}},"27861":{"timestamp":{"__isSmartRef__":true,"id":27862},"user":"sebastianwoinar","tags":[]},"27862":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"27863":{"varMapping":{"__isSmartRef__":true,"id":27864},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":27865},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27864":{"this":{"__isSmartRef__":true,"id":27786}},"27865":{"timestamp":{"__isSmartRef__":true,"id":27866},"user":"sebastianwoinar","tags":[]},"27866":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"27867":{"varMapping":{"__isSmartRef__":true,"id":27868},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":27869},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27868":{"this":{"__isSmartRef__":true,"id":27786}},"27869":{"timestamp":{"__isSmartRef__":true,"id":27870},"user":"sebastianwoinar","tags":[]},"27870":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"27871":{"varMapping":{"__isSmartRef__":true,"id":27872},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":27873},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27872":{"this":{"__isSmartRef__":true,"id":27786}},"27873":{"timestamp":{"__isSmartRef__":true,"id":27874},"user":"sebastianwoinar","tags":[]},"27874":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"27875":{"varMapping":{"__isSmartRef__":true,"id":27876},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":27881},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27876":{"this":{"__isSmartRef__":true,"id":27786},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":27877}},"27877":{"$super":{"__isSmartRef__":true,"id":27878}},"27878":{"varMapping":{"__isSmartRef__":true,"id":27879},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":27880},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27879":{"obj":{"__isSmartRef__":true,"id":27786},"name":"onMouseDown"},"27880":{},"27881":{"timestamp":{"__isSmartRef__":true,"id":27882},"user":"sebastianwoinar","tags":[]},"27882":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"27883":{"varMapping":{"__isSmartRef__":true,"id":27884},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":27885},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27884":{"this":{"__isSmartRef__":true,"id":27786}},"27885":{"timestamp":{"__isSmartRef__":true,"id":27886},"user":"sebastianwoinar","tags":[]},"27886":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"27887":{"varMapping":{"__isSmartRef__":true,"id":27888},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":27889},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27888":{"this":{"__isSmartRef__":true,"id":27786}},"27889":{"timestamp":{"__isSmartRef__":true,"id":27890},"user":"sebastianwoinar","tags":[]},"27890":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"27891":{"varMapping":{"__isSmartRef__":true,"id":27892},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":27893},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27892":{"this":{"__isSmartRef__":true,"id":27786}},"27893":{"timestamp":{"__isSmartRef__":true,"id":27894},"user":"sebastianwoinar","tags":[]},"27894":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"27895":{"varMapping":{"__isSmartRef__":true,"id":27896},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":27897},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27896":{"this":{"__isSmartRef__":true,"id":27786}},"27897":{"timestamp":{"__isSmartRef__":true,"id":27898},"user":"sebastianwoinar","tags":[]},"27898":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"27899":{"varMapping":{"__isSmartRef__":true,"id":27900},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":27901},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27900":{"this":{"__isSmartRef__":true,"id":27786}},"27901":{"timestamp":{"__isSmartRef__":true,"id":27902},"user":"sebastianwoinar","tags":[]},"27902":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"27903":{"varMapping":{"__isSmartRef__":true,"id":27904},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":27905},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27904":{"this":{"__isSmartRef__":true,"id":27786}},"27905":{"timestamp":{"__isSmartRef__":true,"id":27906},"user":"sebastianwoinar","tags":[]},"27906":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"27907":{"varMapping":{"__isSmartRef__":true,"id":27908},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":27909},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27908":{"this":{"__isSmartRef__":true,"id":27786}},"27909":{"timestamp":{"__isSmartRef__":true,"id":27910},"user":"sebastianwoinar","tags":[]},"27910":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"27911":{"varMapping":{"__isSmartRef__":true,"id":27912},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":27913},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27912":{"this":{"__isSmartRef__":true,"id":27786}},"27913":{"timestamp":{"__isSmartRef__":true,"id":27914},"user":"sebastianwoinar","tags":[]},"27914":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"27915":{"submorphs":[{"__isSmartRef__":true,"id":27916}],"scripts":[],"shape":{"__isSmartRef__":true,"id":27933},"id":"959E5AEF-BE4B-4CF8-8AFA-952FE6A303B4","eventHandler":{"__isSmartRef__":true,"id":27934},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":27935},"name":"node175","partsBinMetaInfo":{"__isSmartRef__":true,"id":27936},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5779},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":27762},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":27939},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(797.9,210.0)"},"27916":{"submorphs":[],"scripts":[],"id":"F0610316-C2B7-44BC-AAA2-26846FA11A38","shape":{"__isSmartRef__":true,"id":27917},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":27918},"textChunks":[{"__isSmartRef__":true,"id":27930}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":27932},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":27915},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"27917":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"27918":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":27919},{"__isSmartRef__":true,"id":27921},{"__isSmartRef__":true,"id":27923},{"__isSmartRef__":true,"id":27925},{"__isSmartRef__":true,"id":27927}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":27929},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"27919":{"date":{"__isSmartRef__":true,"id":27920},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"27920":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"27921":{"date":{"__isSmartRef__":true,"id":27922},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"27922":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"27923":{"date":{"__isSmartRef__":true,"id":27924},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"27924":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"27925":{"date":{"__isSmartRef__":true,"id":27926},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"27926":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"27927":{"date":{"__isSmartRef__":true,"id":27928},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"27928":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"27929":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"27930":{"style":{"__isSmartRef__":true,"id":27931},"morph":{"__isSmartRef__":true,"id":27916},"chunkOwner":{"__isSmartRef__":true,"id":27916},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"27931":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"27932":{"morph":{"__isSmartRef__":true,"id":27916},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"27933":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"27934":{"morph":{"__isSmartRef__":true,"id":27915},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"27935":{},"27936":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":27937}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"27937":{"date":{"__isSmartRef__":true,"id":27938},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"27938":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"27939":{"buildChildNodes":{"__isSmartRef__":true,"id":27940},"getGameTree":{"__isSmartRef__":true,"id":27944},"getLevel":{"__isSmartRef__":true,"id":27948},"getLevelWeight":{"__isSmartRef__":true,"id":27952},"getWeight":{"__isSmartRef__":true,"id":27956},"setNode":{"__isSmartRef__":true,"id":27960},"setParent":{"__isSmartRef__":true,"id":27964},"getParent":{"__isSmartRef__":true,"id":27968},"deactivate":{"__isSmartRef__":true,"id":27972},"blink":{"__isSmartRef__":true,"id":27976},"ABPreturn":{"__isSmartRef__":true,"id":27980},"ABPstart":{"__isSmartRef__":true,"id":27984},"ABPcontinue":{"__isSmartRef__":true,"id":27988},"ABPshowValue":{"__isSmartRef__":true,"id":27992},"ABPgetValue":{"__isSmartRef__":true,"id":27996},"ABPhasChildNodes":{"__isSmartRef__":true,"id":28000},"onMouseDown":{"__isSmartRef__":true,"id":28004},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":28012},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":28016},"ABPmarkAsDone":{"__isSmartRef__":true,"id":28020},"ABPmarkAsActive":{"__isSmartRef__":true,"id":28024},"getStateMorph":{"__isSmartRef__":true,"id":28028},"showState":{"__isSmartRef__":true,"id":28032},"ABPfailHard":{"__isSmartRef__":true,"id":28036},"markFinalDrawWith":{"__isSmartRef__":true,"id":28040}},"27940":{"varMapping":{"__isSmartRef__":true,"id":27941},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":27942},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27941":{"this":{"__isSmartRef__":true,"id":27915}},"27942":{"timestamp":{"__isSmartRef__":true,"id":27943},"user":"sebastianwoinar","tags":[]},"27943":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"27944":{"varMapping":{"__isSmartRef__":true,"id":27945},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":27946},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27945":{"this":{"__isSmartRef__":true,"id":27915}},"27946":{"timestamp":{"__isSmartRef__":true,"id":27947},"user":"sebastianwoinar","tags":[]},"27947":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27948":{"varMapping":{"__isSmartRef__":true,"id":27949},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":27950},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27949":{"this":{"__isSmartRef__":true,"id":27915}},"27950":{"timestamp":{"__isSmartRef__":true,"id":27951},"user":"sebastianwoinar","tags":[]},"27951":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27952":{"varMapping":{"__isSmartRef__":true,"id":27953},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":27954},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27953":{"this":{"__isSmartRef__":true,"id":27915}},"27954":{"timestamp":{"__isSmartRef__":true,"id":27955},"user":"sebastianwoinar","tags":[]},"27955":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27956":{"varMapping":{"__isSmartRef__":true,"id":27957},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":27958},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27957":{"this":{"__isSmartRef__":true,"id":27915}},"27958":{"timestamp":{"__isSmartRef__":true,"id":27959},"user":"sebastianwoinar","tags":[]},"27959":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27960":{"varMapping":{"__isSmartRef__":true,"id":27961},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":27962},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27961":{"this":{"__isSmartRef__":true,"id":27915}},"27962":{"timestamp":{"__isSmartRef__":true,"id":27963},"user":"sebastianwoinar","tags":[]},"27963":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27964":{"varMapping":{"__isSmartRef__":true,"id":27965},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":27966},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27965":{"this":{"__isSmartRef__":true,"id":27915}},"27966":{"timestamp":{"__isSmartRef__":true,"id":27967},"user":"sebastianwoinar","tags":[]},"27967":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"27968":{"varMapping":{"__isSmartRef__":true,"id":27969},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":27970},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27969":{"this":{"__isSmartRef__":true,"id":27915}},"27970":{"timestamp":{"__isSmartRef__":true,"id":27971},"user":"sebastianwoinar","tags":[]},"27971":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"27972":{"varMapping":{"__isSmartRef__":true,"id":27973},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":27974},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27973":{"this":{"__isSmartRef__":true,"id":27915}},"27974":{"timestamp":{"__isSmartRef__":true,"id":27975},"user":"sebastianwoinar","tags":[]},"27975":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"27976":{"varMapping":{"__isSmartRef__":true,"id":27977},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":27978},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27977":{"this":{"__isSmartRef__":true,"id":27915}},"27978":{"timestamp":{"__isSmartRef__":true,"id":27979},"user":"sebastianwoinar","tags":[]},"27979":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"27980":{"varMapping":{"__isSmartRef__":true,"id":27981},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":27982},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27981":{"this":{"__isSmartRef__":true,"id":27915}},"27982":{"timestamp":{"__isSmartRef__":true,"id":27983},"user":"sebastianwoinar","tags":[]},"27983":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"27984":{"varMapping":{"__isSmartRef__":true,"id":27985},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":27986},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27985":{"this":{"__isSmartRef__":true,"id":27915}},"27986":{"timestamp":{"__isSmartRef__":true,"id":27987},"user":"sebastianwoinar","tags":[]},"27987":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"27988":{"varMapping":{"__isSmartRef__":true,"id":27989},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":27990},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27989":{"this":{"__isSmartRef__":true,"id":27915}},"27990":{"timestamp":{"__isSmartRef__":true,"id":27991},"user":"sebastianwoinar","tags":[]},"27991":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"27992":{"varMapping":{"__isSmartRef__":true,"id":27993},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":27994},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27993":{"this":{"__isSmartRef__":true,"id":27915}},"27994":{"timestamp":{"__isSmartRef__":true,"id":27995},"user":"sebastianwoinar","tags":[]},"27995":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"27996":{"varMapping":{"__isSmartRef__":true,"id":27997},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":27998},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27997":{"this":{"__isSmartRef__":true,"id":27915}},"27998":{"timestamp":{"__isSmartRef__":true,"id":27999},"user":"sebastianwoinar","tags":[]},"27999":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"28000":{"varMapping":{"__isSmartRef__":true,"id":28001},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":28002},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28001":{"this":{"__isSmartRef__":true,"id":27915}},"28002":{"timestamp":{"__isSmartRef__":true,"id":28003},"user":"sebastianwoinar","tags":[]},"28003":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"28004":{"varMapping":{"__isSmartRef__":true,"id":28005},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":28010},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28005":{"this":{"__isSmartRef__":true,"id":27915},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":28006}},"28006":{"$super":{"__isSmartRef__":true,"id":28007}},"28007":{"varMapping":{"__isSmartRef__":true,"id":28008},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":28009},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28008":{"obj":{"__isSmartRef__":true,"id":27915},"name":"onMouseDown"},"28009":{},"28010":{"timestamp":{"__isSmartRef__":true,"id":28011},"user":"sebastianwoinar","tags":[]},"28011":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"28012":{"varMapping":{"__isSmartRef__":true,"id":28013},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":28014},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28013":{"this":{"__isSmartRef__":true,"id":27915}},"28014":{"timestamp":{"__isSmartRef__":true,"id":28015},"user":"sebastianwoinar","tags":[]},"28015":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"28016":{"varMapping":{"__isSmartRef__":true,"id":28017},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":28018},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28017":{"this":{"__isSmartRef__":true,"id":27915}},"28018":{"timestamp":{"__isSmartRef__":true,"id":28019},"user":"sebastianwoinar","tags":[]},"28019":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"28020":{"varMapping":{"__isSmartRef__":true,"id":28021},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":28022},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28021":{"this":{"__isSmartRef__":true,"id":27915}},"28022":{"timestamp":{"__isSmartRef__":true,"id":28023},"user":"sebastianwoinar","tags":[]},"28023":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"28024":{"varMapping":{"__isSmartRef__":true,"id":28025},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":28026},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28025":{"this":{"__isSmartRef__":true,"id":27915}},"28026":{"timestamp":{"__isSmartRef__":true,"id":28027},"user":"sebastianwoinar","tags":[]},"28027":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"28028":{"varMapping":{"__isSmartRef__":true,"id":28029},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":28030},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28029":{"this":{"__isSmartRef__":true,"id":27915}},"28030":{"timestamp":{"__isSmartRef__":true,"id":28031},"user":"sebastianwoinar","tags":[]},"28031":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"28032":{"varMapping":{"__isSmartRef__":true,"id":28033},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":28034},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28033":{"this":{"__isSmartRef__":true,"id":27915}},"28034":{"timestamp":{"__isSmartRef__":true,"id":28035},"user":"sebastianwoinar","tags":[]},"28035":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"28036":{"varMapping":{"__isSmartRef__":true,"id":28037},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":28038},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28037":{"this":{"__isSmartRef__":true,"id":27915}},"28038":{"timestamp":{"__isSmartRef__":true,"id":28039},"user":"sebastianwoinar","tags":[]},"28039":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"28040":{"varMapping":{"__isSmartRef__":true,"id":28041},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":28042},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28041":{"this":{"__isSmartRef__":true,"id":27915}},"28042":{"timestamp":{"__isSmartRef__":true,"id":28043},"user":"sebastianwoinar","tags":[]},"28043":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"28044":{"submorphs":[{"__isSmartRef__":true,"id":28045}],"scripts":[],"shape":{"__isSmartRef__":true,"id":28062},"id":"D85B2A3B-3F4C-4E60-A3F0-1476FD5A292C","eventHandler":{"__isSmartRef__":true,"id":28063},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":28064},"name":"node176","partsBinMetaInfo":{"__isSmartRef__":true,"id":28065},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5781},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":27762},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":28068},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(803.1,210.0)"},"28045":{"submorphs":[],"scripts":[],"id":"D892579D-02FD-4FAC-B2D7-92A3FA3CACC1","shape":{"__isSmartRef__":true,"id":28046},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":28047},"textChunks":[{"__isSmartRef__":true,"id":28059}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":28061},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":28044},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"28046":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"28047":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":28048},{"__isSmartRef__":true,"id":28050},{"__isSmartRef__":true,"id":28052},{"__isSmartRef__":true,"id":28054},{"__isSmartRef__":true,"id":28056}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":28058},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"28048":{"date":{"__isSmartRef__":true,"id":28049},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"28049":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"28050":{"date":{"__isSmartRef__":true,"id":28051},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"28051":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"28052":{"date":{"__isSmartRef__":true,"id":28053},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"28053":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"28054":{"date":{"__isSmartRef__":true,"id":28055},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"28055":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"28056":{"date":{"__isSmartRef__":true,"id":28057},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"28057":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"28058":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"28059":{"style":{"__isSmartRef__":true,"id":28060},"morph":{"__isSmartRef__":true,"id":28045},"chunkOwner":{"__isSmartRef__":true,"id":28045},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"28060":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"28061":{"morph":{"__isSmartRef__":true,"id":28045},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"28062":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"28063":{"morph":{"__isSmartRef__":true,"id":28044},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"28064":{},"28065":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":28066}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"28066":{"date":{"__isSmartRef__":true,"id":28067},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"28067":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"28068":{"buildChildNodes":{"__isSmartRef__":true,"id":28069},"getGameTree":{"__isSmartRef__":true,"id":28073},"getLevel":{"__isSmartRef__":true,"id":28077},"getLevelWeight":{"__isSmartRef__":true,"id":28081},"getWeight":{"__isSmartRef__":true,"id":28085},"setNode":{"__isSmartRef__":true,"id":28089},"setParent":{"__isSmartRef__":true,"id":28093},"getParent":{"__isSmartRef__":true,"id":28097},"deactivate":{"__isSmartRef__":true,"id":28101},"blink":{"__isSmartRef__":true,"id":28105},"ABPreturn":{"__isSmartRef__":true,"id":28109},"ABPstart":{"__isSmartRef__":true,"id":28113},"ABPcontinue":{"__isSmartRef__":true,"id":28117},"ABPshowValue":{"__isSmartRef__":true,"id":28121},"ABPgetValue":{"__isSmartRef__":true,"id":28125},"ABPhasChildNodes":{"__isSmartRef__":true,"id":28129},"onMouseDown":{"__isSmartRef__":true,"id":28133},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":28141},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":28145},"ABPmarkAsDone":{"__isSmartRef__":true,"id":28149},"ABPmarkAsActive":{"__isSmartRef__":true,"id":28153},"getStateMorph":{"__isSmartRef__":true,"id":28157},"showState":{"__isSmartRef__":true,"id":28161},"ABPfailHard":{"__isSmartRef__":true,"id":28165},"markFinalDrawWith":{"__isSmartRef__":true,"id":28169}},"28069":{"varMapping":{"__isSmartRef__":true,"id":28070},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":28071},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28070":{"this":{"__isSmartRef__":true,"id":28044}},"28071":{"timestamp":{"__isSmartRef__":true,"id":28072},"user":"sebastianwoinar","tags":[]},"28072":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"28073":{"varMapping":{"__isSmartRef__":true,"id":28074},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":28075},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28074":{"this":{"__isSmartRef__":true,"id":28044}},"28075":{"timestamp":{"__isSmartRef__":true,"id":28076},"user":"sebastianwoinar","tags":[]},"28076":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28077":{"varMapping":{"__isSmartRef__":true,"id":28078},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":28079},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28078":{"this":{"__isSmartRef__":true,"id":28044}},"28079":{"timestamp":{"__isSmartRef__":true,"id":28080},"user":"sebastianwoinar","tags":[]},"28080":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28081":{"varMapping":{"__isSmartRef__":true,"id":28082},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":28083},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28082":{"this":{"__isSmartRef__":true,"id":28044}},"28083":{"timestamp":{"__isSmartRef__":true,"id":28084},"user":"sebastianwoinar","tags":[]},"28084":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28085":{"varMapping":{"__isSmartRef__":true,"id":28086},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":28087},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28086":{"this":{"__isSmartRef__":true,"id":28044}},"28087":{"timestamp":{"__isSmartRef__":true,"id":28088},"user":"sebastianwoinar","tags":[]},"28088":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28089":{"varMapping":{"__isSmartRef__":true,"id":28090},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":28091},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28090":{"this":{"__isSmartRef__":true,"id":28044}},"28091":{"timestamp":{"__isSmartRef__":true,"id":28092},"user":"sebastianwoinar","tags":[]},"28092":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28093":{"varMapping":{"__isSmartRef__":true,"id":28094},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":28095},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28094":{"this":{"__isSmartRef__":true,"id":28044}},"28095":{"timestamp":{"__isSmartRef__":true,"id":28096},"user":"sebastianwoinar","tags":[]},"28096":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28097":{"varMapping":{"__isSmartRef__":true,"id":28098},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":28099},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28098":{"this":{"__isSmartRef__":true,"id":28044}},"28099":{"timestamp":{"__isSmartRef__":true,"id":28100},"user":"sebastianwoinar","tags":[]},"28100":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"28101":{"varMapping":{"__isSmartRef__":true,"id":28102},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":28103},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28102":{"this":{"__isSmartRef__":true,"id":28044}},"28103":{"timestamp":{"__isSmartRef__":true,"id":28104},"user":"sebastianwoinar","tags":[]},"28104":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"28105":{"varMapping":{"__isSmartRef__":true,"id":28106},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":28107},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28106":{"this":{"__isSmartRef__":true,"id":28044}},"28107":{"timestamp":{"__isSmartRef__":true,"id":28108},"user":"sebastianwoinar","tags":[]},"28108":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"28109":{"varMapping":{"__isSmartRef__":true,"id":28110},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":28111},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28110":{"this":{"__isSmartRef__":true,"id":28044}},"28111":{"timestamp":{"__isSmartRef__":true,"id":28112},"user":"sebastianwoinar","tags":[]},"28112":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"28113":{"varMapping":{"__isSmartRef__":true,"id":28114},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":28115},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28114":{"this":{"__isSmartRef__":true,"id":28044}},"28115":{"timestamp":{"__isSmartRef__":true,"id":28116},"user":"sebastianwoinar","tags":[]},"28116":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"28117":{"varMapping":{"__isSmartRef__":true,"id":28118},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":28119},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28118":{"this":{"__isSmartRef__":true,"id":28044}},"28119":{"timestamp":{"__isSmartRef__":true,"id":28120},"user":"sebastianwoinar","tags":[]},"28120":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"28121":{"varMapping":{"__isSmartRef__":true,"id":28122},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":28123},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28122":{"this":{"__isSmartRef__":true,"id":28044}},"28123":{"timestamp":{"__isSmartRef__":true,"id":28124},"user":"sebastianwoinar","tags":[]},"28124":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"28125":{"varMapping":{"__isSmartRef__":true,"id":28126},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":28127},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28126":{"this":{"__isSmartRef__":true,"id":28044}},"28127":{"timestamp":{"__isSmartRef__":true,"id":28128},"user":"sebastianwoinar","tags":[]},"28128":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"28129":{"varMapping":{"__isSmartRef__":true,"id":28130},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":28131},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28130":{"this":{"__isSmartRef__":true,"id":28044}},"28131":{"timestamp":{"__isSmartRef__":true,"id":28132},"user":"sebastianwoinar","tags":[]},"28132":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"28133":{"varMapping":{"__isSmartRef__":true,"id":28134},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":28139},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28134":{"this":{"__isSmartRef__":true,"id":28044},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":28135}},"28135":{"$super":{"__isSmartRef__":true,"id":28136}},"28136":{"varMapping":{"__isSmartRef__":true,"id":28137},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":28138},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28137":{"obj":{"__isSmartRef__":true,"id":28044},"name":"onMouseDown"},"28138":{},"28139":{"timestamp":{"__isSmartRef__":true,"id":28140},"user":"sebastianwoinar","tags":[]},"28140":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"28141":{"varMapping":{"__isSmartRef__":true,"id":28142},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":28143},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28142":{"this":{"__isSmartRef__":true,"id":28044}},"28143":{"timestamp":{"__isSmartRef__":true,"id":28144},"user":"sebastianwoinar","tags":[]},"28144":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"28145":{"varMapping":{"__isSmartRef__":true,"id":28146},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":28147},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28146":{"this":{"__isSmartRef__":true,"id":28044}},"28147":{"timestamp":{"__isSmartRef__":true,"id":28148},"user":"sebastianwoinar","tags":[]},"28148":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"28149":{"varMapping":{"__isSmartRef__":true,"id":28150},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":28151},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28150":{"this":{"__isSmartRef__":true,"id":28044}},"28151":{"timestamp":{"__isSmartRef__":true,"id":28152},"user":"sebastianwoinar","tags":[]},"28152":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"28153":{"varMapping":{"__isSmartRef__":true,"id":28154},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":28155},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28154":{"this":{"__isSmartRef__":true,"id":28044}},"28155":{"timestamp":{"__isSmartRef__":true,"id":28156},"user":"sebastianwoinar","tags":[]},"28156":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"28157":{"varMapping":{"__isSmartRef__":true,"id":28158},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":28159},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28158":{"this":{"__isSmartRef__":true,"id":28044}},"28159":{"timestamp":{"__isSmartRef__":true,"id":28160},"user":"sebastianwoinar","tags":[]},"28160":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"28161":{"varMapping":{"__isSmartRef__":true,"id":28162},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":28163},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28162":{"this":{"__isSmartRef__":true,"id":28044}},"28163":{"timestamp":{"__isSmartRef__":true,"id":28164},"user":"sebastianwoinar","tags":[]},"28164":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"28165":{"varMapping":{"__isSmartRef__":true,"id":28166},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":28167},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28166":{"this":{"__isSmartRef__":true,"id":28044}},"28167":{"timestamp":{"__isSmartRef__":true,"id":28168},"user":"sebastianwoinar","tags":[]},"28168":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"28169":{"varMapping":{"__isSmartRef__":true,"id":28170},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":28171},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28170":{"this":{"__isSmartRef__":true,"id":28044}},"28171":{"timestamp":{"__isSmartRef__":true,"id":28172},"user":"sebastianwoinar","tags":[]},"28172":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"28173":{"submorphs":[{"__isSmartRef__":true,"id":28174}],"scripts":[],"shape":{"__isSmartRef__":true,"id":28191},"id":"ABF4EA59-A829-4A66-9399-5680C7AB308B","eventHandler":{"__isSmartRef__":true,"id":28192},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":28193},"name":"node177","partsBinMetaInfo":{"__isSmartRef__":true,"id":28194},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5783},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":27762},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":28197},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(808.3,210.0)"},"28174":{"submorphs":[],"scripts":[],"id":"4AB8EBE4-4E46-4DD4-8ED9-7A2853505D5A","shape":{"__isSmartRef__":true,"id":28175},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":28176},"textChunks":[{"__isSmartRef__":true,"id":28188}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":28190},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":28173},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"28175":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"28176":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":28177},{"__isSmartRef__":true,"id":28179},{"__isSmartRef__":true,"id":28181},{"__isSmartRef__":true,"id":28183},{"__isSmartRef__":true,"id":28185}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":28187},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"28177":{"date":{"__isSmartRef__":true,"id":28178},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"28178":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"28179":{"date":{"__isSmartRef__":true,"id":28180},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"28180":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"28181":{"date":{"__isSmartRef__":true,"id":28182},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"28182":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"28183":{"date":{"__isSmartRef__":true,"id":28184},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"28184":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"28185":{"date":{"__isSmartRef__":true,"id":28186},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"28186":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"28187":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"28188":{"style":{"__isSmartRef__":true,"id":28189},"morph":{"__isSmartRef__":true,"id":28174},"chunkOwner":{"__isSmartRef__":true,"id":28174},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"28189":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"28190":{"morph":{"__isSmartRef__":true,"id":28174},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"28191":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"28192":{"morph":{"__isSmartRef__":true,"id":28173},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"28193":{},"28194":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":28195}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"28195":{"date":{"__isSmartRef__":true,"id":28196},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"28196":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"28197":{"buildChildNodes":{"__isSmartRef__":true,"id":28198},"getGameTree":{"__isSmartRef__":true,"id":28202},"getLevel":{"__isSmartRef__":true,"id":28206},"getLevelWeight":{"__isSmartRef__":true,"id":28210},"getWeight":{"__isSmartRef__":true,"id":28214},"setNode":{"__isSmartRef__":true,"id":28218},"setParent":{"__isSmartRef__":true,"id":28222},"getParent":{"__isSmartRef__":true,"id":28226},"deactivate":{"__isSmartRef__":true,"id":28230},"blink":{"__isSmartRef__":true,"id":28234},"ABPreturn":{"__isSmartRef__":true,"id":28238},"ABPstart":{"__isSmartRef__":true,"id":28242},"ABPcontinue":{"__isSmartRef__":true,"id":28246},"ABPshowValue":{"__isSmartRef__":true,"id":28250},"ABPgetValue":{"__isSmartRef__":true,"id":28254},"ABPhasChildNodes":{"__isSmartRef__":true,"id":28258},"onMouseDown":{"__isSmartRef__":true,"id":28262},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":28270},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":28274},"ABPmarkAsDone":{"__isSmartRef__":true,"id":28278},"ABPmarkAsActive":{"__isSmartRef__":true,"id":28282},"getStateMorph":{"__isSmartRef__":true,"id":28286},"showState":{"__isSmartRef__":true,"id":28290},"ABPfailHard":{"__isSmartRef__":true,"id":28294},"markFinalDrawWith":{"__isSmartRef__":true,"id":28298}},"28198":{"varMapping":{"__isSmartRef__":true,"id":28199},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":28200},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28199":{"this":{"__isSmartRef__":true,"id":28173}},"28200":{"timestamp":{"__isSmartRef__":true,"id":28201},"user":"sebastianwoinar","tags":[]},"28201":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"28202":{"varMapping":{"__isSmartRef__":true,"id":28203},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":28204},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28203":{"this":{"__isSmartRef__":true,"id":28173}},"28204":{"timestamp":{"__isSmartRef__":true,"id":28205},"user":"sebastianwoinar","tags":[]},"28205":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28206":{"varMapping":{"__isSmartRef__":true,"id":28207},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":28208},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28207":{"this":{"__isSmartRef__":true,"id":28173}},"28208":{"timestamp":{"__isSmartRef__":true,"id":28209},"user":"sebastianwoinar","tags":[]},"28209":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28210":{"varMapping":{"__isSmartRef__":true,"id":28211},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":28212},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28211":{"this":{"__isSmartRef__":true,"id":28173}},"28212":{"timestamp":{"__isSmartRef__":true,"id":28213},"user":"sebastianwoinar","tags":[]},"28213":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28214":{"varMapping":{"__isSmartRef__":true,"id":28215},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":28216},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28215":{"this":{"__isSmartRef__":true,"id":28173}},"28216":{"timestamp":{"__isSmartRef__":true,"id":28217},"user":"sebastianwoinar","tags":[]},"28217":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28218":{"varMapping":{"__isSmartRef__":true,"id":28219},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":28220},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28219":{"this":{"__isSmartRef__":true,"id":28173}},"28220":{"timestamp":{"__isSmartRef__":true,"id":28221},"user":"sebastianwoinar","tags":[]},"28221":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28222":{"varMapping":{"__isSmartRef__":true,"id":28223},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":28224},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28223":{"this":{"__isSmartRef__":true,"id":28173}},"28224":{"timestamp":{"__isSmartRef__":true,"id":28225},"user":"sebastianwoinar","tags":[]},"28225":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28226":{"varMapping":{"__isSmartRef__":true,"id":28227},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":28228},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28227":{"this":{"__isSmartRef__":true,"id":28173}},"28228":{"timestamp":{"__isSmartRef__":true,"id":28229},"user":"sebastianwoinar","tags":[]},"28229":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"28230":{"varMapping":{"__isSmartRef__":true,"id":28231},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":28232},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28231":{"this":{"__isSmartRef__":true,"id":28173}},"28232":{"timestamp":{"__isSmartRef__":true,"id":28233},"user":"sebastianwoinar","tags":[]},"28233":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"28234":{"varMapping":{"__isSmartRef__":true,"id":28235},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":28236},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28235":{"this":{"__isSmartRef__":true,"id":28173}},"28236":{"timestamp":{"__isSmartRef__":true,"id":28237},"user":"sebastianwoinar","tags":[]},"28237":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"28238":{"varMapping":{"__isSmartRef__":true,"id":28239},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":28240},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28239":{"this":{"__isSmartRef__":true,"id":28173}},"28240":{"timestamp":{"__isSmartRef__":true,"id":28241},"user":"sebastianwoinar","tags":[]},"28241":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"28242":{"varMapping":{"__isSmartRef__":true,"id":28243},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":28244},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28243":{"this":{"__isSmartRef__":true,"id":28173}},"28244":{"timestamp":{"__isSmartRef__":true,"id":28245},"user":"sebastianwoinar","tags":[]},"28245":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"28246":{"varMapping":{"__isSmartRef__":true,"id":28247},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":28248},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28247":{"this":{"__isSmartRef__":true,"id":28173}},"28248":{"timestamp":{"__isSmartRef__":true,"id":28249},"user":"sebastianwoinar","tags":[]},"28249":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"28250":{"varMapping":{"__isSmartRef__":true,"id":28251},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":28252},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28251":{"this":{"__isSmartRef__":true,"id":28173}},"28252":{"timestamp":{"__isSmartRef__":true,"id":28253},"user":"sebastianwoinar","tags":[]},"28253":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"28254":{"varMapping":{"__isSmartRef__":true,"id":28255},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":28256},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28255":{"this":{"__isSmartRef__":true,"id":28173}},"28256":{"timestamp":{"__isSmartRef__":true,"id":28257},"user":"sebastianwoinar","tags":[]},"28257":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"28258":{"varMapping":{"__isSmartRef__":true,"id":28259},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":28260},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28259":{"this":{"__isSmartRef__":true,"id":28173}},"28260":{"timestamp":{"__isSmartRef__":true,"id":28261},"user":"sebastianwoinar","tags":[]},"28261":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"28262":{"varMapping":{"__isSmartRef__":true,"id":28263},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":28268},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28263":{"this":{"__isSmartRef__":true,"id":28173},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":28264}},"28264":{"$super":{"__isSmartRef__":true,"id":28265}},"28265":{"varMapping":{"__isSmartRef__":true,"id":28266},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":28267},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28266":{"obj":{"__isSmartRef__":true,"id":28173},"name":"onMouseDown"},"28267":{},"28268":{"timestamp":{"__isSmartRef__":true,"id":28269},"user":"sebastianwoinar","tags":[]},"28269":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"28270":{"varMapping":{"__isSmartRef__":true,"id":28271},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":28272},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28271":{"this":{"__isSmartRef__":true,"id":28173}},"28272":{"timestamp":{"__isSmartRef__":true,"id":28273},"user":"sebastianwoinar","tags":[]},"28273":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"28274":{"varMapping":{"__isSmartRef__":true,"id":28275},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":28276},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28275":{"this":{"__isSmartRef__":true,"id":28173}},"28276":{"timestamp":{"__isSmartRef__":true,"id":28277},"user":"sebastianwoinar","tags":[]},"28277":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"28278":{"varMapping":{"__isSmartRef__":true,"id":28279},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":28280},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28279":{"this":{"__isSmartRef__":true,"id":28173}},"28280":{"timestamp":{"__isSmartRef__":true,"id":28281},"user":"sebastianwoinar","tags":[]},"28281":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"28282":{"varMapping":{"__isSmartRef__":true,"id":28283},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":28284},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28283":{"this":{"__isSmartRef__":true,"id":28173}},"28284":{"timestamp":{"__isSmartRef__":true,"id":28285},"user":"sebastianwoinar","tags":[]},"28285":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"28286":{"varMapping":{"__isSmartRef__":true,"id":28287},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":28288},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28287":{"this":{"__isSmartRef__":true,"id":28173}},"28288":{"timestamp":{"__isSmartRef__":true,"id":28289},"user":"sebastianwoinar","tags":[]},"28289":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"28290":{"varMapping":{"__isSmartRef__":true,"id":28291},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":28292},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28291":{"this":{"__isSmartRef__":true,"id":28173}},"28292":{"timestamp":{"__isSmartRef__":true,"id":28293},"user":"sebastianwoinar","tags":[]},"28293":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"28294":{"varMapping":{"__isSmartRef__":true,"id":28295},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":28296},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28295":{"this":{"__isSmartRef__":true,"id":28173}},"28296":{"timestamp":{"__isSmartRef__":true,"id":28297},"user":"sebastianwoinar","tags":[]},"28297":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"28298":{"varMapping":{"__isSmartRef__":true,"id":28299},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":28300},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28299":{"this":{"__isSmartRef__":true,"id":28173}},"28300":{"timestamp":{"__isSmartRef__":true,"id":28301},"user":"sebastianwoinar","tags":[]},"28301":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"28302":{"submorphs":[{"__isSmartRef__":true,"id":28303}],"scripts":[],"shape":{"__isSmartRef__":true,"id":28320},"id":"E87229AB-3F6C-419A-ACA7-70C7C26FD41D","eventHandler":{"__isSmartRef__":true,"id":28321},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":28322},"name":"node178","partsBinMetaInfo":{"__isSmartRef__":true,"id":28323},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5785},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":27762},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":28326},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(813.4,210.0)"},"28303":{"submorphs":[],"scripts":[],"id":"2494C88A-B0E8-4B7D-836F-970FC8609EAB","shape":{"__isSmartRef__":true,"id":28304},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":28305},"textChunks":[{"__isSmartRef__":true,"id":28317}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":28319},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":28302},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"28304":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"28305":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":28306},{"__isSmartRef__":true,"id":28308},{"__isSmartRef__":true,"id":28310},{"__isSmartRef__":true,"id":28312},{"__isSmartRef__":true,"id":28314}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":28316},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"28306":{"date":{"__isSmartRef__":true,"id":28307},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"28307":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"28308":{"date":{"__isSmartRef__":true,"id":28309},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"28309":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"28310":{"date":{"__isSmartRef__":true,"id":28311},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"28311":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"28312":{"date":{"__isSmartRef__":true,"id":28313},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"28313":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"28314":{"date":{"__isSmartRef__":true,"id":28315},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"28315":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"28316":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"28317":{"style":{"__isSmartRef__":true,"id":28318},"morph":{"__isSmartRef__":true,"id":28303},"chunkOwner":{"__isSmartRef__":true,"id":28303},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"28318":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"28319":{"morph":{"__isSmartRef__":true,"id":28303},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"28320":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"28321":{"morph":{"__isSmartRef__":true,"id":28302},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"28322":{},"28323":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":28324}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"28324":{"date":{"__isSmartRef__":true,"id":28325},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"28325":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"28326":{"buildChildNodes":{"__isSmartRef__":true,"id":28327},"getGameTree":{"__isSmartRef__":true,"id":28331},"getLevel":{"__isSmartRef__":true,"id":28335},"getLevelWeight":{"__isSmartRef__":true,"id":28339},"getWeight":{"__isSmartRef__":true,"id":28343},"setNode":{"__isSmartRef__":true,"id":28347},"setParent":{"__isSmartRef__":true,"id":28351},"getParent":{"__isSmartRef__":true,"id":28355},"deactivate":{"__isSmartRef__":true,"id":28359},"blink":{"__isSmartRef__":true,"id":28363},"ABPreturn":{"__isSmartRef__":true,"id":28367},"ABPstart":{"__isSmartRef__":true,"id":28371},"ABPcontinue":{"__isSmartRef__":true,"id":28375},"ABPshowValue":{"__isSmartRef__":true,"id":28379},"ABPgetValue":{"__isSmartRef__":true,"id":28383},"ABPhasChildNodes":{"__isSmartRef__":true,"id":28387},"onMouseDown":{"__isSmartRef__":true,"id":28391},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":28399},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":28403},"ABPmarkAsDone":{"__isSmartRef__":true,"id":28407},"ABPmarkAsActive":{"__isSmartRef__":true,"id":28411},"getStateMorph":{"__isSmartRef__":true,"id":28415},"showState":{"__isSmartRef__":true,"id":28419},"ABPfailHard":{"__isSmartRef__":true,"id":28423},"markFinalDrawWith":{"__isSmartRef__":true,"id":28427}},"28327":{"varMapping":{"__isSmartRef__":true,"id":28328},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":28329},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28328":{"this":{"__isSmartRef__":true,"id":28302}},"28329":{"timestamp":{"__isSmartRef__":true,"id":28330},"user":"sebastianwoinar","tags":[]},"28330":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"28331":{"varMapping":{"__isSmartRef__":true,"id":28332},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":28333},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28332":{"this":{"__isSmartRef__":true,"id":28302}},"28333":{"timestamp":{"__isSmartRef__":true,"id":28334},"user":"sebastianwoinar","tags":[]},"28334":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28335":{"varMapping":{"__isSmartRef__":true,"id":28336},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":28337},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28336":{"this":{"__isSmartRef__":true,"id":28302}},"28337":{"timestamp":{"__isSmartRef__":true,"id":28338},"user":"sebastianwoinar","tags":[]},"28338":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28339":{"varMapping":{"__isSmartRef__":true,"id":28340},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":28341},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28340":{"this":{"__isSmartRef__":true,"id":28302}},"28341":{"timestamp":{"__isSmartRef__":true,"id":28342},"user":"sebastianwoinar","tags":[]},"28342":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28343":{"varMapping":{"__isSmartRef__":true,"id":28344},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":28345},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28344":{"this":{"__isSmartRef__":true,"id":28302}},"28345":{"timestamp":{"__isSmartRef__":true,"id":28346},"user":"sebastianwoinar","tags":[]},"28346":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28347":{"varMapping":{"__isSmartRef__":true,"id":28348},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":28349},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28348":{"this":{"__isSmartRef__":true,"id":28302}},"28349":{"timestamp":{"__isSmartRef__":true,"id":28350},"user":"sebastianwoinar","tags":[]},"28350":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28351":{"varMapping":{"__isSmartRef__":true,"id":28352},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":28353},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28352":{"this":{"__isSmartRef__":true,"id":28302}},"28353":{"timestamp":{"__isSmartRef__":true,"id":28354},"user":"sebastianwoinar","tags":[]},"28354":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28355":{"varMapping":{"__isSmartRef__":true,"id":28356},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":28357},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28356":{"this":{"__isSmartRef__":true,"id":28302}},"28357":{"timestamp":{"__isSmartRef__":true,"id":28358},"user":"sebastianwoinar","tags":[]},"28358":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"28359":{"varMapping":{"__isSmartRef__":true,"id":28360},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":28361},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28360":{"this":{"__isSmartRef__":true,"id":28302}},"28361":{"timestamp":{"__isSmartRef__":true,"id":28362},"user":"sebastianwoinar","tags":[]},"28362":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"28363":{"varMapping":{"__isSmartRef__":true,"id":28364},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":28365},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28364":{"this":{"__isSmartRef__":true,"id":28302}},"28365":{"timestamp":{"__isSmartRef__":true,"id":28366},"user":"sebastianwoinar","tags":[]},"28366":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"28367":{"varMapping":{"__isSmartRef__":true,"id":28368},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":28369},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28368":{"this":{"__isSmartRef__":true,"id":28302}},"28369":{"timestamp":{"__isSmartRef__":true,"id":28370},"user":"sebastianwoinar","tags":[]},"28370":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"28371":{"varMapping":{"__isSmartRef__":true,"id":28372},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":28373},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28372":{"this":{"__isSmartRef__":true,"id":28302}},"28373":{"timestamp":{"__isSmartRef__":true,"id":28374},"user":"sebastianwoinar","tags":[]},"28374":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"28375":{"varMapping":{"__isSmartRef__":true,"id":28376},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":28377},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28376":{"this":{"__isSmartRef__":true,"id":28302}},"28377":{"timestamp":{"__isSmartRef__":true,"id":28378},"user":"sebastianwoinar","tags":[]},"28378":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"28379":{"varMapping":{"__isSmartRef__":true,"id":28380},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":28381},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28380":{"this":{"__isSmartRef__":true,"id":28302}},"28381":{"timestamp":{"__isSmartRef__":true,"id":28382},"user":"sebastianwoinar","tags":[]},"28382":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"28383":{"varMapping":{"__isSmartRef__":true,"id":28384},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":28385},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28384":{"this":{"__isSmartRef__":true,"id":28302}},"28385":{"timestamp":{"__isSmartRef__":true,"id":28386},"user":"sebastianwoinar","tags":[]},"28386":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"28387":{"varMapping":{"__isSmartRef__":true,"id":28388},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":28389},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28388":{"this":{"__isSmartRef__":true,"id":28302}},"28389":{"timestamp":{"__isSmartRef__":true,"id":28390},"user":"sebastianwoinar","tags":[]},"28390":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"28391":{"varMapping":{"__isSmartRef__":true,"id":28392},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":28397},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28392":{"this":{"__isSmartRef__":true,"id":28302},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":28393}},"28393":{"$super":{"__isSmartRef__":true,"id":28394}},"28394":{"varMapping":{"__isSmartRef__":true,"id":28395},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":28396},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28395":{"obj":{"__isSmartRef__":true,"id":28302},"name":"onMouseDown"},"28396":{},"28397":{"timestamp":{"__isSmartRef__":true,"id":28398},"user":"sebastianwoinar","tags":[]},"28398":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"28399":{"varMapping":{"__isSmartRef__":true,"id":28400},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":28401},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28400":{"this":{"__isSmartRef__":true,"id":28302}},"28401":{"timestamp":{"__isSmartRef__":true,"id":28402},"user":"sebastianwoinar","tags":[]},"28402":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"28403":{"varMapping":{"__isSmartRef__":true,"id":28404},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":28405},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28404":{"this":{"__isSmartRef__":true,"id":28302}},"28405":{"timestamp":{"__isSmartRef__":true,"id":28406},"user":"sebastianwoinar","tags":[]},"28406":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"28407":{"varMapping":{"__isSmartRef__":true,"id":28408},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":28409},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28408":{"this":{"__isSmartRef__":true,"id":28302}},"28409":{"timestamp":{"__isSmartRef__":true,"id":28410},"user":"sebastianwoinar","tags":[]},"28410":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"28411":{"varMapping":{"__isSmartRef__":true,"id":28412},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":28413},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28412":{"this":{"__isSmartRef__":true,"id":28302}},"28413":{"timestamp":{"__isSmartRef__":true,"id":28414},"user":"sebastianwoinar","tags":[]},"28414":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"28415":{"varMapping":{"__isSmartRef__":true,"id":28416},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":28417},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28416":{"this":{"__isSmartRef__":true,"id":28302}},"28417":{"timestamp":{"__isSmartRef__":true,"id":28418},"user":"sebastianwoinar","tags":[]},"28418":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"28419":{"varMapping":{"__isSmartRef__":true,"id":28420},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":28421},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28420":{"this":{"__isSmartRef__":true,"id":28302}},"28421":{"timestamp":{"__isSmartRef__":true,"id":28422},"user":"sebastianwoinar","tags":[]},"28422":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"28423":{"varMapping":{"__isSmartRef__":true,"id":28424},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":28425},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28424":{"this":{"__isSmartRef__":true,"id":28302}},"28425":{"timestamp":{"__isSmartRef__":true,"id":28426},"user":"sebastianwoinar","tags":[]},"28426":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"28427":{"varMapping":{"__isSmartRef__":true,"id":28428},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":28429},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28428":{"this":{"__isSmartRef__":true,"id":28302}},"28429":{"timestamp":{"__isSmartRef__":true,"id":28430},"user":"sebastianwoinar","tags":[]},"28430":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"28431":{"submorphs":[{"__isSmartRef__":true,"id":28432}],"scripts":[],"shape":{"__isSmartRef__":true,"id":28449},"id":"0A9FBBF2-FA68-4D97-818E-AD3C1896D59F","eventHandler":{"__isSmartRef__":true,"id":28450},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":28451},"name":"node179","partsBinMetaInfo":{"__isSmartRef__":true,"id":28452},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5787},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":27762},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":28455},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(818.6,210.0)"},"28432":{"submorphs":[],"scripts":[],"id":"5E966E2D-5C48-490B-95FD-4B97D678CCA7","shape":{"__isSmartRef__":true,"id":28433},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":28434},"textChunks":[{"__isSmartRef__":true,"id":28446}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":28448},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":28431},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"28433":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"28434":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":28435},{"__isSmartRef__":true,"id":28437},{"__isSmartRef__":true,"id":28439},{"__isSmartRef__":true,"id":28441},{"__isSmartRef__":true,"id":28443}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":28445},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"28435":{"date":{"__isSmartRef__":true,"id":28436},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"28436":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"28437":{"date":{"__isSmartRef__":true,"id":28438},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"28438":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"28439":{"date":{"__isSmartRef__":true,"id":28440},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"28440":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"28441":{"date":{"__isSmartRef__":true,"id":28442},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"28442":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"28443":{"date":{"__isSmartRef__":true,"id":28444},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"28444":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"28445":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"28446":{"style":{"__isSmartRef__":true,"id":28447},"morph":{"__isSmartRef__":true,"id":28432},"chunkOwner":{"__isSmartRef__":true,"id":28432},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"28447":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"28448":{"morph":{"__isSmartRef__":true,"id":28432},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"28449":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"28450":{"morph":{"__isSmartRef__":true,"id":28431},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"28451":{},"28452":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":28453}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"28453":{"date":{"__isSmartRef__":true,"id":28454},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"28454":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"28455":{"buildChildNodes":{"__isSmartRef__":true,"id":28456},"getGameTree":{"__isSmartRef__":true,"id":28460},"getLevel":{"__isSmartRef__":true,"id":28464},"getLevelWeight":{"__isSmartRef__":true,"id":28468},"getWeight":{"__isSmartRef__":true,"id":28472},"setNode":{"__isSmartRef__":true,"id":28476},"setParent":{"__isSmartRef__":true,"id":28480},"getParent":{"__isSmartRef__":true,"id":28484},"deactivate":{"__isSmartRef__":true,"id":28488},"blink":{"__isSmartRef__":true,"id":28492},"ABPreturn":{"__isSmartRef__":true,"id":28496},"ABPstart":{"__isSmartRef__":true,"id":28500},"ABPcontinue":{"__isSmartRef__":true,"id":28504},"ABPshowValue":{"__isSmartRef__":true,"id":28508},"ABPgetValue":{"__isSmartRef__":true,"id":28512},"ABPhasChildNodes":{"__isSmartRef__":true,"id":28516},"onMouseDown":{"__isSmartRef__":true,"id":28520},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":28528},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":28532},"ABPmarkAsDone":{"__isSmartRef__":true,"id":28536},"ABPmarkAsActive":{"__isSmartRef__":true,"id":28540},"getStateMorph":{"__isSmartRef__":true,"id":28544},"showState":{"__isSmartRef__":true,"id":28548},"ABPfailHard":{"__isSmartRef__":true,"id":28552},"markFinalDrawWith":{"__isSmartRef__":true,"id":28556}},"28456":{"varMapping":{"__isSmartRef__":true,"id":28457},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":28458},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28457":{"this":{"__isSmartRef__":true,"id":28431}},"28458":{"timestamp":{"__isSmartRef__":true,"id":28459},"user":"sebastianwoinar","tags":[]},"28459":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"28460":{"varMapping":{"__isSmartRef__":true,"id":28461},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":28462},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28461":{"this":{"__isSmartRef__":true,"id":28431}},"28462":{"timestamp":{"__isSmartRef__":true,"id":28463},"user":"sebastianwoinar","tags":[]},"28463":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28464":{"varMapping":{"__isSmartRef__":true,"id":28465},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":28466},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28465":{"this":{"__isSmartRef__":true,"id":28431}},"28466":{"timestamp":{"__isSmartRef__":true,"id":28467},"user":"sebastianwoinar","tags":[]},"28467":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28468":{"varMapping":{"__isSmartRef__":true,"id":28469},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":28470},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28469":{"this":{"__isSmartRef__":true,"id":28431}},"28470":{"timestamp":{"__isSmartRef__":true,"id":28471},"user":"sebastianwoinar","tags":[]},"28471":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28472":{"varMapping":{"__isSmartRef__":true,"id":28473},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":28474},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28473":{"this":{"__isSmartRef__":true,"id":28431}},"28474":{"timestamp":{"__isSmartRef__":true,"id":28475},"user":"sebastianwoinar","tags":[]},"28475":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28476":{"varMapping":{"__isSmartRef__":true,"id":28477},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":28478},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28477":{"this":{"__isSmartRef__":true,"id":28431}},"28478":{"timestamp":{"__isSmartRef__":true,"id":28479},"user":"sebastianwoinar","tags":[]},"28479":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28480":{"varMapping":{"__isSmartRef__":true,"id":28481},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":28482},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28481":{"this":{"__isSmartRef__":true,"id":28431}},"28482":{"timestamp":{"__isSmartRef__":true,"id":28483},"user":"sebastianwoinar","tags":[]},"28483":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28484":{"varMapping":{"__isSmartRef__":true,"id":28485},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":28486},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28485":{"this":{"__isSmartRef__":true,"id":28431}},"28486":{"timestamp":{"__isSmartRef__":true,"id":28487},"user":"sebastianwoinar","tags":[]},"28487":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"28488":{"varMapping":{"__isSmartRef__":true,"id":28489},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":28490},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28489":{"this":{"__isSmartRef__":true,"id":28431}},"28490":{"timestamp":{"__isSmartRef__":true,"id":28491},"user":"sebastianwoinar","tags":[]},"28491":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"28492":{"varMapping":{"__isSmartRef__":true,"id":28493},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":28494},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28493":{"this":{"__isSmartRef__":true,"id":28431}},"28494":{"timestamp":{"__isSmartRef__":true,"id":28495},"user":"sebastianwoinar","tags":[]},"28495":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"28496":{"varMapping":{"__isSmartRef__":true,"id":28497},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":28498},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28497":{"this":{"__isSmartRef__":true,"id":28431}},"28498":{"timestamp":{"__isSmartRef__":true,"id":28499},"user":"sebastianwoinar","tags":[]},"28499":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"28500":{"varMapping":{"__isSmartRef__":true,"id":28501},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":28502},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28501":{"this":{"__isSmartRef__":true,"id":28431}},"28502":{"timestamp":{"__isSmartRef__":true,"id":28503},"user":"sebastianwoinar","tags":[]},"28503":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"28504":{"varMapping":{"__isSmartRef__":true,"id":28505},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":28506},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28505":{"this":{"__isSmartRef__":true,"id":28431}},"28506":{"timestamp":{"__isSmartRef__":true,"id":28507},"user":"sebastianwoinar","tags":[]},"28507":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"28508":{"varMapping":{"__isSmartRef__":true,"id":28509},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":28510},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28509":{"this":{"__isSmartRef__":true,"id":28431}},"28510":{"timestamp":{"__isSmartRef__":true,"id":28511},"user":"sebastianwoinar","tags":[]},"28511":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"28512":{"varMapping":{"__isSmartRef__":true,"id":28513},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":28514},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28513":{"this":{"__isSmartRef__":true,"id":28431}},"28514":{"timestamp":{"__isSmartRef__":true,"id":28515},"user":"sebastianwoinar","tags":[]},"28515":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"28516":{"varMapping":{"__isSmartRef__":true,"id":28517},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":28518},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28517":{"this":{"__isSmartRef__":true,"id":28431}},"28518":{"timestamp":{"__isSmartRef__":true,"id":28519},"user":"sebastianwoinar","tags":[]},"28519":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"28520":{"varMapping":{"__isSmartRef__":true,"id":28521},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":28526},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28521":{"this":{"__isSmartRef__":true,"id":28431},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":28522}},"28522":{"$super":{"__isSmartRef__":true,"id":28523}},"28523":{"varMapping":{"__isSmartRef__":true,"id":28524},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":28525},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28524":{"obj":{"__isSmartRef__":true,"id":28431},"name":"onMouseDown"},"28525":{},"28526":{"timestamp":{"__isSmartRef__":true,"id":28527},"user":"sebastianwoinar","tags":[]},"28527":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"28528":{"varMapping":{"__isSmartRef__":true,"id":28529},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":28530},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28529":{"this":{"__isSmartRef__":true,"id":28431}},"28530":{"timestamp":{"__isSmartRef__":true,"id":28531},"user":"sebastianwoinar","tags":[]},"28531":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"28532":{"varMapping":{"__isSmartRef__":true,"id":28533},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":28534},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28533":{"this":{"__isSmartRef__":true,"id":28431}},"28534":{"timestamp":{"__isSmartRef__":true,"id":28535},"user":"sebastianwoinar","tags":[]},"28535":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"28536":{"varMapping":{"__isSmartRef__":true,"id":28537},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":28538},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28537":{"this":{"__isSmartRef__":true,"id":28431}},"28538":{"timestamp":{"__isSmartRef__":true,"id":28539},"user":"sebastianwoinar","tags":[]},"28539":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"28540":{"varMapping":{"__isSmartRef__":true,"id":28541},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":28542},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28541":{"this":{"__isSmartRef__":true,"id":28431}},"28542":{"timestamp":{"__isSmartRef__":true,"id":28543},"user":"sebastianwoinar","tags":[]},"28543":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"28544":{"varMapping":{"__isSmartRef__":true,"id":28545},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":28546},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28545":{"this":{"__isSmartRef__":true,"id":28431}},"28546":{"timestamp":{"__isSmartRef__":true,"id":28547},"user":"sebastianwoinar","tags":[]},"28547":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"28548":{"varMapping":{"__isSmartRef__":true,"id":28549},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":28550},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28549":{"this":{"__isSmartRef__":true,"id":28431}},"28550":{"timestamp":{"__isSmartRef__":true,"id":28551},"user":"sebastianwoinar","tags":[]},"28551":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"28552":{"varMapping":{"__isSmartRef__":true,"id":28553},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":28554},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28553":{"this":{"__isSmartRef__":true,"id":28431}},"28554":{"timestamp":{"__isSmartRef__":true,"id":28555},"user":"sebastianwoinar","tags":[]},"28555":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"28556":{"varMapping":{"__isSmartRef__":true,"id":28557},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":28558},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28557":{"this":{"__isSmartRef__":true,"id":28431}},"28558":{"timestamp":{"__isSmartRef__":true,"id":28559},"user":"sebastianwoinar","tags":[]},"28559":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"28560":{"submorphs":[{"__isSmartRef__":true,"id":28561}],"scripts":[],"shape":{"__isSmartRef__":true,"id":28578},"id":"73044790-7B71-48BD-8CEC-F37BF73E8EED","eventHandler":{"__isSmartRef__":true,"id":28579},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":28580},"name":"node180","partsBinMetaInfo":{"__isSmartRef__":true,"id":28581},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5789},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":27762},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":28584},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(823.8,210.0)"},"28561":{"submorphs":[],"scripts":[],"id":"7C022029-EC30-4C06-BC7D-9D8666CEB8D4","shape":{"__isSmartRef__":true,"id":28562},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":28563},"textChunks":[{"__isSmartRef__":true,"id":28575}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":28577},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":28560},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"28562":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"28563":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":28564},{"__isSmartRef__":true,"id":28566},{"__isSmartRef__":true,"id":28568},{"__isSmartRef__":true,"id":28570},{"__isSmartRef__":true,"id":28572}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":28574},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"28564":{"date":{"__isSmartRef__":true,"id":28565},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"28565":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"28566":{"date":{"__isSmartRef__":true,"id":28567},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"28567":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"28568":{"date":{"__isSmartRef__":true,"id":28569},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"28569":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"28570":{"date":{"__isSmartRef__":true,"id":28571},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"28571":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"28572":{"date":{"__isSmartRef__":true,"id":28573},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"28573":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"28574":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"28575":{"style":{"__isSmartRef__":true,"id":28576},"morph":{"__isSmartRef__":true,"id":28561},"chunkOwner":{"__isSmartRef__":true,"id":28561},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"28576":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"28577":{"morph":{"__isSmartRef__":true,"id":28561},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"28578":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"28579":{"morph":{"__isSmartRef__":true,"id":28560},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"28580":{},"28581":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":28582}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"28582":{"date":{"__isSmartRef__":true,"id":28583},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"28583":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"28584":{"buildChildNodes":{"__isSmartRef__":true,"id":28585},"getGameTree":{"__isSmartRef__":true,"id":28589},"getLevel":{"__isSmartRef__":true,"id":28593},"getLevelWeight":{"__isSmartRef__":true,"id":28597},"getWeight":{"__isSmartRef__":true,"id":28601},"setNode":{"__isSmartRef__":true,"id":28605},"setParent":{"__isSmartRef__":true,"id":28609},"getParent":{"__isSmartRef__":true,"id":28613},"deactivate":{"__isSmartRef__":true,"id":28617},"blink":{"__isSmartRef__":true,"id":28621},"ABPreturn":{"__isSmartRef__":true,"id":28625},"ABPstart":{"__isSmartRef__":true,"id":28629},"ABPcontinue":{"__isSmartRef__":true,"id":28633},"ABPshowValue":{"__isSmartRef__":true,"id":28637},"ABPgetValue":{"__isSmartRef__":true,"id":28641},"ABPhasChildNodes":{"__isSmartRef__":true,"id":28645},"onMouseDown":{"__isSmartRef__":true,"id":28649},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":28657},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":28661},"ABPmarkAsDone":{"__isSmartRef__":true,"id":28665},"ABPmarkAsActive":{"__isSmartRef__":true,"id":28669},"getStateMorph":{"__isSmartRef__":true,"id":28673},"showState":{"__isSmartRef__":true,"id":28677},"ABPfailHard":{"__isSmartRef__":true,"id":28681},"markFinalDrawWith":{"__isSmartRef__":true,"id":28685}},"28585":{"varMapping":{"__isSmartRef__":true,"id":28586},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":28587},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28586":{"this":{"__isSmartRef__":true,"id":28560}},"28587":{"timestamp":{"__isSmartRef__":true,"id":28588},"user":"sebastianwoinar","tags":[]},"28588":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"28589":{"varMapping":{"__isSmartRef__":true,"id":28590},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":28591},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28590":{"this":{"__isSmartRef__":true,"id":28560}},"28591":{"timestamp":{"__isSmartRef__":true,"id":28592},"user":"sebastianwoinar","tags":[]},"28592":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28593":{"varMapping":{"__isSmartRef__":true,"id":28594},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":28595},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28594":{"this":{"__isSmartRef__":true,"id":28560}},"28595":{"timestamp":{"__isSmartRef__":true,"id":28596},"user":"sebastianwoinar","tags":[]},"28596":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28597":{"varMapping":{"__isSmartRef__":true,"id":28598},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":28599},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28598":{"this":{"__isSmartRef__":true,"id":28560}},"28599":{"timestamp":{"__isSmartRef__":true,"id":28600},"user":"sebastianwoinar","tags":[]},"28600":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28601":{"varMapping":{"__isSmartRef__":true,"id":28602},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":28603},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28602":{"this":{"__isSmartRef__":true,"id":28560}},"28603":{"timestamp":{"__isSmartRef__":true,"id":28604},"user":"sebastianwoinar","tags":[]},"28604":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28605":{"varMapping":{"__isSmartRef__":true,"id":28606},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":28607},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28606":{"this":{"__isSmartRef__":true,"id":28560}},"28607":{"timestamp":{"__isSmartRef__":true,"id":28608},"user":"sebastianwoinar","tags":[]},"28608":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28609":{"varMapping":{"__isSmartRef__":true,"id":28610},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":28611},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28610":{"this":{"__isSmartRef__":true,"id":28560}},"28611":{"timestamp":{"__isSmartRef__":true,"id":28612},"user":"sebastianwoinar","tags":[]},"28612":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28613":{"varMapping":{"__isSmartRef__":true,"id":28614},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":28615},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28614":{"this":{"__isSmartRef__":true,"id":28560}},"28615":{"timestamp":{"__isSmartRef__":true,"id":28616},"user":"sebastianwoinar","tags":[]},"28616":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"28617":{"varMapping":{"__isSmartRef__":true,"id":28618},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":28619},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28618":{"this":{"__isSmartRef__":true,"id":28560}},"28619":{"timestamp":{"__isSmartRef__":true,"id":28620},"user":"sebastianwoinar","tags":[]},"28620":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"28621":{"varMapping":{"__isSmartRef__":true,"id":28622},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":28623},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28622":{"this":{"__isSmartRef__":true,"id":28560}},"28623":{"timestamp":{"__isSmartRef__":true,"id":28624},"user":"sebastianwoinar","tags":[]},"28624":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"28625":{"varMapping":{"__isSmartRef__":true,"id":28626},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":28627},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28626":{"this":{"__isSmartRef__":true,"id":28560}},"28627":{"timestamp":{"__isSmartRef__":true,"id":28628},"user":"sebastianwoinar","tags":[]},"28628":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"28629":{"varMapping":{"__isSmartRef__":true,"id":28630},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":28631},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28630":{"this":{"__isSmartRef__":true,"id":28560}},"28631":{"timestamp":{"__isSmartRef__":true,"id":28632},"user":"sebastianwoinar","tags":[]},"28632":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"28633":{"varMapping":{"__isSmartRef__":true,"id":28634},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":28635},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28634":{"this":{"__isSmartRef__":true,"id":28560}},"28635":{"timestamp":{"__isSmartRef__":true,"id":28636},"user":"sebastianwoinar","tags":[]},"28636":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"28637":{"varMapping":{"__isSmartRef__":true,"id":28638},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":28639},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28638":{"this":{"__isSmartRef__":true,"id":28560}},"28639":{"timestamp":{"__isSmartRef__":true,"id":28640},"user":"sebastianwoinar","tags":[]},"28640":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"28641":{"varMapping":{"__isSmartRef__":true,"id":28642},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":28643},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28642":{"this":{"__isSmartRef__":true,"id":28560}},"28643":{"timestamp":{"__isSmartRef__":true,"id":28644},"user":"sebastianwoinar","tags":[]},"28644":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"28645":{"varMapping":{"__isSmartRef__":true,"id":28646},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":28647},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28646":{"this":{"__isSmartRef__":true,"id":28560}},"28647":{"timestamp":{"__isSmartRef__":true,"id":28648},"user":"sebastianwoinar","tags":[]},"28648":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"28649":{"varMapping":{"__isSmartRef__":true,"id":28650},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":28655},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28650":{"this":{"__isSmartRef__":true,"id":28560},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":28651}},"28651":{"$super":{"__isSmartRef__":true,"id":28652}},"28652":{"varMapping":{"__isSmartRef__":true,"id":28653},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":28654},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28653":{"obj":{"__isSmartRef__":true,"id":28560},"name":"onMouseDown"},"28654":{},"28655":{"timestamp":{"__isSmartRef__":true,"id":28656},"user":"sebastianwoinar","tags":[]},"28656":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"28657":{"varMapping":{"__isSmartRef__":true,"id":28658},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":28659},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28658":{"this":{"__isSmartRef__":true,"id":28560}},"28659":{"timestamp":{"__isSmartRef__":true,"id":28660},"user":"sebastianwoinar","tags":[]},"28660":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"28661":{"varMapping":{"__isSmartRef__":true,"id":28662},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":28663},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28662":{"this":{"__isSmartRef__":true,"id":28560}},"28663":{"timestamp":{"__isSmartRef__":true,"id":28664},"user":"sebastianwoinar","tags":[]},"28664":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"28665":{"varMapping":{"__isSmartRef__":true,"id":28666},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":28667},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28666":{"this":{"__isSmartRef__":true,"id":28560}},"28667":{"timestamp":{"__isSmartRef__":true,"id":28668},"user":"sebastianwoinar","tags":[]},"28668":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"28669":{"varMapping":{"__isSmartRef__":true,"id":28670},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":28671},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28670":{"this":{"__isSmartRef__":true,"id":28560}},"28671":{"timestamp":{"__isSmartRef__":true,"id":28672},"user":"sebastianwoinar","tags":[]},"28672":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"28673":{"varMapping":{"__isSmartRef__":true,"id":28674},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":28675},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28674":{"this":{"__isSmartRef__":true,"id":28560}},"28675":{"timestamp":{"__isSmartRef__":true,"id":28676},"user":"sebastianwoinar","tags":[]},"28676":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"28677":{"varMapping":{"__isSmartRef__":true,"id":28678},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":28679},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28678":{"this":{"__isSmartRef__":true,"id":28560}},"28679":{"timestamp":{"__isSmartRef__":true,"id":28680},"user":"sebastianwoinar","tags":[]},"28680":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"28681":{"varMapping":{"__isSmartRef__":true,"id":28682},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":28683},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28682":{"this":{"__isSmartRef__":true,"id":28560}},"28683":{"timestamp":{"__isSmartRef__":true,"id":28684},"user":"sebastianwoinar","tags":[]},"28684":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"28685":{"varMapping":{"__isSmartRef__":true,"id":28686},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":28687},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28686":{"this":{"__isSmartRef__":true,"id":28560}},"28687":{"timestamp":{"__isSmartRef__":true,"id":28688},"user":"sebastianwoinar","tags":[]},"28688":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"28689":{"submorphs":[{"__isSmartRef__":true,"id":28690}],"scripts":[],"shape":{"__isSmartRef__":true,"id":28707},"id":"82AA5074-8026-41A7-9770-13D73887B6BA","eventHandler":{"__isSmartRef__":true,"id":28708},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":28709},"name":"node181","partsBinMetaInfo":{"__isSmartRef__":true,"id":28710},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5791},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":27762},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":28713},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(829.0,210.0)"},"28690":{"submorphs":[],"scripts":[],"id":"BE6EB819-A0FD-43DE-9DEB-FE4776661F50","shape":{"__isSmartRef__":true,"id":28691},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":28692},"textChunks":[{"__isSmartRef__":true,"id":28704}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":28706},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":28689},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"28691":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"28692":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":28693},{"__isSmartRef__":true,"id":28695},{"__isSmartRef__":true,"id":28697},{"__isSmartRef__":true,"id":28699},{"__isSmartRef__":true,"id":28701}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":28703},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"28693":{"date":{"__isSmartRef__":true,"id":28694},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"28694":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"28695":{"date":{"__isSmartRef__":true,"id":28696},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"28696":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"28697":{"date":{"__isSmartRef__":true,"id":28698},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"28698":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"28699":{"date":{"__isSmartRef__":true,"id":28700},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"28700":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"28701":{"date":{"__isSmartRef__":true,"id":28702},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"28702":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"28703":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"28704":{"style":{"__isSmartRef__":true,"id":28705},"morph":{"__isSmartRef__":true,"id":28690},"chunkOwner":{"__isSmartRef__":true,"id":28690},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"28705":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"28706":{"morph":{"__isSmartRef__":true,"id":28690},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"28707":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"28708":{"morph":{"__isSmartRef__":true,"id":28689},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"28709":{},"28710":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":28711}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"28711":{"date":{"__isSmartRef__":true,"id":28712},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"28712":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"28713":{"buildChildNodes":{"__isSmartRef__":true,"id":28714},"getGameTree":{"__isSmartRef__":true,"id":28718},"getLevel":{"__isSmartRef__":true,"id":28722},"getLevelWeight":{"__isSmartRef__":true,"id":28726},"getWeight":{"__isSmartRef__":true,"id":28730},"setNode":{"__isSmartRef__":true,"id":28734},"setParent":{"__isSmartRef__":true,"id":28738},"getParent":{"__isSmartRef__":true,"id":28742},"deactivate":{"__isSmartRef__":true,"id":28746},"blink":{"__isSmartRef__":true,"id":28750},"ABPreturn":{"__isSmartRef__":true,"id":28754},"ABPstart":{"__isSmartRef__":true,"id":28758},"ABPcontinue":{"__isSmartRef__":true,"id":28762},"ABPshowValue":{"__isSmartRef__":true,"id":28766},"ABPgetValue":{"__isSmartRef__":true,"id":28770},"ABPhasChildNodes":{"__isSmartRef__":true,"id":28774},"onMouseDown":{"__isSmartRef__":true,"id":28778},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":28786},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":28790},"ABPmarkAsDone":{"__isSmartRef__":true,"id":28794},"ABPmarkAsActive":{"__isSmartRef__":true,"id":28798},"getStateMorph":{"__isSmartRef__":true,"id":28802},"showState":{"__isSmartRef__":true,"id":28806},"ABPfailHard":{"__isSmartRef__":true,"id":28810},"markFinalDrawWith":{"__isSmartRef__":true,"id":28814}},"28714":{"varMapping":{"__isSmartRef__":true,"id":28715},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":28716},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28715":{"this":{"__isSmartRef__":true,"id":28689}},"28716":{"timestamp":{"__isSmartRef__":true,"id":28717},"user":"sebastianwoinar","tags":[]},"28717":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"28718":{"varMapping":{"__isSmartRef__":true,"id":28719},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":28720},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28719":{"this":{"__isSmartRef__":true,"id":28689}},"28720":{"timestamp":{"__isSmartRef__":true,"id":28721},"user":"sebastianwoinar","tags":[]},"28721":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28722":{"varMapping":{"__isSmartRef__":true,"id":28723},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":28724},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28723":{"this":{"__isSmartRef__":true,"id":28689}},"28724":{"timestamp":{"__isSmartRef__":true,"id":28725},"user":"sebastianwoinar","tags":[]},"28725":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28726":{"varMapping":{"__isSmartRef__":true,"id":28727},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":28728},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28727":{"this":{"__isSmartRef__":true,"id":28689}},"28728":{"timestamp":{"__isSmartRef__":true,"id":28729},"user":"sebastianwoinar","tags":[]},"28729":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28730":{"varMapping":{"__isSmartRef__":true,"id":28731},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":28732},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28731":{"this":{"__isSmartRef__":true,"id":28689}},"28732":{"timestamp":{"__isSmartRef__":true,"id":28733},"user":"sebastianwoinar","tags":[]},"28733":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28734":{"varMapping":{"__isSmartRef__":true,"id":28735},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":28736},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28735":{"this":{"__isSmartRef__":true,"id":28689}},"28736":{"timestamp":{"__isSmartRef__":true,"id":28737},"user":"sebastianwoinar","tags":[]},"28737":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28738":{"varMapping":{"__isSmartRef__":true,"id":28739},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":28740},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28739":{"this":{"__isSmartRef__":true,"id":28689}},"28740":{"timestamp":{"__isSmartRef__":true,"id":28741},"user":"sebastianwoinar","tags":[]},"28741":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28742":{"varMapping":{"__isSmartRef__":true,"id":28743},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":28744},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28743":{"this":{"__isSmartRef__":true,"id":28689}},"28744":{"timestamp":{"__isSmartRef__":true,"id":28745},"user":"sebastianwoinar","tags":[]},"28745":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"28746":{"varMapping":{"__isSmartRef__":true,"id":28747},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":28748},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28747":{"this":{"__isSmartRef__":true,"id":28689}},"28748":{"timestamp":{"__isSmartRef__":true,"id":28749},"user":"sebastianwoinar","tags":[]},"28749":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"28750":{"varMapping":{"__isSmartRef__":true,"id":28751},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":28752},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28751":{"this":{"__isSmartRef__":true,"id":28689}},"28752":{"timestamp":{"__isSmartRef__":true,"id":28753},"user":"sebastianwoinar","tags":[]},"28753":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"28754":{"varMapping":{"__isSmartRef__":true,"id":28755},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":28756},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28755":{"this":{"__isSmartRef__":true,"id":28689}},"28756":{"timestamp":{"__isSmartRef__":true,"id":28757},"user":"sebastianwoinar","tags":[]},"28757":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"28758":{"varMapping":{"__isSmartRef__":true,"id":28759},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":28760},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28759":{"this":{"__isSmartRef__":true,"id":28689}},"28760":{"timestamp":{"__isSmartRef__":true,"id":28761},"user":"sebastianwoinar","tags":[]},"28761":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"28762":{"varMapping":{"__isSmartRef__":true,"id":28763},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":28764},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28763":{"this":{"__isSmartRef__":true,"id":28689}},"28764":{"timestamp":{"__isSmartRef__":true,"id":28765},"user":"sebastianwoinar","tags":[]},"28765":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"28766":{"varMapping":{"__isSmartRef__":true,"id":28767},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":28768},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28767":{"this":{"__isSmartRef__":true,"id":28689}},"28768":{"timestamp":{"__isSmartRef__":true,"id":28769},"user":"sebastianwoinar","tags":[]},"28769":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"28770":{"varMapping":{"__isSmartRef__":true,"id":28771},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":28772},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28771":{"this":{"__isSmartRef__":true,"id":28689}},"28772":{"timestamp":{"__isSmartRef__":true,"id":28773},"user":"sebastianwoinar","tags":[]},"28773":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"28774":{"varMapping":{"__isSmartRef__":true,"id":28775},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":28776},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28775":{"this":{"__isSmartRef__":true,"id":28689}},"28776":{"timestamp":{"__isSmartRef__":true,"id":28777},"user":"sebastianwoinar","tags":[]},"28777":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"28778":{"varMapping":{"__isSmartRef__":true,"id":28779},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":28784},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28779":{"this":{"__isSmartRef__":true,"id":28689},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":28780}},"28780":{"$super":{"__isSmartRef__":true,"id":28781}},"28781":{"varMapping":{"__isSmartRef__":true,"id":28782},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":28783},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28782":{"obj":{"__isSmartRef__":true,"id":28689},"name":"onMouseDown"},"28783":{},"28784":{"timestamp":{"__isSmartRef__":true,"id":28785},"user":"sebastianwoinar","tags":[]},"28785":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"28786":{"varMapping":{"__isSmartRef__":true,"id":28787},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":28788},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28787":{"this":{"__isSmartRef__":true,"id":28689}},"28788":{"timestamp":{"__isSmartRef__":true,"id":28789},"user":"sebastianwoinar","tags":[]},"28789":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"28790":{"varMapping":{"__isSmartRef__":true,"id":28791},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":28792},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28791":{"this":{"__isSmartRef__":true,"id":28689}},"28792":{"timestamp":{"__isSmartRef__":true,"id":28793},"user":"sebastianwoinar","tags":[]},"28793":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"28794":{"varMapping":{"__isSmartRef__":true,"id":28795},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":28796},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28795":{"this":{"__isSmartRef__":true,"id":28689}},"28796":{"timestamp":{"__isSmartRef__":true,"id":28797},"user":"sebastianwoinar","tags":[]},"28797":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"28798":{"varMapping":{"__isSmartRef__":true,"id":28799},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":28800},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28799":{"this":{"__isSmartRef__":true,"id":28689}},"28800":{"timestamp":{"__isSmartRef__":true,"id":28801},"user":"sebastianwoinar","tags":[]},"28801":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"28802":{"varMapping":{"__isSmartRef__":true,"id":28803},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":28804},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28803":{"this":{"__isSmartRef__":true,"id":28689}},"28804":{"timestamp":{"__isSmartRef__":true,"id":28805},"user":"sebastianwoinar","tags":[]},"28805":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"28806":{"varMapping":{"__isSmartRef__":true,"id":28807},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":28808},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28807":{"this":{"__isSmartRef__":true,"id":28689}},"28808":{"timestamp":{"__isSmartRef__":true,"id":28809},"user":"sebastianwoinar","tags":[]},"28809":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"28810":{"varMapping":{"__isSmartRef__":true,"id":28811},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":28812},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28811":{"this":{"__isSmartRef__":true,"id":28689}},"28812":{"timestamp":{"__isSmartRef__":true,"id":28813},"user":"sebastianwoinar","tags":[]},"28813":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"28814":{"varMapping":{"__isSmartRef__":true,"id":28815},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":28816},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28815":{"this":{"__isSmartRef__":true,"id":28689}},"28816":{"timestamp":{"__isSmartRef__":true,"id":28817},"user":"sebastianwoinar","tags":[]},"28817":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"28818":{"submorphs":[{"__isSmartRef__":true,"id":28819}],"scripts":[],"shape":{"__isSmartRef__":true,"id":28836},"id":"EF3B2300-6D57-4049-83D9-C01E290677EE","eventHandler":{"__isSmartRef__":true,"id":28837},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":28838},"name":"node182","partsBinMetaInfo":{"__isSmartRef__":true,"id":28839},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5793},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":27762},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":28842},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(834.1,210.0)"},"28819":{"submorphs":[],"scripts":[],"id":"35F3238E-8336-4AF0-B044-B6A48536895A","shape":{"__isSmartRef__":true,"id":28820},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":28821},"textChunks":[{"__isSmartRef__":true,"id":28833}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":28835},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":28818},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"28820":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"28821":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":28822},{"__isSmartRef__":true,"id":28824},{"__isSmartRef__":true,"id":28826},{"__isSmartRef__":true,"id":28828},{"__isSmartRef__":true,"id":28830}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":28832},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"28822":{"date":{"__isSmartRef__":true,"id":28823},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"28823":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"28824":{"date":{"__isSmartRef__":true,"id":28825},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"28825":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"28826":{"date":{"__isSmartRef__":true,"id":28827},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"28827":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"28828":{"date":{"__isSmartRef__":true,"id":28829},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"28829":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"28830":{"date":{"__isSmartRef__":true,"id":28831},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"28831":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"28832":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"28833":{"style":{"__isSmartRef__":true,"id":28834},"morph":{"__isSmartRef__":true,"id":28819},"chunkOwner":{"__isSmartRef__":true,"id":28819},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"28834":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"28835":{"morph":{"__isSmartRef__":true,"id":28819},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"28836":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"28837":{"morph":{"__isSmartRef__":true,"id":28818},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"28838":{},"28839":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":28840}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"28840":{"date":{"__isSmartRef__":true,"id":28841},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"28841":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"28842":{"buildChildNodes":{"__isSmartRef__":true,"id":28843},"getGameTree":{"__isSmartRef__":true,"id":28847},"getLevel":{"__isSmartRef__":true,"id":28851},"getLevelWeight":{"__isSmartRef__":true,"id":28855},"getWeight":{"__isSmartRef__":true,"id":28859},"setNode":{"__isSmartRef__":true,"id":28863},"setParent":{"__isSmartRef__":true,"id":28867},"getParent":{"__isSmartRef__":true,"id":28871},"deactivate":{"__isSmartRef__":true,"id":28875},"blink":{"__isSmartRef__":true,"id":28879},"ABPreturn":{"__isSmartRef__":true,"id":28883},"ABPstart":{"__isSmartRef__":true,"id":28887},"ABPcontinue":{"__isSmartRef__":true,"id":28891},"ABPshowValue":{"__isSmartRef__":true,"id":28895},"ABPgetValue":{"__isSmartRef__":true,"id":28899},"ABPhasChildNodes":{"__isSmartRef__":true,"id":28903},"onMouseDown":{"__isSmartRef__":true,"id":28907},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":28915},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":28919},"ABPmarkAsDone":{"__isSmartRef__":true,"id":28923},"ABPmarkAsActive":{"__isSmartRef__":true,"id":28927},"getStateMorph":{"__isSmartRef__":true,"id":28931},"showState":{"__isSmartRef__":true,"id":28935},"ABPfailHard":{"__isSmartRef__":true,"id":28939},"markFinalDrawWith":{"__isSmartRef__":true,"id":28943}},"28843":{"varMapping":{"__isSmartRef__":true,"id":28844},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":28845},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28844":{"this":{"__isSmartRef__":true,"id":28818}},"28845":{"timestamp":{"__isSmartRef__":true,"id":28846},"user":"sebastianwoinar","tags":[]},"28846":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"28847":{"varMapping":{"__isSmartRef__":true,"id":28848},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":28849},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28848":{"this":{"__isSmartRef__":true,"id":28818}},"28849":{"timestamp":{"__isSmartRef__":true,"id":28850},"user":"sebastianwoinar","tags":[]},"28850":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28851":{"varMapping":{"__isSmartRef__":true,"id":28852},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":28853},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28852":{"this":{"__isSmartRef__":true,"id":28818}},"28853":{"timestamp":{"__isSmartRef__":true,"id":28854},"user":"sebastianwoinar","tags":[]},"28854":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28855":{"varMapping":{"__isSmartRef__":true,"id":28856},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":28857},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28856":{"this":{"__isSmartRef__":true,"id":28818}},"28857":{"timestamp":{"__isSmartRef__":true,"id":28858},"user":"sebastianwoinar","tags":[]},"28858":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28859":{"varMapping":{"__isSmartRef__":true,"id":28860},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":28861},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28860":{"this":{"__isSmartRef__":true,"id":28818}},"28861":{"timestamp":{"__isSmartRef__":true,"id":28862},"user":"sebastianwoinar","tags":[]},"28862":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28863":{"varMapping":{"__isSmartRef__":true,"id":28864},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":28865},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28864":{"this":{"__isSmartRef__":true,"id":28818}},"28865":{"timestamp":{"__isSmartRef__":true,"id":28866},"user":"sebastianwoinar","tags":[]},"28866":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28867":{"varMapping":{"__isSmartRef__":true,"id":28868},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":28869},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28868":{"this":{"__isSmartRef__":true,"id":28818}},"28869":{"timestamp":{"__isSmartRef__":true,"id":28870},"user":"sebastianwoinar","tags":[]},"28870":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28871":{"varMapping":{"__isSmartRef__":true,"id":28872},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":28873},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28872":{"this":{"__isSmartRef__":true,"id":28818}},"28873":{"timestamp":{"__isSmartRef__":true,"id":28874},"user":"sebastianwoinar","tags":[]},"28874":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"28875":{"varMapping":{"__isSmartRef__":true,"id":28876},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":28877},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28876":{"this":{"__isSmartRef__":true,"id":28818}},"28877":{"timestamp":{"__isSmartRef__":true,"id":28878},"user":"sebastianwoinar","tags":[]},"28878":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"28879":{"varMapping":{"__isSmartRef__":true,"id":28880},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":28881},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28880":{"this":{"__isSmartRef__":true,"id":28818}},"28881":{"timestamp":{"__isSmartRef__":true,"id":28882},"user":"sebastianwoinar","tags":[]},"28882":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"28883":{"varMapping":{"__isSmartRef__":true,"id":28884},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":28885},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28884":{"this":{"__isSmartRef__":true,"id":28818}},"28885":{"timestamp":{"__isSmartRef__":true,"id":28886},"user":"sebastianwoinar","tags":[]},"28886":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"28887":{"varMapping":{"__isSmartRef__":true,"id":28888},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":28889},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28888":{"this":{"__isSmartRef__":true,"id":28818}},"28889":{"timestamp":{"__isSmartRef__":true,"id":28890},"user":"sebastianwoinar","tags":[]},"28890":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"28891":{"varMapping":{"__isSmartRef__":true,"id":28892},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":28893},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28892":{"this":{"__isSmartRef__":true,"id":28818}},"28893":{"timestamp":{"__isSmartRef__":true,"id":28894},"user":"sebastianwoinar","tags":[]},"28894":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"28895":{"varMapping":{"__isSmartRef__":true,"id":28896},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":28897},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28896":{"this":{"__isSmartRef__":true,"id":28818}},"28897":{"timestamp":{"__isSmartRef__":true,"id":28898},"user":"sebastianwoinar","tags":[]},"28898":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"28899":{"varMapping":{"__isSmartRef__":true,"id":28900},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":28901},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28900":{"this":{"__isSmartRef__":true,"id":28818}},"28901":{"timestamp":{"__isSmartRef__":true,"id":28902},"user":"sebastianwoinar","tags":[]},"28902":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"28903":{"varMapping":{"__isSmartRef__":true,"id":28904},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":28905},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28904":{"this":{"__isSmartRef__":true,"id":28818}},"28905":{"timestamp":{"__isSmartRef__":true,"id":28906},"user":"sebastianwoinar","tags":[]},"28906":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"28907":{"varMapping":{"__isSmartRef__":true,"id":28908},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":28913},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28908":{"this":{"__isSmartRef__":true,"id":28818},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":28909}},"28909":{"$super":{"__isSmartRef__":true,"id":28910}},"28910":{"varMapping":{"__isSmartRef__":true,"id":28911},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":28912},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28911":{"obj":{"__isSmartRef__":true,"id":28818},"name":"onMouseDown"},"28912":{},"28913":{"timestamp":{"__isSmartRef__":true,"id":28914},"user":"sebastianwoinar","tags":[]},"28914":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"28915":{"varMapping":{"__isSmartRef__":true,"id":28916},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":28917},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28916":{"this":{"__isSmartRef__":true,"id":28818}},"28917":{"timestamp":{"__isSmartRef__":true,"id":28918},"user":"sebastianwoinar","tags":[]},"28918":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"28919":{"varMapping":{"__isSmartRef__":true,"id":28920},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":28921},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28920":{"this":{"__isSmartRef__":true,"id":28818}},"28921":{"timestamp":{"__isSmartRef__":true,"id":28922},"user":"sebastianwoinar","tags":[]},"28922":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"28923":{"varMapping":{"__isSmartRef__":true,"id":28924},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":28925},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28924":{"this":{"__isSmartRef__":true,"id":28818}},"28925":{"timestamp":{"__isSmartRef__":true,"id":28926},"user":"sebastianwoinar","tags":[]},"28926":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"28927":{"varMapping":{"__isSmartRef__":true,"id":28928},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":28929},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28928":{"this":{"__isSmartRef__":true,"id":28818}},"28929":{"timestamp":{"__isSmartRef__":true,"id":28930},"user":"sebastianwoinar","tags":[]},"28930":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"28931":{"varMapping":{"__isSmartRef__":true,"id":28932},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":28933},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28932":{"this":{"__isSmartRef__":true,"id":28818}},"28933":{"timestamp":{"__isSmartRef__":true,"id":28934},"user":"sebastianwoinar","tags":[]},"28934":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"28935":{"varMapping":{"__isSmartRef__":true,"id":28936},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":28937},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28936":{"this":{"__isSmartRef__":true,"id":28818}},"28937":{"timestamp":{"__isSmartRef__":true,"id":28938},"user":"sebastianwoinar","tags":[]},"28938":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"28939":{"varMapping":{"__isSmartRef__":true,"id":28940},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":28941},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28940":{"this":{"__isSmartRef__":true,"id":28818}},"28941":{"timestamp":{"__isSmartRef__":true,"id":28942},"user":"sebastianwoinar","tags":[]},"28942":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"28943":{"varMapping":{"__isSmartRef__":true,"id":28944},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":28945},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28944":{"this":{"__isSmartRef__":true,"id":28818}},"28945":{"timestamp":{"__isSmartRef__":true,"id":28946},"user":"sebastianwoinar","tags":[]},"28946":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"28947":{"buildChildNodes":{"__isSmartRef__":true,"id":28948},"getGameTree":{"__isSmartRef__":true,"id":28952},"getLevel":{"__isSmartRef__":true,"id":28956},"getLevelWeight":{"__isSmartRef__":true,"id":28960},"getWeight":{"__isSmartRef__":true,"id":28964},"setNode":{"__isSmartRef__":true,"id":28968},"setParent":{"__isSmartRef__":true,"id":28972},"getParent":{"__isSmartRef__":true,"id":28976},"deactivate":{"__isSmartRef__":true,"id":28980},"blink":{"__isSmartRef__":true,"id":28984},"ABPreturn":{"__isSmartRef__":true,"id":28988},"ABPstart":{"__isSmartRef__":true,"id":28992},"ABPcontinue":{"__isSmartRef__":true,"id":28996},"ABPshowValue":{"__isSmartRef__":true,"id":29000},"ABPgetValue":{"__isSmartRef__":true,"id":29004},"ABPhasChildNodes":{"__isSmartRef__":true,"id":29008},"onMouseDown":{"__isSmartRef__":true,"id":29012},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":29020},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":29024},"ABPmarkAsDone":{"__isSmartRef__":true,"id":29028},"ABPmarkAsActive":{"__isSmartRef__":true,"id":29032},"getStateMorph":{"__isSmartRef__":true,"id":29036},"showState":{"__isSmartRef__":true,"id":29040},"ABPfailHard":{"__isSmartRef__":true,"id":29044},"markFinalDrawWith":{"__isSmartRef__":true,"id":29048}},"28948":{"varMapping":{"__isSmartRef__":true,"id":28949},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":28950},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28949":{"this":{"__isSmartRef__":true,"id":27762}},"28950":{"timestamp":{"__isSmartRef__":true,"id":28951},"user":"sebastianwoinar","tags":[]},"28951":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"28952":{"varMapping":{"__isSmartRef__":true,"id":28953},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":28954},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28953":{"this":{"__isSmartRef__":true,"id":27762}},"28954":{"timestamp":{"__isSmartRef__":true,"id":28955},"user":"sebastianwoinar","tags":[]},"28955":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28956":{"varMapping":{"__isSmartRef__":true,"id":28957},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":28958},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28957":{"this":{"__isSmartRef__":true,"id":27762}},"28958":{"timestamp":{"__isSmartRef__":true,"id":28959},"user":"sebastianwoinar","tags":[]},"28959":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28960":{"varMapping":{"__isSmartRef__":true,"id":28961},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":28962},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28961":{"this":{"__isSmartRef__":true,"id":27762}},"28962":{"timestamp":{"__isSmartRef__":true,"id":28963},"user":"sebastianwoinar","tags":[]},"28963":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28964":{"varMapping":{"__isSmartRef__":true,"id":28965},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":28966},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28965":{"this":{"__isSmartRef__":true,"id":27762}},"28966":{"timestamp":{"__isSmartRef__":true,"id":28967},"user":"sebastianwoinar","tags":[]},"28967":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28968":{"varMapping":{"__isSmartRef__":true,"id":28969},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":28970},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28969":{"this":{"__isSmartRef__":true,"id":27762}},"28970":{"timestamp":{"__isSmartRef__":true,"id":28971},"user":"sebastianwoinar","tags":[]},"28971":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28972":{"varMapping":{"__isSmartRef__":true,"id":28973},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":28974},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28973":{"this":{"__isSmartRef__":true,"id":27762}},"28974":{"timestamp":{"__isSmartRef__":true,"id":28975},"user":"sebastianwoinar","tags":[]},"28975":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"28976":{"varMapping":{"__isSmartRef__":true,"id":28977},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":28978},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28977":{"this":{"__isSmartRef__":true,"id":27762}},"28978":{"timestamp":{"__isSmartRef__":true,"id":28979},"user":"sebastianwoinar","tags":[]},"28979":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"28980":{"varMapping":{"__isSmartRef__":true,"id":28981},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":28982},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28981":{"this":{"__isSmartRef__":true,"id":27762}},"28982":{"timestamp":{"__isSmartRef__":true,"id":28983},"user":"sebastianwoinar","tags":[]},"28983":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"28984":{"varMapping":{"__isSmartRef__":true,"id":28985},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":28986},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28985":{"this":{"__isSmartRef__":true,"id":27762}},"28986":{"timestamp":{"__isSmartRef__":true,"id":28987},"user":"sebastianwoinar","tags":[]},"28987":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"28988":{"varMapping":{"__isSmartRef__":true,"id":28989},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":28990},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28989":{"this":{"__isSmartRef__":true,"id":27762}},"28990":{"timestamp":{"__isSmartRef__":true,"id":28991},"user":"sebastianwoinar","tags":[]},"28991":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"28992":{"varMapping":{"__isSmartRef__":true,"id":28993},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":28994},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28993":{"this":{"__isSmartRef__":true,"id":27762}},"28994":{"timestamp":{"__isSmartRef__":true,"id":28995},"user":"sebastianwoinar","tags":[]},"28995":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"28996":{"varMapping":{"__isSmartRef__":true,"id":28997},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":28998},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28997":{"this":{"__isSmartRef__":true,"id":27762}},"28998":{"timestamp":{"__isSmartRef__":true,"id":28999},"user":"sebastianwoinar","tags":[]},"28999":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"29000":{"varMapping":{"__isSmartRef__":true,"id":29001},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":29002},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29001":{"this":{"__isSmartRef__":true,"id":27762}},"29002":{"timestamp":{"__isSmartRef__":true,"id":29003},"user":"sebastianwoinar","tags":[]},"29003":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"29004":{"varMapping":{"__isSmartRef__":true,"id":29005},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":29006},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29005":{"this":{"__isSmartRef__":true,"id":27762}},"29006":{"timestamp":{"__isSmartRef__":true,"id":29007},"user":"sebastianwoinar","tags":[]},"29007":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"29008":{"varMapping":{"__isSmartRef__":true,"id":29009},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":29010},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29009":{"this":{"__isSmartRef__":true,"id":27762}},"29010":{"timestamp":{"__isSmartRef__":true,"id":29011},"user":"sebastianwoinar","tags":[]},"29011":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"29012":{"varMapping":{"__isSmartRef__":true,"id":29013},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":29018},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29013":{"this":{"__isSmartRef__":true,"id":27762},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":29014}},"29014":{"$super":{"__isSmartRef__":true,"id":29015}},"29015":{"varMapping":{"__isSmartRef__":true,"id":29016},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":29017},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29016":{"obj":{"__isSmartRef__":true,"id":27762},"name":"onMouseDown"},"29017":{},"29018":{"timestamp":{"__isSmartRef__":true,"id":29019},"user":"sebastianwoinar","tags":[]},"29019":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"29020":{"varMapping":{"__isSmartRef__":true,"id":29021},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":29022},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29021":{"this":{"__isSmartRef__":true,"id":27762}},"29022":{"timestamp":{"__isSmartRef__":true,"id":29023},"user":"sebastianwoinar","tags":[]},"29023":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"29024":{"varMapping":{"__isSmartRef__":true,"id":29025},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":29026},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29025":{"this":{"__isSmartRef__":true,"id":27762}},"29026":{"timestamp":{"__isSmartRef__":true,"id":29027},"user":"sebastianwoinar","tags":[]},"29027":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"29028":{"varMapping":{"__isSmartRef__":true,"id":29029},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":29030},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29029":{"this":{"__isSmartRef__":true,"id":27762}},"29030":{"timestamp":{"__isSmartRef__":true,"id":29031},"user":"sebastianwoinar","tags":[]},"29031":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"29032":{"varMapping":{"__isSmartRef__":true,"id":29033},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":29034},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29033":{"this":{"__isSmartRef__":true,"id":27762}},"29034":{"timestamp":{"__isSmartRef__":true,"id":29035},"user":"sebastianwoinar","tags":[]},"29035":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"29036":{"varMapping":{"__isSmartRef__":true,"id":29037},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":29038},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29037":{"this":{"__isSmartRef__":true,"id":27762}},"29038":{"timestamp":{"__isSmartRef__":true,"id":29039},"user":"sebastianwoinar","tags":[]},"29039":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"29040":{"varMapping":{"__isSmartRef__":true,"id":29041},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":29042},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29041":{"this":{"__isSmartRef__":true,"id":27762}},"29042":{"timestamp":{"__isSmartRef__":true,"id":29043},"user":"sebastianwoinar","tags":[]},"29043":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"29044":{"varMapping":{"__isSmartRef__":true,"id":29045},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":29046},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29045":{"this":{"__isSmartRef__":true,"id":27762}},"29046":{"timestamp":{"__isSmartRef__":true,"id":29047},"user":"sebastianwoinar","tags":[]},"29047":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"29048":{"varMapping":{"__isSmartRef__":true,"id":29049},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":29050},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29049":{"this":{"__isSmartRef__":true,"id":27762}},"29050":{"timestamp":{"__isSmartRef__":true,"id":29051},"user":"sebastianwoinar","tags":[]},"29051":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"29052":{"submorphs":[{"__isSmartRef__":true,"id":29053}],"scripts":[],"shape":{"__isSmartRef__":true,"id":29070},"id":"61288998-D9CF-43BA-A399-2D681B548CD6","eventHandler":{"__isSmartRef__":true,"id":29071},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":29072},"name":"node183","partsBinMetaInfo":{"__isSmartRef__":true,"id":29073},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5795},"owner":{"__isSmartRef__":true,"id":5408},"childNodes":[{"__isSmartRef__":true,"id":29076},{"__isSmartRef__":true,"id":29205},{"__isSmartRef__":true,"id":29334},{"__isSmartRef__":true,"id":29463},{"__isSmartRef__":true,"id":29592}],"parent":{"__isSmartRef__":true,"id":25287},"level":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":29721},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(829.0,160.0)"},"29053":{"submorphs":[],"scripts":[],"id":"C2734C88-23E3-4C71-BE89-68C6BBC41CEA","shape":{"__isSmartRef__":true,"id":29054},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":29055},"textChunks":[{"__isSmartRef__":true,"id":29067}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":29069},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":29052},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"29054":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"29055":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":29056},{"__isSmartRef__":true,"id":29058},{"__isSmartRef__":true,"id":29060},{"__isSmartRef__":true,"id":29062},{"__isSmartRef__":true,"id":29064}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":29066},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"29056":{"date":{"__isSmartRef__":true,"id":29057},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"29057":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"29058":{"date":{"__isSmartRef__":true,"id":29059},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"29059":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"29060":{"date":{"__isSmartRef__":true,"id":29061},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"29061":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"29062":{"date":{"__isSmartRef__":true,"id":29063},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"29063":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"29064":{"date":{"__isSmartRef__":true,"id":29065},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"29065":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"29066":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"29067":{"style":{"__isSmartRef__":true,"id":29068},"morph":{"__isSmartRef__":true,"id":29053},"chunkOwner":{"__isSmartRef__":true,"id":29053},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"29068":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"29069":{"morph":{"__isSmartRef__":true,"id":29053},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"29070":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"29071":{"morph":{"__isSmartRef__":true,"id":29052},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"29072":{},"29073":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":29074}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"29074":{"date":{"__isSmartRef__":true,"id":29075},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"29075":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"29076":{"submorphs":[{"__isSmartRef__":true,"id":29077}],"scripts":[],"shape":{"__isSmartRef__":true,"id":29094},"id":"BB11C7CA-1A38-4BDF-8A0C-712B07D2E05D","eventHandler":{"__isSmartRef__":true,"id":29095},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":29096},"name":"node184","partsBinMetaInfo":{"__isSmartRef__":true,"id":29097},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5797},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":29052},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":29100},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(839.3,210.0)"},"29077":{"submorphs":[],"scripts":[],"id":"E1C62B92-A4D6-41C0-BABB-528367F01137","shape":{"__isSmartRef__":true,"id":29078},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":29079},"textChunks":[{"__isSmartRef__":true,"id":29091}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":29093},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":29076},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"29078":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"29079":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":29080},{"__isSmartRef__":true,"id":29082},{"__isSmartRef__":true,"id":29084},{"__isSmartRef__":true,"id":29086},{"__isSmartRef__":true,"id":29088}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":29090},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"29080":{"date":{"__isSmartRef__":true,"id":29081},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"29081":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"29082":{"date":{"__isSmartRef__":true,"id":29083},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"29083":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"29084":{"date":{"__isSmartRef__":true,"id":29085},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"29085":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"29086":{"date":{"__isSmartRef__":true,"id":29087},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"29087":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"29088":{"date":{"__isSmartRef__":true,"id":29089},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"29089":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"29090":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"29091":{"style":{"__isSmartRef__":true,"id":29092},"morph":{"__isSmartRef__":true,"id":29077},"chunkOwner":{"__isSmartRef__":true,"id":29077},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"29092":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"29093":{"morph":{"__isSmartRef__":true,"id":29077},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"29094":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"29095":{"morph":{"__isSmartRef__":true,"id":29076},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"29096":{},"29097":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":29098}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"29098":{"date":{"__isSmartRef__":true,"id":29099},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"29099":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"29100":{"buildChildNodes":{"__isSmartRef__":true,"id":29101},"getGameTree":{"__isSmartRef__":true,"id":29105},"getLevel":{"__isSmartRef__":true,"id":29109},"getLevelWeight":{"__isSmartRef__":true,"id":29113},"getWeight":{"__isSmartRef__":true,"id":29117},"setNode":{"__isSmartRef__":true,"id":29121},"setParent":{"__isSmartRef__":true,"id":29125},"getParent":{"__isSmartRef__":true,"id":29129},"deactivate":{"__isSmartRef__":true,"id":29133},"blink":{"__isSmartRef__":true,"id":29137},"ABPreturn":{"__isSmartRef__":true,"id":29141},"ABPstart":{"__isSmartRef__":true,"id":29145},"ABPcontinue":{"__isSmartRef__":true,"id":29149},"ABPshowValue":{"__isSmartRef__":true,"id":29153},"ABPgetValue":{"__isSmartRef__":true,"id":29157},"ABPhasChildNodes":{"__isSmartRef__":true,"id":29161},"onMouseDown":{"__isSmartRef__":true,"id":29165},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":29173},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":29177},"ABPmarkAsDone":{"__isSmartRef__":true,"id":29181},"ABPmarkAsActive":{"__isSmartRef__":true,"id":29185},"getStateMorph":{"__isSmartRef__":true,"id":29189},"showState":{"__isSmartRef__":true,"id":29193},"ABPfailHard":{"__isSmartRef__":true,"id":29197},"markFinalDrawWith":{"__isSmartRef__":true,"id":29201}},"29101":{"varMapping":{"__isSmartRef__":true,"id":29102},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":29103},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29102":{"this":{"__isSmartRef__":true,"id":29076}},"29103":{"timestamp":{"__isSmartRef__":true,"id":29104},"user":"sebastianwoinar","tags":[]},"29104":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"29105":{"varMapping":{"__isSmartRef__":true,"id":29106},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":29107},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29106":{"this":{"__isSmartRef__":true,"id":29076}},"29107":{"timestamp":{"__isSmartRef__":true,"id":29108},"user":"sebastianwoinar","tags":[]},"29108":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29109":{"varMapping":{"__isSmartRef__":true,"id":29110},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":29111},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29110":{"this":{"__isSmartRef__":true,"id":29076}},"29111":{"timestamp":{"__isSmartRef__":true,"id":29112},"user":"sebastianwoinar","tags":[]},"29112":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29113":{"varMapping":{"__isSmartRef__":true,"id":29114},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":29115},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29114":{"this":{"__isSmartRef__":true,"id":29076}},"29115":{"timestamp":{"__isSmartRef__":true,"id":29116},"user":"sebastianwoinar","tags":[]},"29116":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29117":{"varMapping":{"__isSmartRef__":true,"id":29118},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":29119},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29118":{"this":{"__isSmartRef__":true,"id":29076}},"29119":{"timestamp":{"__isSmartRef__":true,"id":29120},"user":"sebastianwoinar","tags":[]},"29120":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29121":{"varMapping":{"__isSmartRef__":true,"id":29122},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":29123},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29122":{"this":{"__isSmartRef__":true,"id":29076}},"29123":{"timestamp":{"__isSmartRef__":true,"id":29124},"user":"sebastianwoinar","tags":[]},"29124":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29125":{"varMapping":{"__isSmartRef__":true,"id":29126},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":29127},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29126":{"this":{"__isSmartRef__":true,"id":29076}},"29127":{"timestamp":{"__isSmartRef__":true,"id":29128},"user":"sebastianwoinar","tags":[]},"29128":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29129":{"varMapping":{"__isSmartRef__":true,"id":29130},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":29131},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29130":{"this":{"__isSmartRef__":true,"id":29076}},"29131":{"timestamp":{"__isSmartRef__":true,"id":29132},"user":"sebastianwoinar","tags":[]},"29132":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"29133":{"varMapping":{"__isSmartRef__":true,"id":29134},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":29135},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29134":{"this":{"__isSmartRef__":true,"id":29076}},"29135":{"timestamp":{"__isSmartRef__":true,"id":29136},"user":"sebastianwoinar","tags":[]},"29136":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"29137":{"varMapping":{"__isSmartRef__":true,"id":29138},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":29139},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29138":{"this":{"__isSmartRef__":true,"id":29076}},"29139":{"timestamp":{"__isSmartRef__":true,"id":29140},"user":"sebastianwoinar","tags":[]},"29140":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"29141":{"varMapping":{"__isSmartRef__":true,"id":29142},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":29143},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29142":{"this":{"__isSmartRef__":true,"id":29076}},"29143":{"timestamp":{"__isSmartRef__":true,"id":29144},"user":"sebastianwoinar","tags":[]},"29144":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"29145":{"varMapping":{"__isSmartRef__":true,"id":29146},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":29147},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29146":{"this":{"__isSmartRef__":true,"id":29076}},"29147":{"timestamp":{"__isSmartRef__":true,"id":29148},"user":"sebastianwoinar","tags":[]},"29148":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"29149":{"varMapping":{"__isSmartRef__":true,"id":29150},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":29151},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29150":{"this":{"__isSmartRef__":true,"id":29076}},"29151":{"timestamp":{"__isSmartRef__":true,"id":29152},"user":"sebastianwoinar","tags":[]},"29152":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"29153":{"varMapping":{"__isSmartRef__":true,"id":29154},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":29155},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29154":{"this":{"__isSmartRef__":true,"id":29076}},"29155":{"timestamp":{"__isSmartRef__":true,"id":29156},"user":"sebastianwoinar","tags":[]},"29156":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"29157":{"varMapping":{"__isSmartRef__":true,"id":29158},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":29159},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29158":{"this":{"__isSmartRef__":true,"id":29076}},"29159":{"timestamp":{"__isSmartRef__":true,"id":29160},"user":"sebastianwoinar","tags":[]},"29160":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"29161":{"varMapping":{"__isSmartRef__":true,"id":29162},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":29163},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29162":{"this":{"__isSmartRef__":true,"id":29076}},"29163":{"timestamp":{"__isSmartRef__":true,"id":29164},"user":"sebastianwoinar","tags":[]},"29164":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"29165":{"varMapping":{"__isSmartRef__":true,"id":29166},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":29171},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29166":{"this":{"__isSmartRef__":true,"id":29076},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":29167}},"29167":{"$super":{"__isSmartRef__":true,"id":29168}},"29168":{"varMapping":{"__isSmartRef__":true,"id":29169},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":29170},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29169":{"obj":{"__isSmartRef__":true,"id":29076},"name":"onMouseDown"},"29170":{},"29171":{"timestamp":{"__isSmartRef__":true,"id":29172},"user":"sebastianwoinar","tags":[]},"29172":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"29173":{"varMapping":{"__isSmartRef__":true,"id":29174},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":29175},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29174":{"this":{"__isSmartRef__":true,"id":29076}},"29175":{"timestamp":{"__isSmartRef__":true,"id":29176},"user":"sebastianwoinar","tags":[]},"29176":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"29177":{"varMapping":{"__isSmartRef__":true,"id":29178},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":29179},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29178":{"this":{"__isSmartRef__":true,"id":29076}},"29179":{"timestamp":{"__isSmartRef__":true,"id":29180},"user":"sebastianwoinar","tags":[]},"29180":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"29181":{"varMapping":{"__isSmartRef__":true,"id":29182},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":29183},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29182":{"this":{"__isSmartRef__":true,"id":29076}},"29183":{"timestamp":{"__isSmartRef__":true,"id":29184},"user":"sebastianwoinar","tags":[]},"29184":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"29185":{"varMapping":{"__isSmartRef__":true,"id":29186},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":29187},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29186":{"this":{"__isSmartRef__":true,"id":29076}},"29187":{"timestamp":{"__isSmartRef__":true,"id":29188},"user":"sebastianwoinar","tags":[]},"29188":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"29189":{"varMapping":{"__isSmartRef__":true,"id":29190},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":29191},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29190":{"this":{"__isSmartRef__":true,"id":29076}},"29191":{"timestamp":{"__isSmartRef__":true,"id":29192},"user":"sebastianwoinar","tags":[]},"29192":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"29193":{"varMapping":{"__isSmartRef__":true,"id":29194},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":29195},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29194":{"this":{"__isSmartRef__":true,"id":29076}},"29195":{"timestamp":{"__isSmartRef__":true,"id":29196},"user":"sebastianwoinar","tags":[]},"29196":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"29197":{"varMapping":{"__isSmartRef__":true,"id":29198},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":29199},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29198":{"this":{"__isSmartRef__":true,"id":29076}},"29199":{"timestamp":{"__isSmartRef__":true,"id":29200},"user":"sebastianwoinar","tags":[]},"29200":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"29201":{"varMapping":{"__isSmartRef__":true,"id":29202},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":29203},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29202":{"this":{"__isSmartRef__":true,"id":29076}},"29203":{"timestamp":{"__isSmartRef__":true,"id":29204},"user":"sebastianwoinar","tags":[]},"29204":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"29205":{"submorphs":[{"__isSmartRef__":true,"id":29206}],"scripts":[],"shape":{"__isSmartRef__":true,"id":29223},"id":"8BDE8A5C-74DA-44BB-AE98-AF86A561B811","eventHandler":{"__isSmartRef__":true,"id":29224},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":29225},"name":"node185","partsBinMetaInfo":{"__isSmartRef__":true,"id":29226},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5799},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":29052},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":29229},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(844.5,210.0)"},"29206":{"submorphs":[],"scripts":[],"id":"EA83DB1E-F028-4086-8AC0-451D65CE8E89","shape":{"__isSmartRef__":true,"id":29207},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":29208},"textChunks":[{"__isSmartRef__":true,"id":29220}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":29222},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":29205},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"29207":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"29208":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":29209},{"__isSmartRef__":true,"id":29211},{"__isSmartRef__":true,"id":29213},{"__isSmartRef__":true,"id":29215},{"__isSmartRef__":true,"id":29217}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":29219},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"29209":{"date":{"__isSmartRef__":true,"id":29210},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"29210":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"29211":{"date":{"__isSmartRef__":true,"id":29212},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"29212":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"29213":{"date":{"__isSmartRef__":true,"id":29214},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"29214":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"29215":{"date":{"__isSmartRef__":true,"id":29216},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"29216":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"29217":{"date":{"__isSmartRef__":true,"id":29218},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"29218":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"29219":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"29220":{"style":{"__isSmartRef__":true,"id":29221},"morph":{"__isSmartRef__":true,"id":29206},"chunkOwner":{"__isSmartRef__":true,"id":29206},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"29221":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"29222":{"morph":{"__isSmartRef__":true,"id":29206},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"29223":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"29224":{"morph":{"__isSmartRef__":true,"id":29205},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"29225":{},"29226":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":29227}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"29227":{"date":{"__isSmartRef__":true,"id":29228},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"29228":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"29229":{"buildChildNodes":{"__isSmartRef__":true,"id":29230},"getGameTree":{"__isSmartRef__":true,"id":29234},"getLevel":{"__isSmartRef__":true,"id":29238},"getLevelWeight":{"__isSmartRef__":true,"id":29242},"getWeight":{"__isSmartRef__":true,"id":29246},"setNode":{"__isSmartRef__":true,"id":29250},"setParent":{"__isSmartRef__":true,"id":29254},"getParent":{"__isSmartRef__":true,"id":29258},"deactivate":{"__isSmartRef__":true,"id":29262},"blink":{"__isSmartRef__":true,"id":29266},"ABPreturn":{"__isSmartRef__":true,"id":29270},"ABPstart":{"__isSmartRef__":true,"id":29274},"ABPcontinue":{"__isSmartRef__":true,"id":29278},"ABPshowValue":{"__isSmartRef__":true,"id":29282},"ABPgetValue":{"__isSmartRef__":true,"id":29286},"ABPhasChildNodes":{"__isSmartRef__":true,"id":29290},"onMouseDown":{"__isSmartRef__":true,"id":29294},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":29302},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":29306},"ABPmarkAsDone":{"__isSmartRef__":true,"id":29310},"ABPmarkAsActive":{"__isSmartRef__":true,"id":29314},"getStateMorph":{"__isSmartRef__":true,"id":29318},"showState":{"__isSmartRef__":true,"id":29322},"ABPfailHard":{"__isSmartRef__":true,"id":29326},"markFinalDrawWith":{"__isSmartRef__":true,"id":29330}},"29230":{"varMapping":{"__isSmartRef__":true,"id":29231},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":29232},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29231":{"this":{"__isSmartRef__":true,"id":29205}},"29232":{"timestamp":{"__isSmartRef__":true,"id":29233},"user":"sebastianwoinar","tags":[]},"29233":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"29234":{"varMapping":{"__isSmartRef__":true,"id":29235},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":29236},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29235":{"this":{"__isSmartRef__":true,"id":29205}},"29236":{"timestamp":{"__isSmartRef__":true,"id":29237},"user":"sebastianwoinar","tags":[]},"29237":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29238":{"varMapping":{"__isSmartRef__":true,"id":29239},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":29240},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29239":{"this":{"__isSmartRef__":true,"id":29205}},"29240":{"timestamp":{"__isSmartRef__":true,"id":29241},"user":"sebastianwoinar","tags":[]},"29241":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29242":{"varMapping":{"__isSmartRef__":true,"id":29243},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":29244},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29243":{"this":{"__isSmartRef__":true,"id":29205}},"29244":{"timestamp":{"__isSmartRef__":true,"id":29245},"user":"sebastianwoinar","tags":[]},"29245":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29246":{"varMapping":{"__isSmartRef__":true,"id":29247},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":29248},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29247":{"this":{"__isSmartRef__":true,"id":29205}},"29248":{"timestamp":{"__isSmartRef__":true,"id":29249},"user":"sebastianwoinar","tags":[]},"29249":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29250":{"varMapping":{"__isSmartRef__":true,"id":29251},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":29252},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29251":{"this":{"__isSmartRef__":true,"id":29205}},"29252":{"timestamp":{"__isSmartRef__":true,"id":29253},"user":"sebastianwoinar","tags":[]},"29253":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29254":{"varMapping":{"__isSmartRef__":true,"id":29255},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":29256},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29255":{"this":{"__isSmartRef__":true,"id":29205}},"29256":{"timestamp":{"__isSmartRef__":true,"id":29257},"user":"sebastianwoinar","tags":[]},"29257":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29258":{"varMapping":{"__isSmartRef__":true,"id":29259},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":29260},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29259":{"this":{"__isSmartRef__":true,"id":29205}},"29260":{"timestamp":{"__isSmartRef__":true,"id":29261},"user":"sebastianwoinar","tags":[]},"29261":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"29262":{"varMapping":{"__isSmartRef__":true,"id":29263},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":29264},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29263":{"this":{"__isSmartRef__":true,"id":29205}},"29264":{"timestamp":{"__isSmartRef__":true,"id":29265},"user":"sebastianwoinar","tags":[]},"29265":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"29266":{"varMapping":{"__isSmartRef__":true,"id":29267},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":29268},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29267":{"this":{"__isSmartRef__":true,"id":29205}},"29268":{"timestamp":{"__isSmartRef__":true,"id":29269},"user":"sebastianwoinar","tags":[]},"29269":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"29270":{"varMapping":{"__isSmartRef__":true,"id":29271},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":29272},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29271":{"this":{"__isSmartRef__":true,"id":29205}},"29272":{"timestamp":{"__isSmartRef__":true,"id":29273},"user":"sebastianwoinar","tags":[]},"29273":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"29274":{"varMapping":{"__isSmartRef__":true,"id":29275},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":29276},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29275":{"this":{"__isSmartRef__":true,"id":29205}},"29276":{"timestamp":{"__isSmartRef__":true,"id":29277},"user":"sebastianwoinar","tags":[]},"29277":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"29278":{"varMapping":{"__isSmartRef__":true,"id":29279},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":29280},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29279":{"this":{"__isSmartRef__":true,"id":29205}},"29280":{"timestamp":{"__isSmartRef__":true,"id":29281},"user":"sebastianwoinar","tags":[]},"29281":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"29282":{"varMapping":{"__isSmartRef__":true,"id":29283},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":29284},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29283":{"this":{"__isSmartRef__":true,"id":29205}},"29284":{"timestamp":{"__isSmartRef__":true,"id":29285},"user":"sebastianwoinar","tags":[]},"29285":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"29286":{"varMapping":{"__isSmartRef__":true,"id":29287},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":29288},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29287":{"this":{"__isSmartRef__":true,"id":29205}},"29288":{"timestamp":{"__isSmartRef__":true,"id":29289},"user":"sebastianwoinar","tags":[]},"29289":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"29290":{"varMapping":{"__isSmartRef__":true,"id":29291},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":29292},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29291":{"this":{"__isSmartRef__":true,"id":29205}},"29292":{"timestamp":{"__isSmartRef__":true,"id":29293},"user":"sebastianwoinar","tags":[]},"29293":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"29294":{"varMapping":{"__isSmartRef__":true,"id":29295},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":29300},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29295":{"this":{"__isSmartRef__":true,"id":29205},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":29296}},"29296":{"$super":{"__isSmartRef__":true,"id":29297}},"29297":{"varMapping":{"__isSmartRef__":true,"id":29298},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":29299},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29298":{"obj":{"__isSmartRef__":true,"id":29205},"name":"onMouseDown"},"29299":{},"29300":{"timestamp":{"__isSmartRef__":true,"id":29301},"user":"sebastianwoinar","tags":[]},"29301":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"29302":{"varMapping":{"__isSmartRef__":true,"id":29303},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":29304},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29303":{"this":{"__isSmartRef__":true,"id":29205}},"29304":{"timestamp":{"__isSmartRef__":true,"id":29305},"user":"sebastianwoinar","tags":[]},"29305":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"29306":{"varMapping":{"__isSmartRef__":true,"id":29307},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":29308},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29307":{"this":{"__isSmartRef__":true,"id":29205}},"29308":{"timestamp":{"__isSmartRef__":true,"id":29309},"user":"sebastianwoinar","tags":[]},"29309":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"29310":{"varMapping":{"__isSmartRef__":true,"id":29311},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":29312},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29311":{"this":{"__isSmartRef__":true,"id":29205}},"29312":{"timestamp":{"__isSmartRef__":true,"id":29313},"user":"sebastianwoinar","tags":[]},"29313":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"29314":{"varMapping":{"__isSmartRef__":true,"id":29315},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":29316},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29315":{"this":{"__isSmartRef__":true,"id":29205}},"29316":{"timestamp":{"__isSmartRef__":true,"id":29317},"user":"sebastianwoinar","tags":[]},"29317":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"29318":{"varMapping":{"__isSmartRef__":true,"id":29319},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":29320},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29319":{"this":{"__isSmartRef__":true,"id":29205}},"29320":{"timestamp":{"__isSmartRef__":true,"id":29321},"user":"sebastianwoinar","tags":[]},"29321":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"29322":{"varMapping":{"__isSmartRef__":true,"id":29323},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":29324},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29323":{"this":{"__isSmartRef__":true,"id":29205}},"29324":{"timestamp":{"__isSmartRef__":true,"id":29325},"user":"sebastianwoinar","tags":[]},"29325":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"29326":{"varMapping":{"__isSmartRef__":true,"id":29327},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":29328},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29327":{"this":{"__isSmartRef__":true,"id":29205}},"29328":{"timestamp":{"__isSmartRef__":true,"id":29329},"user":"sebastianwoinar","tags":[]},"29329":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"29330":{"varMapping":{"__isSmartRef__":true,"id":29331},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":29332},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29331":{"this":{"__isSmartRef__":true,"id":29205}},"29332":{"timestamp":{"__isSmartRef__":true,"id":29333},"user":"sebastianwoinar","tags":[]},"29333":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"29334":{"submorphs":[{"__isSmartRef__":true,"id":29335}],"scripts":[],"shape":{"__isSmartRef__":true,"id":29352},"id":"E5C8D61F-1DF1-42E0-B0A6-FF09F44F2855","eventHandler":{"__isSmartRef__":true,"id":29353},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":29354},"name":"node186","partsBinMetaInfo":{"__isSmartRef__":true,"id":29355},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5801},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":29052},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":29358},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(849.7,210.0)"},"29335":{"submorphs":[],"scripts":[],"id":"ECA9C075-AA94-409A-8BEB-11A412752797","shape":{"__isSmartRef__":true,"id":29336},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":29337},"textChunks":[{"__isSmartRef__":true,"id":29349}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":29351},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":29334},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"29336":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"29337":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":29338},{"__isSmartRef__":true,"id":29340},{"__isSmartRef__":true,"id":29342},{"__isSmartRef__":true,"id":29344},{"__isSmartRef__":true,"id":29346}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":29348},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"29338":{"date":{"__isSmartRef__":true,"id":29339},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"29339":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"29340":{"date":{"__isSmartRef__":true,"id":29341},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"29341":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"29342":{"date":{"__isSmartRef__":true,"id":29343},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"29343":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"29344":{"date":{"__isSmartRef__":true,"id":29345},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"29345":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"29346":{"date":{"__isSmartRef__":true,"id":29347},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"29347":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"29348":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"29349":{"style":{"__isSmartRef__":true,"id":29350},"morph":{"__isSmartRef__":true,"id":29335},"chunkOwner":{"__isSmartRef__":true,"id":29335},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"29350":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"29351":{"morph":{"__isSmartRef__":true,"id":29335},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"29352":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"29353":{"morph":{"__isSmartRef__":true,"id":29334},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"29354":{},"29355":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":29356}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"29356":{"date":{"__isSmartRef__":true,"id":29357},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"29357":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"29358":{"buildChildNodes":{"__isSmartRef__":true,"id":29359},"getGameTree":{"__isSmartRef__":true,"id":29363},"getLevel":{"__isSmartRef__":true,"id":29367},"getLevelWeight":{"__isSmartRef__":true,"id":29371},"getWeight":{"__isSmartRef__":true,"id":29375},"setNode":{"__isSmartRef__":true,"id":29379},"setParent":{"__isSmartRef__":true,"id":29383},"getParent":{"__isSmartRef__":true,"id":29387},"deactivate":{"__isSmartRef__":true,"id":29391},"blink":{"__isSmartRef__":true,"id":29395},"ABPreturn":{"__isSmartRef__":true,"id":29399},"ABPstart":{"__isSmartRef__":true,"id":29403},"ABPcontinue":{"__isSmartRef__":true,"id":29407},"ABPshowValue":{"__isSmartRef__":true,"id":29411},"ABPgetValue":{"__isSmartRef__":true,"id":29415},"ABPhasChildNodes":{"__isSmartRef__":true,"id":29419},"onMouseDown":{"__isSmartRef__":true,"id":29423},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":29431},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":29435},"ABPmarkAsDone":{"__isSmartRef__":true,"id":29439},"ABPmarkAsActive":{"__isSmartRef__":true,"id":29443},"getStateMorph":{"__isSmartRef__":true,"id":29447},"showState":{"__isSmartRef__":true,"id":29451},"ABPfailHard":{"__isSmartRef__":true,"id":29455},"markFinalDrawWith":{"__isSmartRef__":true,"id":29459}},"29359":{"varMapping":{"__isSmartRef__":true,"id":29360},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":29361},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29360":{"this":{"__isSmartRef__":true,"id":29334}},"29361":{"timestamp":{"__isSmartRef__":true,"id":29362},"user":"sebastianwoinar","tags":[]},"29362":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"29363":{"varMapping":{"__isSmartRef__":true,"id":29364},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":29365},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29364":{"this":{"__isSmartRef__":true,"id":29334}},"29365":{"timestamp":{"__isSmartRef__":true,"id":29366},"user":"sebastianwoinar","tags":[]},"29366":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29367":{"varMapping":{"__isSmartRef__":true,"id":29368},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":29369},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29368":{"this":{"__isSmartRef__":true,"id":29334}},"29369":{"timestamp":{"__isSmartRef__":true,"id":29370},"user":"sebastianwoinar","tags":[]},"29370":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29371":{"varMapping":{"__isSmartRef__":true,"id":29372},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":29373},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29372":{"this":{"__isSmartRef__":true,"id":29334}},"29373":{"timestamp":{"__isSmartRef__":true,"id":29374},"user":"sebastianwoinar","tags":[]},"29374":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29375":{"varMapping":{"__isSmartRef__":true,"id":29376},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":29377},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29376":{"this":{"__isSmartRef__":true,"id":29334}},"29377":{"timestamp":{"__isSmartRef__":true,"id":29378},"user":"sebastianwoinar","tags":[]},"29378":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29379":{"varMapping":{"__isSmartRef__":true,"id":29380},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":29381},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29380":{"this":{"__isSmartRef__":true,"id":29334}},"29381":{"timestamp":{"__isSmartRef__":true,"id":29382},"user":"sebastianwoinar","tags":[]},"29382":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29383":{"varMapping":{"__isSmartRef__":true,"id":29384},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":29385},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29384":{"this":{"__isSmartRef__":true,"id":29334}},"29385":{"timestamp":{"__isSmartRef__":true,"id":29386},"user":"sebastianwoinar","tags":[]},"29386":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29387":{"varMapping":{"__isSmartRef__":true,"id":29388},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":29389},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29388":{"this":{"__isSmartRef__":true,"id":29334}},"29389":{"timestamp":{"__isSmartRef__":true,"id":29390},"user":"sebastianwoinar","tags":[]},"29390":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"29391":{"varMapping":{"__isSmartRef__":true,"id":29392},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":29393},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29392":{"this":{"__isSmartRef__":true,"id":29334}},"29393":{"timestamp":{"__isSmartRef__":true,"id":29394},"user":"sebastianwoinar","tags":[]},"29394":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"29395":{"varMapping":{"__isSmartRef__":true,"id":29396},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":29397},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29396":{"this":{"__isSmartRef__":true,"id":29334}},"29397":{"timestamp":{"__isSmartRef__":true,"id":29398},"user":"sebastianwoinar","tags":[]},"29398":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"29399":{"varMapping":{"__isSmartRef__":true,"id":29400},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":29401},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29400":{"this":{"__isSmartRef__":true,"id":29334}},"29401":{"timestamp":{"__isSmartRef__":true,"id":29402},"user":"sebastianwoinar","tags":[]},"29402":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"29403":{"varMapping":{"__isSmartRef__":true,"id":29404},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":29405},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29404":{"this":{"__isSmartRef__":true,"id":29334}},"29405":{"timestamp":{"__isSmartRef__":true,"id":29406},"user":"sebastianwoinar","tags":[]},"29406":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"29407":{"varMapping":{"__isSmartRef__":true,"id":29408},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":29409},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29408":{"this":{"__isSmartRef__":true,"id":29334}},"29409":{"timestamp":{"__isSmartRef__":true,"id":29410},"user":"sebastianwoinar","tags":[]},"29410":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"29411":{"varMapping":{"__isSmartRef__":true,"id":29412},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":29413},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29412":{"this":{"__isSmartRef__":true,"id":29334}},"29413":{"timestamp":{"__isSmartRef__":true,"id":29414},"user":"sebastianwoinar","tags":[]},"29414":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"29415":{"varMapping":{"__isSmartRef__":true,"id":29416},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":29417},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29416":{"this":{"__isSmartRef__":true,"id":29334}},"29417":{"timestamp":{"__isSmartRef__":true,"id":29418},"user":"sebastianwoinar","tags":[]},"29418":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"29419":{"varMapping":{"__isSmartRef__":true,"id":29420},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":29421},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29420":{"this":{"__isSmartRef__":true,"id":29334}},"29421":{"timestamp":{"__isSmartRef__":true,"id":29422},"user":"sebastianwoinar","tags":[]},"29422":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"29423":{"varMapping":{"__isSmartRef__":true,"id":29424},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":29429},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29424":{"this":{"__isSmartRef__":true,"id":29334},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":29425}},"29425":{"$super":{"__isSmartRef__":true,"id":29426}},"29426":{"varMapping":{"__isSmartRef__":true,"id":29427},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":29428},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29427":{"obj":{"__isSmartRef__":true,"id":29334},"name":"onMouseDown"},"29428":{},"29429":{"timestamp":{"__isSmartRef__":true,"id":29430},"user":"sebastianwoinar","tags":[]},"29430":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"29431":{"varMapping":{"__isSmartRef__":true,"id":29432},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":29433},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29432":{"this":{"__isSmartRef__":true,"id":29334}},"29433":{"timestamp":{"__isSmartRef__":true,"id":29434},"user":"sebastianwoinar","tags":[]},"29434":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"29435":{"varMapping":{"__isSmartRef__":true,"id":29436},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":29437},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29436":{"this":{"__isSmartRef__":true,"id":29334}},"29437":{"timestamp":{"__isSmartRef__":true,"id":29438},"user":"sebastianwoinar","tags":[]},"29438":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"29439":{"varMapping":{"__isSmartRef__":true,"id":29440},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":29441},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29440":{"this":{"__isSmartRef__":true,"id":29334}},"29441":{"timestamp":{"__isSmartRef__":true,"id":29442},"user":"sebastianwoinar","tags":[]},"29442":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"29443":{"varMapping":{"__isSmartRef__":true,"id":29444},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":29445},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29444":{"this":{"__isSmartRef__":true,"id":29334}},"29445":{"timestamp":{"__isSmartRef__":true,"id":29446},"user":"sebastianwoinar","tags":[]},"29446":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"29447":{"varMapping":{"__isSmartRef__":true,"id":29448},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":29449},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29448":{"this":{"__isSmartRef__":true,"id":29334}},"29449":{"timestamp":{"__isSmartRef__":true,"id":29450},"user":"sebastianwoinar","tags":[]},"29450":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"29451":{"varMapping":{"__isSmartRef__":true,"id":29452},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":29453},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29452":{"this":{"__isSmartRef__":true,"id":29334}},"29453":{"timestamp":{"__isSmartRef__":true,"id":29454},"user":"sebastianwoinar","tags":[]},"29454":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"29455":{"varMapping":{"__isSmartRef__":true,"id":29456},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":29457},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29456":{"this":{"__isSmartRef__":true,"id":29334}},"29457":{"timestamp":{"__isSmartRef__":true,"id":29458},"user":"sebastianwoinar","tags":[]},"29458":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"29459":{"varMapping":{"__isSmartRef__":true,"id":29460},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":29461},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29460":{"this":{"__isSmartRef__":true,"id":29334}},"29461":{"timestamp":{"__isSmartRef__":true,"id":29462},"user":"sebastianwoinar","tags":[]},"29462":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"29463":{"submorphs":[{"__isSmartRef__":true,"id":29464}],"scripts":[],"shape":{"__isSmartRef__":true,"id":29481},"id":"349B9FCF-30E0-418E-BE5B-CA9A6B65BFBA","eventHandler":{"__isSmartRef__":true,"id":29482},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":29483},"name":"node187","partsBinMetaInfo":{"__isSmartRef__":true,"id":29484},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5803},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":29052},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":29487},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(854.9,210.0)"},"29464":{"submorphs":[],"scripts":[],"id":"9B0B0027-85D0-481F-8D89-E6CE9ACA4CCF","shape":{"__isSmartRef__":true,"id":29465},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":29466},"textChunks":[{"__isSmartRef__":true,"id":29478}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":29480},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":29463},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"29465":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"29466":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":29467},{"__isSmartRef__":true,"id":29469},{"__isSmartRef__":true,"id":29471},{"__isSmartRef__":true,"id":29473},{"__isSmartRef__":true,"id":29475}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":29477},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"29467":{"date":{"__isSmartRef__":true,"id":29468},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"29468":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"29469":{"date":{"__isSmartRef__":true,"id":29470},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"29470":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"29471":{"date":{"__isSmartRef__":true,"id":29472},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"29472":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"29473":{"date":{"__isSmartRef__":true,"id":29474},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"29474":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"29475":{"date":{"__isSmartRef__":true,"id":29476},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"29476":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"29477":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"29478":{"style":{"__isSmartRef__":true,"id":29479},"morph":{"__isSmartRef__":true,"id":29464},"chunkOwner":{"__isSmartRef__":true,"id":29464},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"29479":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"29480":{"morph":{"__isSmartRef__":true,"id":29464},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"29481":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"29482":{"morph":{"__isSmartRef__":true,"id":29463},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"29483":{},"29484":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":29485}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"29485":{"date":{"__isSmartRef__":true,"id":29486},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"29486":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"29487":{"buildChildNodes":{"__isSmartRef__":true,"id":29488},"getGameTree":{"__isSmartRef__":true,"id":29492},"getLevel":{"__isSmartRef__":true,"id":29496},"getLevelWeight":{"__isSmartRef__":true,"id":29500},"getWeight":{"__isSmartRef__":true,"id":29504},"setNode":{"__isSmartRef__":true,"id":29508},"setParent":{"__isSmartRef__":true,"id":29512},"getParent":{"__isSmartRef__":true,"id":29516},"deactivate":{"__isSmartRef__":true,"id":29520},"blink":{"__isSmartRef__":true,"id":29524},"ABPreturn":{"__isSmartRef__":true,"id":29528},"ABPstart":{"__isSmartRef__":true,"id":29532},"ABPcontinue":{"__isSmartRef__":true,"id":29536},"ABPshowValue":{"__isSmartRef__":true,"id":29540},"ABPgetValue":{"__isSmartRef__":true,"id":29544},"ABPhasChildNodes":{"__isSmartRef__":true,"id":29548},"onMouseDown":{"__isSmartRef__":true,"id":29552},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":29560},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":29564},"ABPmarkAsDone":{"__isSmartRef__":true,"id":29568},"ABPmarkAsActive":{"__isSmartRef__":true,"id":29572},"getStateMorph":{"__isSmartRef__":true,"id":29576},"showState":{"__isSmartRef__":true,"id":29580},"ABPfailHard":{"__isSmartRef__":true,"id":29584},"markFinalDrawWith":{"__isSmartRef__":true,"id":29588}},"29488":{"varMapping":{"__isSmartRef__":true,"id":29489},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":29490},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29489":{"this":{"__isSmartRef__":true,"id":29463}},"29490":{"timestamp":{"__isSmartRef__":true,"id":29491},"user":"sebastianwoinar","tags":[]},"29491":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"29492":{"varMapping":{"__isSmartRef__":true,"id":29493},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":29494},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29493":{"this":{"__isSmartRef__":true,"id":29463}},"29494":{"timestamp":{"__isSmartRef__":true,"id":29495},"user":"sebastianwoinar","tags":[]},"29495":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29496":{"varMapping":{"__isSmartRef__":true,"id":29497},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":29498},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29497":{"this":{"__isSmartRef__":true,"id":29463}},"29498":{"timestamp":{"__isSmartRef__":true,"id":29499},"user":"sebastianwoinar","tags":[]},"29499":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29500":{"varMapping":{"__isSmartRef__":true,"id":29501},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":29502},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29501":{"this":{"__isSmartRef__":true,"id":29463}},"29502":{"timestamp":{"__isSmartRef__":true,"id":29503},"user":"sebastianwoinar","tags":[]},"29503":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29504":{"varMapping":{"__isSmartRef__":true,"id":29505},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":29506},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29505":{"this":{"__isSmartRef__":true,"id":29463}},"29506":{"timestamp":{"__isSmartRef__":true,"id":29507},"user":"sebastianwoinar","tags":[]},"29507":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29508":{"varMapping":{"__isSmartRef__":true,"id":29509},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":29510},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29509":{"this":{"__isSmartRef__":true,"id":29463}},"29510":{"timestamp":{"__isSmartRef__":true,"id":29511},"user":"sebastianwoinar","tags":[]},"29511":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29512":{"varMapping":{"__isSmartRef__":true,"id":29513},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":29514},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29513":{"this":{"__isSmartRef__":true,"id":29463}},"29514":{"timestamp":{"__isSmartRef__":true,"id":29515},"user":"sebastianwoinar","tags":[]},"29515":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29516":{"varMapping":{"__isSmartRef__":true,"id":29517},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":29518},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29517":{"this":{"__isSmartRef__":true,"id":29463}},"29518":{"timestamp":{"__isSmartRef__":true,"id":29519},"user":"sebastianwoinar","tags":[]},"29519":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"29520":{"varMapping":{"__isSmartRef__":true,"id":29521},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":29522},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29521":{"this":{"__isSmartRef__":true,"id":29463}},"29522":{"timestamp":{"__isSmartRef__":true,"id":29523},"user":"sebastianwoinar","tags":[]},"29523":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"29524":{"varMapping":{"__isSmartRef__":true,"id":29525},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":29526},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29525":{"this":{"__isSmartRef__":true,"id":29463}},"29526":{"timestamp":{"__isSmartRef__":true,"id":29527},"user":"sebastianwoinar","tags":[]},"29527":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"29528":{"varMapping":{"__isSmartRef__":true,"id":29529},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":29530},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29529":{"this":{"__isSmartRef__":true,"id":29463}},"29530":{"timestamp":{"__isSmartRef__":true,"id":29531},"user":"sebastianwoinar","tags":[]},"29531":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"29532":{"varMapping":{"__isSmartRef__":true,"id":29533},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":29534},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29533":{"this":{"__isSmartRef__":true,"id":29463}},"29534":{"timestamp":{"__isSmartRef__":true,"id":29535},"user":"sebastianwoinar","tags":[]},"29535":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"29536":{"varMapping":{"__isSmartRef__":true,"id":29537},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":29538},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29537":{"this":{"__isSmartRef__":true,"id":29463}},"29538":{"timestamp":{"__isSmartRef__":true,"id":29539},"user":"sebastianwoinar","tags":[]},"29539":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"29540":{"varMapping":{"__isSmartRef__":true,"id":29541},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":29542},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29541":{"this":{"__isSmartRef__":true,"id":29463}},"29542":{"timestamp":{"__isSmartRef__":true,"id":29543},"user":"sebastianwoinar","tags":[]},"29543":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"29544":{"varMapping":{"__isSmartRef__":true,"id":29545},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":29546},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29545":{"this":{"__isSmartRef__":true,"id":29463}},"29546":{"timestamp":{"__isSmartRef__":true,"id":29547},"user":"sebastianwoinar","tags":[]},"29547":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"29548":{"varMapping":{"__isSmartRef__":true,"id":29549},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":29550},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29549":{"this":{"__isSmartRef__":true,"id":29463}},"29550":{"timestamp":{"__isSmartRef__":true,"id":29551},"user":"sebastianwoinar","tags":[]},"29551":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"29552":{"varMapping":{"__isSmartRef__":true,"id":29553},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":29558},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29553":{"this":{"__isSmartRef__":true,"id":29463},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":29554}},"29554":{"$super":{"__isSmartRef__":true,"id":29555}},"29555":{"varMapping":{"__isSmartRef__":true,"id":29556},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":29557},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29556":{"obj":{"__isSmartRef__":true,"id":29463},"name":"onMouseDown"},"29557":{},"29558":{"timestamp":{"__isSmartRef__":true,"id":29559},"user":"sebastianwoinar","tags":[]},"29559":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"29560":{"varMapping":{"__isSmartRef__":true,"id":29561},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":29562},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29561":{"this":{"__isSmartRef__":true,"id":29463}},"29562":{"timestamp":{"__isSmartRef__":true,"id":29563},"user":"sebastianwoinar","tags":[]},"29563":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"29564":{"varMapping":{"__isSmartRef__":true,"id":29565},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":29566},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29565":{"this":{"__isSmartRef__":true,"id":29463}},"29566":{"timestamp":{"__isSmartRef__":true,"id":29567},"user":"sebastianwoinar","tags":[]},"29567":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"29568":{"varMapping":{"__isSmartRef__":true,"id":29569},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":29570},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29569":{"this":{"__isSmartRef__":true,"id":29463}},"29570":{"timestamp":{"__isSmartRef__":true,"id":29571},"user":"sebastianwoinar","tags":[]},"29571":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"29572":{"varMapping":{"__isSmartRef__":true,"id":29573},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":29574},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29573":{"this":{"__isSmartRef__":true,"id":29463}},"29574":{"timestamp":{"__isSmartRef__":true,"id":29575},"user":"sebastianwoinar","tags":[]},"29575":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"29576":{"varMapping":{"__isSmartRef__":true,"id":29577},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":29578},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29577":{"this":{"__isSmartRef__":true,"id":29463}},"29578":{"timestamp":{"__isSmartRef__":true,"id":29579},"user":"sebastianwoinar","tags":[]},"29579":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"29580":{"varMapping":{"__isSmartRef__":true,"id":29581},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":29582},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29581":{"this":{"__isSmartRef__":true,"id":29463}},"29582":{"timestamp":{"__isSmartRef__":true,"id":29583},"user":"sebastianwoinar","tags":[]},"29583":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"29584":{"varMapping":{"__isSmartRef__":true,"id":29585},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":29586},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29585":{"this":{"__isSmartRef__":true,"id":29463}},"29586":{"timestamp":{"__isSmartRef__":true,"id":29587},"user":"sebastianwoinar","tags":[]},"29587":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"29588":{"varMapping":{"__isSmartRef__":true,"id":29589},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":29590},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29589":{"this":{"__isSmartRef__":true,"id":29463}},"29590":{"timestamp":{"__isSmartRef__":true,"id":29591},"user":"sebastianwoinar","tags":[]},"29591":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"29592":{"submorphs":[{"__isSmartRef__":true,"id":29593}],"scripts":[],"shape":{"__isSmartRef__":true,"id":29610},"id":"C6656B9A-B881-44F4-9070-4E68C53E9FB9","eventHandler":{"__isSmartRef__":true,"id":29611},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":29612},"name":"node188","partsBinMetaInfo":{"__isSmartRef__":true,"id":29613},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5805},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":29052},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":29616},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(860.0,210.0)"},"29593":{"submorphs":[],"scripts":[],"id":"59472296-7866-432C-9390-175CCE1FFA39","shape":{"__isSmartRef__":true,"id":29594},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":29595},"textChunks":[{"__isSmartRef__":true,"id":29607}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":29609},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":29592},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"29594":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"29595":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":29596},{"__isSmartRef__":true,"id":29598},{"__isSmartRef__":true,"id":29600},{"__isSmartRef__":true,"id":29602},{"__isSmartRef__":true,"id":29604}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":29606},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"29596":{"date":{"__isSmartRef__":true,"id":29597},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"29597":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"29598":{"date":{"__isSmartRef__":true,"id":29599},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"29599":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"29600":{"date":{"__isSmartRef__":true,"id":29601},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"29601":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"29602":{"date":{"__isSmartRef__":true,"id":29603},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"29603":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"29604":{"date":{"__isSmartRef__":true,"id":29605},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"29605":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"29606":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"29607":{"style":{"__isSmartRef__":true,"id":29608},"morph":{"__isSmartRef__":true,"id":29593},"chunkOwner":{"__isSmartRef__":true,"id":29593},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"29608":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"29609":{"morph":{"__isSmartRef__":true,"id":29593},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"29610":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"29611":{"morph":{"__isSmartRef__":true,"id":29592},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"29612":{},"29613":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":29614}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"29614":{"date":{"__isSmartRef__":true,"id":29615},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"29615":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"29616":{"buildChildNodes":{"__isSmartRef__":true,"id":29617},"getGameTree":{"__isSmartRef__":true,"id":29621},"getLevel":{"__isSmartRef__":true,"id":29625},"getLevelWeight":{"__isSmartRef__":true,"id":29629},"getWeight":{"__isSmartRef__":true,"id":29633},"setNode":{"__isSmartRef__":true,"id":29637},"setParent":{"__isSmartRef__":true,"id":29641},"getParent":{"__isSmartRef__":true,"id":29645},"deactivate":{"__isSmartRef__":true,"id":29649},"blink":{"__isSmartRef__":true,"id":29653},"ABPreturn":{"__isSmartRef__":true,"id":29657},"ABPstart":{"__isSmartRef__":true,"id":29661},"ABPcontinue":{"__isSmartRef__":true,"id":29665},"ABPshowValue":{"__isSmartRef__":true,"id":29669},"ABPgetValue":{"__isSmartRef__":true,"id":29673},"ABPhasChildNodes":{"__isSmartRef__":true,"id":29677},"onMouseDown":{"__isSmartRef__":true,"id":29681},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":29689},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":29693},"ABPmarkAsDone":{"__isSmartRef__":true,"id":29697},"ABPmarkAsActive":{"__isSmartRef__":true,"id":29701},"getStateMorph":{"__isSmartRef__":true,"id":29705},"showState":{"__isSmartRef__":true,"id":29709},"ABPfailHard":{"__isSmartRef__":true,"id":29713},"markFinalDrawWith":{"__isSmartRef__":true,"id":29717}},"29617":{"varMapping":{"__isSmartRef__":true,"id":29618},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":29619},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29618":{"this":{"__isSmartRef__":true,"id":29592}},"29619":{"timestamp":{"__isSmartRef__":true,"id":29620},"user":"sebastianwoinar","tags":[]},"29620":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"29621":{"varMapping":{"__isSmartRef__":true,"id":29622},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":29623},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29622":{"this":{"__isSmartRef__":true,"id":29592}},"29623":{"timestamp":{"__isSmartRef__":true,"id":29624},"user":"sebastianwoinar","tags":[]},"29624":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29625":{"varMapping":{"__isSmartRef__":true,"id":29626},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":29627},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29626":{"this":{"__isSmartRef__":true,"id":29592}},"29627":{"timestamp":{"__isSmartRef__":true,"id":29628},"user":"sebastianwoinar","tags":[]},"29628":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29629":{"varMapping":{"__isSmartRef__":true,"id":29630},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":29631},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29630":{"this":{"__isSmartRef__":true,"id":29592}},"29631":{"timestamp":{"__isSmartRef__":true,"id":29632},"user":"sebastianwoinar","tags":[]},"29632":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29633":{"varMapping":{"__isSmartRef__":true,"id":29634},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":29635},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29634":{"this":{"__isSmartRef__":true,"id":29592}},"29635":{"timestamp":{"__isSmartRef__":true,"id":29636},"user":"sebastianwoinar","tags":[]},"29636":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29637":{"varMapping":{"__isSmartRef__":true,"id":29638},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":29639},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29638":{"this":{"__isSmartRef__":true,"id":29592}},"29639":{"timestamp":{"__isSmartRef__":true,"id":29640},"user":"sebastianwoinar","tags":[]},"29640":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29641":{"varMapping":{"__isSmartRef__":true,"id":29642},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":29643},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29642":{"this":{"__isSmartRef__":true,"id":29592}},"29643":{"timestamp":{"__isSmartRef__":true,"id":29644},"user":"sebastianwoinar","tags":[]},"29644":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29645":{"varMapping":{"__isSmartRef__":true,"id":29646},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":29647},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29646":{"this":{"__isSmartRef__":true,"id":29592}},"29647":{"timestamp":{"__isSmartRef__":true,"id":29648},"user":"sebastianwoinar","tags":[]},"29648":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"29649":{"varMapping":{"__isSmartRef__":true,"id":29650},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":29651},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29650":{"this":{"__isSmartRef__":true,"id":29592}},"29651":{"timestamp":{"__isSmartRef__":true,"id":29652},"user":"sebastianwoinar","tags":[]},"29652":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"29653":{"varMapping":{"__isSmartRef__":true,"id":29654},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":29655},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29654":{"this":{"__isSmartRef__":true,"id":29592}},"29655":{"timestamp":{"__isSmartRef__":true,"id":29656},"user":"sebastianwoinar","tags":[]},"29656":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"29657":{"varMapping":{"__isSmartRef__":true,"id":29658},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":29659},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29658":{"this":{"__isSmartRef__":true,"id":29592}},"29659":{"timestamp":{"__isSmartRef__":true,"id":29660},"user":"sebastianwoinar","tags":[]},"29660":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"29661":{"varMapping":{"__isSmartRef__":true,"id":29662},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":29663},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29662":{"this":{"__isSmartRef__":true,"id":29592}},"29663":{"timestamp":{"__isSmartRef__":true,"id":29664},"user":"sebastianwoinar","tags":[]},"29664":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"29665":{"varMapping":{"__isSmartRef__":true,"id":29666},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":29667},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29666":{"this":{"__isSmartRef__":true,"id":29592}},"29667":{"timestamp":{"__isSmartRef__":true,"id":29668},"user":"sebastianwoinar","tags":[]},"29668":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"29669":{"varMapping":{"__isSmartRef__":true,"id":29670},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":29671},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29670":{"this":{"__isSmartRef__":true,"id":29592}},"29671":{"timestamp":{"__isSmartRef__":true,"id":29672},"user":"sebastianwoinar","tags":[]},"29672":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"29673":{"varMapping":{"__isSmartRef__":true,"id":29674},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":29675},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29674":{"this":{"__isSmartRef__":true,"id":29592}},"29675":{"timestamp":{"__isSmartRef__":true,"id":29676},"user":"sebastianwoinar","tags":[]},"29676":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"29677":{"varMapping":{"__isSmartRef__":true,"id":29678},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":29679},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29678":{"this":{"__isSmartRef__":true,"id":29592}},"29679":{"timestamp":{"__isSmartRef__":true,"id":29680},"user":"sebastianwoinar","tags":[]},"29680":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"29681":{"varMapping":{"__isSmartRef__":true,"id":29682},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":29687},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29682":{"this":{"__isSmartRef__":true,"id":29592},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":29683}},"29683":{"$super":{"__isSmartRef__":true,"id":29684}},"29684":{"varMapping":{"__isSmartRef__":true,"id":29685},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":29686},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29685":{"obj":{"__isSmartRef__":true,"id":29592},"name":"onMouseDown"},"29686":{},"29687":{"timestamp":{"__isSmartRef__":true,"id":29688},"user":"sebastianwoinar","tags":[]},"29688":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"29689":{"varMapping":{"__isSmartRef__":true,"id":29690},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":29691},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29690":{"this":{"__isSmartRef__":true,"id":29592}},"29691":{"timestamp":{"__isSmartRef__":true,"id":29692},"user":"sebastianwoinar","tags":[]},"29692":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"29693":{"varMapping":{"__isSmartRef__":true,"id":29694},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":29695},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29694":{"this":{"__isSmartRef__":true,"id":29592}},"29695":{"timestamp":{"__isSmartRef__":true,"id":29696},"user":"sebastianwoinar","tags":[]},"29696":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"29697":{"varMapping":{"__isSmartRef__":true,"id":29698},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":29699},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29698":{"this":{"__isSmartRef__":true,"id":29592}},"29699":{"timestamp":{"__isSmartRef__":true,"id":29700},"user":"sebastianwoinar","tags":[]},"29700":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"29701":{"varMapping":{"__isSmartRef__":true,"id":29702},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":29703},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29702":{"this":{"__isSmartRef__":true,"id":29592}},"29703":{"timestamp":{"__isSmartRef__":true,"id":29704},"user":"sebastianwoinar","tags":[]},"29704":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"29705":{"varMapping":{"__isSmartRef__":true,"id":29706},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":29707},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29706":{"this":{"__isSmartRef__":true,"id":29592}},"29707":{"timestamp":{"__isSmartRef__":true,"id":29708},"user":"sebastianwoinar","tags":[]},"29708":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"29709":{"varMapping":{"__isSmartRef__":true,"id":29710},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":29711},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29710":{"this":{"__isSmartRef__":true,"id":29592}},"29711":{"timestamp":{"__isSmartRef__":true,"id":29712},"user":"sebastianwoinar","tags":[]},"29712":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"29713":{"varMapping":{"__isSmartRef__":true,"id":29714},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":29715},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29714":{"this":{"__isSmartRef__":true,"id":29592}},"29715":{"timestamp":{"__isSmartRef__":true,"id":29716},"user":"sebastianwoinar","tags":[]},"29716":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"29717":{"varMapping":{"__isSmartRef__":true,"id":29718},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":29719},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29718":{"this":{"__isSmartRef__":true,"id":29592}},"29719":{"timestamp":{"__isSmartRef__":true,"id":29720},"user":"sebastianwoinar","tags":[]},"29720":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"29721":{"buildChildNodes":{"__isSmartRef__":true,"id":29722},"getGameTree":{"__isSmartRef__":true,"id":29726},"getLevel":{"__isSmartRef__":true,"id":29730},"getLevelWeight":{"__isSmartRef__":true,"id":29734},"getWeight":{"__isSmartRef__":true,"id":29738},"setNode":{"__isSmartRef__":true,"id":29742},"setParent":{"__isSmartRef__":true,"id":29746},"getParent":{"__isSmartRef__":true,"id":29750},"deactivate":{"__isSmartRef__":true,"id":29754},"blink":{"__isSmartRef__":true,"id":29758},"ABPreturn":{"__isSmartRef__":true,"id":29762},"ABPstart":{"__isSmartRef__":true,"id":29766},"ABPcontinue":{"__isSmartRef__":true,"id":29770},"ABPshowValue":{"__isSmartRef__":true,"id":29774},"ABPgetValue":{"__isSmartRef__":true,"id":29778},"ABPhasChildNodes":{"__isSmartRef__":true,"id":29782},"onMouseDown":{"__isSmartRef__":true,"id":29786},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":29794},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":29798},"ABPmarkAsDone":{"__isSmartRef__":true,"id":29802},"ABPmarkAsActive":{"__isSmartRef__":true,"id":29806},"getStateMorph":{"__isSmartRef__":true,"id":29810},"showState":{"__isSmartRef__":true,"id":29814},"ABPfailHard":{"__isSmartRef__":true,"id":29818},"markFinalDrawWith":{"__isSmartRef__":true,"id":29822}},"29722":{"varMapping":{"__isSmartRef__":true,"id":29723},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":29724},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29723":{"this":{"__isSmartRef__":true,"id":29052}},"29724":{"timestamp":{"__isSmartRef__":true,"id":29725},"user":"sebastianwoinar","tags":[]},"29725":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"29726":{"varMapping":{"__isSmartRef__":true,"id":29727},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":29728},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29727":{"this":{"__isSmartRef__":true,"id":29052}},"29728":{"timestamp":{"__isSmartRef__":true,"id":29729},"user":"sebastianwoinar","tags":[]},"29729":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29730":{"varMapping":{"__isSmartRef__":true,"id":29731},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":29732},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29731":{"this":{"__isSmartRef__":true,"id":29052}},"29732":{"timestamp":{"__isSmartRef__":true,"id":29733},"user":"sebastianwoinar","tags":[]},"29733":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29734":{"varMapping":{"__isSmartRef__":true,"id":29735},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":29736},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29735":{"this":{"__isSmartRef__":true,"id":29052}},"29736":{"timestamp":{"__isSmartRef__":true,"id":29737},"user":"sebastianwoinar","tags":[]},"29737":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29738":{"varMapping":{"__isSmartRef__":true,"id":29739},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":29740},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29739":{"this":{"__isSmartRef__":true,"id":29052}},"29740":{"timestamp":{"__isSmartRef__":true,"id":29741},"user":"sebastianwoinar","tags":[]},"29741":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29742":{"varMapping":{"__isSmartRef__":true,"id":29743},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":29744},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29743":{"this":{"__isSmartRef__":true,"id":29052}},"29744":{"timestamp":{"__isSmartRef__":true,"id":29745},"user":"sebastianwoinar","tags":[]},"29745":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29746":{"varMapping":{"__isSmartRef__":true,"id":29747},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":29748},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29747":{"this":{"__isSmartRef__":true,"id":29052}},"29748":{"timestamp":{"__isSmartRef__":true,"id":29749},"user":"sebastianwoinar","tags":[]},"29749":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29750":{"varMapping":{"__isSmartRef__":true,"id":29751},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":29752},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29751":{"this":{"__isSmartRef__":true,"id":29052}},"29752":{"timestamp":{"__isSmartRef__":true,"id":29753},"user":"sebastianwoinar","tags":[]},"29753":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"29754":{"varMapping":{"__isSmartRef__":true,"id":29755},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":29756},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29755":{"this":{"__isSmartRef__":true,"id":29052}},"29756":{"timestamp":{"__isSmartRef__":true,"id":29757},"user":"sebastianwoinar","tags":[]},"29757":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"29758":{"varMapping":{"__isSmartRef__":true,"id":29759},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":29760},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29759":{"this":{"__isSmartRef__":true,"id":29052}},"29760":{"timestamp":{"__isSmartRef__":true,"id":29761},"user":"sebastianwoinar","tags":[]},"29761":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"29762":{"varMapping":{"__isSmartRef__":true,"id":29763},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":29764},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29763":{"this":{"__isSmartRef__":true,"id":29052}},"29764":{"timestamp":{"__isSmartRef__":true,"id":29765},"user":"sebastianwoinar","tags":[]},"29765":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"29766":{"varMapping":{"__isSmartRef__":true,"id":29767},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":29768},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29767":{"this":{"__isSmartRef__":true,"id":29052}},"29768":{"timestamp":{"__isSmartRef__":true,"id":29769},"user":"sebastianwoinar","tags":[]},"29769":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"29770":{"varMapping":{"__isSmartRef__":true,"id":29771},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":29772},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29771":{"this":{"__isSmartRef__":true,"id":29052}},"29772":{"timestamp":{"__isSmartRef__":true,"id":29773},"user":"sebastianwoinar","tags":[]},"29773":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"29774":{"varMapping":{"__isSmartRef__":true,"id":29775},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":29776},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29775":{"this":{"__isSmartRef__":true,"id":29052}},"29776":{"timestamp":{"__isSmartRef__":true,"id":29777},"user":"sebastianwoinar","tags":[]},"29777":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"29778":{"varMapping":{"__isSmartRef__":true,"id":29779},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":29780},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29779":{"this":{"__isSmartRef__":true,"id":29052}},"29780":{"timestamp":{"__isSmartRef__":true,"id":29781},"user":"sebastianwoinar","tags":[]},"29781":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"29782":{"varMapping":{"__isSmartRef__":true,"id":29783},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":29784},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29783":{"this":{"__isSmartRef__":true,"id":29052}},"29784":{"timestamp":{"__isSmartRef__":true,"id":29785},"user":"sebastianwoinar","tags":[]},"29785":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"29786":{"varMapping":{"__isSmartRef__":true,"id":29787},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":29792},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29787":{"this":{"__isSmartRef__":true,"id":29052},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":29788}},"29788":{"$super":{"__isSmartRef__":true,"id":29789}},"29789":{"varMapping":{"__isSmartRef__":true,"id":29790},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":29791},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29790":{"obj":{"__isSmartRef__":true,"id":29052},"name":"onMouseDown"},"29791":{},"29792":{"timestamp":{"__isSmartRef__":true,"id":29793},"user":"sebastianwoinar","tags":[]},"29793":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"29794":{"varMapping":{"__isSmartRef__":true,"id":29795},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":29796},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29795":{"this":{"__isSmartRef__":true,"id":29052}},"29796":{"timestamp":{"__isSmartRef__":true,"id":29797},"user":"sebastianwoinar","tags":[]},"29797":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"29798":{"varMapping":{"__isSmartRef__":true,"id":29799},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":29800},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29799":{"this":{"__isSmartRef__":true,"id":29052}},"29800":{"timestamp":{"__isSmartRef__":true,"id":29801},"user":"sebastianwoinar","tags":[]},"29801":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"29802":{"varMapping":{"__isSmartRef__":true,"id":29803},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":29804},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29803":{"this":{"__isSmartRef__":true,"id":29052}},"29804":{"timestamp":{"__isSmartRef__":true,"id":29805},"user":"sebastianwoinar","tags":[]},"29805":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"29806":{"varMapping":{"__isSmartRef__":true,"id":29807},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":29808},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29807":{"this":{"__isSmartRef__":true,"id":29052}},"29808":{"timestamp":{"__isSmartRef__":true,"id":29809},"user":"sebastianwoinar","tags":[]},"29809":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"29810":{"varMapping":{"__isSmartRef__":true,"id":29811},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":29812},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29811":{"this":{"__isSmartRef__":true,"id":29052}},"29812":{"timestamp":{"__isSmartRef__":true,"id":29813},"user":"sebastianwoinar","tags":[]},"29813":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"29814":{"varMapping":{"__isSmartRef__":true,"id":29815},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":29816},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29815":{"this":{"__isSmartRef__":true,"id":29052}},"29816":{"timestamp":{"__isSmartRef__":true,"id":29817},"user":"sebastianwoinar","tags":[]},"29817":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"29818":{"varMapping":{"__isSmartRef__":true,"id":29819},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":29820},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29819":{"this":{"__isSmartRef__":true,"id":29052}},"29820":{"timestamp":{"__isSmartRef__":true,"id":29821},"user":"sebastianwoinar","tags":[]},"29821":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"29822":{"varMapping":{"__isSmartRef__":true,"id":29823},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":29824},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29823":{"this":{"__isSmartRef__":true,"id":29052}},"29824":{"timestamp":{"__isSmartRef__":true,"id":29825},"user":"sebastianwoinar","tags":[]},"29825":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"29826":{"submorphs":[{"__isSmartRef__":true,"id":29827}],"scripts":[],"shape":{"__isSmartRef__":true,"id":29844},"id":"2F73B115-6DA2-4729-9C2A-F420304C5AE3","eventHandler":{"__isSmartRef__":true,"id":29845},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":29846},"name":"node189","partsBinMetaInfo":{"__isSmartRef__":true,"id":29847},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5807},"owner":{"__isSmartRef__":true,"id":5408},"childNodes":[{"__isSmartRef__":true,"id":29850},{"__isSmartRef__":true,"id":29979},{"__isSmartRef__":true,"id":30108},{"__isSmartRef__":true,"id":30237},{"__isSmartRef__":true,"id":30366}],"parent":{"__isSmartRef__":true,"id":25287},"level":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":30495},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(865.2,160.0)"},"29827":{"submorphs":[],"scripts":[],"id":"E67BCEB3-8E47-481D-ABB6-875EDC975E50","shape":{"__isSmartRef__":true,"id":29828},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":29829},"textChunks":[{"__isSmartRef__":true,"id":29841}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":29843},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":29826},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"29828":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"29829":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":29830},{"__isSmartRef__":true,"id":29832},{"__isSmartRef__":true,"id":29834},{"__isSmartRef__":true,"id":29836},{"__isSmartRef__":true,"id":29838}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":29840},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"29830":{"date":{"__isSmartRef__":true,"id":29831},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"29831":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"29832":{"date":{"__isSmartRef__":true,"id":29833},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"29833":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"29834":{"date":{"__isSmartRef__":true,"id":29835},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"29835":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"29836":{"date":{"__isSmartRef__":true,"id":29837},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"29837":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"29838":{"date":{"__isSmartRef__":true,"id":29839},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"29839":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"29840":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"29841":{"style":{"__isSmartRef__":true,"id":29842},"morph":{"__isSmartRef__":true,"id":29827},"chunkOwner":{"__isSmartRef__":true,"id":29827},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"29842":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"29843":{"morph":{"__isSmartRef__":true,"id":29827},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"29844":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"29845":{"morph":{"__isSmartRef__":true,"id":29826},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"29846":{},"29847":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":29848}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"29848":{"date":{"__isSmartRef__":true,"id":29849},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"29849":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"29850":{"submorphs":[{"__isSmartRef__":true,"id":29851}],"scripts":[],"shape":{"__isSmartRef__":true,"id":29868},"id":"349E870F-D211-47A4-8C02-6991643721B0","eventHandler":{"__isSmartRef__":true,"id":29869},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":29870},"name":"node190","partsBinMetaInfo":{"__isSmartRef__":true,"id":29871},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5809},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":29826},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":29874},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(865.2,210.0)"},"29851":{"submorphs":[],"scripts":[],"id":"6B29EA01-B7BE-4947-B735-6578FE348EF0","shape":{"__isSmartRef__":true,"id":29852},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":29853},"textChunks":[{"__isSmartRef__":true,"id":29865}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":29867},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":29850},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"29852":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"29853":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":29854},{"__isSmartRef__":true,"id":29856},{"__isSmartRef__":true,"id":29858},{"__isSmartRef__":true,"id":29860},{"__isSmartRef__":true,"id":29862}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":29864},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"29854":{"date":{"__isSmartRef__":true,"id":29855},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"29855":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"29856":{"date":{"__isSmartRef__":true,"id":29857},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"29857":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"29858":{"date":{"__isSmartRef__":true,"id":29859},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"29859":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"29860":{"date":{"__isSmartRef__":true,"id":29861},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"29861":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"29862":{"date":{"__isSmartRef__":true,"id":29863},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"29863":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"29864":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"29865":{"style":{"__isSmartRef__":true,"id":29866},"morph":{"__isSmartRef__":true,"id":29851},"chunkOwner":{"__isSmartRef__":true,"id":29851},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"29866":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"29867":{"morph":{"__isSmartRef__":true,"id":29851},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"29868":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"29869":{"morph":{"__isSmartRef__":true,"id":29850},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"29870":{},"29871":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":29872}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"29872":{"date":{"__isSmartRef__":true,"id":29873},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"29873":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"29874":{"buildChildNodes":{"__isSmartRef__":true,"id":29875},"getGameTree":{"__isSmartRef__":true,"id":29879},"getLevel":{"__isSmartRef__":true,"id":29883},"getLevelWeight":{"__isSmartRef__":true,"id":29887},"getWeight":{"__isSmartRef__":true,"id":29891},"setNode":{"__isSmartRef__":true,"id":29895},"setParent":{"__isSmartRef__":true,"id":29899},"getParent":{"__isSmartRef__":true,"id":29903},"deactivate":{"__isSmartRef__":true,"id":29907},"blink":{"__isSmartRef__":true,"id":29911},"ABPreturn":{"__isSmartRef__":true,"id":29915},"ABPstart":{"__isSmartRef__":true,"id":29919},"ABPcontinue":{"__isSmartRef__":true,"id":29923},"ABPshowValue":{"__isSmartRef__":true,"id":29927},"ABPgetValue":{"__isSmartRef__":true,"id":29931},"ABPhasChildNodes":{"__isSmartRef__":true,"id":29935},"onMouseDown":{"__isSmartRef__":true,"id":29939},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":29947},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":29951},"ABPmarkAsDone":{"__isSmartRef__":true,"id":29955},"ABPmarkAsActive":{"__isSmartRef__":true,"id":29959},"getStateMorph":{"__isSmartRef__":true,"id":29963},"showState":{"__isSmartRef__":true,"id":29967},"ABPfailHard":{"__isSmartRef__":true,"id":29971},"markFinalDrawWith":{"__isSmartRef__":true,"id":29975}},"29875":{"varMapping":{"__isSmartRef__":true,"id":29876},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":29877},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29876":{"this":{"__isSmartRef__":true,"id":29850}},"29877":{"timestamp":{"__isSmartRef__":true,"id":29878},"user":"sebastianwoinar","tags":[]},"29878":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"29879":{"varMapping":{"__isSmartRef__":true,"id":29880},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":29881},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29880":{"this":{"__isSmartRef__":true,"id":29850}},"29881":{"timestamp":{"__isSmartRef__":true,"id":29882},"user":"sebastianwoinar","tags":[]},"29882":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29883":{"varMapping":{"__isSmartRef__":true,"id":29884},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":29885},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29884":{"this":{"__isSmartRef__":true,"id":29850}},"29885":{"timestamp":{"__isSmartRef__":true,"id":29886},"user":"sebastianwoinar","tags":[]},"29886":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29887":{"varMapping":{"__isSmartRef__":true,"id":29888},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":29889},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29888":{"this":{"__isSmartRef__":true,"id":29850}},"29889":{"timestamp":{"__isSmartRef__":true,"id":29890},"user":"sebastianwoinar","tags":[]},"29890":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29891":{"varMapping":{"__isSmartRef__":true,"id":29892},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":29893},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29892":{"this":{"__isSmartRef__":true,"id":29850}},"29893":{"timestamp":{"__isSmartRef__":true,"id":29894},"user":"sebastianwoinar","tags":[]},"29894":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29895":{"varMapping":{"__isSmartRef__":true,"id":29896},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":29897},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29896":{"this":{"__isSmartRef__":true,"id":29850}},"29897":{"timestamp":{"__isSmartRef__":true,"id":29898},"user":"sebastianwoinar","tags":[]},"29898":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29899":{"varMapping":{"__isSmartRef__":true,"id":29900},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":29901},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29900":{"this":{"__isSmartRef__":true,"id":29850}},"29901":{"timestamp":{"__isSmartRef__":true,"id":29902},"user":"sebastianwoinar","tags":[]},"29902":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"29903":{"varMapping":{"__isSmartRef__":true,"id":29904},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":29905},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29904":{"this":{"__isSmartRef__":true,"id":29850}},"29905":{"timestamp":{"__isSmartRef__":true,"id":29906},"user":"sebastianwoinar","tags":[]},"29906":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"29907":{"varMapping":{"__isSmartRef__":true,"id":29908},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":29909},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29908":{"this":{"__isSmartRef__":true,"id":29850}},"29909":{"timestamp":{"__isSmartRef__":true,"id":29910},"user":"sebastianwoinar","tags":[]},"29910":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"29911":{"varMapping":{"__isSmartRef__":true,"id":29912},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":29913},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29912":{"this":{"__isSmartRef__":true,"id":29850}},"29913":{"timestamp":{"__isSmartRef__":true,"id":29914},"user":"sebastianwoinar","tags":[]},"29914":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"29915":{"varMapping":{"__isSmartRef__":true,"id":29916},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":29917},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29916":{"this":{"__isSmartRef__":true,"id":29850}},"29917":{"timestamp":{"__isSmartRef__":true,"id":29918},"user":"sebastianwoinar","tags":[]},"29918":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"29919":{"varMapping":{"__isSmartRef__":true,"id":29920},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":29921},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29920":{"this":{"__isSmartRef__":true,"id":29850}},"29921":{"timestamp":{"__isSmartRef__":true,"id":29922},"user":"sebastianwoinar","tags":[]},"29922":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"29923":{"varMapping":{"__isSmartRef__":true,"id":29924},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":29925},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29924":{"this":{"__isSmartRef__":true,"id":29850}},"29925":{"timestamp":{"__isSmartRef__":true,"id":29926},"user":"sebastianwoinar","tags":[]},"29926":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"29927":{"varMapping":{"__isSmartRef__":true,"id":29928},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":29929},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29928":{"this":{"__isSmartRef__":true,"id":29850}},"29929":{"timestamp":{"__isSmartRef__":true,"id":29930},"user":"sebastianwoinar","tags":[]},"29930":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"29931":{"varMapping":{"__isSmartRef__":true,"id":29932},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":29933},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29932":{"this":{"__isSmartRef__":true,"id":29850}},"29933":{"timestamp":{"__isSmartRef__":true,"id":29934},"user":"sebastianwoinar","tags":[]},"29934":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"29935":{"varMapping":{"__isSmartRef__":true,"id":29936},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":29937},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29936":{"this":{"__isSmartRef__":true,"id":29850}},"29937":{"timestamp":{"__isSmartRef__":true,"id":29938},"user":"sebastianwoinar","tags":[]},"29938":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"29939":{"varMapping":{"__isSmartRef__":true,"id":29940},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":29945},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29940":{"this":{"__isSmartRef__":true,"id":29850},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":29941}},"29941":{"$super":{"__isSmartRef__":true,"id":29942}},"29942":{"varMapping":{"__isSmartRef__":true,"id":29943},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":29944},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29943":{"obj":{"__isSmartRef__":true,"id":29850},"name":"onMouseDown"},"29944":{},"29945":{"timestamp":{"__isSmartRef__":true,"id":29946},"user":"sebastianwoinar","tags":[]},"29946":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"29947":{"varMapping":{"__isSmartRef__":true,"id":29948},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":29949},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29948":{"this":{"__isSmartRef__":true,"id":29850}},"29949":{"timestamp":{"__isSmartRef__":true,"id":29950},"user":"sebastianwoinar","tags":[]},"29950":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"29951":{"varMapping":{"__isSmartRef__":true,"id":29952},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":29953},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29952":{"this":{"__isSmartRef__":true,"id":29850}},"29953":{"timestamp":{"__isSmartRef__":true,"id":29954},"user":"sebastianwoinar","tags":[]},"29954":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"29955":{"varMapping":{"__isSmartRef__":true,"id":29956},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":29957},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29956":{"this":{"__isSmartRef__":true,"id":29850}},"29957":{"timestamp":{"__isSmartRef__":true,"id":29958},"user":"sebastianwoinar","tags":[]},"29958":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"29959":{"varMapping":{"__isSmartRef__":true,"id":29960},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":29961},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29960":{"this":{"__isSmartRef__":true,"id":29850}},"29961":{"timestamp":{"__isSmartRef__":true,"id":29962},"user":"sebastianwoinar","tags":[]},"29962":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"29963":{"varMapping":{"__isSmartRef__":true,"id":29964},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":29965},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29964":{"this":{"__isSmartRef__":true,"id":29850}},"29965":{"timestamp":{"__isSmartRef__":true,"id":29966},"user":"sebastianwoinar","tags":[]},"29966":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"29967":{"varMapping":{"__isSmartRef__":true,"id":29968},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":29969},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29968":{"this":{"__isSmartRef__":true,"id":29850}},"29969":{"timestamp":{"__isSmartRef__":true,"id":29970},"user":"sebastianwoinar","tags":[]},"29970":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"29971":{"varMapping":{"__isSmartRef__":true,"id":29972},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":29973},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29972":{"this":{"__isSmartRef__":true,"id":29850}},"29973":{"timestamp":{"__isSmartRef__":true,"id":29974},"user":"sebastianwoinar","tags":[]},"29974":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"29975":{"varMapping":{"__isSmartRef__":true,"id":29976},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":29977},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29976":{"this":{"__isSmartRef__":true,"id":29850}},"29977":{"timestamp":{"__isSmartRef__":true,"id":29978},"user":"sebastianwoinar","tags":[]},"29978":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"29979":{"submorphs":[{"__isSmartRef__":true,"id":29980}],"scripts":[],"shape":{"__isSmartRef__":true,"id":29997},"id":"172AB142-4F48-4753-903E-2A15B8CD9F5E","eventHandler":{"__isSmartRef__":true,"id":29998},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":29999},"name":"node191","partsBinMetaInfo":{"__isSmartRef__":true,"id":30000},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5811},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":29826},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":30003},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(870.4,210.0)"},"29980":{"submorphs":[],"scripts":[],"id":"97922B99-4675-4521-AD59-C77F89EFAA2F","shape":{"__isSmartRef__":true,"id":29981},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":29982},"textChunks":[{"__isSmartRef__":true,"id":29994}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":29996},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":29979},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"29981":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"29982":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":29983},{"__isSmartRef__":true,"id":29985},{"__isSmartRef__":true,"id":29987},{"__isSmartRef__":true,"id":29989},{"__isSmartRef__":true,"id":29991}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":29993},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"29983":{"date":{"__isSmartRef__":true,"id":29984},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"29984":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"29985":{"date":{"__isSmartRef__":true,"id":29986},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"29986":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"29987":{"date":{"__isSmartRef__":true,"id":29988},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"29988":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"29989":{"date":{"__isSmartRef__":true,"id":29990},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"29990":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"29991":{"date":{"__isSmartRef__":true,"id":29992},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"29992":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"29993":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"29994":{"style":{"__isSmartRef__":true,"id":29995},"morph":{"__isSmartRef__":true,"id":29980},"chunkOwner":{"__isSmartRef__":true,"id":29980},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"29995":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"29996":{"morph":{"__isSmartRef__":true,"id":29980},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"29997":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"29998":{"morph":{"__isSmartRef__":true,"id":29979},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"29999":{},"30000":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":30001}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"30001":{"date":{"__isSmartRef__":true,"id":30002},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"30002":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"30003":{"buildChildNodes":{"__isSmartRef__":true,"id":30004},"getGameTree":{"__isSmartRef__":true,"id":30008},"getLevel":{"__isSmartRef__":true,"id":30012},"getLevelWeight":{"__isSmartRef__":true,"id":30016},"getWeight":{"__isSmartRef__":true,"id":30020},"setNode":{"__isSmartRef__":true,"id":30024},"setParent":{"__isSmartRef__":true,"id":30028},"getParent":{"__isSmartRef__":true,"id":30032},"deactivate":{"__isSmartRef__":true,"id":30036},"blink":{"__isSmartRef__":true,"id":30040},"ABPreturn":{"__isSmartRef__":true,"id":30044},"ABPstart":{"__isSmartRef__":true,"id":30048},"ABPcontinue":{"__isSmartRef__":true,"id":30052},"ABPshowValue":{"__isSmartRef__":true,"id":30056},"ABPgetValue":{"__isSmartRef__":true,"id":30060},"ABPhasChildNodes":{"__isSmartRef__":true,"id":30064},"onMouseDown":{"__isSmartRef__":true,"id":30068},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":30076},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":30080},"ABPmarkAsDone":{"__isSmartRef__":true,"id":30084},"ABPmarkAsActive":{"__isSmartRef__":true,"id":30088},"getStateMorph":{"__isSmartRef__":true,"id":30092},"showState":{"__isSmartRef__":true,"id":30096},"ABPfailHard":{"__isSmartRef__":true,"id":30100},"markFinalDrawWith":{"__isSmartRef__":true,"id":30104}},"30004":{"varMapping":{"__isSmartRef__":true,"id":30005},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":30006},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30005":{"this":{"__isSmartRef__":true,"id":29979}},"30006":{"timestamp":{"__isSmartRef__":true,"id":30007},"user":"sebastianwoinar","tags":[]},"30007":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"30008":{"varMapping":{"__isSmartRef__":true,"id":30009},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":30010},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30009":{"this":{"__isSmartRef__":true,"id":29979}},"30010":{"timestamp":{"__isSmartRef__":true,"id":30011},"user":"sebastianwoinar","tags":[]},"30011":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30012":{"varMapping":{"__isSmartRef__":true,"id":30013},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":30014},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30013":{"this":{"__isSmartRef__":true,"id":29979}},"30014":{"timestamp":{"__isSmartRef__":true,"id":30015},"user":"sebastianwoinar","tags":[]},"30015":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30016":{"varMapping":{"__isSmartRef__":true,"id":30017},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":30018},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30017":{"this":{"__isSmartRef__":true,"id":29979}},"30018":{"timestamp":{"__isSmartRef__":true,"id":30019},"user":"sebastianwoinar","tags":[]},"30019":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30020":{"varMapping":{"__isSmartRef__":true,"id":30021},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":30022},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30021":{"this":{"__isSmartRef__":true,"id":29979}},"30022":{"timestamp":{"__isSmartRef__":true,"id":30023},"user":"sebastianwoinar","tags":[]},"30023":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30024":{"varMapping":{"__isSmartRef__":true,"id":30025},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":30026},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30025":{"this":{"__isSmartRef__":true,"id":29979}},"30026":{"timestamp":{"__isSmartRef__":true,"id":30027},"user":"sebastianwoinar","tags":[]},"30027":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30028":{"varMapping":{"__isSmartRef__":true,"id":30029},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":30030},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30029":{"this":{"__isSmartRef__":true,"id":29979}},"30030":{"timestamp":{"__isSmartRef__":true,"id":30031},"user":"sebastianwoinar","tags":[]},"30031":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30032":{"varMapping":{"__isSmartRef__":true,"id":30033},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":30034},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30033":{"this":{"__isSmartRef__":true,"id":29979}},"30034":{"timestamp":{"__isSmartRef__":true,"id":30035},"user":"sebastianwoinar","tags":[]},"30035":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"30036":{"varMapping":{"__isSmartRef__":true,"id":30037},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":30038},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30037":{"this":{"__isSmartRef__":true,"id":29979}},"30038":{"timestamp":{"__isSmartRef__":true,"id":30039},"user":"sebastianwoinar","tags":[]},"30039":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"30040":{"varMapping":{"__isSmartRef__":true,"id":30041},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":30042},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30041":{"this":{"__isSmartRef__":true,"id":29979}},"30042":{"timestamp":{"__isSmartRef__":true,"id":30043},"user":"sebastianwoinar","tags":[]},"30043":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"30044":{"varMapping":{"__isSmartRef__":true,"id":30045},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":30046},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30045":{"this":{"__isSmartRef__":true,"id":29979}},"30046":{"timestamp":{"__isSmartRef__":true,"id":30047},"user":"sebastianwoinar","tags":[]},"30047":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"30048":{"varMapping":{"__isSmartRef__":true,"id":30049},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":30050},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30049":{"this":{"__isSmartRef__":true,"id":29979}},"30050":{"timestamp":{"__isSmartRef__":true,"id":30051},"user":"sebastianwoinar","tags":[]},"30051":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"30052":{"varMapping":{"__isSmartRef__":true,"id":30053},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":30054},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30053":{"this":{"__isSmartRef__":true,"id":29979}},"30054":{"timestamp":{"__isSmartRef__":true,"id":30055},"user":"sebastianwoinar","tags":[]},"30055":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"30056":{"varMapping":{"__isSmartRef__":true,"id":30057},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":30058},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30057":{"this":{"__isSmartRef__":true,"id":29979}},"30058":{"timestamp":{"__isSmartRef__":true,"id":30059},"user":"sebastianwoinar","tags":[]},"30059":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"30060":{"varMapping":{"__isSmartRef__":true,"id":30061},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":30062},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30061":{"this":{"__isSmartRef__":true,"id":29979}},"30062":{"timestamp":{"__isSmartRef__":true,"id":30063},"user":"sebastianwoinar","tags":[]},"30063":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"30064":{"varMapping":{"__isSmartRef__":true,"id":30065},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":30066},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30065":{"this":{"__isSmartRef__":true,"id":29979}},"30066":{"timestamp":{"__isSmartRef__":true,"id":30067},"user":"sebastianwoinar","tags":[]},"30067":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"30068":{"varMapping":{"__isSmartRef__":true,"id":30069},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":30074},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30069":{"this":{"__isSmartRef__":true,"id":29979},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":30070}},"30070":{"$super":{"__isSmartRef__":true,"id":30071}},"30071":{"varMapping":{"__isSmartRef__":true,"id":30072},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":30073},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30072":{"obj":{"__isSmartRef__":true,"id":29979},"name":"onMouseDown"},"30073":{},"30074":{"timestamp":{"__isSmartRef__":true,"id":30075},"user":"sebastianwoinar","tags":[]},"30075":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"30076":{"varMapping":{"__isSmartRef__":true,"id":30077},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":30078},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30077":{"this":{"__isSmartRef__":true,"id":29979}},"30078":{"timestamp":{"__isSmartRef__":true,"id":30079},"user":"sebastianwoinar","tags":[]},"30079":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"30080":{"varMapping":{"__isSmartRef__":true,"id":30081},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":30082},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30081":{"this":{"__isSmartRef__":true,"id":29979}},"30082":{"timestamp":{"__isSmartRef__":true,"id":30083},"user":"sebastianwoinar","tags":[]},"30083":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"30084":{"varMapping":{"__isSmartRef__":true,"id":30085},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":30086},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30085":{"this":{"__isSmartRef__":true,"id":29979}},"30086":{"timestamp":{"__isSmartRef__":true,"id":30087},"user":"sebastianwoinar","tags":[]},"30087":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"30088":{"varMapping":{"__isSmartRef__":true,"id":30089},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":30090},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30089":{"this":{"__isSmartRef__":true,"id":29979}},"30090":{"timestamp":{"__isSmartRef__":true,"id":30091},"user":"sebastianwoinar","tags":[]},"30091":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"30092":{"varMapping":{"__isSmartRef__":true,"id":30093},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":30094},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30093":{"this":{"__isSmartRef__":true,"id":29979}},"30094":{"timestamp":{"__isSmartRef__":true,"id":30095},"user":"sebastianwoinar","tags":[]},"30095":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"30096":{"varMapping":{"__isSmartRef__":true,"id":30097},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":30098},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30097":{"this":{"__isSmartRef__":true,"id":29979}},"30098":{"timestamp":{"__isSmartRef__":true,"id":30099},"user":"sebastianwoinar","tags":[]},"30099":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"30100":{"varMapping":{"__isSmartRef__":true,"id":30101},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":30102},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30101":{"this":{"__isSmartRef__":true,"id":29979}},"30102":{"timestamp":{"__isSmartRef__":true,"id":30103},"user":"sebastianwoinar","tags":[]},"30103":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"30104":{"varMapping":{"__isSmartRef__":true,"id":30105},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":30106},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30105":{"this":{"__isSmartRef__":true,"id":29979}},"30106":{"timestamp":{"__isSmartRef__":true,"id":30107},"user":"sebastianwoinar","tags":[]},"30107":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"30108":{"submorphs":[{"__isSmartRef__":true,"id":30109}],"scripts":[],"shape":{"__isSmartRef__":true,"id":30126},"id":"3D2B0F3E-D636-4C57-BDEA-00970F2382B6","eventHandler":{"__isSmartRef__":true,"id":30127},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":30128},"name":"node192","partsBinMetaInfo":{"__isSmartRef__":true,"id":30129},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5813},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":29826},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":30132},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(875.6,210.0)"},"30109":{"submorphs":[],"scripts":[],"id":"351BBD3E-C668-41D2-ADEA-6CD146474259","shape":{"__isSmartRef__":true,"id":30110},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":30111},"textChunks":[{"__isSmartRef__":true,"id":30123}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":30125},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":30108},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"30110":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"30111":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":30112},{"__isSmartRef__":true,"id":30114},{"__isSmartRef__":true,"id":30116},{"__isSmartRef__":true,"id":30118},{"__isSmartRef__":true,"id":30120}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":30122},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"30112":{"date":{"__isSmartRef__":true,"id":30113},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"30113":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"30114":{"date":{"__isSmartRef__":true,"id":30115},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"30115":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"30116":{"date":{"__isSmartRef__":true,"id":30117},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"30117":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"30118":{"date":{"__isSmartRef__":true,"id":30119},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"30119":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"30120":{"date":{"__isSmartRef__":true,"id":30121},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"30121":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"30122":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"30123":{"style":{"__isSmartRef__":true,"id":30124},"morph":{"__isSmartRef__":true,"id":30109},"chunkOwner":{"__isSmartRef__":true,"id":30109},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"30124":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"30125":{"morph":{"__isSmartRef__":true,"id":30109},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"30126":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"30127":{"morph":{"__isSmartRef__":true,"id":30108},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"30128":{},"30129":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":30130}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"30130":{"date":{"__isSmartRef__":true,"id":30131},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"30131":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"30132":{"buildChildNodes":{"__isSmartRef__":true,"id":30133},"getGameTree":{"__isSmartRef__":true,"id":30137},"getLevel":{"__isSmartRef__":true,"id":30141},"getLevelWeight":{"__isSmartRef__":true,"id":30145},"getWeight":{"__isSmartRef__":true,"id":30149},"setNode":{"__isSmartRef__":true,"id":30153},"setParent":{"__isSmartRef__":true,"id":30157},"getParent":{"__isSmartRef__":true,"id":30161},"deactivate":{"__isSmartRef__":true,"id":30165},"blink":{"__isSmartRef__":true,"id":30169},"ABPreturn":{"__isSmartRef__":true,"id":30173},"ABPstart":{"__isSmartRef__":true,"id":30177},"ABPcontinue":{"__isSmartRef__":true,"id":30181},"ABPshowValue":{"__isSmartRef__":true,"id":30185},"ABPgetValue":{"__isSmartRef__":true,"id":30189},"ABPhasChildNodes":{"__isSmartRef__":true,"id":30193},"onMouseDown":{"__isSmartRef__":true,"id":30197},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":30205},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":30209},"ABPmarkAsDone":{"__isSmartRef__":true,"id":30213},"ABPmarkAsActive":{"__isSmartRef__":true,"id":30217},"getStateMorph":{"__isSmartRef__":true,"id":30221},"showState":{"__isSmartRef__":true,"id":30225},"ABPfailHard":{"__isSmartRef__":true,"id":30229},"markFinalDrawWith":{"__isSmartRef__":true,"id":30233}},"30133":{"varMapping":{"__isSmartRef__":true,"id":30134},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":30135},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30134":{"this":{"__isSmartRef__":true,"id":30108}},"30135":{"timestamp":{"__isSmartRef__":true,"id":30136},"user":"sebastianwoinar","tags":[]},"30136":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"30137":{"varMapping":{"__isSmartRef__":true,"id":30138},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":30139},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30138":{"this":{"__isSmartRef__":true,"id":30108}},"30139":{"timestamp":{"__isSmartRef__":true,"id":30140},"user":"sebastianwoinar","tags":[]},"30140":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30141":{"varMapping":{"__isSmartRef__":true,"id":30142},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":30143},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30142":{"this":{"__isSmartRef__":true,"id":30108}},"30143":{"timestamp":{"__isSmartRef__":true,"id":30144},"user":"sebastianwoinar","tags":[]},"30144":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30145":{"varMapping":{"__isSmartRef__":true,"id":30146},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":30147},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30146":{"this":{"__isSmartRef__":true,"id":30108}},"30147":{"timestamp":{"__isSmartRef__":true,"id":30148},"user":"sebastianwoinar","tags":[]},"30148":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30149":{"varMapping":{"__isSmartRef__":true,"id":30150},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":30151},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30150":{"this":{"__isSmartRef__":true,"id":30108}},"30151":{"timestamp":{"__isSmartRef__":true,"id":30152},"user":"sebastianwoinar","tags":[]},"30152":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30153":{"varMapping":{"__isSmartRef__":true,"id":30154},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":30155},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30154":{"this":{"__isSmartRef__":true,"id":30108}},"30155":{"timestamp":{"__isSmartRef__":true,"id":30156},"user":"sebastianwoinar","tags":[]},"30156":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30157":{"varMapping":{"__isSmartRef__":true,"id":30158},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":30159},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30158":{"this":{"__isSmartRef__":true,"id":30108}},"30159":{"timestamp":{"__isSmartRef__":true,"id":30160},"user":"sebastianwoinar","tags":[]},"30160":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30161":{"varMapping":{"__isSmartRef__":true,"id":30162},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":30163},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30162":{"this":{"__isSmartRef__":true,"id":30108}},"30163":{"timestamp":{"__isSmartRef__":true,"id":30164},"user":"sebastianwoinar","tags":[]},"30164":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"30165":{"varMapping":{"__isSmartRef__":true,"id":30166},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":30167},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30166":{"this":{"__isSmartRef__":true,"id":30108}},"30167":{"timestamp":{"__isSmartRef__":true,"id":30168},"user":"sebastianwoinar","tags":[]},"30168":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"30169":{"varMapping":{"__isSmartRef__":true,"id":30170},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":30171},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30170":{"this":{"__isSmartRef__":true,"id":30108}},"30171":{"timestamp":{"__isSmartRef__":true,"id":30172},"user":"sebastianwoinar","tags":[]},"30172":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"30173":{"varMapping":{"__isSmartRef__":true,"id":30174},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":30175},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30174":{"this":{"__isSmartRef__":true,"id":30108}},"30175":{"timestamp":{"__isSmartRef__":true,"id":30176},"user":"sebastianwoinar","tags":[]},"30176":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"30177":{"varMapping":{"__isSmartRef__":true,"id":30178},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":30179},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30178":{"this":{"__isSmartRef__":true,"id":30108}},"30179":{"timestamp":{"__isSmartRef__":true,"id":30180},"user":"sebastianwoinar","tags":[]},"30180":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"30181":{"varMapping":{"__isSmartRef__":true,"id":30182},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":30183},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30182":{"this":{"__isSmartRef__":true,"id":30108}},"30183":{"timestamp":{"__isSmartRef__":true,"id":30184},"user":"sebastianwoinar","tags":[]},"30184":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"30185":{"varMapping":{"__isSmartRef__":true,"id":30186},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":30187},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30186":{"this":{"__isSmartRef__":true,"id":30108}},"30187":{"timestamp":{"__isSmartRef__":true,"id":30188},"user":"sebastianwoinar","tags":[]},"30188":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"30189":{"varMapping":{"__isSmartRef__":true,"id":30190},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":30191},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30190":{"this":{"__isSmartRef__":true,"id":30108}},"30191":{"timestamp":{"__isSmartRef__":true,"id":30192},"user":"sebastianwoinar","tags":[]},"30192":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"30193":{"varMapping":{"__isSmartRef__":true,"id":30194},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":30195},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30194":{"this":{"__isSmartRef__":true,"id":30108}},"30195":{"timestamp":{"__isSmartRef__":true,"id":30196},"user":"sebastianwoinar","tags":[]},"30196":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"30197":{"varMapping":{"__isSmartRef__":true,"id":30198},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":30203},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30198":{"this":{"__isSmartRef__":true,"id":30108},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":30199}},"30199":{"$super":{"__isSmartRef__":true,"id":30200}},"30200":{"varMapping":{"__isSmartRef__":true,"id":30201},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":30202},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30201":{"obj":{"__isSmartRef__":true,"id":30108},"name":"onMouseDown"},"30202":{},"30203":{"timestamp":{"__isSmartRef__":true,"id":30204},"user":"sebastianwoinar","tags":[]},"30204":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"30205":{"varMapping":{"__isSmartRef__":true,"id":30206},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":30207},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30206":{"this":{"__isSmartRef__":true,"id":30108}},"30207":{"timestamp":{"__isSmartRef__":true,"id":30208},"user":"sebastianwoinar","tags":[]},"30208":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"30209":{"varMapping":{"__isSmartRef__":true,"id":30210},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":30211},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30210":{"this":{"__isSmartRef__":true,"id":30108}},"30211":{"timestamp":{"__isSmartRef__":true,"id":30212},"user":"sebastianwoinar","tags":[]},"30212":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"30213":{"varMapping":{"__isSmartRef__":true,"id":30214},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":30215},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30214":{"this":{"__isSmartRef__":true,"id":30108}},"30215":{"timestamp":{"__isSmartRef__":true,"id":30216},"user":"sebastianwoinar","tags":[]},"30216":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"30217":{"varMapping":{"__isSmartRef__":true,"id":30218},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":30219},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30218":{"this":{"__isSmartRef__":true,"id":30108}},"30219":{"timestamp":{"__isSmartRef__":true,"id":30220},"user":"sebastianwoinar","tags":[]},"30220":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"30221":{"varMapping":{"__isSmartRef__":true,"id":30222},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":30223},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30222":{"this":{"__isSmartRef__":true,"id":30108}},"30223":{"timestamp":{"__isSmartRef__":true,"id":30224},"user":"sebastianwoinar","tags":[]},"30224":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"30225":{"varMapping":{"__isSmartRef__":true,"id":30226},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":30227},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30226":{"this":{"__isSmartRef__":true,"id":30108}},"30227":{"timestamp":{"__isSmartRef__":true,"id":30228},"user":"sebastianwoinar","tags":[]},"30228":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"30229":{"varMapping":{"__isSmartRef__":true,"id":30230},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":30231},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30230":{"this":{"__isSmartRef__":true,"id":30108}},"30231":{"timestamp":{"__isSmartRef__":true,"id":30232},"user":"sebastianwoinar","tags":[]},"30232":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"30233":{"varMapping":{"__isSmartRef__":true,"id":30234},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":30235},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30234":{"this":{"__isSmartRef__":true,"id":30108}},"30235":{"timestamp":{"__isSmartRef__":true,"id":30236},"user":"sebastianwoinar","tags":[]},"30236":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"30237":{"submorphs":[{"__isSmartRef__":true,"id":30238}],"scripts":[],"shape":{"__isSmartRef__":true,"id":30255},"id":"2135569F-FE78-4D79-92DD-2A088650D212","eventHandler":{"__isSmartRef__":true,"id":30256},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":30257},"name":"node193","partsBinMetaInfo":{"__isSmartRef__":true,"id":30258},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5815},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":29826},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":30261},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(880.7,210.0)"},"30238":{"submorphs":[],"scripts":[],"id":"43281C8C-0287-4EA6-B336-C5A6AE49F7EB","shape":{"__isSmartRef__":true,"id":30239},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":30240},"textChunks":[{"__isSmartRef__":true,"id":30252}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":30254},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":30237},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"30239":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"30240":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":30241},{"__isSmartRef__":true,"id":30243},{"__isSmartRef__":true,"id":30245},{"__isSmartRef__":true,"id":30247},{"__isSmartRef__":true,"id":30249}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":30251},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"30241":{"date":{"__isSmartRef__":true,"id":30242},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"30242":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"30243":{"date":{"__isSmartRef__":true,"id":30244},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"30244":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"30245":{"date":{"__isSmartRef__":true,"id":30246},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"30246":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"30247":{"date":{"__isSmartRef__":true,"id":30248},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"30248":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"30249":{"date":{"__isSmartRef__":true,"id":30250},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"30250":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"30251":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"30252":{"style":{"__isSmartRef__":true,"id":30253},"morph":{"__isSmartRef__":true,"id":30238},"chunkOwner":{"__isSmartRef__":true,"id":30238},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"30253":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"30254":{"morph":{"__isSmartRef__":true,"id":30238},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"30255":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"30256":{"morph":{"__isSmartRef__":true,"id":30237},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"30257":{},"30258":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":30259}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"30259":{"date":{"__isSmartRef__":true,"id":30260},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"30260":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"30261":{"buildChildNodes":{"__isSmartRef__":true,"id":30262},"getGameTree":{"__isSmartRef__":true,"id":30266},"getLevel":{"__isSmartRef__":true,"id":30270},"getLevelWeight":{"__isSmartRef__":true,"id":30274},"getWeight":{"__isSmartRef__":true,"id":30278},"setNode":{"__isSmartRef__":true,"id":30282},"setParent":{"__isSmartRef__":true,"id":30286},"getParent":{"__isSmartRef__":true,"id":30290},"deactivate":{"__isSmartRef__":true,"id":30294},"blink":{"__isSmartRef__":true,"id":30298},"ABPreturn":{"__isSmartRef__":true,"id":30302},"ABPstart":{"__isSmartRef__":true,"id":30306},"ABPcontinue":{"__isSmartRef__":true,"id":30310},"ABPshowValue":{"__isSmartRef__":true,"id":30314},"ABPgetValue":{"__isSmartRef__":true,"id":30318},"ABPhasChildNodes":{"__isSmartRef__":true,"id":30322},"onMouseDown":{"__isSmartRef__":true,"id":30326},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":30334},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":30338},"ABPmarkAsDone":{"__isSmartRef__":true,"id":30342},"ABPmarkAsActive":{"__isSmartRef__":true,"id":30346},"getStateMorph":{"__isSmartRef__":true,"id":30350},"showState":{"__isSmartRef__":true,"id":30354},"ABPfailHard":{"__isSmartRef__":true,"id":30358},"markFinalDrawWith":{"__isSmartRef__":true,"id":30362}},"30262":{"varMapping":{"__isSmartRef__":true,"id":30263},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":30264},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30263":{"this":{"__isSmartRef__":true,"id":30237}},"30264":{"timestamp":{"__isSmartRef__":true,"id":30265},"user":"sebastianwoinar","tags":[]},"30265":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"30266":{"varMapping":{"__isSmartRef__":true,"id":30267},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":30268},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30267":{"this":{"__isSmartRef__":true,"id":30237}},"30268":{"timestamp":{"__isSmartRef__":true,"id":30269},"user":"sebastianwoinar","tags":[]},"30269":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30270":{"varMapping":{"__isSmartRef__":true,"id":30271},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":30272},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30271":{"this":{"__isSmartRef__":true,"id":30237}},"30272":{"timestamp":{"__isSmartRef__":true,"id":30273},"user":"sebastianwoinar","tags":[]},"30273":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30274":{"varMapping":{"__isSmartRef__":true,"id":30275},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":30276},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30275":{"this":{"__isSmartRef__":true,"id":30237}},"30276":{"timestamp":{"__isSmartRef__":true,"id":30277},"user":"sebastianwoinar","tags":[]},"30277":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30278":{"varMapping":{"__isSmartRef__":true,"id":30279},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":30280},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30279":{"this":{"__isSmartRef__":true,"id":30237}},"30280":{"timestamp":{"__isSmartRef__":true,"id":30281},"user":"sebastianwoinar","tags":[]},"30281":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30282":{"varMapping":{"__isSmartRef__":true,"id":30283},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":30284},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30283":{"this":{"__isSmartRef__":true,"id":30237}},"30284":{"timestamp":{"__isSmartRef__":true,"id":30285},"user":"sebastianwoinar","tags":[]},"30285":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30286":{"varMapping":{"__isSmartRef__":true,"id":30287},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":30288},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30287":{"this":{"__isSmartRef__":true,"id":30237}},"30288":{"timestamp":{"__isSmartRef__":true,"id":30289},"user":"sebastianwoinar","tags":[]},"30289":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30290":{"varMapping":{"__isSmartRef__":true,"id":30291},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":30292},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30291":{"this":{"__isSmartRef__":true,"id":30237}},"30292":{"timestamp":{"__isSmartRef__":true,"id":30293},"user":"sebastianwoinar","tags":[]},"30293":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"30294":{"varMapping":{"__isSmartRef__":true,"id":30295},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":30296},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30295":{"this":{"__isSmartRef__":true,"id":30237}},"30296":{"timestamp":{"__isSmartRef__":true,"id":30297},"user":"sebastianwoinar","tags":[]},"30297":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"30298":{"varMapping":{"__isSmartRef__":true,"id":30299},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":30300},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30299":{"this":{"__isSmartRef__":true,"id":30237}},"30300":{"timestamp":{"__isSmartRef__":true,"id":30301},"user":"sebastianwoinar","tags":[]},"30301":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"30302":{"varMapping":{"__isSmartRef__":true,"id":30303},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":30304},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30303":{"this":{"__isSmartRef__":true,"id":30237}},"30304":{"timestamp":{"__isSmartRef__":true,"id":30305},"user":"sebastianwoinar","tags":[]},"30305":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"30306":{"varMapping":{"__isSmartRef__":true,"id":30307},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":30308},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30307":{"this":{"__isSmartRef__":true,"id":30237}},"30308":{"timestamp":{"__isSmartRef__":true,"id":30309},"user":"sebastianwoinar","tags":[]},"30309":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"30310":{"varMapping":{"__isSmartRef__":true,"id":30311},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":30312},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30311":{"this":{"__isSmartRef__":true,"id":30237}},"30312":{"timestamp":{"__isSmartRef__":true,"id":30313},"user":"sebastianwoinar","tags":[]},"30313":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"30314":{"varMapping":{"__isSmartRef__":true,"id":30315},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":30316},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30315":{"this":{"__isSmartRef__":true,"id":30237}},"30316":{"timestamp":{"__isSmartRef__":true,"id":30317},"user":"sebastianwoinar","tags":[]},"30317":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"30318":{"varMapping":{"__isSmartRef__":true,"id":30319},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":30320},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30319":{"this":{"__isSmartRef__":true,"id":30237}},"30320":{"timestamp":{"__isSmartRef__":true,"id":30321},"user":"sebastianwoinar","tags":[]},"30321":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"30322":{"varMapping":{"__isSmartRef__":true,"id":30323},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":30324},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30323":{"this":{"__isSmartRef__":true,"id":30237}},"30324":{"timestamp":{"__isSmartRef__":true,"id":30325},"user":"sebastianwoinar","tags":[]},"30325":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"30326":{"varMapping":{"__isSmartRef__":true,"id":30327},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":30332},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30327":{"this":{"__isSmartRef__":true,"id":30237},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":30328}},"30328":{"$super":{"__isSmartRef__":true,"id":30329}},"30329":{"varMapping":{"__isSmartRef__":true,"id":30330},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":30331},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30330":{"obj":{"__isSmartRef__":true,"id":30237},"name":"onMouseDown"},"30331":{},"30332":{"timestamp":{"__isSmartRef__":true,"id":30333},"user":"sebastianwoinar","tags":[]},"30333":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"30334":{"varMapping":{"__isSmartRef__":true,"id":30335},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":30336},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30335":{"this":{"__isSmartRef__":true,"id":30237}},"30336":{"timestamp":{"__isSmartRef__":true,"id":30337},"user":"sebastianwoinar","tags":[]},"30337":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"30338":{"varMapping":{"__isSmartRef__":true,"id":30339},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":30340},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30339":{"this":{"__isSmartRef__":true,"id":30237}},"30340":{"timestamp":{"__isSmartRef__":true,"id":30341},"user":"sebastianwoinar","tags":[]},"30341":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"30342":{"varMapping":{"__isSmartRef__":true,"id":30343},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":30344},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30343":{"this":{"__isSmartRef__":true,"id":30237}},"30344":{"timestamp":{"__isSmartRef__":true,"id":30345},"user":"sebastianwoinar","tags":[]},"30345":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"30346":{"varMapping":{"__isSmartRef__":true,"id":30347},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":30348},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30347":{"this":{"__isSmartRef__":true,"id":30237}},"30348":{"timestamp":{"__isSmartRef__":true,"id":30349},"user":"sebastianwoinar","tags":[]},"30349":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"30350":{"varMapping":{"__isSmartRef__":true,"id":30351},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":30352},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30351":{"this":{"__isSmartRef__":true,"id":30237}},"30352":{"timestamp":{"__isSmartRef__":true,"id":30353},"user":"sebastianwoinar","tags":[]},"30353":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"30354":{"varMapping":{"__isSmartRef__":true,"id":30355},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":30356},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30355":{"this":{"__isSmartRef__":true,"id":30237}},"30356":{"timestamp":{"__isSmartRef__":true,"id":30357},"user":"sebastianwoinar","tags":[]},"30357":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"30358":{"varMapping":{"__isSmartRef__":true,"id":30359},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":30360},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30359":{"this":{"__isSmartRef__":true,"id":30237}},"30360":{"timestamp":{"__isSmartRef__":true,"id":30361},"user":"sebastianwoinar","tags":[]},"30361":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"30362":{"varMapping":{"__isSmartRef__":true,"id":30363},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":30364},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30363":{"this":{"__isSmartRef__":true,"id":30237}},"30364":{"timestamp":{"__isSmartRef__":true,"id":30365},"user":"sebastianwoinar","tags":[]},"30365":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"30366":{"submorphs":[{"__isSmartRef__":true,"id":30367}],"scripts":[],"shape":{"__isSmartRef__":true,"id":30384},"id":"98D23E35-4253-45D5-B8E8-970F8CF3C216","eventHandler":{"__isSmartRef__":true,"id":30385},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":30386},"name":"node194","partsBinMetaInfo":{"__isSmartRef__":true,"id":30387},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5817},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":29826},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":30390},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(885.9,210.0)"},"30367":{"submorphs":[],"scripts":[],"id":"1F1EAD66-B434-434F-998C-C68B1FE9C90F","shape":{"__isSmartRef__":true,"id":30368},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":30369},"textChunks":[{"__isSmartRef__":true,"id":30381}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":30383},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":30366},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"30368":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"30369":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":30370},{"__isSmartRef__":true,"id":30372},{"__isSmartRef__":true,"id":30374},{"__isSmartRef__":true,"id":30376},{"__isSmartRef__":true,"id":30378}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":30380},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"30370":{"date":{"__isSmartRef__":true,"id":30371},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"30371":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"30372":{"date":{"__isSmartRef__":true,"id":30373},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"30373":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"30374":{"date":{"__isSmartRef__":true,"id":30375},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"30375":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"30376":{"date":{"__isSmartRef__":true,"id":30377},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"30377":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"30378":{"date":{"__isSmartRef__":true,"id":30379},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"30379":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"30380":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"30381":{"style":{"__isSmartRef__":true,"id":30382},"morph":{"__isSmartRef__":true,"id":30367},"chunkOwner":{"__isSmartRef__":true,"id":30367},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"30382":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"30383":{"morph":{"__isSmartRef__":true,"id":30367},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"30384":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"30385":{"morph":{"__isSmartRef__":true,"id":30366},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"30386":{},"30387":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":30388}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"30388":{"date":{"__isSmartRef__":true,"id":30389},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"30389":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"30390":{"buildChildNodes":{"__isSmartRef__":true,"id":30391},"getGameTree":{"__isSmartRef__":true,"id":30395},"getLevel":{"__isSmartRef__":true,"id":30399},"getLevelWeight":{"__isSmartRef__":true,"id":30403},"getWeight":{"__isSmartRef__":true,"id":30407},"setNode":{"__isSmartRef__":true,"id":30411},"setParent":{"__isSmartRef__":true,"id":30415},"getParent":{"__isSmartRef__":true,"id":30419},"deactivate":{"__isSmartRef__":true,"id":30423},"blink":{"__isSmartRef__":true,"id":30427},"ABPreturn":{"__isSmartRef__":true,"id":30431},"ABPstart":{"__isSmartRef__":true,"id":30435},"ABPcontinue":{"__isSmartRef__":true,"id":30439},"ABPshowValue":{"__isSmartRef__":true,"id":30443},"ABPgetValue":{"__isSmartRef__":true,"id":30447},"ABPhasChildNodes":{"__isSmartRef__":true,"id":30451},"onMouseDown":{"__isSmartRef__":true,"id":30455},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":30463},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":30467},"ABPmarkAsDone":{"__isSmartRef__":true,"id":30471},"ABPmarkAsActive":{"__isSmartRef__":true,"id":30475},"getStateMorph":{"__isSmartRef__":true,"id":30479},"showState":{"__isSmartRef__":true,"id":30483},"ABPfailHard":{"__isSmartRef__":true,"id":30487},"markFinalDrawWith":{"__isSmartRef__":true,"id":30491}},"30391":{"varMapping":{"__isSmartRef__":true,"id":30392},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":30393},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30392":{"this":{"__isSmartRef__":true,"id":30366}},"30393":{"timestamp":{"__isSmartRef__":true,"id":30394},"user":"sebastianwoinar","tags":[]},"30394":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"30395":{"varMapping":{"__isSmartRef__":true,"id":30396},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":30397},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30396":{"this":{"__isSmartRef__":true,"id":30366}},"30397":{"timestamp":{"__isSmartRef__":true,"id":30398},"user":"sebastianwoinar","tags":[]},"30398":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30399":{"varMapping":{"__isSmartRef__":true,"id":30400},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":30401},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30400":{"this":{"__isSmartRef__":true,"id":30366}},"30401":{"timestamp":{"__isSmartRef__":true,"id":30402},"user":"sebastianwoinar","tags":[]},"30402":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30403":{"varMapping":{"__isSmartRef__":true,"id":30404},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":30405},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30404":{"this":{"__isSmartRef__":true,"id":30366}},"30405":{"timestamp":{"__isSmartRef__":true,"id":30406},"user":"sebastianwoinar","tags":[]},"30406":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30407":{"varMapping":{"__isSmartRef__":true,"id":30408},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":30409},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30408":{"this":{"__isSmartRef__":true,"id":30366}},"30409":{"timestamp":{"__isSmartRef__":true,"id":30410},"user":"sebastianwoinar","tags":[]},"30410":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30411":{"varMapping":{"__isSmartRef__":true,"id":30412},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":30413},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30412":{"this":{"__isSmartRef__":true,"id":30366}},"30413":{"timestamp":{"__isSmartRef__":true,"id":30414},"user":"sebastianwoinar","tags":[]},"30414":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30415":{"varMapping":{"__isSmartRef__":true,"id":30416},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":30417},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30416":{"this":{"__isSmartRef__":true,"id":30366}},"30417":{"timestamp":{"__isSmartRef__":true,"id":30418},"user":"sebastianwoinar","tags":[]},"30418":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30419":{"varMapping":{"__isSmartRef__":true,"id":30420},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":30421},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30420":{"this":{"__isSmartRef__":true,"id":30366}},"30421":{"timestamp":{"__isSmartRef__":true,"id":30422},"user":"sebastianwoinar","tags":[]},"30422":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"30423":{"varMapping":{"__isSmartRef__":true,"id":30424},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":30425},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30424":{"this":{"__isSmartRef__":true,"id":30366}},"30425":{"timestamp":{"__isSmartRef__":true,"id":30426},"user":"sebastianwoinar","tags":[]},"30426":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"30427":{"varMapping":{"__isSmartRef__":true,"id":30428},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":30429},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30428":{"this":{"__isSmartRef__":true,"id":30366}},"30429":{"timestamp":{"__isSmartRef__":true,"id":30430},"user":"sebastianwoinar","tags":[]},"30430":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"30431":{"varMapping":{"__isSmartRef__":true,"id":30432},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":30433},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30432":{"this":{"__isSmartRef__":true,"id":30366}},"30433":{"timestamp":{"__isSmartRef__":true,"id":30434},"user":"sebastianwoinar","tags":[]},"30434":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"30435":{"varMapping":{"__isSmartRef__":true,"id":30436},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":30437},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30436":{"this":{"__isSmartRef__":true,"id":30366}},"30437":{"timestamp":{"__isSmartRef__":true,"id":30438},"user":"sebastianwoinar","tags":[]},"30438":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"30439":{"varMapping":{"__isSmartRef__":true,"id":30440},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":30441},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30440":{"this":{"__isSmartRef__":true,"id":30366}},"30441":{"timestamp":{"__isSmartRef__":true,"id":30442},"user":"sebastianwoinar","tags":[]},"30442":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"30443":{"varMapping":{"__isSmartRef__":true,"id":30444},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":30445},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30444":{"this":{"__isSmartRef__":true,"id":30366}},"30445":{"timestamp":{"__isSmartRef__":true,"id":30446},"user":"sebastianwoinar","tags":[]},"30446":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"30447":{"varMapping":{"__isSmartRef__":true,"id":30448},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":30449},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30448":{"this":{"__isSmartRef__":true,"id":30366}},"30449":{"timestamp":{"__isSmartRef__":true,"id":30450},"user":"sebastianwoinar","tags":[]},"30450":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"30451":{"varMapping":{"__isSmartRef__":true,"id":30452},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":30453},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30452":{"this":{"__isSmartRef__":true,"id":30366}},"30453":{"timestamp":{"__isSmartRef__":true,"id":30454},"user":"sebastianwoinar","tags":[]},"30454":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"30455":{"varMapping":{"__isSmartRef__":true,"id":30456},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":30461},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30456":{"this":{"__isSmartRef__":true,"id":30366},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":30457}},"30457":{"$super":{"__isSmartRef__":true,"id":30458}},"30458":{"varMapping":{"__isSmartRef__":true,"id":30459},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":30460},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30459":{"obj":{"__isSmartRef__":true,"id":30366},"name":"onMouseDown"},"30460":{},"30461":{"timestamp":{"__isSmartRef__":true,"id":30462},"user":"sebastianwoinar","tags":[]},"30462":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"30463":{"varMapping":{"__isSmartRef__":true,"id":30464},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":30465},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30464":{"this":{"__isSmartRef__":true,"id":30366}},"30465":{"timestamp":{"__isSmartRef__":true,"id":30466},"user":"sebastianwoinar","tags":[]},"30466":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"30467":{"varMapping":{"__isSmartRef__":true,"id":30468},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":30469},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30468":{"this":{"__isSmartRef__":true,"id":30366}},"30469":{"timestamp":{"__isSmartRef__":true,"id":30470},"user":"sebastianwoinar","tags":[]},"30470":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"30471":{"varMapping":{"__isSmartRef__":true,"id":30472},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":30473},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30472":{"this":{"__isSmartRef__":true,"id":30366}},"30473":{"timestamp":{"__isSmartRef__":true,"id":30474},"user":"sebastianwoinar","tags":[]},"30474":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"30475":{"varMapping":{"__isSmartRef__":true,"id":30476},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":30477},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30476":{"this":{"__isSmartRef__":true,"id":30366}},"30477":{"timestamp":{"__isSmartRef__":true,"id":30478},"user":"sebastianwoinar","tags":[]},"30478":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"30479":{"varMapping":{"__isSmartRef__":true,"id":30480},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":30481},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30480":{"this":{"__isSmartRef__":true,"id":30366}},"30481":{"timestamp":{"__isSmartRef__":true,"id":30482},"user":"sebastianwoinar","tags":[]},"30482":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"30483":{"varMapping":{"__isSmartRef__":true,"id":30484},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":30485},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30484":{"this":{"__isSmartRef__":true,"id":30366}},"30485":{"timestamp":{"__isSmartRef__":true,"id":30486},"user":"sebastianwoinar","tags":[]},"30486":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"30487":{"varMapping":{"__isSmartRef__":true,"id":30488},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":30489},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30488":{"this":{"__isSmartRef__":true,"id":30366}},"30489":{"timestamp":{"__isSmartRef__":true,"id":30490},"user":"sebastianwoinar","tags":[]},"30490":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"30491":{"varMapping":{"__isSmartRef__":true,"id":30492},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":30493},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30492":{"this":{"__isSmartRef__":true,"id":30366}},"30493":{"timestamp":{"__isSmartRef__":true,"id":30494},"user":"sebastianwoinar","tags":[]},"30494":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"30495":{"buildChildNodes":{"__isSmartRef__":true,"id":30496},"getGameTree":{"__isSmartRef__":true,"id":30500},"getLevel":{"__isSmartRef__":true,"id":30504},"getLevelWeight":{"__isSmartRef__":true,"id":30508},"getWeight":{"__isSmartRef__":true,"id":30512},"setNode":{"__isSmartRef__":true,"id":30516},"setParent":{"__isSmartRef__":true,"id":30520},"getParent":{"__isSmartRef__":true,"id":30524},"deactivate":{"__isSmartRef__":true,"id":30528},"blink":{"__isSmartRef__":true,"id":30532},"ABPreturn":{"__isSmartRef__":true,"id":30536},"ABPstart":{"__isSmartRef__":true,"id":30540},"ABPcontinue":{"__isSmartRef__":true,"id":30544},"ABPshowValue":{"__isSmartRef__":true,"id":30548},"ABPgetValue":{"__isSmartRef__":true,"id":30552},"ABPhasChildNodes":{"__isSmartRef__":true,"id":30556},"onMouseDown":{"__isSmartRef__":true,"id":30560},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":30568},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":30572},"ABPmarkAsDone":{"__isSmartRef__":true,"id":30576},"ABPmarkAsActive":{"__isSmartRef__":true,"id":30580},"getStateMorph":{"__isSmartRef__":true,"id":30584},"showState":{"__isSmartRef__":true,"id":30588},"ABPfailHard":{"__isSmartRef__":true,"id":30592},"markFinalDrawWith":{"__isSmartRef__":true,"id":30596}},"30496":{"varMapping":{"__isSmartRef__":true,"id":30497},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":30498},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30497":{"this":{"__isSmartRef__":true,"id":29826}},"30498":{"timestamp":{"__isSmartRef__":true,"id":30499},"user":"sebastianwoinar","tags":[]},"30499":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"30500":{"varMapping":{"__isSmartRef__":true,"id":30501},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":30502},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30501":{"this":{"__isSmartRef__":true,"id":29826}},"30502":{"timestamp":{"__isSmartRef__":true,"id":30503},"user":"sebastianwoinar","tags":[]},"30503":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30504":{"varMapping":{"__isSmartRef__":true,"id":30505},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":30506},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30505":{"this":{"__isSmartRef__":true,"id":29826}},"30506":{"timestamp":{"__isSmartRef__":true,"id":30507},"user":"sebastianwoinar","tags":[]},"30507":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30508":{"varMapping":{"__isSmartRef__":true,"id":30509},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":30510},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30509":{"this":{"__isSmartRef__":true,"id":29826}},"30510":{"timestamp":{"__isSmartRef__":true,"id":30511},"user":"sebastianwoinar","tags":[]},"30511":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30512":{"varMapping":{"__isSmartRef__":true,"id":30513},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":30514},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30513":{"this":{"__isSmartRef__":true,"id":29826}},"30514":{"timestamp":{"__isSmartRef__":true,"id":30515},"user":"sebastianwoinar","tags":[]},"30515":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30516":{"varMapping":{"__isSmartRef__":true,"id":30517},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":30518},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30517":{"this":{"__isSmartRef__":true,"id":29826}},"30518":{"timestamp":{"__isSmartRef__":true,"id":30519},"user":"sebastianwoinar","tags":[]},"30519":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30520":{"varMapping":{"__isSmartRef__":true,"id":30521},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":30522},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30521":{"this":{"__isSmartRef__":true,"id":29826}},"30522":{"timestamp":{"__isSmartRef__":true,"id":30523},"user":"sebastianwoinar","tags":[]},"30523":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30524":{"varMapping":{"__isSmartRef__":true,"id":30525},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":30526},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30525":{"this":{"__isSmartRef__":true,"id":29826}},"30526":{"timestamp":{"__isSmartRef__":true,"id":30527},"user":"sebastianwoinar","tags":[]},"30527":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"30528":{"varMapping":{"__isSmartRef__":true,"id":30529},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":30530},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30529":{"this":{"__isSmartRef__":true,"id":29826}},"30530":{"timestamp":{"__isSmartRef__":true,"id":30531},"user":"sebastianwoinar","tags":[]},"30531":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"30532":{"varMapping":{"__isSmartRef__":true,"id":30533},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":30534},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30533":{"this":{"__isSmartRef__":true,"id":29826}},"30534":{"timestamp":{"__isSmartRef__":true,"id":30535},"user":"sebastianwoinar","tags":[]},"30535":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"30536":{"varMapping":{"__isSmartRef__":true,"id":30537},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":30538},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30537":{"this":{"__isSmartRef__":true,"id":29826}},"30538":{"timestamp":{"__isSmartRef__":true,"id":30539},"user":"sebastianwoinar","tags":[]},"30539":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"30540":{"varMapping":{"__isSmartRef__":true,"id":30541},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":30542},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30541":{"this":{"__isSmartRef__":true,"id":29826}},"30542":{"timestamp":{"__isSmartRef__":true,"id":30543},"user":"sebastianwoinar","tags":[]},"30543":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"30544":{"varMapping":{"__isSmartRef__":true,"id":30545},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":30546},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30545":{"this":{"__isSmartRef__":true,"id":29826}},"30546":{"timestamp":{"__isSmartRef__":true,"id":30547},"user":"sebastianwoinar","tags":[]},"30547":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"30548":{"varMapping":{"__isSmartRef__":true,"id":30549},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":30550},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30549":{"this":{"__isSmartRef__":true,"id":29826}},"30550":{"timestamp":{"__isSmartRef__":true,"id":30551},"user":"sebastianwoinar","tags":[]},"30551":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"30552":{"varMapping":{"__isSmartRef__":true,"id":30553},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":30554},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30553":{"this":{"__isSmartRef__":true,"id":29826}},"30554":{"timestamp":{"__isSmartRef__":true,"id":30555},"user":"sebastianwoinar","tags":[]},"30555":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"30556":{"varMapping":{"__isSmartRef__":true,"id":30557},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":30558},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30557":{"this":{"__isSmartRef__":true,"id":29826}},"30558":{"timestamp":{"__isSmartRef__":true,"id":30559},"user":"sebastianwoinar","tags":[]},"30559":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"30560":{"varMapping":{"__isSmartRef__":true,"id":30561},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":30566},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30561":{"this":{"__isSmartRef__":true,"id":29826},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":30562}},"30562":{"$super":{"__isSmartRef__":true,"id":30563}},"30563":{"varMapping":{"__isSmartRef__":true,"id":30564},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":30565},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30564":{"obj":{"__isSmartRef__":true,"id":29826},"name":"onMouseDown"},"30565":{},"30566":{"timestamp":{"__isSmartRef__":true,"id":30567},"user":"sebastianwoinar","tags":[]},"30567":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"30568":{"varMapping":{"__isSmartRef__":true,"id":30569},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":30570},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30569":{"this":{"__isSmartRef__":true,"id":29826}},"30570":{"timestamp":{"__isSmartRef__":true,"id":30571},"user":"sebastianwoinar","tags":[]},"30571":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"30572":{"varMapping":{"__isSmartRef__":true,"id":30573},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":30574},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30573":{"this":{"__isSmartRef__":true,"id":29826}},"30574":{"timestamp":{"__isSmartRef__":true,"id":30575},"user":"sebastianwoinar","tags":[]},"30575":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"30576":{"varMapping":{"__isSmartRef__":true,"id":30577},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":30578},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30577":{"this":{"__isSmartRef__":true,"id":29826}},"30578":{"timestamp":{"__isSmartRef__":true,"id":30579},"user":"sebastianwoinar","tags":[]},"30579":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"30580":{"varMapping":{"__isSmartRef__":true,"id":30581},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":30582},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30581":{"this":{"__isSmartRef__":true,"id":29826}},"30582":{"timestamp":{"__isSmartRef__":true,"id":30583},"user":"sebastianwoinar","tags":[]},"30583":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"30584":{"varMapping":{"__isSmartRef__":true,"id":30585},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":30586},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30585":{"this":{"__isSmartRef__":true,"id":29826}},"30586":{"timestamp":{"__isSmartRef__":true,"id":30587},"user":"sebastianwoinar","tags":[]},"30587":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"30588":{"varMapping":{"__isSmartRef__":true,"id":30589},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":30590},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30589":{"this":{"__isSmartRef__":true,"id":29826}},"30590":{"timestamp":{"__isSmartRef__":true,"id":30591},"user":"sebastianwoinar","tags":[]},"30591":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"30592":{"varMapping":{"__isSmartRef__":true,"id":30593},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":30594},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30593":{"this":{"__isSmartRef__":true,"id":29826}},"30594":{"timestamp":{"__isSmartRef__":true,"id":30595},"user":"sebastianwoinar","tags":[]},"30595":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"30596":{"varMapping":{"__isSmartRef__":true,"id":30597},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":30598},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30597":{"this":{"__isSmartRef__":true,"id":29826}},"30598":{"timestamp":{"__isSmartRef__":true,"id":30599},"user":"sebastianwoinar","tags":[]},"30599":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"30600":{"submorphs":[{"__isSmartRef__":true,"id":30601}],"scripts":[],"shape":{"__isSmartRef__":true,"id":30618},"id":"216068EA-0073-48D9-BC9B-816836D7C208","eventHandler":{"__isSmartRef__":true,"id":30619},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":30620},"name":"node195","partsBinMetaInfo":{"__isSmartRef__":true,"id":30621},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5819},"owner":{"__isSmartRef__":true,"id":5408},"childNodes":[{"__isSmartRef__":true,"id":30624},{"__isSmartRef__":true,"id":30753},{"__isSmartRef__":true,"id":30882},{"__isSmartRef__":true,"id":31011},{"__isSmartRef__":true,"id":31140},{"__isSmartRef__":true,"id":31269},{"__isSmartRef__":true,"id":31398},{"__isSmartRef__":true,"id":31527},{"__isSmartRef__":true,"id":31656}],"parent":{"__isSmartRef__":true,"id":25287},"level":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":31785},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(901.5,160.0)"},"30601":{"submorphs":[],"scripts":[],"id":"4592AFC7-3D32-4A08-84A0-390B1F2BCDB3","shape":{"__isSmartRef__":true,"id":30602},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":30603},"textChunks":[{"__isSmartRef__":true,"id":30615}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":30617},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":30600},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"30602":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"30603":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":30604},{"__isSmartRef__":true,"id":30606},{"__isSmartRef__":true,"id":30608},{"__isSmartRef__":true,"id":30610},{"__isSmartRef__":true,"id":30612}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":30614},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"30604":{"date":{"__isSmartRef__":true,"id":30605},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"30605":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"30606":{"date":{"__isSmartRef__":true,"id":30607},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"30607":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"30608":{"date":{"__isSmartRef__":true,"id":30609},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"30609":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"30610":{"date":{"__isSmartRef__":true,"id":30611},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"30611":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"30612":{"date":{"__isSmartRef__":true,"id":30613},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"30613":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"30614":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"30615":{"style":{"__isSmartRef__":true,"id":30616},"morph":{"__isSmartRef__":true,"id":30601},"chunkOwner":{"__isSmartRef__":true,"id":30601},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"30616":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"30617":{"morph":{"__isSmartRef__":true,"id":30601},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"30618":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"30619":{"morph":{"__isSmartRef__":true,"id":30600},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"30620":{},"30621":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":30622}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"30622":{"date":{"__isSmartRef__":true,"id":30623},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"30623":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"30624":{"submorphs":[{"__isSmartRef__":true,"id":30625}],"scripts":[],"shape":{"__isSmartRef__":true,"id":30642},"id":"A3EBC108-0784-4357-9585-0B0C6FE7D950","eventHandler":{"__isSmartRef__":true,"id":30643},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":30644},"name":"node196","partsBinMetaInfo":{"__isSmartRef__":true,"id":30645},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5821},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":30600},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":30648},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(891.1,210.0)"},"30625":{"submorphs":[],"scripts":[],"id":"209BC457-27CB-4E78-9F74-9633DB9DCCE7","shape":{"__isSmartRef__":true,"id":30626},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":30627},"textChunks":[{"__isSmartRef__":true,"id":30639}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":30641},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":30624},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"30626":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"30627":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":30628},{"__isSmartRef__":true,"id":30630},{"__isSmartRef__":true,"id":30632},{"__isSmartRef__":true,"id":30634},{"__isSmartRef__":true,"id":30636}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":30638},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"30628":{"date":{"__isSmartRef__":true,"id":30629},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"30629":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"30630":{"date":{"__isSmartRef__":true,"id":30631},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"30631":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"30632":{"date":{"__isSmartRef__":true,"id":30633},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"30633":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"30634":{"date":{"__isSmartRef__":true,"id":30635},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"30635":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"30636":{"date":{"__isSmartRef__":true,"id":30637},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"30637":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"30638":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"30639":{"style":{"__isSmartRef__":true,"id":30640},"morph":{"__isSmartRef__":true,"id":30625},"chunkOwner":{"__isSmartRef__":true,"id":30625},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"30640":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"30641":{"morph":{"__isSmartRef__":true,"id":30625},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"30642":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"30643":{"morph":{"__isSmartRef__":true,"id":30624},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"30644":{},"30645":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":30646}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"30646":{"date":{"__isSmartRef__":true,"id":30647},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"30647":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"30648":{"buildChildNodes":{"__isSmartRef__":true,"id":30649},"getGameTree":{"__isSmartRef__":true,"id":30653},"getLevel":{"__isSmartRef__":true,"id":30657},"getLevelWeight":{"__isSmartRef__":true,"id":30661},"getWeight":{"__isSmartRef__":true,"id":30665},"setNode":{"__isSmartRef__":true,"id":30669},"setParent":{"__isSmartRef__":true,"id":30673},"getParent":{"__isSmartRef__":true,"id":30677},"deactivate":{"__isSmartRef__":true,"id":30681},"blink":{"__isSmartRef__":true,"id":30685},"ABPreturn":{"__isSmartRef__":true,"id":30689},"ABPstart":{"__isSmartRef__":true,"id":30693},"ABPcontinue":{"__isSmartRef__":true,"id":30697},"ABPshowValue":{"__isSmartRef__":true,"id":30701},"ABPgetValue":{"__isSmartRef__":true,"id":30705},"ABPhasChildNodes":{"__isSmartRef__":true,"id":30709},"onMouseDown":{"__isSmartRef__":true,"id":30713},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":30721},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":30725},"ABPmarkAsDone":{"__isSmartRef__":true,"id":30729},"ABPmarkAsActive":{"__isSmartRef__":true,"id":30733},"getStateMorph":{"__isSmartRef__":true,"id":30737},"showState":{"__isSmartRef__":true,"id":30741},"ABPfailHard":{"__isSmartRef__":true,"id":30745},"markFinalDrawWith":{"__isSmartRef__":true,"id":30749}},"30649":{"varMapping":{"__isSmartRef__":true,"id":30650},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":30651},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30650":{"this":{"__isSmartRef__":true,"id":30624}},"30651":{"timestamp":{"__isSmartRef__":true,"id":30652},"user":"sebastianwoinar","tags":[]},"30652":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"30653":{"varMapping":{"__isSmartRef__":true,"id":30654},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":30655},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30654":{"this":{"__isSmartRef__":true,"id":30624}},"30655":{"timestamp":{"__isSmartRef__":true,"id":30656},"user":"sebastianwoinar","tags":[]},"30656":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30657":{"varMapping":{"__isSmartRef__":true,"id":30658},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":30659},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30658":{"this":{"__isSmartRef__":true,"id":30624}},"30659":{"timestamp":{"__isSmartRef__":true,"id":30660},"user":"sebastianwoinar","tags":[]},"30660":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30661":{"varMapping":{"__isSmartRef__":true,"id":30662},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":30663},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30662":{"this":{"__isSmartRef__":true,"id":30624}},"30663":{"timestamp":{"__isSmartRef__":true,"id":30664},"user":"sebastianwoinar","tags":[]},"30664":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30665":{"varMapping":{"__isSmartRef__":true,"id":30666},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":30667},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30666":{"this":{"__isSmartRef__":true,"id":30624}},"30667":{"timestamp":{"__isSmartRef__":true,"id":30668},"user":"sebastianwoinar","tags":[]},"30668":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30669":{"varMapping":{"__isSmartRef__":true,"id":30670},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":30671},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30670":{"this":{"__isSmartRef__":true,"id":30624}},"30671":{"timestamp":{"__isSmartRef__":true,"id":30672},"user":"sebastianwoinar","tags":[]},"30672":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30673":{"varMapping":{"__isSmartRef__":true,"id":30674},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":30675},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30674":{"this":{"__isSmartRef__":true,"id":30624}},"30675":{"timestamp":{"__isSmartRef__":true,"id":30676},"user":"sebastianwoinar","tags":[]},"30676":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30677":{"varMapping":{"__isSmartRef__":true,"id":30678},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":30679},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30678":{"this":{"__isSmartRef__":true,"id":30624}},"30679":{"timestamp":{"__isSmartRef__":true,"id":30680},"user":"sebastianwoinar","tags":[]},"30680":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"30681":{"varMapping":{"__isSmartRef__":true,"id":30682},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":30683},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30682":{"this":{"__isSmartRef__":true,"id":30624}},"30683":{"timestamp":{"__isSmartRef__":true,"id":30684},"user":"sebastianwoinar","tags":[]},"30684":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"30685":{"varMapping":{"__isSmartRef__":true,"id":30686},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":30687},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30686":{"this":{"__isSmartRef__":true,"id":30624}},"30687":{"timestamp":{"__isSmartRef__":true,"id":30688},"user":"sebastianwoinar","tags":[]},"30688":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"30689":{"varMapping":{"__isSmartRef__":true,"id":30690},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":30691},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30690":{"this":{"__isSmartRef__":true,"id":30624}},"30691":{"timestamp":{"__isSmartRef__":true,"id":30692},"user":"sebastianwoinar","tags":[]},"30692":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"30693":{"varMapping":{"__isSmartRef__":true,"id":30694},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":30695},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30694":{"this":{"__isSmartRef__":true,"id":30624}},"30695":{"timestamp":{"__isSmartRef__":true,"id":30696},"user":"sebastianwoinar","tags":[]},"30696":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"30697":{"varMapping":{"__isSmartRef__":true,"id":30698},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":30699},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30698":{"this":{"__isSmartRef__":true,"id":30624}},"30699":{"timestamp":{"__isSmartRef__":true,"id":30700},"user":"sebastianwoinar","tags":[]},"30700":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"30701":{"varMapping":{"__isSmartRef__":true,"id":30702},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":30703},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30702":{"this":{"__isSmartRef__":true,"id":30624}},"30703":{"timestamp":{"__isSmartRef__":true,"id":30704},"user":"sebastianwoinar","tags":[]},"30704":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"30705":{"varMapping":{"__isSmartRef__":true,"id":30706},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":30707},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30706":{"this":{"__isSmartRef__":true,"id":30624}},"30707":{"timestamp":{"__isSmartRef__":true,"id":30708},"user":"sebastianwoinar","tags":[]},"30708":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"30709":{"varMapping":{"__isSmartRef__":true,"id":30710},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":30711},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30710":{"this":{"__isSmartRef__":true,"id":30624}},"30711":{"timestamp":{"__isSmartRef__":true,"id":30712},"user":"sebastianwoinar","tags":[]},"30712":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"30713":{"varMapping":{"__isSmartRef__":true,"id":30714},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":30719},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30714":{"this":{"__isSmartRef__":true,"id":30624},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":30715}},"30715":{"$super":{"__isSmartRef__":true,"id":30716}},"30716":{"varMapping":{"__isSmartRef__":true,"id":30717},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":30718},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30717":{"obj":{"__isSmartRef__":true,"id":30624},"name":"onMouseDown"},"30718":{},"30719":{"timestamp":{"__isSmartRef__":true,"id":30720},"user":"sebastianwoinar","tags":[]},"30720":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"30721":{"varMapping":{"__isSmartRef__":true,"id":30722},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":30723},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30722":{"this":{"__isSmartRef__":true,"id":30624}},"30723":{"timestamp":{"__isSmartRef__":true,"id":30724},"user":"sebastianwoinar","tags":[]},"30724":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"30725":{"varMapping":{"__isSmartRef__":true,"id":30726},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":30727},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30726":{"this":{"__isSmartRef__":true,"id":30624}},"30727":{"timestamp":{"__isSmartRef__":true,"id":30728},"user":"sebastianwoinar","tags":[]},"30728":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"30729":{"varMapping":{"__isSmartRef__":true,"id":30730},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":30731},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30730":{"this":{"__isSmartRef__":true,"id":30624}},"30731":{"timestamp":{"__isSmartRef__":true,"id":30732},"user":"sebastianwoinar","tags":[]},"30732":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"30733":{"varMapping":{"__isSmartRef__":true,"id":30734},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":30735},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30734":{"this":{"__isSmartRef__":true,"id":30624}},"30735":{"timestamp":{"__isSmartRef__":true,"id":30736},"user":"sebastianwoinar","tags":[]},"30736":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"30737":{"varMapping":{"__isSmartRef__":true,"id":30738},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":30739},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30738":{"this":{"__isSmartRef__":true,"id":30624}},"30739":{"timestamp":{"__isSmartRef__":true,"id":30740},"user":"sebastianwoinar","tags":[]},"30740":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"30741":{"varMapping":{"__isSmartRef__":true,"id":30742},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":30743},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30742":{"this":{"__isSmartRef__":true,"id":30624}},"30743":{"timestamp":{"__isSmartRef__":true,"id":30744},"user":"sebastianwoinar","tags":[]},"30744":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"30745":{"varMapping":{"__isSmartRef__":true,"id":30746},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":30747},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30746":{"this":{"__isSmartRef__":true,"id":30624}},"30747":{"timestamp":{"__isSmartRef__":true,"id":30748},"user":"sebastianwoinar","tags":[]},"30748":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"30749":{"varMapping":{"__isSmartRef__":true,"id":30750},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":30751},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30750":{"this":{"__isSmartRef__":true,"id":30624}},"30751":{"timestamp":{"__isSmartRef__":true,"id":30752},"user":"sebastianwoinar","tags":[]},"30752":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"30753":{"submorphs":[{"__isSmartRef__":true,"id":30754}],"scripts":[],"shape":{"__isSmartRef__":true,"id":30771},"id":"CC9879DC-4531-4A69-8B47-8596264F6E6D","eventHandler":{"__isSmartRef__":true,"id":30772},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":30773},"name":"node197","partsBinMetaInfo":{"__isSmartRef__":true,"id":30774},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5823},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":30600},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":30777},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(896.3,210.0)"},"30754":{"submorphs":[],"scripts":[],"id":"8ED6008F-4E7E-4A34-97BE-2A67D9E3374E","shape":{"__isSmartRef__":true,"id":30755},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":30756},"textChunks":[{"__isSmartRef__":true,"id":30768}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":30770},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":30753},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"30755":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"30756":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":30757},{"__isSmartRef__":true,"id":30759},{"__isSmartRef__":true,"id":30761},{"__isSmartRef__":true,"id":30763},{"__isSmartRef__":true,"id":30765}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":30767},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"30757":{"date":{"__isSmartRef__":true,"id":30758},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"30758":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"30759":{"date":{"__isSmartRef__":true,"id":30760},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"30760":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"30761":{"date":{"__isSmartRef__":true,"id":30762},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"30762":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"30763":{"date":{"__isSmartRef__":true,"id":30764},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"30764":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"30765":{"date":{"__isSmartRef__":true,"id":30766},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"30766":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"30767":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"30768":{"style":{"__isSmartRef__":true,"id":30769},"morph":{"__isSmartRef__":true,"id":30754},"chunkOwner":{"__isSmartRef__":true,"id":30754},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"30769":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"30770":{"morph":{"__isSmartRef__":true,"id":30754},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"30771":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"30772":{"morph":{"__isSmartRef__":true,"id":30753},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"30773":{},"30774":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":30775}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"30775":{"date":{"__isSmartRef__":true,"id":30776},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"30776":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"30777":{"buildChildNodes":{"__isSmartRef__":true,"id":30778},"getGameTree":{"__isSmartRef__":true,"id":30782},"getLevel":{"__isSmartRef__":true,"id":30786},"getLevelWeight":{"__isSmartRef__":true,"id":30790},"getWeight":{"__isSmartRef__":true,"id":30794},"setNode":{"__isSmartRef__":true,"id":30798},"setParent":{"__isSmartRef__":true,"id":30802},"getParent":{"__isSmartRef__":true,"id":30806},"deactivate":{"__isSmartRef__":true,"id":30810},"blink":{"__isSmartRef__":true,"id":30814},"ABPreturn":{"__isSmartRef__":true,"id":30818},"ABPstart":{"__isSmartRef__":true,"id":30822},"ABPcontinue":{"__isSmartRef__":true,"id":30826},"ABPshowValue":{"__isSmartRef__":true,"id":30830},"ABPgetValue":{"__isSmartRef__":true,"id":30834},"ABPhasChildNodes":{"__isSmartRef__":true,"id":30838},"onMouseDown":{"__isSmartRef__":true,"id":30842},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":30850},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":30854},"ABPmarkAsDone":{"__isSmartRef__":true,"id":30858},"ABPmarkAsActive":{"__isSmartRef__":true,"id":30862},"getStateMorph":{"__isSmartRef__":true,"id":30866},"showState":{"__isSmartRef__":true,"id":30870},"ABPfailHard":{"__isSmartRef__":true,"id":30874},"markFinalDrawWith":{"__isSmartRef__":true,"id":30878}},"30778":{"varMapping":{"__isSmartRef__":true,"id":30779},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":30780},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30779":{"this":{"__isSmartRef__":true,"id":30753}},"30780":{"timestamp":{"__isSmartRef__":true,"id":30781},"user":"sebastianwoinar","tags":[]},"30781":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"30782":{"varMapping":{"__isSmartRef__":true,"id":30783},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":30784},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30783":{"this":{"__isSmartRef__":true,"id":30753}},"30784":{"timestamp":{"__isSmartRef__":true,"id":30785},"user":"sebastianwoinar","tags":[]},"30785":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30786":{"varMapping":{"__isSmartRef__":true,"id":30787},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":30788},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30787":{"this":{"__isSmartRef__":true,"id":30753}},"30788":{"timestamp":{"__isSmartRef__":true,"id":30789},"user":"sebastianwoinar","tags":[]},"30789":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30790":{"varMapping":{"__isSmartRef__":true,"id":30791},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":30792},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30791":{"this":{"__isSmartRef__":true,"id":30753}},"30792":{"timestamp":{"__isSmartRef__":true,"id":30793},"user":"sebastianwoinar","tags":[]},"30793":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30794":{"varMapping":{"__isSmartRef__":true,"id":30795},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":30796},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30795":{"this":{"__isSmartRef__":true,"id":30753}},"30796":{"timestamp":{"__isSmartRef__":true,"id":30797},"user":"sebastianwoinar","tags":[]},"30797":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30798":{"varMapping":{"__isSmartRef__":true,"id":30799},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":30800},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30799":{"this":{"__isSmartRef__":true,"id":30753}},"30800":{"timestamp":{"__isSmartRef__":true,"id":30801},"user":"sebastianwoinar","tags":[]},"30801":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30802":{"varMapping":{"__isSmartRef__":true,"id":30803},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":30804},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30803":{"this":{"__isSmartRef__":true,"id":30753}},"30804":{"timestamp":{"__isSmartRef__":true,"id":30805},"user":"sebastianwoinar","tags":[]},"30805":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30806":{"varMapping":{"__isSmartRef__":true,"id":30807},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":30808},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30807":{"this":{"__isSmartRef__":true,"id":30753}},"30808":{"timestamp":{"__isSmartRef__":true,"id":30809},"user":"sebastianwoinar","tags":[]},"30809":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"30810":{"varMapping":{"__isSmartRef__":true,"id":30811},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":30812},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30811":{"this":{"__isSmartRef__":true,"id":30753}},"30812":{"timestamp":{"__isSmartRef__":true,"id":30813},"user":"sebastianwoinar","tags":[]},"30813":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"30814":{"varMapping":{"__isSmartRef__":true,"id":30815},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":30816},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30815":{"this":{"__isSmartRef__":true,"id":30753}},"30816":{"timestamp":{"__isSmartRef__":true,"id":30817},"user":"sebastianwoinar","tags":[]},"30817":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"30818":{"varMapping":{"__isSmartRef__":true,"id":30819},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":30820},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30819":{"this":{"__isSmartRef__":true,"id":30753}},"30820":{"timestamp":{"__isSmartRef__":true,"id":30821},"user":"sebastianwoinar","tags":[]},"30821":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"30822":{"varMapping":{"__isSmartRef__":true,"id":30823},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":30824},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30823":{"this":{"__isSmartRef__":true,"id":30753}},"30824":{"timestamp":{"__isSmartRef__":true,"id":30825},"user":"sebastianwoinar","tags":[]},"30825":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"30826":{"varMapping":{"__isSmartRef__":true,"id":30827},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":30828},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30827":{"this":{"__isSmartRef__":true,"id":30753}},"30828":{"timestamp":{"__isSmartRef__":true,"id":30829},"user":"sebastianwoinar","tags":[]},"30829":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"30830":{"varMapping":{"__isSmartRef__":true,"id":30831},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":30832},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30831":{"this":{"__isSmartRef__":true,"id":30753}},"30832":{"timestamp":{"__isSmartRef__":true,"id":30833},"user":"sebastianwoinar","tags":[]},"30833":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"30834":{"varMapping":{"__isSmartRef__":true,"id":30835},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":30836},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30835":{"this":{"__isSmartRef__":true,"id":30753}},"30836":{"timestamp":{"__isSmartRef__":true,"id":30837},"user":"sebastianwoinar","tags":[]},"30837":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"30838":{"varMapping":{"__isSmartRef__":true,"id":30839},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":30840},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30839":{"this":{"__isSmartRef__":true,"id":30753}},"30840":{"timestamp":{"__isSmartRef__":true,"id":30841},"user":"sebastianwoinar","tags":[]},"30841":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"30842":{"varMapping":{"__isSmartRef__":true,"id":30843},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":30848},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30843":{"this":{"__isSmartRef__":true,"id":30753},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":30844}},"30844":{"$super":{"__isSmartRef__":true,"id":30845}},"30845":{"varMapping":{"__isSmartRef__":true,"id":30846},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":30847},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30846":{"obj":{"__isSmartRef__":true,"id":30753},"name":"onMouseDown"},"30847":{},"30848":{"timestamp":{"__isSmartRef__":true,"id":30849},"user":"sebastianwoinar","tags":[]},"30849":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"30850":{"varMapping":{"__isSmartRef__":true,"id":30851},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":30852},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30851":{"this":{"__isSmartRef__":true,"id":30753}},"30852":{"timestamp":{"__isSmartRef__":true,"id":30853},"user":"sebastianwoinar","tags":[]},"30853":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"30854":{"varMapping":{"__isSmartRef__":true,"id":30855},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":30856},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30855":{"this":{"__isSmartRef__":true,"id":30753}},"30856":{"timestamp":{"__isSmartRef__":true,"id":30857},"user":"sebastianwoinar","tags":[]},"30857":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"30858":{"varMapping":{"__isSmartRef__":true,"id":30859},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":30860},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30859":{"this":{"__isSmartRef__":true,"id":30753}},"30860":{"timestamp":{"__isSmartRef__":true,"id":30861},"user":"sebastianwoinar","tags":[]},"30861":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"30862":{"varMapping":{"__isSmartRef__":true,"id":30863},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":30864},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30863":{"this":{"__isSmartRef__":true,"id":30753}},"30864":{"timestamp":{"__isSmartRef__":true,"id":30865},"user":"sebastianwoinar","tags":[]},"30865":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"30866":{"varMapping":{"__isSmartRef__":true,"id":30867},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":30868},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30867":{"this":{"__isSmartRef__":true,"id":30753}},"30868":{"timestamp":{"__isSmartRef__":true,"id":30869},"user":"sebastianwoinar","tags":[]},"30869":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"30870":{"varMapping":{"__isSmartRef__":true,"id":30871},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":30872},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30871":{"this":{"__isSmartRef__":true,"id":30753}},"30872":{"timestamp":{"__isSmartRef__":true,"id":30873},"user":"sebastianwoinar","tags":[]},"30873":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"30874":{"varMapping":{"__isSmartRef__":true,"id":30875},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":30876},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30875":{"this":{"__isSmartRef__":true,"id":30753}},"30876":{"timestamp":{"__isSmartRef__":true,"id":30877},"user":"sebastianwoinar","tags":[]},"30877":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"30878":{"varMapping":{"__isSmartRef__":true,"id":30879},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":30880},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30879":{"this":{"__isSmartRef__":true,"id":30753}},"30880":{"timestamp":{"__isSmartRef__":true,"id":30881},"user":"sebastianwoinar","tags":[]},"30881":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"30882":{"submorphs":[{"__isSmartRef__":true,"id":30883}],"scripts":[],"shape":{"__isSmartRef__":true,"id":30900},"id":"3A871F1A-51E2-46A9-A477-6B45DDC1F4C3","eventHandler":{"__isSmartRef__":true,"id":30901},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":30902},"name":"node198","partsBinMetaInfo":{"__isSmartRef__":true,"id":30903},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5825},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":30600},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":30906},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(901.5,210.0)"},"30883":{"submorphs":[],"scripts":[],"id":"7D0B1126-E78C-4BE2-BCC6-738DA2407612","shape":{"__isSmartRef__":true,"id":30884},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":30885},"textChunks":[{"__isSmartRef__":true,"id":30897}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":30899},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":30882},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"30884":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"30885":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":30886},{"__isSmartRef__":true,"id":30888},{"__isSmartRef__":true,"id":30890},{"__isSmartRef__":true,"id":30892},{"__isSmartRef__":true,"id":30894}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":30896},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"30886":{"date":{"__isSmartRef__":true,"id":30887},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"30887":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"30888":{"date":{"__isSmartRef__":true,"id":30889},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"30889":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"30890":{"date":{"__isSmartRef__":true,"id":30891},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"30891":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"30892":{"date":{"__isSmartRef__":true,"id":30893},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"30893":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"30894":{"date":{"__isSmartRef__":true,"id":30895},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"30895":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"30896":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"30897":{"style":{"__isSmartRef__":true,"id":30898},"morph":{"__isSmartRef__":true,"id":30883},"chunkOwner":{"__isSmartRef__":true,"id":30883},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"30898":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"30899":{"morph":{"__isSmartRef__":true,"id":30883},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"30900":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"30901":{"morph":{"__isSmartRef__":true,"id":30882},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"30902":{},"30903":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":30904}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"30904":{"date":{"__isSmartRef__":true,"id":30905},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"30905":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"30906":{"buildChildNodes":{"__isSmartRef__":true,"id":30907},"getGameTree":{"__isSmartRef__":true,"id":30911},"getLevel":{"__isSmartRef__":true,"id":30915},"getLevelWeight":{"__isSmartRef__":true,"id":30919},"getWeight":{"__isSmartRef__":true,"id":30923},"setNode":{"__isSmartRef__":true,"id":30927},"setParent":{"__isSmartRef__":true,"id":30931},"getParent":{"__isSmartRef__":true,"id":30935},"deactivate":{"__isSmartRef__":true,"id":30939},"blink":{"__isSmartRef__":true,"id":30943},"ABPreturn":{"__isSmartRef__":true,"id":30947},"ABPstart":{"__isSmartRef__":true,"id":30951},"ABPcontinue":{"__isSmartRef__":true,"id":30955},"ABPshowValue":{"__isSmartRef__":true,"id":30959},"ABPgetValue":{"__isSmartRef__":true,"id":30963},"ABPhasChildNodes":{"__isSmartRef__":true,"id":30967},"onMouseDown":{"__isSmartRef__":true,"id":30971},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":30979},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":30983},"ABPmarkAsDone":{"__isSmartRef__":true,"id":30987},"ABPmarkAsActive":{"__isSmartRef__":true,"id":30991},"getStateMorph":{"__isSmartRef__":true,"id":30995},"showState":{"__isSmartRef__":true,"id":30999},"ABPfailHard":{"__isSmartRef__":true,"id":31003},"markFinalDrawWith":{"__isSmartRef__":true,"id":31007}},"30907":{"varMapping":{"__isSmartRef__":true,"id":30908},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":30909},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30908":{"this":{"__isSmartRef__":true,"id":30882}},"30909":{"timestamp":{"__isSmartRef__":true,"id":30910},"user":"sebastianwoinar","tags":[]},"30910":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"30911":{"varMapping":{"__isSmartRef__":true,"id":30912},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":30913},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30912":{"this":{"__isSmartRef__":true,"id":30882}},"30913":{"timestamp":{"__isSmartRef__":true,"id":30914},"user":"sebastianwoinar","tags":[]},"30914":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30915":{"varMapping":{"__isSmartRef__":true,"id":30916},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":30917},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30916":{"this":{"__isSmartRef__":true,"id":30882}},"30917":{"timestamp":{"__isSmartRef__":true,"id":30918},"user":"sebastianwoinar","tags":[]},"30918":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30919":{"varMapping":{"__isSmartRef__":true,"id":30920},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":30921},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30920":{"this":{"__isSmartRef__":true,"id":30882}},"30921":{"timestamp":{"__isSmartRef__":true,"id":30922},"user":"sebastianwoinar","tags":[]},"30922":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30923":{"varMapping":{"__isSmartRef__":true,"id":30924},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":30925},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30924":{"this":{"__isSmartRef__":true,"id":30882}},"30925":{"timestamp":{"__isSmartRef__":true,"id":30926},"user":"sebastianwoinar","tags":[]},"30926":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30927":{"varMapping":{"__isSmartRef__":true,"id":30928},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":30929},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30928":{"this":{"__isSmartRef__":true,"id":30882}},"30929":{"timestamp":{"__isSmartRef__":true,"id":30930},"user":"sebastianwoinar","tags":[]},"30930":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30931":{"varMapping":{"__isSmartRef__":true,"id":30932},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":30933},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30932":{"this":{"__isSmartRef__":true,"id":30882}},"30933":{"timestamp":{"__isSmartRef__":true,"id":30934},"user":"sebastianwoinar","tags":[]},"30934":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"30935":{"varMapping":{"__isSmartRef__":true,"id":30936},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":30937},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30936":{"this":{"__isSmartRef__":true,"id":30882}},"30937":{"timestamp":{"__isSmartRef__":true,"id":30938},"user":"sebastianwoinar","tags":[]},"30938":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"30939":{"varMapping":{"__isSmartRef__":true,"id":30940},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":30941},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30940":{"this":{"__isSmartRef__":true,"id":30882}},"30941":{"timestamp":{"__isSmartRef__":true,"id":30942},"user":"sebastianwoinar","tags":[]},"30942":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"30943":{"varMapping":{"__isSmartRef__":true,"id":30944},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":30945},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30944":{"this":{"__isSmartRef__":true,"id":30882}},"30945":{"timestamp":{"__isSmartRef__":true,"id":30946},"user":"sebastianwoinar","tags":[]},"30946":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"30947":{"varMapping":{"__isSmartRef__":true,"id":30948},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":30949},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30948":{"this":{"__isSmartRef__":true,"id":30882}},"30949":{"timestamp":{"__isSmartRef__":true,"id":30950},"user":"sebastianwoinar","tags":[]},"30950":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"30951":{"varMapping":{"__isSmartRef__":true,"id":30952},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":30953},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30952":{"this":{"__isSmartRef__":true,"id":30882}},"30953":{"timestamp":{"__isSmartRef__":true,"id":30954},"user":"sebastianwoinar","tags":[]},"30954":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"30955":{"varMapping":{"__isSmartRef__":true,"id":30956},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":30957},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30956":{"this":{"__isSmartRef__":true,"id":30882}},"30957":{"timestamp":{"__isSmartRef__":true,"id":30958},"user":"sebastianwoinar","tags":[]},"30958":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"30959":{"varMapping":{"__isSmartRef__":true,"id":30960},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":30961},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30960":{"this":{"__isSmartRef__":true,"id":30882}},"30961":{"timestamp":{"__isSmartRef__":true,"id":30962},"user":"sebastianwoinar","tags":[]},"30962":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"30963":{"varMapping":{"__isSmartRef__":true,"id":30964},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":30965},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30964":{"this":{"__isSmartRef__":true,"id":30882}},"30965":{"timestamp":{"__isSmartRef__":true,"id":30966},"user":"sebastianwoinar","tags":[]},"30966":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"30967":{"varMapping":{"__isSmartRef__":true,"id":30968},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":30969},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30968":{"this":{"__isSmartRef__":true,"id":30882}},"30969":{"timestamp":{"__isSmartRef__":true,"id":30970},"user":"sebastianwoinar","tags":[]},"30970":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"30971":{"varMapping":{"__isSmartRef__":true,"id":30972},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":30977},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30972":{"this":{"__isSmartRef__":true,"id":30882},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":30973}},"30973":{"$super":{"__isSmartRef__":true,"id":30974}},"30974":{"varMapping":{"__isSmartRef__":true,"id":30975},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":30976},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30975":{"obj":{"__isSmartRef__":true,"id":30882},"name":"onMouseDown"},"30976":{},"30977":{"timestamp":{"__isSmartRef__":true,"id":30978},"user":"sebastianwoinar","tags":[]},"30978":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"30979":{"varMapping":{"__isSmartRef__":true,"id":30980},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":30981},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30980":{"this":{"__isSmartRef__":true,"id":30882}},"30981":{"timestamp":{"__isSmartRef__":true,"id":30982},"user":"sebastianwoinar","tags":[]},"30982":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"30983":{"varMapping":{"__isSmartRef__":true,"id":30984},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":30985},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30984":{"this":{"__isSmartRef__":true,"id":30882}},"30985":{"timestamp":{"__isSmartRef__":true,"id":30986},"user":"sebastianwoinar","tags":[]},"30986":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"30987":{"varMapping":{"__isSmartRef__":true,"id":30988},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":30989},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30988":{"this":{"__isSmartRef__":true,"id":30882}},"30989":{"timestamp":{"__isSmartRef__":true,"id":30990},"user":"sebastianwoinar","tags":[]},"30990":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"30991":{"varMapping":{"__isSmartRef__":true,"id":30992},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":30993},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30992":{"this":{"__isSmartRef__":true,"id":30882}},"30993":{"timestamp":{"__isSmartRef__":true,"id":30994},"user":"sebastianwoinar","tags":[]},"30994":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"30995":{"varMapping":{"__isSmartRef__":true,"id":30996},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":30997},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"30996":{"this":{"__isSmartRef__":true,"id":30882}},"30997":{"timestamp":{"__isSmartRef__":true,"id":30998},"user":"sebastianwoinar","tags":[]},"30998":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"30999":{"varMapping":{"__isSmartRef__":true,"id":31000},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":31001},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31000":{"this":{"__isSmartRef__":true,"id":30882}},"31001":{"timestamp":{"__isSmartRef__":true,"id":31002},"user":"sebastianwoinar","tags":[]},"31002":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"31003":{"varMapping":{"__isSmartRef__":true,"id":31004},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":31005},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31004":{"this":{"__isSmartRef__":true,"id":30882}},"31005":{"timestamp":{"__isSmartRef__":true,"id":31006},"user":"sebastianwoinar","tags":[]},"31006":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"31007":{"varMapping":{"__isSmartRef__":true,"id":31008},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":31009},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31008":{"this":{"__isSmartRef__":true,"id":30882}},"31009":{"timestamp":{"__isSmartRef__":true,"id":31010},"user":"sebastianwoinar","tags":[]},"31010":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"31011":{"submorphs":[{"__isSmartRef__":true,"id":31012}],"scripts":[],"shape":{"__isSmartRef__":true,"id":31029},"id":"3F2D0DEE-29DC-4BA5-89A8-D8C1FC16ED4B","eventHandler":{"__isSmartRef__":true,"id":31030},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":31031},"name":"node199","partsBinMetaInfo":{"__isSmartRef__":true,"id":31032},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5827},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":30600},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":31035},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(906.6,210.0)"},"31012":{"submorphs":[],"scripts":[],"id":"4D96DF51-EBA4-4A60-A27D-7AEFD2947C95","shape":{"__isSmartRef__":true,"id":31013},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":31014},"textChunks":[{"__isSmartRef__":true,"id":31026}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":31028},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":31011},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"31013":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"31014":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":31015},{"__isSmartRef__":true,"id":31017},{"__isSmartRef__":true,"id":31019},{"__isSmartRef__":true,"id":31021},{"__isSmartRef__":true,"id":31023}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":31025},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"31015":{"date":{"__isSmartRef__":true,"id":31016},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"31016":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"31017":{"date":{"__isSmartRef__":true,"id":31018},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"31018":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"31019":{"date":{"__isSmartRef__":true,"id":31020},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"31020":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"31021":{"date":{"__isSmartRef__":true,"id":31022},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"31022":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"31023":{"date":{"__isSmartRef__":true,"id":31024},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"31024":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"31025":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"31026":{"style":{"__isSmartRef__":true,"id":31027},"morph":{"__isSmartRef__":true,"id":31012},"chunkOwner":{"__isSmartRef__":true,"id":31012},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"31027":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"31028":{"morph":{"__isSmartRef__":true,"id":31012},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"31029":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"31030":{"morph":{"__isSmartRef__":true,"id":31011},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"31031":{},"31032":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":31033}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"31033":{"date":{"__isSmartRef__":true,"id":31034},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"31034":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"31035":{"buildChildNodes":{"__isSmartRef__":true,"id":31036},"getGameTree":{"__isSmartRef__":true,"id":31040},"getLevel":{"__isSmartRef__":true,"id":31044},"getLevelWeight":{"__isSmartRef__":true,"id":31048},"getWeight":{"__isSmartRef__":true,"id":31052},"setNode":{"__isSmartRef__":true,"id":31056},"setParent":{"__isSmartRef__":true,"id":31060},"getParent":{"__isSmartRef__":true,"id":31064},"deactivate":{"__isSmartRef__":true,"id":31068},"blink":{"__isSmartRef__":true,"id":31072},"ABPreturn":{"__isSmartRef__":true,"id":31076},"ABPstart":{"__isSmartRef__":true,"id":31080},"ABPcontinue":{"__isSmartRef__":true,"id":31084},"ABPshowValue":{"__isSmartRef__":true,"id":31088},"ABPgetValue":{"__isSmartRef__":true,"id":31092},"ABPhasChildNodes":{"__isSmartRef__":true,"id":31096},"onMouseDown":{"__isSmartRef__":true,"id":31100},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":31108},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":31112},"ABPmarkAsDone":{"__isSmartRef__":true,"id":31116},"ABPmarkAsActive":{"__isSmartRef__":true,"id":31120},"getStateMorph":{"__isSmartRef__":true,"id":31124},"showState":{"__isSmartRef__":true,"id":31128},"ABPfailHard":{"__isSmartRef__":true,"id":31132},"markFinalDrawWith":{"__isSmartRef__":true,"id":31136}},"31036":{"varMapping":{"__isSmartRef__":true,"id":31037},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":31038},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31037":{"this":{"__isSmartRef__":true,"id":31011}},"31038":{"timestamp":{"__isSmartRef__":true,"id":31039},"user":"sebastianwoinar","tags":[]},"31039":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"31040":{"varMapping":{"__isSmartRef__":true,"id":31041},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":31042},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31041":{"this":{"__isSmartRef__":true,"id":31011}},"31042":{"timestamp":{"__isSmartRef__":true,"id":31043},"user":"sebastianwoinar","tags":[]},"31043":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31044":{"varMapping":{"__isSmartRef__":true,"id":31045},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":31046},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31045":{"this":{"__isSmartRef__":true,"id":31011}},"31046":{"timestamp":{"__isSmartRef__":true,"id":31047},"user":"sebastianwoinar","tags":[]},"31047":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31048":{"varMapping":{"__isSmartRef__":true,"id":31049},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":31050},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31049":{"this":{"__isSmartRef__":true,"id":31011}},"31050":{"timestamp":{"__isSmartRef__":true,"id":31051},"user":"sebastianwoinar","tags":[]},"31051":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31052":{"varMapping":{"__isSmartRef__":true,"id":31053},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":31054},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31053":{"this":{"__isSmartRef__":true,"id":31011}},"31054":{"timestamp":{"__isSmartRef__":true,"id":31055},"user":"sebastianwoinar","tags":[]},"31055":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31056":{"varMapping":{"__isSmartRef__":true,"id":31057},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":31058},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31057":{"this":{"__isSmartRef__":true,"id":31011}},"31058":{"timestamp":{"__isSmartRef__":true,"id":31059},"user":"sebastianwoinar","tags":[]},"31059":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31060":{"varMapping":{"__isSmartRef__":true,"id":31061},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":31062},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31061":{"this":{"__isSmartRef__":true,"id":31011}},"31062":{"timestamp":{"__isSmartRef__":true,"id":31063},"user":"sebastianwoinar","tags":[]},"31063":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31064":{"varMapping":{"__isSmartRef__":true,"id":31065},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":31066},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31065":{"this":{"__isSmartRef__":true,"id":31011}},"31066":{"timestamp":{"__isSmartRef__":true,"id":31067},"user":"sebastianwoinar","tags":[]},"31067":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"31068":{"varMapping":{"__isSmartRef__":true,"id":31069},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":31070},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31069":{"this":{"__isSmartRef__":true,"id":31011}},"31070":{"timestamp":{"__isSmartRef__":true,"id":31071},"user":"sebastianwoinar","tags":[]},"31071":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"31072":{"varMapping":{"__isSmartRef__":true,"id":31073},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":31074},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31073":{"this":{"__isSmartRef__":true,"id":31011}},"31074":{"timestamp":{"__isSmartRef__":true,"id":31075},"user":"sebastianwoinar","tags":[]},"31075":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"31076":{"varMapping":{"__isSmartRef__":true,"id":31077},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":31078},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31077":{"this":{"__isSmartRef__":true,"id":31011}},"31078":{"timestamp":{"__isSmartRef__":true,"id":31079},"user":"sebastianwoinar","tags":[]},"31079":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"31080":{"varMapping":{"__isSmartRef__":true,"id":31081},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":31082},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31081":{"this":{"__isSmartRef__":true,"id":31011}},"31082":{"timestamp":{"__isSmartRef__":true,"id":31083},"user":"sebastianwoinar","tags":[]},"31083":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"31084":{"varMapping":{"__isSmartRef__":true,"id":31085},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":31086},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31085":{"this":{"__isSmartRef__":true,"id":31011}},"31086":{"timestamp":{"__isSmartRef__":true,"id":31087},"user":"sebastianwoinar","tags":[]},"31087":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"31088":{"varMapping":{"__isSmartRef__":true,"id":31089},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":31090},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31089":{"this":{"__isSmartRef__":true,"id":31011}},"31090":{"timestamp":{"__isSmartRef__":true,"id":31091},"user":"sebastianwoinar","tags":[]},"31091":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"31092":{"varMapping":{"__isSmartRef__":true,"id":31093},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":31094},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31093":{"this":{"__isSmartRef__":true,"id":31011}},"31094":{"timestamp":{"__isSmartRef__":true,"id":31095},"user":"sebastianwoinar","tags":[]},"31095":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"31096":{"varMapping":{"__isSmartRef__":true,"id":31097},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":31098},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31097":{"this":{"__isSmartRef__":true,"id":31011}},"31098":{"timestamp":{"__isSmartRef__":true,"id":31099},"user":"sebastianwoinar","tags":[]},"31099":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"31100":{"varMapping":{"__isSmartRef__":true,"id":31101},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":31106},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31101":{"this":{"__isSmartRef__":true,"id":31011},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":31102}},"31102":{"$super":{"__isSmartRef__":true,"id":31103}},"31103":{"varMapping":{"__isSmartRef__":true,"id":31104},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":31105},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31104":{"obj":{"__isSmartRef__":true,"id":31011},"name":"onMouseDown"},"31105":{},"31106":{"timestamp":{"__isSmartRef__":true,"id":31107},"user":"sebastianwoinar","tags":[]},"31107":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"31108":{"varMapping":{"__isSmartRef__":true,"id":31109},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":31110},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31109":{"this":{"__isSmartRef__":true,"id":31011}},"31110":{"timestamp":{"__isSmartRef__":true,"id":31111},"user":"sebastianwoinar","tags":[]},"31111":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"31112":{"varMapping":{"__isSmartRef__":true,"id":31113},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":31114},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31113":{"this":{"__isSmartRef__":true,"id":31011}},"31114":{"timestamp":{"__isSmartRef__":true,"id":31115},"user":"sebastianwoinar","tags":[]},"31115":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"31116":{"varMapping":{"__isSmartRef__":true,"id":31117},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":31118},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31117":{"this":{"__isSmartRef__":true,"id":31011}},"31118":{"timestamp":{"__isSmartRef__":true,"id":31119},"user":"sebastianwoinar","tags":[]},"31119":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"31120":{"varMapping":{"__isSmartRef__":true,"id":31121},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":31122},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31121":{"this":{"__isSmartRef__":true,"id":31011}},"31122":{"timestamp":{"__isSmartRef__":true,"id":31123},"user":"sebastianwoinar","tags":[]},"31123":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"31124":{"varMapping":{"__isSmartRef__":true,"id":31125},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":31126},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31125":{"this":{"__isSmartRef__":true,"id":31011}},"31126":{"timestamp":{"__isSmartRef__":true,"id":31127},"user":"sebastianwoinar","tags":[]},"31127":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"31128":{"varMapping":{"__isSmartRef__":true,"id":31129},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":31130},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31129":{"this":{"__isSmartRef__":true,"id":31011}},"31130":{"timestamp":{"__isSmartRef__":true,"id":31131},"user":"sebastianwoinar","tags":[]},"31131":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"31132":{"varMapping":{"__isSmartRef__":true,"id":31133},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":31134},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31133":{"this":{"__isSmartRef__":true,"id":31011}},"31134":{"timestamp":{"__isSmartRef__":true,"id":31135},"user":"sebastianwoinar","tags":[]},"31135":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"31136":{"varMapping":{"__isSmartRef__":true,"id":31137},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":31138},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31137":{"this":{"__isSmartRef__":true,"id":31011}},"31138":{"timestamp":{"__isSmartRef__":true,"id":31139},"user":"sebastianwoinar","tags":[]},"31139":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"31140":{"submorphs":[{"__isSmartRef__":true,"id":31141}],"scripts":[],"shape":{"__isSmartRef__":true,"id":31158},"id":"ECBD7316-1682-4D71-B612-B70720D66A5B","eventHandler":{"__isSmartRef__":true,"id":31159},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":31160},"name":"node200","partsBinMetaInfo":{"__isSmartRef__":true,"id":31161},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5829},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":30600},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":31164},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(911.8,210.0)"},"31141":{"submorphs":[],"scripts":[],"id":"3258134A-D765-4616-8CE9-74DDC31AAE3E","shape":{"__isSmartRef__":true,"id":31142},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":31143},"textChunks":[{"__isSmartRef__":true,"id":31155}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":31157},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":31140},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"31142":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"31143":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":31144},{"__isSmartRef__":true,"id":31146},{"__isSmartRef__":true,"id":31148},{"__isSmartRef__":true,"id":31150},{"__isSmartRef__":true,"id":31152}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":31154},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"31144":{"date":{"__isSmartRef__":true,"id":31145},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"31145":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"31146":{"date":{"__isSmartRef__":true,"id":31147},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"31147":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"31148":{"date":{"__isSmartRef__":true,"id":31149},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"31149":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"31150":{"date":{"__isSmartRef__":true,"id":31151},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"31151":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"31152":{"date":{"__isSmartRef__":true,"id":31153},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"31153":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"31154":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"31155":{"style":{"__isSmartRef__":true,"id":31156},"morph":{"__isSmartRef__":true,"id":31141},"chunkOwner":{"__isSmartRef__":true,"id":31141},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"31156":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"31157":{"morph":{"__isSmartRef__":true,"id":31141},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"31158":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"31159":{"morph":{"__isSmartRef__":true,"id":31140},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"31160":{},"31161":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":31162}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"31162":{"date":{"__isSmartRef__":true,"id":31163},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"31163":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"31164":{"buildChildNodes":{"__isSmartRef__":true,"id":31165},"getGameTree":{"__isSmartRef__":true,"id":31169},"getLevel":{"__isSmartRef__":true,"id":31173},"getLevelWeight":{"__isSmartRef__":true,"id":31177},"getWeight":{"__isSmartRef__":true,"id":31181},"setNode":{"__isSmartRef__":true,"id":31185},"setParent":{"__isSmartRef__":true,"id":31189},"getParent":{"__isSmartRef__":true,"id":31193},"deactivate":{"__isSmartRef__":true,"id":31197},"blink":{"__isSmartRef__":true,"id":31201},"ABPreturn":{"__isSmartRef__":true,"id":31205},"ABPstart":{"__isSmartRef__":true,"id":31209},"ABPcontinue":{"__isSmartRef__":true,"id":31213},"ABPshowValue":{"__isSmartRef__":true,"id":31217},"ABPgetValue":{"__isSmartRef__":true,"id":31221},"ABPhasChildNodes":{"__isSmartRef__":true,"id":31225},"onMouseDown":{"__isSmartRef__":true,"id":31229},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":31237},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":31241},"ABPmarkAsDone":{"__isSmartRef__":true,"id":31245},"ABPmarkAsActive":{"__isSmartRef__":true,"id":31249},"getStateMorph":{"__isSmartRef__":true,"id":31253},"showState":{"__isSmartRef__":true,"id":31257},"ABPfailHard":{"__isSmartRef__":true,"id":31261},"markFinalDrawWith":{"__isSmartRef__":true,"id":31265}},"31165":{"varMapping":{"__isSmartRef__":true,"id":31166},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":31167},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31166":{"this":{"__isSmartRef__":true,"id":31140}},"31167":{"timestamp":{"__isSmartRef__":true,"id":31168},"user":"sebastianwoinar","tags":[]},"31168":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"31169":{"varMapping":{"__isSmartRef__":true,"id":31170},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":31171},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31170":{"this":{"__isSmartRef__":true,"id":31140}},"31171":{"timestamp":{"__isSmartRef__":true,"id":31172},"user":"sebastianwoinar","tags":[]},"31172":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31173":{"varMapping":{"__isSmartRef__":true,"id":31174},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":31175},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31174":{"this":{"__isSmartRef__":true,"id":31140}},"31175":{"timestamp":{"__isSmartRef__":true,"id":31176},"user":"sebastianwoinar","tags":[]},"31176":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31177":{"varMapping":{"__isSmartRef__":true,"id":31178},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":31179},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31178":{"this":{"__isSmartRef__":true,"id":31140}},"31179":{"timestamp":{"__isSmartRef__":true,"id":31180},"user":"sebastianwoinar","tags":[]},"31180":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31181":{"varMapping":{"__isSmartRef__":true,"id":31182},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":31183},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31182":{"this":{"__isSmartRef__":true,"id":31140}},"31183":{"timestamp":{"__isSmartRef__":true,"id":31184},"user":"sebastianwoinar","tags":[]},"31184":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31185":{"varMapping":{"__isSmartRef__":true,"id":31186},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":31187},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31186":{"this":{"__isSmartRef__":true,"id":31140}},"31187":{"timestamp":{"__isSmartRef__":true,"id":31188},"user":"sebastianwoinar","tags":[]},"31188":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31189":{"varMapping":{"__isSmartRef__":true,"id":31190},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":31191},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31190":{"this":{"__isSmartRef__":true,"id":31140}},"31191":{"timestamp":{"__isSmartRef__":true,"id":31192},"user":"sebastianwoinar","tags":[]},"31192":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31193":{"varMapping":{"__isSmartRef__":true,"id":31194},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":31195},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31194":{"this":{"__isSmartRef__":true,"id":31140}},"31195":{"timestamp":{"__isSmartRef__":true,"id":31196},"user":"sebastianwoinar","tags":[]},"31196":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"31197":{"varMapping":{"__isSmartRef__":true,"id":31198},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":31199},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31198":{"this":{"__isSmartRef__":true,"id":31140}},"31199":{"timestamp":{"__isSmartRef__":true,"id":31200},"user":"sebastianwoinar","tags":[]},"31200":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"31201":{"varMapping":{"__isSmartRef__":true,"id":31202},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":31203},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31202":{"this":{"__isSmartRef__":true,"id":31140}},"31203":{"timestamp":{"__isSmartRef__":true,"id":31204},"user":"sebastianwoinar","tags":[]},"31204":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"31205":{"varMapping":{"__isSmartRef__":true,"id":31206},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":31207},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31206":{"this":{"__isSmartRef__":true,"id":31140}},"31207":{"timestamp":{"__isSmartRef__":true,"id":31208},"user":"sebastianwoinar","tags":[]},"31208":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"31209":{"varMapping":{"__isSmartRef__":true,"id":31210},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":31211},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31210":{"this":{"__isSmartRef__":true,"id":31140}},"31211":{"timestamp":{"__isSmartRef__":true,"id":31212},"user":"sebastianwoinar","tags":[]},"31212":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"31213":{"varMapping":{"__isSmartRef__":true,"id":31214},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":31215},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31214":{"this":{"__isSmartRef__":true,"id":31140}},"31215":{"timestamp":{"__isSmartRef__":true,"id":31216},"user":"sebastianwoinar","tags":[]},"31216":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"31217":{"varMapping":{"__isSmartRef__":true,"id":31218},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":31219},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31218":{"this":{"__isSmartRef__":true,"id":31140}},"31219":{"timestamp":{"__isSmartRef__":true,"id":31220},"user":"sebastianwoinar","tags":[]},"31220":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"31221":{"varMapping":{"__isSmartRef__":true,"id":31222},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":31223},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31222":{"this":{"__isSmartRef__":true,"id":31140}},"31223":{"timestamp":{"__isSmartRef__":true,"id":31224},"user":"sebastianwoinar","tags":[]},"31224":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"31225":{"varMapping":{"__isSmartRef__":true,"id":31226},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":31227},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31226":{"this":{"__isSmartRef__":true,"id":31140}},"31227":{"timestamp":{"__isSmartRef__":true,"id":31228},"user":"sebastianwoinar","tags":[]},"31228":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"31229":{"varMapping":{"__isSmartRef__":true,"id":31230},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":31235},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31230":{"this":{"__isSmartRef__":true,"id":31140},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":31231}},"31231":{"$super":{"__isSmartRef__":true,"id":31232}},"31232":{"varMapping":{"__isSmartRef__":true,"id":31233},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":31234},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31233":{"obj":{"__isSmartRef__":true,"id":31140},"name":"onMouseDown"},"31234":{},"31235":{"timestamp":{"__isSmartRef__":true,"id":31236},"user":"sebastianwoinar","tags":[]},"31236":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"31237":{"varMapping":{"__isSmartRef__":true,"id":31238},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":31239},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31238":{"this":{"__isSmartRef__":true,"id":31140}},"31239":{"timestamp":{"__isSmartRef__":true,"id":31240},"user":"sebastianwoinar","tags":[]},"31240":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"31241":{"varMapping":{"__isSmartRef__":true,"id":31242},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":31243},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31242":{"this":{"__isSmartRef__":true,"id":31140}},"31243":{"timestamp":{"__isSmartRef__":true,"id":31244},"user":"sebastianwoinar","tags":[]},"31244":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"31245":{"varMapping":{"__isSmartRef__":true,"id":31246},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":31247},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31246":{"this":{"__isSmartRef__":true,"id":31140}},"31247":{"timestamp":{"__isSmartRef__":true,"id":31248},"user":"sebastianwoinar","tags":[]},"31248":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"31249":{"varMapping":{"__isSmartRef__":true,"id":31250},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":31251},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31250":{"this":{"__isSmartRef__":true,"id":31140}},"31251":{"timestamp":{"__isSmartRef__":true,"id":31252},"user":"sebastianwoinar","tags":[]},"31252":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"31253":{"varMapping":{"__isSmartRef__":true,"id":31254},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":31255},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31254":{"this":{"__isSmartRef__":true,"id":31140}},"31255":{"timestamp":{"__isSmartRef__":true,"id":31256},"user":"sebastianwoinar","tags":[]},"31256":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"31257":{"varMapping":{"__isSmartRef__":true,"id":31258},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":31259},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31258":{"this":{"__isSmartRef__":true,"id":31140}},"31259":{"timestamp":{"__isSmartRef__":true,"id":31260},"user":"sebastianwoinar","tags":[]},"31260":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"31261":{"varMapping":{"__isSmartRef__":true,"id":31262},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":31263},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31262":{"this":{"__isSmartRef__":true,"id":31140}},"31263":{"timestamp":{"__isSmartRef__":true,"id":31264},"user":"sebastianwoinar","tags":[]},"31264":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"31265":{"varMapping":{"__isSmartRef__":true,"id":31266},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":31267},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31266":{"this":{"__isSmartRef__":true,"id":31140}},"31267":{"timestamp":{"__isSmartRef__":true,"id":31268},"user":"sebastianwoinar","tags":[]},"31268":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"31269":{"submorphs":[{"__isSmartRef__":true,"id":31270}],"scripts":[],"shape":{"__isSmartRef__":true,"id":31287},"id":"0A3CB444-C19B-4B73-A194-57C6795C77F4","eventHandler":{"__isSmartRef__":true,"id":31288},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":31289},"name":"node201","partsBinMetaInfo":{"__isSmartRef__":true,"id":31290},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5831},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":30600},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":31293},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(917.0,210.0)"},"31270":{"submorphs":[],"scripts":[],"id":"06F9872A-6A8F-4AF7-9183-FB7DA5AD37C3","shape":{"__isSmartRef__":true,"id":31271},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":31272},"textChunks":[{"__isSmartRef__":true,"id":31284}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":31286},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":31269},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"31271":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"31272":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":31273},{"__isSmartRef__":true,"id":31275},{"__isSmartRef__":true,"id":31277},{"__isSmartRef__":true,"id":31279},{"__isSmartRef__":true,"id":31281}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":31283},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"31273":{"date":{"__isSmartRef__":true,"id":31274},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"31274":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"31275":{"date":{"__isSmartRef__":true,"id":31276},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"31276":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"31277":{"date":{"__isSmartRef__":true,"id":31278},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"31278":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"31279":{"date":{"__isSmartRef__":true,"id":31280},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"31280":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"31281":{"date":{"__isSmartRef__":true,"id":31282},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"31282":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"31283":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"31284":{"style":{"__isSmartRef__":true,"id":31285},"morph":{"__isSmartRef__":true,"id":31270},"chunkOwner":{"__isSmartRef__":true,"id":31270},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"31285":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"31286":{"morph":{"__isSmartRef__":true,"id":31270},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"31287":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"31288":{"morph":{"__isSmartRef__":true,"id":31269},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"31289":{},"31290":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":31291}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"31291":{"date":{"__isSmartRef__":true,"id":31292},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"31292":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"31293":{"buildChildNodes":{"__isSmartRef__":true,"id":31294},"getGameTree":{"__isSmartRef__":true,"id":31298},"getLevel":{"__isSmartRef__":true,"id":31302},"getLevelWeight":{"__isSmartRef__":true,"id":31306},"getWeight":{"__isSmartRef__":true,"id":31310},"setNode":{"__isSmartRef__":true,"id":31314},"setParent":{"__isSmartRef__":true,"id":31318},"getParent":{"__isSmartRef__":true,"id":31322},"deactivate":{"__isSmartRef__":true,"id":31326},"blink":{"__isSmartRef__":true,"id":31330},"ABPreturn":{"__isSmartRef__":true,"id":31334},"ABPstart":{"__isSmartRef__":true,"id":31338},"ABPcontinue":{"__isSmartRef__":true,"id":31342},"ABPshowValue":{"__isSmartRef__":true,"id":31346},"ABPgetValue":{"__isSmartRef__":true,"id":31350},"ABPhasChildNodes":{"__isSmartRef__":true,"id":31354},"onMouseDown":{"__isSmartRef__":true,"id":31358},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":31366},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":31370},"ABPmarkAsDone":{"__isSmartRef__":true,"id":31374},"ABPmarkAsActive":{"__isSmartRef__":true,"id":31378},"getStateMorph":{"__isSmartRef__":true,"id":31382},"showState":{"__isSmartRef__":true,"id":31386},"ABPfailHard":{"__isSmartRef__":true,"id":31390},"markFinalDrawWith":{"__isSmartRef__":true,"id":31394}},"31294":{"varMapping":{"__isSmartRef__":true,"id":31295},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":31296},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31295":{"this":{"__isSmartRef__":true,"id":31269}},"31296":{"timestamp":{"__isSmartRef__":true,"id":31297},"user":"sebastianwoinar","tags":[]},"31297":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"31298":{"varMapping":{"__isSmartRef__":true,"id":31299},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":31300},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31299":{"this":{"__isSmartRef__":true,"id":31269}},"31300":{"timestamp":{"__isSmartRef__":true,"id":31301},"user":"sebastianwoinar","tags":[]},"31301":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31302":{"varMapping":{"__isSmartRef__":true,"id":31303},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":31304},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31303":{"this":{"__isSmartRef__":true,"id":31269}},"31304":{"timestamp":{"__isSmartRef__":true,"id":31305},"user":"sebastianwoinar","tags":[]},"31305":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31306":{"varMapping":{"__isSmartRef__":true,"id":31307},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":31308},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31307":{"this":{"__isSmartRef__":true,"id":31269}},"31308":{"timestamp":{"__isSmartRef__":true,"id":31309},"user":"sebastianwoinar","tags":[]},"31309":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31310":{"varMapping":{"__isSmartRef__":true,"id":31311},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":31312},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31311":{"this":{"__isSmartRef__":true,"id":31269}},"31312":{"timestamp":{"__isSmartRef__":true,"id":31313},"user":"sebastianwoinar","tags":[]},"31313":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31314":{"varMapping":{"__isSmartRef__":true,"id":31315},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":31316},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31315":{"this":{"__isSmartRef__":true,"id":31269}},"31316":{"timestamp":{"__isSmartRef__":true,"id":31317},"user":"sebastianwoinar","tags":[]},"31317":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31318":{"varMapping":{"__isSmartRef__":true,"id":31319},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":31320},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31319":{"this":{"__isSmartRef__":true,"id":31269}},"31320":{"timestamp":{"__isSmartRef__":true,"id":31321},"user":"sebastianwoinar","tags":[]},"31321":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31322":{"varMapping":{"__isSmartRef__":true,"id":31323},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":31324},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31323":{"this":{"__isSmartRef__":true,"id":31269}},"31324":{"timestamp":{"__isSmartRef__":true,"id":31325},"user":"sebastianwoinar","tags":[]},"31325":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"31326":{"varMapping":{"__isSmartRef__":true,"id":31327},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":31328},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31327":{"this":{"__isSmartRef__":true,"id":31269}},"31328":{"timestamp":{"__isSmartRef__":true,"id":31329},"user":"sebastianwoinar","tags":[]},"31329":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"31330":{"varMapping":{"__isSmartRef__":true,"id":31331},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":31332},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31331":{"this":{"__isSmartRef__":true,"id":31269}},"31332":{"timestamp":{"__isSmartRef__":true,"id":31333},"user":"sebastianwoinar","tags":[]},"31333":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"31334":{"varMapping":{"__isSmartRef__":true,"id":31335},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":31336},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31335":{"this":{"__isSmartRef__":true,"id":31269}},"31336":{"timestamp":{"__isSmartRef__":true,"id":31337},"user":"sebastianwoinar","tags":[]},"31337":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"31338":{"varMapping":{"__isSmartRef__":true,"id":31339},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":31340},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31339":{"this":{"__isSmartRef__":true,"id":31269}},"31340":{"timestamp":{"__isSmartRef__":true,"id":31341},"user":"sebastianwoinar","tags":[]},"31341":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"31342":{"varMapping":{"__isSmartRef__":true,"id":31343},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":31344},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31343":{"this":{"__isSmartRef__":true,"id":31269}},"31344":{"timestamp":{"__isSmartRef__":true,"id":31345},"user":"sebastianwoinar","tags":[]},"31345":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"31346":{"varMapping":{"__isSmartRef__":true,"id":31347},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":31348},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31347":{"this":{"__isSmartRef__":true,"id":31269}},"31348":{"timestamp":{"__isSmartRef__":true,"id":31349},"user":"sebastianwoinar","tags":[]},"31349":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"31350":{"varMapping":{"__isSmartRef__":true,"id":31351},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":31352},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31351":{"this":{"__isSmartRef__":true,"id":31269}},"31352":{"timestamp":{"__isSmartRef__":true,"id":31353},"user":"sebastianwoinar","tags":[]},"31353":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"31354":{"varMapping":{"__isSmartRef__":true,"id":31355},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":31356},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31355":{"this":{"__isSmartRef__":true,"id":31269}},"31356":{"timestamp":{"__isSmartRef__":true,"id":31357},"user":"sebastianwoinar","tags":[]},"31357":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"31358":{"varMapping":{"__isSmartRef__":true,"id":31359},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":31364},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31359":{"this":{"__isSmartRef__":true,"id":31269},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":31360}},"31360":{"$super":{"__isSmartRef__":true,"id":31361}},"31361":{"varMapping":{"__isSmartRef__":true,"id":31362},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":31363},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31362":{"obj":{"__isSmartRef__":true,"id":31269},"name":"onMouseDown"},"31363":{},"31364":{"timestamp":{"__isSmartRef__":true,"id":31365},"user":"sebastianwoinar","tags":[]},"31365":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"31366":{"varMapping":{"__isSmartRef__":true,"id":31367},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":31368},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31367":{"this":{"__isSmartRef__":true,"id":31269}},"31368":{"timestamp":{"__isSmartRef__":true,"id":31369},"user":"sebastianwoinar","tags":[]},"31369":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"31370":{"varMapping":{"__isSmartRef__":true,"id":31371},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":31372},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31371":{"this":{"__isSmartRef__":true,"id":31269}},"31372":{"timestamp":{"__isSmartRef__":true,"id":31373},"user":"sebastianwoinar","tags":[]},"31373":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"31374":{"varMapping":{"__isSmartRef__":true,"id":31375},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":31376},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31375":{"this":{"__isSmartRef__":true,"id":31269}},"31376":{"timestamp":{"__isSmartRef__":true,"id":31377},"user":"sebastianwoinar","tags":[]},"31377":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"31378":{"varMapping":{"__isSmartRef__":true,"id":31379},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":31380},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31379":{"this":{"__isSmartRef__":true,"id":31269}},"31380":{"timestamp":{"__isSmartRef__":true,"id":31381},"user":"sebastianwoinar","tags":[]},"31381":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"31382":{"varMapping":{"__isSmartRef__":true,"id":31383},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":31384},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31383":{"this":{"__isSmartRef__":true,"id":31269}},"31384":{"timestamp":{"__isSmartRef__":true,"id":31385},"user":"sebastianwoinar","tags":[]},"31385":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"31386":{"varMapping":{"__isSmartRef__":true,"id":31387},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":31388},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31387":{"this":{"__isSmartRef__":true,"id":31269}},"31388":{"timestamp":{"__isSmartRef__":true,"id":31389},"user":"sebastianwoinar","tags":[]},"31389":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"31390":{"varMapping":{"__isSmartRef__":true,"id":31391},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":31392},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31391":{"this":{"__isSmartRef__":true,"id":31269}},"31392":{"timestamp":{"__isSmartRef__":true,"id":31393},"user":"sebastianwoinar","tags":[]},"31393":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"31394":{"varMapping":{"__isSmartRef__":true,"id":31395},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":31396},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31395":{"this":{"__isSmartRef__":true,"id":31269}},"31396":{"timestamp":{"__isSmartRef__":true,"id":31397},"user":"sebastianwoinar","tags":[]},"31397":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"31398":{"submorphs":[{"__isSmartRef__":true,"id":31399}],"scripts":[],"shape":{"__isSmartRef__":true,"id":31416},"id":"7ED6B733-1263-4F6C-882E-D6B165E35162","eventHandler":{"__isSmartRef__":true,"id":31417},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":31418},"name":"node202","partsBinMetaInfo":{"__isSmartRef__":true,"id":31419},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5833},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":30600},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":31422},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(922.2,210.0)"},"31399":{"submorphs":[],"scripts":[],"id":"B6599E6C-FF14-494D-8B89-8469F6F36EEE","shape":{"__isSmartRef__":true,"id":31400},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":31401},"textChunks":[{"__isSmartRef__":true,"id":31413}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":31415},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":31398},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"31400":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"31401":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":31402},{"__isSmartRef__":true,"id":31404},{"__isSmartRef__":true,"id":31406},{"__isSmartRef__":true,"id":31408},{"__isSmartRef__":true,"id":31410}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":31412},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"31402":{"date":{"__isSmartRef__":true,"id":31403},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"31403":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"31404":{"date":{"__isSmartRef__":true,"id":31405},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"31405":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"31406":{"date":{"__isSmartRef__":true,"id":31407},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"31407":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"31408":{"date":{"__isSmartRef__":true,"id":31409},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"31409":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"31410":{"date":{"__isSmartRef__":true,"id":31411},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"31411":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"31412":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"31413":{"style":{"__isSmartRef__":true,"id":31414},"morph":{"__isSmartRef__":true,"id":31399},"chunkOwner":{"__isSmartRef__":true,"id":31399},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"31414":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"31415":{"morph":{"__isSmartRef__":true,"id":31399},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"31416":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"31417":{"morph":{"__isSmartRef__":true,"id":31398},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"31418":{},"31419":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":31420}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"31420":{"date":{"__isSmartRef__":true,"id":31421},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"31421":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"31422":{"buildChildNodes":{"__isSmartRef__":true,"id":31423},"getGameTree":{"__isSmartRef__":true,"id":31427},"getLevel":{"__isSmartRef__":true,"id":31431},"getLevelWeight":{"__isSmartRef__":true,"id":31435},"getWeight":{"__isSmartRef__":true,"id":31439},"setNode":{"__isSmartRef__":true,"id":31443},"setParent":{"__isSmartRef__":true,"id":31447},"getParent":{"__isSmartRef__":true,"id":31451},"deactivate":{"__isSmartRef__":true,"id":31455},"blink":{"__isSmartRef__":true,"id":31459},"ABPreturn":{"__isSmartRef__":true,"id":31463},"ABPstart":{"__isSmartRef__":true,"id":31467},"ABPcontinue":{"__isSmartRef__":true,"id":31471},"ABPshowValue":{"__isSmartRef__":true,"id":31475},"ABPgetValue":{"__isSmartRef__":true,"id":31479},"ABPhasChildNodes":{"__isSmartRef__":true,"id":31483},"onMouseDown":{"__isSmartRef__":true,"id":31487},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":31495},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":31499},"ABPmarkAsDone":{"__isSmartRef__":true,"id":31503},"ABPmarkAsActive":{"__isSmartRef__":true,"id":31507},"getStateMorph":{"__isSmartRef__":true,"id":31511},"showState":{"__isSmartRef__":true,"id":31515},"ABPfailHard":{"__isSmartRef__":true,"id":31519},"markFinalDrawWith":{"__isSmartRef__":true,"id":31523}},"31423":{"varMapping":{"__isSmartRef__":true,"id":31424},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":31425},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31424":{"this":{"__isSmartRef__":true,"id":31398}},"31425":{"timestamp":{"__isSmartRef__":true,"id":31426},"user":"sebastianwoinar","tags":[]},"31426":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"31427":{"varMapping":{"__isSmartRef__":true,"id":31428},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":31429},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31428":{"this":{"__isSmartRef__":true,"id":31398}},"31429":{"timestamp":{"__isSmartRef__":true,"id":31430},"user":"sebastianwoinar","tags":[]},"31430":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31431":{"varMapping":{"__isSmartRef__":true,"id":31432},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":31433},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31432":{"this":{"__isSmartRef__":true,"id":31398}},"31433":{"timestamp":{"__isSmartRef__":true,"id":31434},"user":"sebastianwoinar","tags":[]},"31434":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31435":{"varMapping":{"__isSmartRef__":true,"id":31436},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":31437},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31436":{"this":{"__isSmartRef__":true,"id":31398}},"31437":{"timestamp":{"__isSmartRef__":true,"id":31438},"user":"sebastianwoinar","tags":[]},"31438":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31439":{"varMapping":{"__isSmartRef__":true,"id":31440},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":31441},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31440":{"this":{"__isSmartRef__":true,"id":31398}},"31441":{"timestamp":{"__isSmartRef__":true,"id":31442},"user":"sebastianwoinar","tags":[]},"31442":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31443":{"varMapping":{"__isSmartRef__":true,"id":31444},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":31445},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31444":{"this":{"__isSmartRef__":true,"id":31398}},"31445":{"timestamp":{"__isSmartRef__":true,"id":31446},"user":"sebastianwoinar","tags":[]},"31446":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31447":{"varMapping":{"__isSmartRef__":true,"id":31448},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":31449},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31448":{"this":{"__isSmartRef__":true,"id":31398}},"31449":{"timestamp":{"__isSmartRef__":true,"id":31450},"user":"sebastianwoinar","tags":[]},"31450":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31451":{"varMapping":{"__isSmartRef__":true,"id":31452},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":31453},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31452":{"this":{"__isSmartRef__":true,"id":31398}},"31453":{"timestamp":{"__isSmartRef__":true,"id":31454},"user":"sebastianwoinar","tags":[]},"31454":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"31455":{"varMapping":{"__isSmartRef__":true,"id":31456},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":31457},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31456":{"this":{"__isSmartRef__":true,"id":31398}},"31457":{"timestamp":{"__isSmartRef__":true,"id":31458},"user":"sebastianwoinar","tags":[]},"31458":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"31459":{"varMapping":{"__isSmartRef__":true,"id":31460},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":31461},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31460":{"this":{"__isSmartRef__":true,"id":31398}},"31461":{"timestamp":{"__isSmartRef__":true,"id":31462},"user":"sebastianwoinar","tags":[]},"31462":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"31463":{"varMapping":{"__isSmartRef__":true,"id":31464},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":31465},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31464":{"this":{"__isSmartRef__":true,"id":31398}},"31465":{"timestamp":{"__isSmartRef__":true,"id":31466},"user":"sebastianwoinar","tags":[]},"31466":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"31467":{"varMapping":{"__isSmartRef__":true,"id":31468},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":31469},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31468":{"this":{"__isSmartRef__":true,"id":31398}},"31469":{"timestamp":{"__isSmartRef__":true,"id":31470},"user":"sebastianwoinar","tags":[]},"31470":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"31471":{"varMapping":{"__isSmartRef__":true,"id":31472},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":31473},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31472":{"this":{"__isSmartRef__":true,"id":31398}},"31473":{"timestamp":{"__isSmartRef__":true,"id":31474},"user":"sebastianwoinar","tags":[]},"31474":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"31475":{"varMapping":{"__isSmartRef__":true,"id":31476},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":31477},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31476":{"this":{"__isSmartRef__":true,"id":31398}},"31477":{"timestamp":{"__isSmartRef__":true,"id":31478},"user":"sebastianwoinar","tags":[]},"31478":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"31479":{"varMapping":{"__isSmartRef__":true,"id":31480},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":31481},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31480":{"this":{"__isSmartRef__":true,"id":31398}},"31481":{"timestamp":{"__isSmartRef__":true,"id":31482},"user":"sebastianwoinar","tags":[]},"31482":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"31483":{"varMapping":{"__isSmartRef__":true,"id":31484},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":31485},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31484":{"this":{"__isSmartRef__":true,"id":31398}},"31485":{"timestamp":{"__isSmartRef__":true,"id":31486},"user":"sebastianwoinar","tags":[]},"31486":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"31487":{"varMapping":{"__isSmartRef__":true,"id":31488},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":31493},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31488":{"this":{"__isSmartRef__":true,"id":31398},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":31489}},"31489":{"$super":{"__isSmartRef__":true,"id":31490}},"31490":{"varMapping":{"__isSmartRef__":true,"id":31491},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":31492},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31491":{"obj":{"__isSmartRef__":true,"id":31398},"name":"onMouseDown"},"31492":{},"31493":{"timestamp":{"__isSmartRef__":true,"id":31494},"user":"sebastianwoinar","tags":[]},"31494":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"31495":{"varMapping":{"__isSmartRef__":true,"id":31496},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":31497},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31496":{"this":{"__isSmartRef__":true,"id":31398}},"31497":{"timestamp":{"__isSmartRef__":true,"id":31498},"user":"sebastianwoinar","tags":[]},"31498":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"31499":{"varMapping":{"__isSmartRef__":true,"id":31500},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":31501},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31500":{"this":{"__isSmartRef__":true,"id":31398}},"31501":{"timestamp":{"__isSmartRef__":true,"id":31502},"user":"sebastianwoinar","tags":[]},"31502":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"31503":{"varMapping":{"__isSmartRef__":true,"id":31504},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":31505},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31504":{"this":{"__isSmartRef__":true,"id":31398}},"31505":{"timestamp":{"__isSmartRef__":true,"id":31506},"user":"sebastianwoinar","tags":[]},"31506":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"31507":{"varMapping":{"__isSmartRef__":true,"id":31508},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":31509},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31508":{"this":{"__isSmartRef__":true,"id":31398}},"31509":{"timestamp":{"__isSmartRef__":true,"id":31510},"user":"sebastianwoinar","tags":[]},"31510":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"31511":{"varMapping":{"__isSmartRef__":true,"id":31512},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":31513},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31512":{"this":{"__isSmartRef__":true,"id":31398}},"31513":{"timestamp":{"__isSmartRef__":true,"id":31514},"user":"sebastianwoinar","tags":[]},"31514":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"31515":{"varMapping":{"__isSmartRef__":true,"id":31516},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":31517},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31516":{"this":{"__isSmartRef__":true,"id":31398}},"31517":{"timestamp":{"__isSmartRef__":true,"id":31518},"user":"sebastianwoinar","tags":[]},"31518":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"31519":{"varMapping":{"__isSmartRef__":true,"id":31520},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":31521},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31520":{"this":{"__isSmartRef__":true,"id":31398}},"31521":{"timestamp":{"__isSmartRef__":true,"id":31522},"user":"sebastianwoinar","tags":[]},"31522":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"31523":{"varMapping":{"__isSmartRef__":true,"id":31524},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":31525},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31524":{"this":{"__isSmartRef__":true,"id":31398}},"31525":{"timestamp":{"__isSmartRef__":true,"id":31526},"user":"sebastianwoinar","tags":[]},"31526":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"31527":{"submorphs":[{"__isSmartRef__":true,"id":31528}],"scripts":[],"shape":{"__isSmartRef__":true,"id":31545},"id":"6444A18E-647F-487C-B8BB-9E8EEE6AE3AA","eventHandler":{"__isSmartRef__":true,"id":31546},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":31547},"name":"node203","partsBinMetaInfo":{"__isSmartRef__":true,"id":31548},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5835},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":30600},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":31551},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(927.4,210.0)"},"31528":{"submorphs":[],"scripts":[],"id":"9FB77315-CB17-4330-A023-06E0A4A9232A","shape":{"__isSmartRef__":true,"id":31529},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":31530},"textChunks":[{"__isSmartRef__":true,"id":31542}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":31544},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":31527},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"31529":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"31530":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":31531},{"__isSmartRef__":true,"id":31533},{"__isSmartRef__":true,"id":31535},{"__isSmartRef__":true,"id":31537},{"__isSmartRef__":true,"id":31539}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":31541},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"31531":{"date":{"__isSmartRef__":true,"id":31532},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"31532":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"31533":{"date":{"__isSmartRef__":true,"id":31534},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"31534":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"31535":{"date":{"__isSmartRef__":true,"id":31536},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"31536":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"31537":{"date":{"__isSmartRef__":true,"id":31538},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"31538":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"31539":{"date":{"__isSmartRef__":true,"id":31540},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"31540":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"31541":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"31542":{"style":{"__isSmartRef__":true,"id":31543},"morph":{"__isSmartRef__":true,"id":31528},"chunkOwner":{"__isSmartRef__":true,"id":31528},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"31543":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"31544":{"morph":{"__isSmartRef__":true,"id":31528},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"31545":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"31546":{"morph":{"__isSmartRef__":true,"id":31527},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"31547":{},"31548":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":31549}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"31549":{"date":{"__isSmartRef__":true,"id":31550},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"31550":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"31551":{"buildChildNodes":{"__isSmartRef__":true,"id":31552},"getGameTree":{"__isSmartRef__":true,"id":31556},"getLevel":{"__isSmartRef__":true,"id":31560},"getLevelWeight":{"__isSmartRef__":true,"id":31564},"getWeight":{"__isSmartRef__":true,"id":31568},"setNode":{"__isSmartRef__":true,"id":31572},"setParent":{"__isSmartRef__":true,"id":31576},"getParent":{"__isSmartRef__":true,"id":31580},"deactivate":{"__isSmartRef__":true,"id":31584},"blink":{"__isSmartRef__":true,"id":31588},"ABPreturn":{"__isSmartRef__":true,"id":31592},"ABPstart":{"__isSmartRef__":true,"id":31596},"ABPcontinue":{"__isSmartRef__":true,"id":31600},"ABPshowValue":{"__isSmartRef__":true,"id":31604},"ABPgetValue":{"__isSmartRef__":true,"id":31608},"ABPhasChildNodes":{"__isSmartRef__":true,"id":31612},"onMouseDown":{"__isSmartRef__":true,"id":31616},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":31624},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":31628},"ABPmarkAsDone":{"__isSmartRef__":true,"id":31632},"ABPmarkAsActive":{"__isSmartRef__":true,"id":31636},"getStateMorph":{"__isSmartRef__":true,"id":31640},"showState":{"__isSmartRef__":true,"id":31644},"ABPfailHard":{"__isSmartRef__":true,"id":31648},"markFinalDrawWith":{"__isSmartRef__":true,"id":31652}},"31552":{"varMapping":{"__isSmartRef__":true,"id":31553},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":31554},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31553":{"this":{"__isSmartRef__":true,"id":31527}},"31554":{"timestamp":{"__isSmartRef__":true,"id":31555},"user":"sebastianwoinar","tags":[]},"31555":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"31556":{"varMapping":{"__isSmartRef__":true,"id":31557},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":31558},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31557":{"this":{"__isSmartRef__":true,"id":31527}},"31558":{"timestamp":{"__isSmartRef__":true,"id":31559},"user":"sebastianwoinar","tags":[]},"31559":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31560":{"varMapping":{"__isSmartRef__":true,"id":31561},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":31562},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31561":{"this":{"__isSmartRef__":true,"id":31527}},"31562":{"timestamp":{"__isSmartRef__":true,"id":31563},"user":"sebastianwoinar","tags":[]},"31563":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31564":{"varMapping":{"__isSmartRef__":true,"id":31565},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":31566},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31565":{"this":{"__isSmartRef__":true,"id":31527}},"31566":{"timestamp":{"__isSmartRef__":true,"id":31567},"user":"sebastianwoinar","tags":[]},"31567":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31568":{"varMapping":{"__isSmartRef__":true,"id":31569},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":31570},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31569":{"this":{"__isSmartRef__":true,"id":31527}},"31570":{"timestamp":{"__isSmartRef__":true,"id":31571},"user":"sebastianwoinar","tags":[]},"31571":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31572":{"varMapping":{"__isSmartRef__":true,"id":31573},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":31574},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31573":{"this":{"__isSmartRef__":true,"id":31527}},"31574":{"timestamp":{"__isSmartRef__":true,"id":31575},"user":"sebastianwoinar","tags":[]},"31575":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31576":{"varMapping":{"__isSmartRef__":true,"id":31577},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":31578},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31577":{"this":{"__isSmartRef__":true,"id":31527}},"31578":{"timestamp":{"__isSmartRef__":true,"id":31579},"user":"sebastianwoinar","tags":[]},"31579":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31580":{"varMapping":{"__isSmartRef__":true,"id":31581},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":31582},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31581":{"this":{"__isSmartRef__":true,"id":31527}},"31582":{"timestamp":{"__isSmartRef__":true,"id":31583},"user":"sebastianwoinar","tags":[]},"31583":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"31584":{"varMapping":{"__isSmartRef__":true,"id":31585},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":31586},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31585":{"this":{"__isSmartRef__":true,"id":31527}},"31586":{"timestamp":{"__isSmartRef__":true,"id":31587},"user":"sebastianwoinar","tags":[]},"31587":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"31588":{"varMapping":{"__isSmartRef__":true,"id":31589},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":31590},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31589":{"this":{"__isSmartRef__":true,"id":31527}},"31590":{"timestamp":{"__isSmartRef__":true,"id":31591},"user":"sebastianwoinar","tags":[]},"31591":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"31592":{"varMapping":{"__isSmartRef__":true,"id":31593},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":31594},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31593":{"this":{"__isSmartRef__":true,"id":31527}},"31594":{"timestamp":{"__isSmartRef__":true,"id":31595},"user":"sebastianwoinar","tags":[]},"31595":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"31596":{"varMapping":{"__isSmartRef__":true,"id":31597},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":31598},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31597":{"this":{"__isSmartRef__":true,"id":31527}},"31598":{"timestamp":{"__isSmartRef__":true,"id":31599},"user":"sebastianwoinar","tags":[]},"31599":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"31600":{"varMapping":{"__isSmartRef__":true,"id":31601},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":31602},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31601":{"this":{"__isSmartRef__":true,"id":31527}},"31602":{"timestamp":{"__isSmartRef__":true,"id":31603},"user":"sebastianwoinar","tags":[]},"31603":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"31604":{"varMapping":{"__isSmartRef__":true,"id":31605},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":31606},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31605":{"this":{"__isSmartRef__":true,"id":31527}},"31606":{"timestamp":{"__isSmartRef__":true,"id":31607},"user":"sebastianwoinar","tags":[]},"31607":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"31608":{"varMapping":{"__isSmartRef__":true,"id":31609},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":31610},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31609":{"this":{"__isSmartRef__":true,"id":31527}},"31610":{"timestamp":{"__isSmartRef__":true,"id":31611},"user":"sebastianwoinar","tags":[]},"31611":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"31612":{"varMapping":{"__isSmartRef__":true,"id":31613},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":31614},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31613":{"this":{"__isSmartRef__":true,"id":31527}},"31614":{"timestamp":{"__isSmartRef__":true,"id":31615},"user":"sebastianwoinar","tags":[]},"31615":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"31616":{"varMapping":{"__isSmartRef__":true,"id":31617},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":31622},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31617":{"this":{"__isSmartRef__":true,"id":31527},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":31618}},"31618":{"$super":{"__isSmartRef__":true,"id":31619}},"31619":{"varMapping":{"__isSmartRef__":true,"id":31620},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":31621},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31620":{"obj":{"__isSmartRef__":true,"id":31527},"name":"onMouseDown"},"31621":{},"31622":{"timestamp":{"__isSmartRef__":true,"id":31623},"user":"sebastianwoinar","tags":[]},"31623":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"31624":{"varMapping":{"__isSmartRef__":true,"id":31625},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":31626},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31625":{"this":{"__isSmartRef__":true,"id":31527}},"31626":{"timestamp":{"__isSmartRef__":true,"id":31627},"user":"sebastianwoinar","tags":[]},"31627":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"31628":{"varMapping":{"__isSmartRef__":true,"id":31629},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":31630},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31629":{"this":{"__isSmartRef__":true,"id":31527}},"31630":{"timestamp":{"__isSmartRef__":true,"id":31631},"user":"sebastianwoinar","tags":[]},"31631":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"31632":{"varMapping":{"__isSmartRef__":true,"id":31633},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":31634},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31633":{"this":{"__isSmartRef__":true,"id":31527}},"31634":{"timestamp":{"__isSmartRef__":true,"id":31635},"user":"sebastianwoinar","tags":[]},"31635":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"31636":{"varMapping":{"__isSmartRef__":true,"id":31637},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":31638},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31637":{"this":{"__isSmartRef__":true,"id":31527}},"31638":{"timestamp":{"__isSmartRef__":true,"id":31639},"user":"sebastianwoinar","tags":[]},"31639":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"31640":{"varMapping":{"__isSmartRef__":true,"id":31641},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":31642},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31641":{"this":{"__isSmartRef__":true,"id":31527}},"31642":{"timestamp":{"__isSmartRef__":true,"id":31643},"user":"sebastianwoinar","tags":[]},"31643":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"31644":{"varMapping":{"__isSmartRef__":true,"id":31645},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":31646},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31645":{"this":{"__isSmartRef__":true,"id":31527}},"31646":{"timestamp":{"__isSmartRef__":true,"id":31647},"user":"sebastianwoinar","tags":[]},"31647":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"31648":{"varMapping":{"__isSmartRef__":true,"id":31649},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":31650},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31649":{"this":{"__isSmartRef__":true,"id":31527}},"31650":{"timestamp":{"__isSmartRef__":true,"id":31651},"user":"sebastianwoinar","tags":[]},"31651":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"31652":{"varMapping":{"__isSmartRef__":true,"id":31653},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":31654},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31653":{"this":{"__isSmartRef__":true,"id":31527}},"31654":{"timestamp":{"__isSmartRef__":true,"id":31655},"user":"sebastianwoinar","tags":[]},"31655":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"31656":{"submorphs":[{"__isSmartRef__":true,"id":31657}],"scripts":[],"shape":{"__isSmartRef__":true,"id":31674},"id":"64E64A9C-4AC2-4D2D-967D-4E6F493B57F7","eventHandler":{"__isSmartRef__":true,"id":31675},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":31676},"name":"node204","partsBinMetaInfo":{"__isSmartRef__":true,"id":31677},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5837},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":30600},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":31680},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(932.5,210.0)"},"31657":{"submorphs":[],"scripts":[],"id":"467AE41F-6C52-45F3-B76A-B69DA5CE974C","shape":{"__isSmartRef__":true,"id":31658},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":31659},"textChunks":[{"__isSmartRef__":true,"id":31671}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":31673},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":31656},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"31658":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"31659":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":31660},{"__isSmartRef__":true,"id":31662},{"__isSmartRef__":true,"id":31664},{"__isSmartRef__":true,"id":31666},{"__isSmartRef__":true,"id":31668}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":31670},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"31660":{"date":{"__isSmartRef__":true,"id":31661},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"31661":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"31662":{"date":{"__isSmartRef__":true,"id":31663},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"31663":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"31664":{"date":{"__isSmartRef__":true,"id":31665},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"31665":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"31666":{"date":{"__isSmartRef__":true,"id":31667},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"31667":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"31668":{"date":{"__isSmartRef__":true,"id":31669},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"31669":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"31670":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"31671":{"style":{"__isSmartRef__":true,"id":31672},"morph":{"__isSmartRef__":true,"id":31657},"chunkOwner":{"__isSmartRef__":true,"id":31657},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"31672":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"31673":{"morph":{"__isSmartRef__":true,"id":31657},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"31674":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"31675":{"morph":{"__isSmartRef__":true,"id":31656},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"31676":{},"31677":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":31678}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"31678":{"date":{"__isSmartRef__":true,"id":31679},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"31679":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"31680":{"buildChildNodes":{"__isSmartRef__":true,"id":31681},"getGameTree":{"__isSmartRef__":true,"id":31685},"getLevel":{"__isSmartRef__":true,"id":31689},"getLevelWeight":{"__isSmartRef__":true,"id":31693},"getWeight":{"__isSmartRef__":true,"id":31697},"setNode":{"__isSmartRef__":true,"id":31701},"setParent":{"__isSmartRef__":true,"id":31705},"getParent":{"__isSmartRef__":true,"id":31709},"deactivate":{"__isSmartRef__":true,"id":31713},"blink":{"__isSmartRef__":true,"id":31717},"ABPreturn":{"__isSmartRef__":true,"id":31721},"ABPstart":{"__isSmartRef__":true,"id":31725},"ABPcontinue":{"__isSmartRef__":true,"id":31729},"ABPshowValue":{"__isSmartRef__":true,"id":31733},"ABPgetValue":{"__isSmartRef__":true,"id":31737},"ABPhasChildNodes":{"__isSmartRef__":true,"id":31741},"onMouseDown":{"__isSmartRef__":true,"id":31745},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":31753},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":31757},"ABPmarkAsDone":{"__isSmartRef__":true,"id":31761},"ABPmarkAsActive":{"__isSmartRef__":true,"id":31765},"getStateMorph":{"__isSmartRef__":true,"id":31769},"showState":{"__isSmartRef__":true,"id":31773},"ABPfailHard":{"__isSmartRef__":true,"id":31777},"markFinalDrawWith":{"__isSmartRef__":true,"id":31781}},"31681":{"varMapping":{"__isSmartRef__":true,"id":31682},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":31683},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31682":{"this":{"__isSmartRef__":true,"id":31656}},"31683":{"timestamp":{"__isSmartRef__":true,"id":31684},"user":"sebastianwoinar","tags":[]},"31684":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"31685":{"varMapping":{"__isSmartRef__":true,"id":31686},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":31687},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31686":{"this":{"__isSmartRef__":true,"id":31656}},"31687":{"timestamp":{"__isSmartRef__":true,"id":31688},"user":"sebastianwoinar","tags":[]},"31688":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31689":{"varMapping":{"__isSmartRef__":true,"id":31690},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":31691},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31690":{"this":{"__isSmartRef__":true,"id":31656}},"31691":{"timestamp":{"__isSmartRef__":true,"id":31692},"user":"sebastianwoinar","tags":[]},"31692":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31693":{"varMapping":{"__isSmartRef__":true,"id":31694},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":31695},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31694":{"this":{"__isSmartRef__":true,"id":31656}},"31695":{"timestamp":{"__isSmartRef__":true,"id":31696},"user":"sebastianwoinar","tags":[]},"31696":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31697":{"varMapping":{"__isSmartRef__":true,"id":31698},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":31699},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31698":{"this":{"__isSmartRef__":true,"id":31656}},"31699":{"timestamp":{"__isSmartRef__":true,"id":31700},"user":"sebastianwoinar","tags":[]},"31700":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31701":{"varMapping":{"__isSmartRef__":true,"id":31702},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":31703},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31702":{"this":{"__isSmartRef__":true,"id":31656}},"31703":{"timestamp":{"__isSmartRef__":true,"id":31704},"user":"sebastianwoinar","tags":[]},"31704":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31705":{"varMapping":{"__isSmartRef__":true,"id":31706},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":31707},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31706":{"this":{"__isSmartRef__":true,"id":31656}},"31707":{"timestamp":{"__isSmartRef__":true,"id":31708},"user":"sebastianwoinar","tags":[]},"31708":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31709":{"varMapping":{"__isSmartRef__":true,"id":31710},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":31711},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31710":{"this":{"__isSmartRef__":true,"id":31656}},"31711":{"timestamp":{"__isSmartRef__":true,"id":31712},"user":"sebastianwoinar","tags":[]},"31712":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"31713":{"varMapping":{"__isSmartRef__":true,"id":31714},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":31715},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31714":{"this":{"__isSmartRef__":true,"id":31656}},"31715":{"timestamp":{"__isSmartRef__":true,"id":31716},"user":"sebastianwoinar","tags":[]},"31716":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"31717":{"varMapping":{"__isSmartRef__":true,"id":31718},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":31719},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31718":{"this":{"__isSmartRef__":true,"id":31656}},"31719":{"timestamp":{"__isSmartRef__":true,"id":31720},"user":"sebastianwoinar","tags":[]},"31720":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"31721":{"varMapping":{"__isSmartRef__":true,"id":31722},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":31723},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31722":{"this":{"__isSmartRef__":true,"id":31656}},"31723":{"timestamp":{"__isSmartRef__":true,"id":31724},"user":"sebastianwoinar","tags":[]},"31724":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"31725":{"varMapping":{"__isSmartRef__":true,"id":31726},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":31727},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31726":{"this":{"__isSmartRef__":true,"id":31656}},"31727":{"timestamp":{"__isSmartRef__":true,"id":31728},"user":"sebastianwoinar","tags":[]},"31728":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"31729":{"varMapping":{"__isSmartRef__":true,"id":31730},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":31731},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31730":{"this":{"__isSmartRef__":true,"id":31656}},"31731":{"timestamp":{"__isSmartRef__":true,"id":31732},"user":"sebastianwoinar","tags":[]},"31732":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"31733":{"varMapping":{"__isSmartRef__":true,"id":31734},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":31735},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31734":{"this":{"__isSmartRef__":true,"id":31656}},"31735":{"timestamp":{"__isSmartRef__":true,"id":31736},"user":"sebastianwoinar","tags":[]},"31736":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"31737":{"varMapping":{"__isSmartRef__":true,"id":31738},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":31739},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31738":{"this":{"__isSmartRef__":true,"id":31656}},"31739":{"timestamp":{"__isSmartRef__":true,"id":31740},"user":"sebastianwoinar","tags":[]},"31740":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"31741":{"varMapping":{"__isSmartRef__":true,"id":31742},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":31743},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31742":{"this":{"__isSmartRef__":true,"id":31656}},"31743":{"timestamp":{"__isSmartRef__":true,"id":31744},"user":"sebastianwoinar","tags":[]},"31744":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"31745":{"varMapping":{"__isSmartRef__":true,"id":31746},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":31751},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31746":{"this":{"__isSmartRef__":true,"id":31656},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":31747}},"31747":{"$super":{"__isSmartRef__":true,"id":31748}},"31748":{"varMapping":{"__isSmartRef__":true,"id":31749},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":31750},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31749":{"obj":{"__isSmartRef__":true,"id":31656},"name":"onMouseDown"},"31750":{},"31751":{"timestamp":{"__isSmartRef__":true,"id":31752},"user":"sebastianwoinar","tags":[]},"31752":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"31753":{"varMapping":{"__isSmartRef__":true,"id":31754},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":31755},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31754":{"this":{"__isSmartRef__":true,"id":31656}},"31755":{"timestamp":{"__isSmartRef__":true,"id":31756},"user":"sebastianwoinar","tags":[]},"31756":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"31757":{"varMapping":{"__isSmartRef__":true,"id":31758},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":31759},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31758":{"this":{"__isSmartRef__":true,"id":31656}},"31759":{"timestamp":{"__isSmartRef__":true,"id":31760},"user":"sebastianwoinar","tags":[]},"31760":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"31761":{"varMapping":{"__isSmartRef__":true,"id":31762},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":31763},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31762":{"this":{"__isSmartRef__":true,"id":31656}},"31763":{"timestamp":{"__isSmartRef__":true,"id":31764},"user":"sebastianwoinar","tags":[]},"31764":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"31765":{"varMapping":{"__isSmartRef__":true,"id":31766},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":31767},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31766":{"this":{"__isSmartRef__":true,"id":31656}},"31767":{"timestamp":{"__isSmartRef__":true,"id":31768},"user":"sebastianwoinar","tags":[]},"31768":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"31769":{"varMapping":{"__isSmartRef__":true,"id":31770},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":31771},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31770":{"this":{"__isSmartRef__":true,"id":31656}},"31771":{"timestamp":{"__isSmartRef__":true,"id":31772},"user":"sebastianwoinar","tags":[]},"31772":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"31773":{"varMapping":{"__isSmartRef__":true,"id":31774},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":31775},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31774":{"this":{"__isSmartRef__":true,"id":31656}},"31775":{"timestamp":{"__isSmartRef__":true,"id":31776},"user":"sebastianwoinar","tags":[]},"31776":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"31777":{"varMapping":{"__isSmartRef__":true,"id":31778},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":31779},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31778":{"this":{"__isSmartRef__":true,"id":31656}},"31779":{"timestamp":{"__isSmartRef__":true,"id":31780},"user":"sebastianwoinar","tags":[]},"31780":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"31781":{"varMapping":{"__isSmartRef__":true,"id":31782},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":31783},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31782":{"this":{"__isSmartRef__":true,"id":31656}},"31783":{"timestamp":{"__isSmartRef__":true,"id":31784},"user":"sebastianwoinar","tags":[]},"31784":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"31785":{"buildChildNodes":{"__isSmartRef__":true,"id":31786},"getGameTree":{"__isSmartRef__":true,"id":31790},"getLevel":{"__isSmartRef__":true,"id":31794},"getLevelWeight":{"__isSmartRef__":true,"id":31798},"getWeight":{"__isSmartRef__":true,"id":31802},"setNode":{"__isSmartRef__":true,"id":31806},"setParent":{"__isSmartRef__":true,"id":31810},"getParent":{"__isSmartRef__":true,"id":31814},"deactivate":{"__isSmartRef__":true,"id":31818},"blink":{"__isSmartRef__":true,"id":31822},"ABPreturn":{"__isSmartRef__":true,"id":31826},"ABPstart":{"__isSmartRef__":true,"id":31830},"ABPcontinue":{"__isSmartRef__":true,"id":31834},"ABPshowValue":{"__isSmartRef__":true,"id":31838},"ABPgetValue":{"__isSmartRef__":true,"id":31842},"ABPhasChildNodes":{"__isSmartRef__":true,"id":31846},"onMouseDown":{"__isSmartRef__":true,"id":31850},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":31858},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":31862},"ABPmarkAsDone":{"__isSmartRef__":true,"id":31866},"ABPmarkAsActive":{"__isSmartRef__":true,"id":31870},"getStateMorph":{"__isSmartRef__":true,"id":31874},"showState":{"__isSmartRef__":true,"id":31878},"ABPfailHard":{"__isSmartRef__":true,"id":31882},"markFinalDrawWith":{"__isSmartRef__":true,"id":31886}},"31786":{"varMapping":{"__isSmartRef__":true,"id":31787},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":31788},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31787":{"this":{"__isSmartRef__":true,"id":30600}},"31788":{"timestamp":{"__isSmartRef__":true,"id":31789},"user":"sebastianwoinar","tags":[]},"31789":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"31790":{"varMapping":{"__isSmartRef__":true,"id":31791},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":31792},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31791":{"this":{"__isSmartRef__":true,"id":30600}},"31792":{"timestamp":{"__isSmartRef__":true,"id":31793},"user":"sebastianwoinar","tags":[]},"31793":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31794":{"varMapping":{"__isSmartRef__":true,"id":31795},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":31796},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31795":{"this":{"__isSmartRef__":true,"id":30600}},"31796":{"timestamp":{"__isSmartRef__":true,"id":31797},"user":"sebastianwoinar","tags":[]},"31797":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31798":{"varMapping":{"__isSmartRef__":true,"id":31799},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":31800},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31799":{"this":{"__isSmartRef__":true,"id":30600}},"31800":{"timestamp":{"__isSmartRef__":true,"id":31801},"user":"sebastianwoinar","tags":[]},"31801":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31802":{"varMapping":{"__isSmartRef__":true,"id":31803},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":31804},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31803":{"this":{"__isSmartRef__":true,"id":30600}},"31804":{"timestamp":{"__isSmartRef__":true,"id":31805},"user":"sebastianwoinar","tags":[]},"31805":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31806":{"varMapping":{"__isSmartRef__":true,"id":31807},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":31808},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31807":{"this":{"__isSmartRef__":true,"id":30600}},"31808":{"timestamp":{"__isSmartRef__":true,"id":31809},"user":"sebastianwoinar","tags":[]},"31809":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31810":{"varMapping":{"__isSmartRef__":true,"id":31811},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":31812},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31811":{"this":{"__isSmartRef__":true,"id":30600}},"31812":{"timestamp":{"__isSmartRef__":true,"id":31813},"user":"sebastianwoinar","tags":[]},"31813":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31814":{"varMapping":{"__isSmartRef__":true,"id":31815},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":31816},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31815":{"this":{"__isSmartRef__":true,"id":30600}},"31816":{"timestamp":{"__isSmartRef__":true,"id":31817},"user":"sebastianwoinar","tags":[]},"31817":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"31818":{"varMapping":{"__isSmartRef__":true,"id":31819},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":31820},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31819":{"this":{"__isSmartRef__":true,"id":30600}},"31820":{"timestamp":{"__isSmartRef__":true,"id":31821},"user":"sebastianwoinar","tags":[]},"31821":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"31822":{"varMapping":{"__isSmartRef__":true,"id":31823},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":31824},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31823":{"this":{"__isSmartRef__":true,"id":30600}},"31824":{"timestamp":{"__isSmartRef__":true,"id":31825},"user":"sebastianwoinar","tags":[]},"31825":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"31826":{"varMapping":{"__isSmartRef__":true,"id":31827},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":31828},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31827":{"this":{"__isSmartRef__":true,"id":30600}},"31828":{"timestamp":{"__isSmartRef__":true,"id":31829},"user":"sebastianwoinar","tags":[]},"31829":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"31830":{"varMapping":{"__isSmartRef__":true,"id":31831},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":31832},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31831":{"this":{"__isSmartRef__":true,"id":30600}},"31832":{"timestamp":{"__isSmartRef__":true,"id":31833},"user":"sebastianwoinar","tags":[]},"31833":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"31834":{"varMapping":{"__isSmartRef__":true,"id":31835},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":31836},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31835":{"this":{"__isSmartRef__":true,"id":30600}},"31836":{"timestamp":{"__isSmartRef__":true,"id":31837},"user":"sebastianwoinar","tags":[]},"31837":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"31838":{"varMapping":{"__isSmartRef__":true,"id":31839},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":31840},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31839":{"this":{"__isSmartRef__":true,"id":30600}},"31840":{"timestamp":{"__isSmartRef__":true,"id":31841},"user":"sebastianwoinar","tags":[]},"31841":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"31842":{"varMapping":{"__isSmartRef__":true,"id":31843},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":31844},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31843":{"this":{"__isSmartRef__":true,"id":30600}},"31844":{"timestamp":{"__isSmartRef__":true,"id":31845},"user":"sebastianwoinar","tags":[]},"31845":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"31846":{"varMapping":{"__isSmartRef__":true,"id":31847},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":31848},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31847":{"this":{"__isSmartRef__":true,"id":30600}},"31848":{"timestamp":{"__isSmartRef__":true,"id":31849},"user":"sebastianwoinar","tags":[]},"31849":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"31850":{"varMapping":{"__isSmartRef__":true,"id":31851},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":31856},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31851":{"this":{"__isSmartRef__":true,"id":30600},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":31852}},"31852":{"$super":{"__isSmartRef__":true,"id":31853}},"31853":{"varMapping":{"__isSmartRef__":true,"id":31854},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":31855},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31854":{"obj":{"__isSmartRef__":true,"id":30600},"name":"onMouseDown"},"31855":{},"31856":{"timestamp":{"__isSmartRef__":true,"id":31857},"user":"sebastianwoinar","tags":[]},"31857":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"31858":{"varMapping":{"__isSmartRef__":true,"id":31859},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":31860},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31859":{"this":{"__isSmartRef__":true,"id":30600}},"31860":{"timestamp":{"__isSmartRef__":true,"id":31861},"user":"sebastianwoinar","tags":[]},"31861":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"31862":{"varMapping":{"__isSmartRef__":true,"id":31863},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":31864},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31863":{"this":{"__isSmartRef__":true,"id":30600}},"31864":{"timestamp":{"__isSmartRef__":true,"id":31865},"user":"sebastianwoinar","tags":[]},"31865":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"31866":{"varMapping":{"__isSmartRef__":true,"id":31867},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":31868},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31867":{"this":{"__isSmartRef__":true,"id":30600}},"31868":{"timestamp":{"__isSmartRef__":true,"id":31869},"user":"sebastianwoinar","tags":[]},"31869":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"31870":{"varMapping":{"__isSmartRef__":true,"id":31871},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":31872},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31871":{"this":{"__isSmartRef__":true,"id":30600}},"31872":{"timestamp":{"__isSmartRef__":true,"id":31873},"user":"sebastianwoinar","tags":[]},"31873":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"31874":{"varMapping":{"__isSmartRef__":true,"id":31875},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":31876},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31875":{"this":{"__isSmartRef__":true,"id":30600}},"31876":{"timestamp":{"__isSmartRef__":true,"id":31877},"user":"sebastianwoinar","tags":[]},"31877":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"31878":{"varMapping":{"__isSmartRef__":true,"id":31879},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":31880},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31879":{"this":{"__isSmartRef__":true,"id":30600}},"31880":{"timestamp":{"__isSmartRef__":true,"id":31881},"user":"sebastianwoinar","tags":[]},"31881":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"31882":{"varMapping":{"__isSmartRef__":true,"id":31883},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":31884},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31883":{"this":{"__isSmartRef__":true,"id":30600}},"31884":{"timestamp":{"__isSmartRef__":true,"id":31885},"user":"sebastianwoinar","tags":[]},"31885":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"31886":{"varMapping":{"__isSmartRef__":true,"id":31887},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":31888},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31887":{"this":{"__isSmartRef__":true,"id":30600}},"31888":{"timestamp":{"__isSmartRef__":true,"id":31889},"user":"sebastianwoinar","tags":[]},"31889":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"31890":{"submorphs":[{"__isSmartRef__":true,"id":31891}],"scripts":[],"shape":{"__isSmartRef__":true,"id":31908},"id":"040ABCAB-B5E8-4B6A-8E2D-8BEFC4E35FE3","eventHandler":{"__isSmartRef__":true,"id":31909},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":31910},"name":"node205","partsBinMetaInfo":{"__isSmartRef__":true,"id":31911},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5839},"owner":{"__isSmartRef__":true,"id":5408},"childNodes":[{"__isSmartRef__":true,"id":31914},{"__isSmartRef__":true,"id":32043},{"__isSmartRef__":true,"id":32172},{"__isSmartRef__":true,"id":32301},{"__isSmartRef__":true,"id":32430},{"__isSmartRef__":true,"id":32559},{"__isSmartRef__":true,"id":32688},{"__isSmartRef__":true,"id":32817},{"__isSmartRef__":true,"id":32946}],"parent":{"__isSmartRef__":true,"id":25287},"level":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":33075},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(937.7,160.0)"},"31891":{"submorphs":[],"scripts":[],"id":"E18A11EF-3671-4102-B7A7-A008B9A6BC46","shape":{"__isSmartRef__":true,"id":31892},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":31893},"textChunks":[{"__isSmartRef__":true,"id":31905}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":31907},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":31890},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"31892":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"31893":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":31894},{"__isSmartRef__":true,"id":31896},{"__isSmartRef__":true,"id":31898},{"__isSmartRef__":true,"id":31900},{"__isSmartRef__":true,"id":31902}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":31904},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"31894":{"date":{"__isSmartRef__":true,"id":31895},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"31895":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"31896":{"date":{"__isSmartRef__":true,"id":31897},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"31897":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"31898":{"date":{"__isSmartRef__":true,"id":31899},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"31899":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"31900":{"date":{"__isSmartRef__":true,"id":31901},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"31901":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"31902":{"date":{"__isSmartRef__":true,"id":31903},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"31903":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"31904":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"31905":{"style":{"__isSmartRef__":true,"id":31906},"morph":{"__isSmartRef__":true,"id":31891},"chunkOwner":{"__isSmartRef__":true,"id":31891},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"31906":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"31907":{"morph":{"__isSmartRef__":true,"id":31891},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"31908":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"31909":{"morph":{"__isSmartRef__":true,"id":31890},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"31910":{},"31911":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":31912}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"31912":{"date":{"__isSmartRef__":true,"id":31913},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"31913":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"31914":{"submorphs":[{"__isSmartRef__":true,"id":31915}],"scripts":[],"shape":{"__isSmartRef__":true,"id":31932},"id":"8DFBC84F-0A1D-4A53-949B-8A751DEEE30D","eventHandler":{"__isSmartRef__":true,"id":31933},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":31934},"name":"node206","partsBinMetaInfo":{"__isSmartRef__":true,"id":31935},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5841},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":31890},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":31938},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(937.7,210.0)"},"31915":{"submorphs":[],"scripts":[],"id":"26B6A439-4874-4E42-A014-E424587CAC34","shape":{"__isSmartRef__":true,"id":31916},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":31917},"textChunks":[{"__isSmartRef__":true,"id":31929}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":31931},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":31914},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"31916":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"31917":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":31918},{"__isSmartRef__":true,"id":31920},{"__isSmartRef__":true,"id":31922},{"__isSmartRef__":true,"id":31924},{"__isSmartRef__":true,"id":31926}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":31928},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"31918":{"date":{"__isSmartRef__":true,"id":31919},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"31919":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"31920":{"date":{"__isSmartRef__":true,"id":31921},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"31921":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"31922":{"date":{"__isSmartRef__":true,"id":31923},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"31923":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"31924":{"date":{"__isSmartRef__":true,"id":31925},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"31925":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"31926":{"date":{"__isSmartRef__":true,"id":31927},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"31927":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"31928":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"31929":{"style":{"__isSmartRef__":true,"id":31930},"morph":{"__isSmartRef__":true,"id":31915},"chunkOwner":{"__isSmartRef__":true,"id":31915},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"31930":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"31931":{"morph":{"__isSmartRef__":true,"id":31915},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"31932":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"31933":{"morph":{"__isSmartRef__":true,"id":31914},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"31934":{},"31935":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":31936}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"31936":{"date":{"__isSmartRef__":true,"id":31937},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"31937":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"31938":{"buildChildNodes":{"__isSmartRef__":true,"id":31939},"getGameTree":{"__isSmartRef__":true,"id":31943},"getLevel":{"__isSmartRef__":true,"id":31947},"getLevelWeight":{"__isSmartRef__":true,"id":31951},"getWeight":{"__isSmartRef__":true,"id":31955},"setNode":{"__isSmartRef__":true,"id":31959},"setParent":{"__isSmartRef__":true,"id":31963},"getParent":{"__isSmartRef__":true,"id":31967},"deactivate":{"__isSmartRef__":true,"id":31971},"blink":{"__isSmartRef__":true,"id":31975},"ABPreturn":{"__isSmartRef__":true,"id":31979},"ABPstart":{"__isSmartRef__":true,"id":31983},"ABPcontinue":{"__isSmartRef__":true,"id":31987},"ABPshowValue":{"__isSmartRef__":true,"id":31991},"ABPgetValue":{"__isSmartRef__":true,"id":31995},"ABPhasChildNodes":{"__isSmartRef__":true,"id":31999},"onMouseDown":{"__isSmartRef__":true,"id":32003},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":32011},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":32015},"ABPmarkAsDone":{"__isSmartRef__":true,"id":32019},"ABPmarkAsActive":{"__isSmartRef__":true,"id":32023},"getStateMorph":{"__isSmartRef__":true,"id":32027},"showState":{"__isSmartRef__":true,"id":32031},"ABPfailHard":{"__isSmartRef__":true,"id":32035},"markFinalDrawWith":{"__isSmartRef__":true,"id":32039}},"31939":{"varMapping":{"__isSmartRef__":true,"id":31940},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":31941},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31940":{"this":{"__isSmartRef__":true,"id":31914}},"31941":{"timestamp":{"__isSmartRef__":true,"id":31942},"user":"sebastianwoinar","tags":[]},"31942":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"31943":{"varMapping":{"__isSmartRef__":true,"id":31944},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":31945},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31944":{"this":{"__isSmartRef__":true,"id":31914}},"31945":{"timestamp":{"__isSmartRef__":true,"id":31946},"user":"sebastianwoinar","tags":[]},"31946":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31947":{"varMapping":{"__isSmartRef__":true,"id":31948},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":31949},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31948":{"this":{"__isSmartRef__":true,"id":31914}},"31949":{"timestamp":{"__isSmartRef__":true,"id":31950},"user":"sebastianwoinar","tags":[]},"31950":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31951":{"varMapping":{"__isSmartRef__":true,"id":31952},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":31953},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31952":{"this":{"__isSmartRef__":true,"id":31914}},"31953":{"timestamp":{"__isSmartRef__":true,"id":31954},"user":"sebastianwoinar","tags":[]},"31954":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31955":{"varMapping":{"__isSmartRef__":true,"id":31956},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":31957},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31956":{"this":{"__isSmartRef__":true,"id":31914}},"31957":{"timestamp":{"__isSmartRef__":true,"id":31958},"user":"sebastianwoinar","tags":[]},"31958":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31959":{"varMapping":{"__isSmartRef__":true,"id":31960},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":31961},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31960":{"this":{"__isSmartRef__":true,"id":31914}},"31961":{"timestamp":{"__isSmartRef__":true,"id":31962},"user":"sebastianwoinar","tags":[]},"31962":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31963":{"varMapping":{"__isSmartRef__":true,"id":31964},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":31965},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31964":{"this":{"__isSmartRef__":true,"id":31914}},"31965":{"timestamp":{"__isSmartRef__":true,"id":31966},"user":"sebastianwoinar","tags":[]},"31966":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"31967":{"varMapping":{"__isSmartRef__":true,"id":31968},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":31969},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31968":{"this":{"__isSmartRef__":true,"id":31914}},"31969":{"timestamp":{"__isSmartRef__":true,"id":31970},"user":"sebastianwoinar","tags":[]},"31970":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"31971":{"varMapping":{"__isSmartRef__":true,"id":31972},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":31973},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31972":{"this":{"__isSmartRef__":true,"id":31914}},"31973":{"timestamp":{"__isSmartRef__":true,"id":31974},"user":"sebastianwoinar","tags":[]},"31974":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"31975":{"varMapping":{"__isSmartRef__":true,"id":31976},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":31977},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31976":{"this":{"__isSmartRef__":true,"id":31914}},"31977":{"timestamp":{"__isSmartRef__":true,"id":31978},"user":"sebastianwoinar","tags":[]},"31978":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"31979":{"varMapping":{"__isSmartRef__":true,"id":31980},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":31981},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31980":{"this":{"__isSmartRef__":true,"id":31914}},"31981":{"timestamp":{"__isSmartRef__":true,"id":31982},"user":"sebastianwoinar","tags":[]},"31982":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"31983":{"varMapping":{"__isSmartRef__":true,"id":31984},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":31985},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31984":{"this":{"__isSmartRef__":true,"id":31914}},"31985":{"timestamp":{"__isSmartRef__":true,"id":31986},"user":"sebastianwoinar","tags":[]},"31986":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"31987":{"varMapping":{"__isSmartRef__":true,"id":31988},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":31989},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31988":{"this":{"__isSmartRef__":true,"id":31914}},"31989":{"timestamp":{"__isSmartRef__":true,"id":31990},"user":"sebastianwoinar","tags":[]},"31990":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"31991":{"varMapping":{"__isSmartRef__":true,"id":31992},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":31993},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31992":{"this":{"__isSmartRef__":true,"id":31914}},"31993":{"timestamp":{"__isSmartRef__":true,"id":31994},"user":"sebastianwoinar","tags":[]},"31994":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"31995":{"varMapping":{"__isSmartRef__":true,"id":31996},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":31997},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31996":{"this":{"__isSmartRef__":true,"id":31914}},"31997":{"timestamp":{"__isSmartRef__":true,"id":31998},"user":"sebastianwoinar","tags":[]},"31998":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"31999":{"varMapping":{"__isSmartRef__":true,"id":32000},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":32001},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32000":{"this":{"__isSmartRef__":true,"id":31914}},"32001":{"timestamp":{"__isSmartRef__":true,"id":32002},"user":"sebastianwoinar","tags":[]},"32002":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"32003":{"varMapping":{"__isSmartRef__":true,"id":32004},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":32009},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32004":{"this":{"__isSmartRef__":true,"id":31914},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":32005}},"32005":{"$super":{"__isSmartRef__":true,"id":32006}},"32006":{"varMapping":{"__isSmartRef__":true,"id":32007},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":32008},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32007":{"obj":{"__isSmartRef__":true,"id":31914},"name":"onMouseDown"},"32008":{},"32009":{"timestamp":{"__isSmartRef__":true,"id":32010},"user":"sebastianwoinar","tags":[]},"32010":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"32011":{"varMapping":{"__isSmartRef__":true,"id":32012},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":32013},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32012":{"this":{"__isSmartRef__":true,"id":31914}},"32013":{"timestamp":{"__isSmartRef__":true,"id":32014},"user":"sebastianwoinar","tags":[]},"32014":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"32015":{"varMapping":{"__isSmartRef__":true,"id":32016},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":32017},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32016":{"this":{"__isSmartRef__":true,"id":31914}},"32017":{"timestamp":{"__isSmartRef__":true,"id":32018},"user":"sebastianwoinar","tags":[]},"32018":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"32019":{"varMapping":{"__isSmartRef__":true,"id":32020},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":32021},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32020":{"this":{"__isSmartRef__":true,"id":31914}},"32021":{"timestamp":{"__isSmartRef__":true,"id":32022},"user":"sebastianwoinar","tags":[]},"32022":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"32023":{"varMapping":{"__isSmartRef__":true,"id":32024},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":32025},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32024":{"this":{"__isSmartRef__":true,"id":31914}},"32025":{"timestamp":{"__isSmartRef__":true,"id":32026},"user":"sebastianwoinar","tags":[]},"32026":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"32027":{"varMapping":{"__isSmartRef__":true,"id":32028},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":32029},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32028":{"this":{"__isSmartRef__":true,"id":31914}},"32029":{"timestamp":{"__isSmartRef__":true,"id":32030},"user":"sebastianwoinar","tags":[]},"32030":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"32031":{"varMapping":{"__isSmartRef__":true,"id":32032},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":32033},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32032":{"this":{"__isSmartRef__":true,"id":31914}},"32033":{"timestamp":{"__isSmartRef__":true,"id":32034},"user":"sebastianwoinar","tags":[]},"32034":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"32035":{"varMapping":{"__isSmartRef__":true,"id":32036},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":32037},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32036":{"this":{"__isSmartRef__":true,"id":31914}},"32037":{"timestamp":{"__isSmartRef__":true,"id":32038},"user":"sebastianwoinar","tags":[]},"32038":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"32039":{"varMapping":{"__isSmartRef__":true,"id":32040},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":32041},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32040":{"this":{"__isSmartRef__":true,"id":31914}},"32041":{"timestamp":{"__isSmartRef__":true,"id":32042},"user":"sebastianwoinar","tags":[]},"32042":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"32043":{"submorphs":[{"__isSmartRef__":true,"id":32044}],"scripts":[],"shape":{"__isSmartRef__":true,"id":32061},"id":"F5B13F22-130E-4B1A-9BA1-9DF648344D0A","eventHandler":{"__isSmartRef__":true,"id":32062},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":32063},"name":"node207","partsBinMetaInfo":{"__isSmartRef__":true,"id":32064},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5843},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":31890},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":32067},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(942.9,210.0)"},"32044":{"submorphs":[],"scripts":[],"id":"FA3B58F0-C72F-4258-AF76-A8EE7A31193B","shape":{"__isSmartRef__":true,"id":32045},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":32046},"textChunks":[{"__isSmartRef__":true,"id":32058}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":32060},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":32043},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"32045":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"32046":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":32047},{"__isSmartRef__":true,"id":32049},{"__isSmartRef__":true,"id":32051},{"__isSmartRef__":true,"id":32053},{"__isSmartRef__":true,"id":32055}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":32057},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"32047":{"date":{"__isSmartRef__":true,"id":32048},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"32048":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"32049":{"date":{"__isSmartRef__":true,"id":32050},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"32050":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"32051":{"date":{"__isSmartRef__":true,"id":32052},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"32052":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"32053":{"date":{"__isSmartRef__":true,"id":32054},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"32054":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"32055":{"date":{"__isSmartRef__":true,"id":32056},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"32056":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"32057":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"32058":{"style":{"__isSmartRef__":true,"id":32059},"morph":{"__isSmartRef__":true,"id":32044},"chunkOwner":{"__isSmartRef__":true,"id":32044},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"32059":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"32060":{"morph":{"__isSmartRef__":true,"id":32044},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"32061":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"32062":{"morph":{"__isSmartRef__":true,"id":32043},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"32063":{},"32064":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":32065}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"32065":{"date":{"__isSmartRef__":true,"id":32066},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"32066":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"32067":{"buildChildNodes":{"__isSmartRef__":true,"id":32068},"getGameTree":{"__isSmartRef__":true,"id":32072},"getLevel":{"__isSmartRef__":true,"id":32076},"getLevelWeight":{"__isSmartRef__":true,"id":32080},"getWeight":{"__isSmartRef__":true,"id":32084},"setNode":{"__isSmartRef__":true,"id":32088},"setParent":{"__isSmartRef__":true,"id":32092},"getParent":{"__isSmartRef__":true,"id":32096},"deactivate":{"__isSmartRef__":true,"id":32100},"blink":{"__isSmartRef__":true,"id":32104},"ABPreturn":{"__isSmartRef__":true,"id":32108},"ABPstart":{"__isSmartRef__":true,"id":32112},"ABPcontinue":{"__isSmartRef__":true,"id":32116},"ABPshowValue":{"__isSmartRef__":true,"id":32120},"ABPgetValue":{"__isSmartRef__":true,"id":32124},"ABPhasChildNodes":{"__isSmartRef__":true,"id":32128},"onMouseDown":{"__isSmartRef__":true,"id":32132},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":32140},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":32144},"ABPmarkAsDone":{"__isSmartRef__":true,"id":32148},"ABPmarkAsActive":{"__isSmartRef__":true,"id":32152},"getStateMorph":{"__isSmartRef__":true,"id":32156},"showState":{"__isSmartRef__":true,"id":32160},"ABPfailHard":{"__isSmartRef__":true,"id":32164},"markFinalDrawWith":{"__isSmartRef__":true,"id":32168}},"32068":{"varMapping":{"__isSmartRef__":true,"id":32069},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":32070},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32069":{"this":{"__isSmartRef__":true,"id":32043}},"32070":{"timestamp":{"__isSmartRef__":true,"id":32071},"user":"sebastianwoinar","tags":[]},"32071":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"32072":{"varMapping":{"__isSmartRef__":true,"id":32073},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":32074},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32073":{"this":{"__isSmartRef__":true,"id":32043}},"32074":{"timestamp":{"__isSmartRef__":true,"id":32075},"user":"sebastianwoinar","tags":[]},"32075":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32076":{"varMapping":{"__isSmartRef__":true,"id":32077},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":32078},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32077":{"this":{"__isSmartRef__":true,"id":32043}},"32078":{"timestamp":{"__isSmartRef__":true,"id":32079},"user":"sebastianwoinar","tags":[]},"32079":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32080":{"varMapping":{"__isSmartRef__":true,"id":32081},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":32082},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32081":{"this":{"__isSmartRef__":true,"id":32043}},"32082":{"timestamp":{"__isSmartRef__":true,"id":32083},"user":"sebastianwoinar","tags":[]},"32083":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32084":{"varMapping":{"__isSmartRef__":true,"id":32085},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":32086},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32085":{"this":{"__isSmartRef__":true,"id":32043}},"32086":{"timestamp":{"__isSmartRef__":true,"id":32087},"user":"sebastianwoinar","tags":[]},"32087":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32088":{"varMapping":{"__isSmartRef__":true,"id":32089},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":32090},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32089":{"this":{"__isSmartRef__":true,"id":32043}},"32090":{"timestamp":{"__isSmartRef__":true,"id":32091},"user":"sebastianwoinar","tags":[]},"32091":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32092":{"varMapping":{"__isSmartRef__":true,"id":32093},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":32094},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32093":{"this":{"__isSmartRef__":true,"id":32043}},"32094":{"timestamp":{"__isSmartRef__":true,"id":32095},"user":"sebastianwoinar","tags":[]},"32095":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32096":{"varMapping":{"__isSmartRef__":true,"id":32097},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":32098},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32097":{"this":{"__isSmartRef__":true,"id":32043}},"32098":{"timestamp":{"__isSmartRef__":true,"id":32099},"user":"sebastianwoinar","tags":[]},"32099":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"32100":{"varMapping":{"__isSmartRef__":true,"id":32101},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":32102},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32101":{"this":{"__isSmartRef__":true,"id":32043}},"32102":{"timestamp":{"__isSmartRef__":true,"id":32103},"user":"sebastianwoinar","tags":[]},"32103":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"32104":{"varMapping":{"__isSmartRef__":true,"id":32105},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":32106},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32105":{"this":{"__isSmartRef__":true,"id":32043}},"32106":{"timestamp":{"__isSmartRef__":true,"id":32107},"user":"sebastianwoinar","tags":[]},"32107":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"32108":{"varMapping":{"__isSmartRef__":true,"id":32109},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":32110},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32109":{"this":{"__isSmartRef__":true,"id":32043}},"32110":{"timestamp":{"__isSmartRef__":true,"id":32111},"user":"sebastianwoinar","tags":[]},"32111":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"32112":{"varMapping":{"__isSmartRef__":true,"id":32113},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":32114},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32113":{"this":{"__isSmartRef__":true,"id":32043}},"32114":{"timestamp":{"__isSmartRef__":true,"id":32115},"user":"sebastianwoinar","tags":[]},"32115":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"32116":{"varMapping":{"__isSmartRef__":true,"id":32117},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":32118},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32117":{"this":{"__isSmartRef__":true,"id":32043}},"32118":{"timestamp":{"__isSmartRef__":true,"id":32119},"user":"sebastianwoinar","tags":[]},"32119":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"32120":{"varMapping":{"__isSmartRef__":true,"id":32121},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":32122},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32121":{"this":{"__isSmartRef__":true,"id":32043}},"32122":{"timestamp":{"__isSmartRef__":true,"id":32123},"user":"sebastianwoinar","tags":[]},"32123":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"32124":{"varMapping":{"__isSmartRef__":true,"id":32125},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":32126},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32125":{"this":{"__isSmartRef__":true,"id":32043}},"32126":{"timestamp":{"__isSmartRef__":true,"id":32127},"user":"sebastianwoinar","tags":[]},"32127":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"32128":{"varMapping":{"__isSmartRef__":true,"id":32129},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":32130},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32129":{"this":{"__isSmartRef__":true,"id":32043}},"32130":{"timestamp":{"__isSmartRef__":true,"id":32131},"user":"sebastianwoinar","tags":[]},"32131":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"32132":{"varMapping":{"__isSmartRef__":true,"id":32133},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":32138},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32133":{"this":{"__isSmartRef__":true,"id":32043},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":32134}},"32134":{"$super":{"__isSmartRef__":true,"id":32135}},"32135":{"varMapping":{"__isSmartRef__":true,"id":32136},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":32137},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32136":{"obj":{"__isSmartRef__":true,"id":32043},"name":"onMouseDown"},"32137":{},"32138":{"timestamp":{"__isSmartRef__":true,"id":32139},"user":"sebastianwoinar","tags":[]},"32139":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"32140":{"varMapping":{"__isSmartRef__":true,"id":32141},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":32142},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32141":{"this":{"__isSmartRef__":true,"id":32043}},"32142":{"timestamp":{"__isSmartRef__":true,"id":32143},"user":"sebastianwoinar","tags":[]},"32143":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"32144":{"varMapping":{"__isSmartRef__":true,"id":32145},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":32146},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32145":{"this":{"__isSmartRef__":true,"id":32043}},"32146":{"timestamp":{"__isSmartRef__":true,"id":32147},"user":"sebastianwoinar","tags":[]},"32147":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"32148":{"varMapping":{"__isSmartRef__":true,"id":32149},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":32150},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32149":{"this":{"__isSmartRef__":true,"id":32043}},"32150":{"timestamp":{"__isSmartRef__":true,"id":32151},"user":"sebastianwoinar","tags":[]},"32151":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"32152":{"varMapping":{"__isSmartRef__":true,"id":32153},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":32154},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32153":{"this":{"__isSmartRef__":true,"id":32043}},"32154":{"timestamp":{"__isSmartRef__":true,"id":32155},"user":"sebastianwoinar","tags":[]},"32155":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"32156":{"varMapping":{"__isSmartRef__":true,"id":32157},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":32158},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32157":{"this":{"__isSmartRef__":true,"id":32043}},"32158":{"timestamp":{"__isSmartRef__":true,"id":32159},"user":"sebastianwoinar","tags":[]},"32159":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"32160":{"varMapping":{"__isSmartRef__":true,"id":32161},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":32162},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32161":{"this":{"__isSmartRef__":true,"id":32043}},"32162":{"timestamp":{"__isSmartRef__":true,"id":32163},"user":"sebastianwoinar","tags":[]},"32163":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"32164":{"varMapping":{"__isSmartRef__":true,"id":32165},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":32166},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32165":{"this":{"__isSmartRef__":true,"id":32043}},"32166":{"timestamp":{"__isSmartRef__":true,"id":32167},"user":"sebastianwoinar","tags":[]},"32167":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"32168":{"varMapping":{"__isSmartRef__":true,"id":32169},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":32170},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32169":{"this":{"__isSmartRef__":true,"id":32043}},"32170":{"timestamp":{"__isSmartRef__":true,"id":32171},"user":"sebastianwoinar","tags":[]},"32171":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"32172":{"submorphs":[{"__isSmartRef__":true,"id":32173}],"scripts":[],"shape":{"__isSmartRef__":true,"id":32190},"id":"E706DC0C-3D2E-4E7D-9FD0-A24833E11283","eventHandler":{"__isSmartRef__":true,"id":32191},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":32192},"name":"node208","partsBinMetaInfo":{"__isSmartRef__":true,"id":32193},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5845},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":31890},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":32196},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(948.1,210.0)"},"32173":{"submorphs":[],"scripts":[],"id":"E3CCD70A-3DFD-4094-8067-F78DA3946DAB","shape":{"__isSmartRef__":true,"id":32174},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":32175},"textChunks":[{"__isSmartRef__":true,"id":32187}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":32189},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":32172},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"32174":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"32175":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":32176},{"__isSmartRef__":true,"id":32178},{"__isSmartRef__":true,"id":32180},{"__isSmartRef__":true,"id":32182},{"__isSmartRef__":true,"id":32184}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":32186},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"32176":{"date":{"__isSmartRef__":true,"id":32177},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"32177":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"32178":{"date":{"__isSmartRef__":true,"id":32179},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"32179":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"32180":{"date":{"__isSmartRef__":true,"id":32181},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"32181":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"32182":{"date":{"__isSmartRef__":true,"id":32183},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"32183":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"32184":{"date":{"__isSmartRef__":true,"id":32185},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"32185":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"32186":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"32187":{"style":{"__isSmartRef__":true,"id":32188},"morph":{"__isSmartRef__":true,"id":32173},"chunkOwner":{"__isSmartRef__":true,"id":32173},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"32188":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"32189":{"morph":{"__isSmartRef__":true,"id":32173},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"32190":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"32191":{"morph":{"__isSmartRef__":true,"id":32172},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"32192":{},"32193":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":32194}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"32194":{"date":{"__isSmartRef__":true,"id":32195},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"32195":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"32196":{"buildChildNodes":{"__isSmartRef__":true,"id":32197},"getGameTree":{"__isSmartRef__":true,"id":32201},"getLevel":{"__isSmartRef__":true,"id":32205},"getLevelWeight":{"__isSmartRef__":true,"id":32209},"getWeight":{"__isSmartRef__":true,"id":32213},"setNode":{"__isSmartRef__":true,"id":32217},"setParent":{"__isSmartRef__":true,"id":32221},"getParent":{"__isSmartRef__":true,"id":32225},"deactivate":{"__isSmartRef__":true,"id":32229},"blink":{"__isSmartRef__":true,"id":32233},"ABPreturn":{"__isSmartRef__":true,"id":32237},"ABPstart":{"__isSmartRef__":true,"id":32241},"ABPcontinue":{"__isSmartRef__":true,"id":32245},"ABPshowValue":{"__isSmartRef__":true,"id":32249},"ABPgetValue":{"__isSmartRef__":true,"id":32253},"ABPhasChildNodes":{"__isSmartRef__":true,"id":32257},"onMouseDown":{"__isSmartRef__":true,"id":32261},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":32269},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":32273},"ABPmarkAsDone":{"__isSmartRef__":true,"id":32277},"ABPmarkAsActive":{"__isSmartRef__":true,"id":32281},"getStateMorph":{"__isSmartRef__":true,"id":32285},"showState":{"__isSmartRef__":true,"id":32289},"ABPfailHard":{"__isSmartRef__":true,"id":32293},"markFinalDrawWith":{"__isSmartRef__":true,"id":32297}},"32197":{"varMapping":{"__isSmartRef__":true,"id":32198},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":32199},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32198":{"this":{"__isSmartRef__":true,"id":32172}},"32199":{"timestamp":{"__isSmartRef__":true,"id":32200},"user":"sebastianwoinar","tags":[]},"32200":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"32201":{"varMapping":{"__isSmartRef__":true,"id":32202},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":32203},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32202":{"this":{"__isSmartRef__":true,"id":32172}},"32203":{"timestamp":{"__isSmartRef__":true,"id":32204},"user":"sebastianwoinar","tags":[]},"32204":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32205":{"varMapping":{"__isSmartRef__":true,"id":32206},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":32207},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32206":{"this":{"__isSmartRef__":true,"id":32172}},"32207":{"timestamp":{"__isSmartRef__":true,"id":32208},"user":"sebastianwoinar","tags":[]},"32208":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32209":{"varMapping":{"__isSmartRef__":true,"id":32210},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":32211},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32210":{"this":{"__isSmartRef__":true,"id":32172}},"32211":{"timestamp":{"__isSmartRef__":true,"id":32212},"user":"sebastianwoinar","tags":[]},"32212":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32213":{"varMapping":{"__isSmartRef__":true,"id":32214},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":32215},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32214":{"this":{"__isSmartRef__":true,"id":32172}},"32215":{"timestamp":{"__isSmartRef__":true,"id":32216},"user":"sebastianwoinar","tags":[]},"32216":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32217":{"varMapping":{"__isSmartRef__":true,"id":32218},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":32219},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32218":{"this":{"__isSmartRef__":true,"id":32172}},"32219":{"timestamp":{"__isSmartRef__":true,"id":32220},"user":"sebastianwoinar","tags":[]},"32220":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32221":{"varMapping":{"__isSmartRef__":true,"id":32222},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":32223},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32222":{"this":{"__isSmartRef__":true,"id":32172}},"32223":{"timestamp":{"__isSmartRef__":true,"id":32224},"user":"sebastianwoinar","tags":[]},"32224":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32225":{"varMapping":{"__isSmartRef__":true,"id":32226},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":32227},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32226":{"this":{"__isSmartRef__":true,"id":32172}},"32227":{"timestamp":{"__isSmartRef__":true,"id":32228},"user":"sebastianwoinar","tags":[]},"32228":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"32229":{"varMapping":{"__isSmartRef__":true,"id":32230},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":32231},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32230":{"this":{"__isSmartRef__":true,"id":32172}},"32231":{"timestamp":{"__isSmartRef__":true,"id":32232},"user":"sebastianwoinar","tags":[]},"32232":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"32233":{"varMapping":{"__isSmartRef__":true,"id":32234},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":32235},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32234":{"this":{"__isSmartRef__":true,"id":32172}},"32235":{"timestamp":{"__isSmartRef__":true,"id":32236},"user":"sebastianwoinar","tags":[]},"32236":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"32237":{"varMapping":{"__isSmartRef__":true,"id":32238},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":32239},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32238":{"this":{"__isSmartRef__":true,"id":32172}},"32239":{"timestamp":{"__isSmartRef__":true,"id":32240},"user":"sebastianwoinar","tags":[]},"32240":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"32241":{"varMapping":{"__isSmartRef__":true,"id":32242},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":32243},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32242":{"this":{"__isSmartRef__":true,"id":32172}},"32243":{"timestamp":{"__isSmartRef__":true,"id":32244},"user":"sebastianwoinar","tags":[]},"32244":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"32245":{"varMapping":{"__isSmartRef__":true,"id":32246},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":32247},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32246":{"this":{"__isSmartRef__":true,"id":32172}},"32247":{"timestamp":{"__isSmartRef__":true,"id":32248},"user":"sebastianwoinar","tags":[]},"32248":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"32249":{"varMapping":{"__isSmartRef__":true,"id":32250},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":32251},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32250":{"this":{"__isSmartRef__":true,"id":32172}},"32251":{"timestamp":{"__isSmartRef__":true,"id":32252},"user":"sebastianwoinar","tags":[]},"32252":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"32253":{"varMapping":{"__isSmartRef__":true,"id":32254},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":32255},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32254":{"this":{"__isSmartRef__":true,"id":32172}},"32255":{"timestamp":{"__isSmartRef__":true,"id":32256},"user":"sebastianwoinar","tags":[]},"32256":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"32257":{"varMapping":{"__isSmartRef__":true,"id":32258},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":32259},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32258":{"this":{"__isSmartRef__":true,"id":32172}},"32259":{"timestamp":{"__isSmartRef__":true,"id":32260},"user":"sebastianwoinar","tags":[]},"32260":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"32261":{"varMapping":{"__isSmartRef__":true,"id":32262},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":32267},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32262":{"this":{"__isSmartRef__":true,"id":32172},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":32263}},"32263":{"$super":{"__isSmartRef__":true,"id":32264}},"32264":{"varMapping":{"__isSmartRef__":true,"id":32265},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":32266},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32265":{"obj":{"__isSmartRef__":true,"id":32172},"name":"onMouseDown"},"32266":{},"32267":{"timestamp":{"__isSmartRef__":true,"id":32268},"user":"sebastianwoinar","tags":[]},"32268":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"32269":{"varMapping":{"__isSmartRef__":true,"id":32270},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":32271},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32270":{"this":{"__isSmartRef__":true,"id":32172}},"32271":{"timestamp":{"__isSmartRef__":true,"id":32272},"user":"sebastianwoinar","tags":[]},"32272":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"32273":{"varMapping":{"__isSmartRef__":true,"id":32274},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":32275},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32274":{"this":{"__isSmartRef__":true,"id":32172}},"32275":{"timestamp":{"__isSmartRef__":true,"id":32276},"user":"sebastianwoinar","tags":[]},"32276":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"32277":{"varMapping":{"__isSmartRef__":true,"id":32278},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":32279},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32278":{"this":{"__isSmartRef__":true,"id":32172}},"32279":{"timestamp":{"__isSmartRef__":true,"id":32280},"user":"sebastianwoinar","tags":[]},"32280":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"32281":{"varMapping":{"__isSmartRef__":true,"id":32282},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":32283},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32282":{"this":{"__isSmartRef__":true,"id":32172}},"32283":{"timestamp":{"__isSmartRef__":true,"id":32284},"user":"sebastianwoinar","tags":[]},"32284":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"32285":{"varMapping":{"__isSmartRef__":true,"id":32286},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":32287},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32286":{"this":{"__isSmartRef__":true,"id":32172}},"32287":{"timestamp":{"__isSmartRef__":true,"id":32288},"user":"sebastianwoinar","tags":[]},"32288":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"32289":{"varMapping":{"__isSmartRef__":true,"id":32290},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":32291},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32290":{"this":{"__isSmartRef__":true,"id":32172}},"32291":{"timestamp":{"__isSmartRef__":true,"id":32292},"user":"sebastianwoinar","tags":[]},"32292":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"32293":{"varMapping":{"__isSmartRef__":true,"id":32294},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":32295},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32294":{"this":{"__isSmartRef__":true,"id":32172}},"32295":{"timestamp":{"__isSmartRef__":true,"id":32296},"user":"sebastianwoinar","tags":[]},"32296":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"32297":{"varMapping":{"__isSmartRef__":true,"id":32298},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":32299},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32298":{"this":{"__isSmartRef__":true,"id":32172}},"32299":{"timestamp":{"__isSmartRef__":true,"id":32300},"user":"sebastianwoinar","tags":[]},"32300":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"32301":{"submorphs":[{"__isSmartRef__":true,"id":32302}],"scripts":[],"shape":{"__isSmartRef__":true,"id":32319},"id":"6F18BE02-7BE1-4143-BB7E-FB1FA7AB4C90","eventHandler":{"__isSmartRef__":true,"id":32320},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":32321},"name":"node209","partsBinMetaInfo":{"__isSmartRef__":true,"id":32322},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5847},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":31890},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":32325},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(953.2,210.0)"},"32302":{"submorphs":[],"scripts":[],"id":"46E39D37-678C-4FC0-9EE6-01ABB02E0B83","shape":{"__isSmartRef__":true,"id":32303},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":32304},"textChunks":[{"__isSmartRef__":true,"id":32316}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":32318},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":32301},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"32303":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"32304":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":32305},{"__isSmartRef__":true,"id":32307},{"__isSmartRef__":true,"id":32309},{"__isSmartRef__":true,"id":32311},{"__isSmartRef__":true,"id":32313}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":32315},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"32305":{"date":{"__isSmartRef__":true,"id":32306},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"32306":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"32307":{"date":{"__isSmartRef__":true,"id":32308},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"32308":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"32309":{"date":{"__isSmartRef__":true,"id":32310},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"32310":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"32311":{"date":{"__isSmartRef__":true,"id":32312},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"32312":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"32313":{"date":{"__isSmartRef__":true,"id":32314},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"32314":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"32315":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"32316":{"style":{"__isSmartRef__":true,"id":32317},"morph":{"__isSmartRef__":true,"id":32302},"chunkOwner":{"__isSmartRef__":true,"id":32302},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"32317":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"32318":{"morph":{"__isSmartRef__":true,"id":32302},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"32319":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"32320":{"morph":{"__isSmartRef__":true,"id":32301},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"32321":{},"32322":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":32323}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"32323":{"date":{"__isSmartRef__":true,"id":32324},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"32324":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"32325":{"buildChildNodes":{"__isSmartRef__":true,"id":32326},"getGameTree":{"__isSmartRef__":true,"id":32330},"getLevel":{"__isSmartRef__":true,"id":32334},"getLevelWeight":{"__isSmartRef__":true,"id":32338},"getWeight":{"__isSmartRef__":true,"id":32342},"setNode":{"__isSmartRef__":true,"id":32346},"setParent":{"__isSmartRef__":true,"id":32350},"getParent":{"__isSmartRef__":true,"id":32354},"deactivate":{"__isSmartRef__":true,"id":32358},"blink":{"__isSmartRef__":true,"id":32362},"ABPreturn":{"__isSmartRef__":true,"id":32366},"ABPstart":{"__isSmartRef__":true,"id":32370},"ABPcontinue":{"__isSmartRef__":true,"id":32374},"ABPshowValue":{"__isSmartRef__":true,"id":32378},"ABPgetValue":{"__isSmartRef__":true,"id":32382},"ABPhasChildNodes":{"__isSmartRef__":true,"id":32386},"onMouseDown":{"__isSmartRef__":true,"id":32390},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":32398},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":32402},"ABPmarkAsDone":{"__isSmartRef__":true,"id":32406},"ABPmarkAsActive":{"__isSmartRef__":true,"id":32410},"getStateMorph":{"__isSmartRef__":true,"id":32414},"showState":{"__isSmartRef__":true,"id":32418},"ABPfailHard":{"__isSmartRef__":true,"id":32422},"markFinalDrawWith":{"__isSmartRef__":true,"id":32426}},"32326":{"varMapping":{"__isSmartRef__":true,"id":32327},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":32328},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32327":{"this":{"__isSmartRef__":true,"id":32301}},"32328":{"timestamp":{"__isSmartRef__":true,"id":32329},"user":"sebastianwoinar","tags":[]},"32329":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"32330":{"varMapping":{"__isSmartRef__":true,"id":32331},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":32332},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32331":{"this":{"__isSmartRef__":true,"id":32301}},"32332":{"timestamp":{"__isSmartRef__":true,"id":32333},"user":"sebastianwoinar","tags":[]},"32333":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32334":{"varMapping":{"__isSmartRef__":true,"id":32335},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":32336},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32335":{"this":{"__isSmartRef__":true,"id":32301}},"32336":{"timestamp":{"__isSmartRef__":true,"id":32337},"user":"sebastianwoinar","tags":[]},"32337":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32338":{"varMapping":{"__isSmartRef__":true,"id":32339},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":32340},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32339":{"this":{"__isSmartRef__":true,"id":32301}},"32340":{"timestamp":{"__isSmartRef__":true,"id":32341},"user":"sebastianwoinar","tags":[]},"32341":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32342":{"varMapping":{"__isSmartRef__":true,"id":32343},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":32344},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32343":{"this":{"__isSmartRef__":true,"id":32301}},"32344":{"timestamp":{"__isSmartRef__":true,"id":32345},"user":"sebastianwoinar","tags":[]},"32345":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32346":{"varMapping":{"__isSmartRef__":true,"id":32347},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":32348},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32347":{"this":{"__isSmartRef__":true,"id":32301}},"32348":{"timestamp":{"__isSmartRef__":true,"id":32349},"user":"sebastianwoinar","tags":[]},"32349":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32350":{"varMapping":{"__isSmartRef__":true,"id":32351},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":32352},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32351":{"this":{"__isSmartRef__":true,"id":32301}},"32352":{"timestamp":{"__isSmartRef__":true,"id":32353},"user":"sebastianwoinar","tags":[]},"32353":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32354":{"varMapping":{"__isSmartRef__":true,"id":32355},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":32356},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32355":{"this":{"__isSmartRef__":true,"id":32301}},"32356":{"timestamp":{"__isSmartRef__":true,"id":32357},"user":"sebastianwoinar","tags":[]},"32357":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"32358":{"varMapping":{"__isSmartRef__":true,"id":32359},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":32360},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32359":{"this":{"__isSmartRef__":true,"id":32301}},"32360":{"timestamp":{"__isSmartRef__":true,"id":32361},"user":"sebastianwoinar","tags":[]},"32361":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"32362":{"varMapping":{"__isSmartRef__":true,"id":32363},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":32364},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32363":{"this":{"__isSmartRef__":true,"id":32301}},"32364":{"timestamp":{"__isSmartRef__":true,"id":32365},"user":"sebastianwoinar","tags":[]},"32365":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"32366":{"varMapping":{"__isSmartRef__":true,"id":32367},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":32368},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32367":{"this":{"__isSmartRef__":true,"id":32301}},"32368":{"timestamp":{"__isSmartRef__":true,"id":32369},"user":"sebastianwoinar","tags":[]},"32369":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"32370":{"varMapping":{"__isSmartRef__":true,"id":32371},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":32372},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32371":{"this":{"__isSmartRef__":true,"id":32301}},"32372":{"timestamp":{"__isSmartRef__":true,"id":32373},"user":"sebastianwoinar","tags":[]},"32373":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"32374":{"varMapping":{"__isSmartRef__":true,"id":32375},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":32376},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32375":{"this":{"__isSmartRef__":true,"id":32301}},"32376":{"timestamp":{"__isSmartRef__":true,"id":32377},"user":"sebastianwoinar","tags":[]},"32377":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"32378":{"varMapping":{"__isSmartRef__":true,"id":32379},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":32380},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32379":{"this":{"__isSmartRef__":true,"id":32301}},"32380":{"timestamp":{"__isSmartRef__":true,"id":32381},"user":"sebastianwoinar","tags":[]},"32381":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"32382":{"varMapping":{"__isSmartRef__":true,"id":32383},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":32384},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32383":{"this":{"__isSmartRef__":true,"id":32301}},"32384":{"timestamp":{"__isSmartRef__":true,"id":32385},"user":"sebastianwoinar","tags":[]},"32385":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"32386":{"varMapping":{"__isSmartRef__":true,"id":32387},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":32388},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32387":{"this":{"__isSmartRef__":true,"id":32301}},"32388":{"timestamp":{"__isSmartRef__":true,"id":32389},"user":"sebastianwoinar","tags":[]},"32389":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"32390":{"varMapping":{"__isSmartRef__":true,"id":32391},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":32396},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32391":{"this":{"__isSmartRef__":true,"id":32301},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":32392}},"32392":{"$super":{"__isSmartRef__":true,"id":32393}},"32393":{"varMapping":{"__isSmartRef__":true,"id":32394},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":32395},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32394":{"obj":{"__isSmartRef__":true,"id":32301},"name":"onMouseDown"},"32395":{},"32396":{"timestamp":{"__isSmartRef__":true,"id":32397},"user":"sebastianwoinar","tags":[]},"32397":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"32398":{"varMapping":{"__isSmartRef__":true,"id":32399},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":32400},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32399":{"this":{"__isSmartRef__":true,"id":32301}},"32400":{"timestamp":{"__isSmartRef__":true,"id":32401},"user":"sebastianwoinar","tags":[]},"32401":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"32402":{"varMapping":{"__isSmartRef__":true,"id":32403},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":32404},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32403":{"this":{"__isSmartRef__":true,"id":32301}},"32404":{"timestamp":{"__isSmartRef__":true,"id":32405},"user":"sebastianwoinar","tags":[]},"32405":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"32406":{"varMapping":{"__isSmartRef__":true,"id":32407},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":32408},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32407":{"this":{"__isSmartRef__":true,"id":32301}},"32408":{"timestamp":{"__isSmartRef__":true,"id":32409},"user":"sebastianwoinar","tags":[]},"32409":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"32410":{"varMapping":{"__isSmartRef__":true,"id":32411},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":32412},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32411":{"this":{"__isSmartRef__":true,"id":32301}},"32412":{"timestamp":{"__isSmartRef__":true,"id":32413},"user":"sebastianwoinar","tags":[]},"32413":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"32414":{"varMapping":{"__isSmartRef__":true,"id":32415},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":32416},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32415":{"this":{"__isSmartRef__":true,"id":32301}},"32416":{"timestamp":{"__isSmartRef__":true,"id":32417},"user":"sebastianwoinar","tags":[]},"32417":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"32418":{"varMapping":{"__isSmartRef__":true,"id":32419},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":32420},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32419":{"this":{"__isSmartRef__":true,"id":32301}},"32420":{"timestamp":{"__isSmartRef__":true,"id":32421},"user":"sebastianwoinar","tags":[]},"32421":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"32422":{"varMapping":{"__isSmartRef__":true,"id":32423},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":32424},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32423":{"this":{"__isSmartRef__":true,"id":32301}},"32424":{"timestamp":{"__isSmartRef__":true,"id":32425},"user":"sebastianwoinar","tags":[]},"32425":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"32426":{"varMapping":{"__isSmartRef__":true,"id":32427},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":32428},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32427":{"this":{"__isSmartRef__":true,"id":32301}},"32428":{"timestamp":{"__isSmartRef__":true,"id":32429},"user":"sebastianwoinar","tags":[]},"32429":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"32430":{"submorphs":[{"__isSmartRef__":true,"id":32431}],"scripts":[],"shape":{"__isSmartRef__":true,"id":32448},"id":"6D364FAA-CF75-422A-9616-7BFC68DAB53D","eventHandler":{"__isSmartRef__":true,"id":32449},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":32450},"name":"node210","partsBinMetaInfo":{"__isSmartRef__":true,"id":32451},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5849},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":31890},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":32454},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(958.4,210.0)"},"32431":{"submorphs":[],"scripts":[],"id":"435F17C4-BD42-4A31-9780-4FD9CA4EDAE6","shape":{"__isSmartRef__":true,"id":32432},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":32433},"textChunks":[{"__isSmartRef__":true,"id":32445}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":32447},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":32430},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"32432":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"32433":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":32434},{"__isSmartRef__":true,"id":32436},{"__isSmartRef__":true,"id":32438},{"__isSmartRef__":true,"id":32440},{"__isSmartRef__":true,"id":32442}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":32444},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"32434":{"date":{"__isSmartRef__":true,"id":32435},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"32435":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"32436":{"date":{"__isSmartRef__":true,"id":32437},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"32437":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"32438":{"date":{"__isSmartRef__":true,"id":32439},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"32439":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"32440":{"date":{"__isSmartRef__":true,"id":32441},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"32441":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"32442":{"date":{"__isSmartRef__":true,"id":32443},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"32443":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"32444":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"32445":{"style":{"__isSmartRef__":true,"id":32446},"morph":{"__isSmartRef__":true,"id":32431},"chunkOwner":{"__isSmartRef__":true,"id":32431},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"32446":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"32447":{"morph":{"__isSmartRef__":true,"id":32431},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"32448":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"32449":{"morph":{"__isSmartRef__":true,"id":32430},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"32450":{},"32451":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":32452}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"32452":{"date":{"__isSmartRef__":true,"id":32453},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"32453":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"32454":{"buildChildNodes":{"__isSmartRef__":true,"id":32455},"getGameTree":{"__isSmartRef__":true,"id":32459},"getLevel":{"__isSmartRef__":true,"id":32463},"getLevelWeight":{"__isSmartRef__":true,"id":32467},"getWeight":{"__isSmartRef__":true,"id":32471},"setNode":{"__isSmartRef__":true,"id":32475},"setParent":{"__isSmartRef__":true,"id":32479},"getParent":{"__isSmartRef__":true,"id":32483},"deactivate":{"__isSmartRef__":true,"id":32487},"blink":{"__isSmartRef__":true,"id":32491},"ABPreturn":{"__isSmartRef__":true,"id":32495},"ABPstart":{"__isSmartRef__":true,"id":32499},"ABPcontinue":{"__isSmartRef__":true,"id":32503},"ABPshowValue":{"__isSmartRef__":true,"id":32507},"ABPgetValue":{"__isSmartRef__":true,"id":32511},"ABPhasChildNodes":{"__isSmartRef__":true,"id":32515},"onMouseDown":{"__isSmartRef__":true,"id":32519},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":32527},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":32531},"ABPmarkAsDone":{"__isSmartRef__":true,"id":32535},"ABPmarkAsActive":{"__isSmartRef__":true,"id":32539},"getStateMorph":{"__isSmartRef__":true,"id":32543},"showState":{"__isSmartRef__":true,"id":32547},"ABPfailHard":{"__isSmartRef__":true,"id":32551},"markFinalDrawWith":{"__isSmartRef__":true,"id":32555}},"32455":{"varMapping":{"__isSmartRef__":true,"id":32456},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":32457},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32456":{"this":{"__isSmartRef__":true,"id":32430}},"32457":{"timestamp":{"__isSmartRef__":true,"id":32458},"user":"sebastianwoinar","tags":[]},"32458":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"32459":{"varMapping":{"__isSmartRef__":true,"id":32460},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":32461},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32460":{"this":{"__isSmartRef__":true,"id":32430}},"32461":{"timestamp":{"__isSmartRef__":true,"id":32462},"user":"sebastianwoinar","tags":[]},"32462":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32463":{"varMapping":{"__isSmartRef__":true,"id":32464},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":32465},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32464":{"this":{"__isSmartRef__":true,"id":32430}},"32465":{"timestamp":{"__isSmartRef__":true,"id":32466},"user":"sebastianwoinar","tags":[]},"32466":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32467":{"varMapping":{"__isSmartRef__":true,"id":32468},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":32469},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32468":{"this":{"__isSmartRef__":true,"id":32430}},"32469":{"timestamp":{"__isSmartRef__":true,"id":32470},"user":"sebastianwoinar","tags":[]},"32470":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32471":{"varMapping":{"__isSmartRef__":true,"id":32472},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":32473},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32472":{"this":{"__isSmartRef__":true,"id":32430}},"32473":{"timestamp":{"__isSmartRef__":true,"id":32474},"user":"sebastianwoinar","tags":[]},"32474":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32475":{"varMapping":{"__isSmartRef__":true,"id":32476},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":32477},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32476":{"this":{"__isSmartRef__":true,"id":32430}},"32477":{"timestamp":{"__isSmartRef__":true,"id":32478},"user":"sebastianwoinar","tags":[]},"32478":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32479":{"varMapping":{"__isSmartRef__":true,"id":32480},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":32481},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32480":{"this":{"__isSmartRef__":true,"id":32430}},"32481":{"timestamp":{"__isSmartRef__":true,"id":32482},"user":"sebastianwoinar","tags":[]},"32482":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32483":{"varMapping":{"__isSmartRef__":true,"id":32484},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":32485},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32484":{"this":{"__isSmartRef__":true,"id":32430}},"32485":{"timestamp":{"__isSmartRef__":true,"id":32486},"user":"sebastianwoinar","tags":[]},"32486":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"32487":{"varMapping":{"__isSmartRef__":true,"id":32488},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":32489},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32488":{"this":{"__isSmartRef__":true,"id":32430}},"32489":{"timestamp":{"__isSmartRef__":true,"id":32490},"user":"sebastianwoinar","tags":[]},"32490":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"32491":{"varMapping":{"__isSmartRef__":true,"id":32492},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":32493},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32492":{"this":{"__isSmartRef__":true,"id":32430}},"32493":{"timestamp":{"__isSmartRef__":true,"id":32494},"user":"sebastianwoinar","tags":[]},"32494":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"32495":{"varMapping":{"__isSmartRef__":true,"id":32496},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":32497},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32496":{"this":{"__isSmartRef__":true,"id":32430}},"32497":{"timestamp":{"__isSmartRef__":true,"id":32498},"user":"sebastianwoinar","tags":[]},"32498":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"32499":{"varMapping":{"__isSmartRef__":true,"id":32500},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":32501},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32500":{"this":{"__isSmartRef__":true,"id":32430}},"32501":{"timestamp":{"__isSmartRef__":true,"id":32502},"user":"sebastianwoinar","tags":[]},"32502":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"32503":{"varMapping":{"__isSmartRef__":true,"id":32504},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":32505},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32504":{"this":{"__isSmartRef__":true,"id":32430}},"32505":{"timestamp":{"__isSmartRef__":true,"id":32506},"user":"sebastianwoinar","tags":[]},"32506":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"32507":{"varMapping":{"__isSmartRef__":true,"id":32508},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":32509},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32508":{"this":{"__isSmartRef__":true,"id":32430}},"32509":{"timestamp":{"__isSmartRef__":true,"id":32510},"user":"sebastianwoinar","tags":[]},"32510":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"32511":{"varMapping":{"__isSmartRef__":true,"id":32512},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":32513},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32512":{"this":{"__isSmartRef__":true,"id":32430}},"32513":{"timestamp":{"__isSmartRef__":true,"id":32514},"user":"sebastianwoinar","tags":[]},"32514":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"32515":{"varMapping":{"__isSmartRef__":true,"id":32516},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":32517},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32516":{"this":{"__isSmartRef__":true,"id":32430}},"32517":{"timestamp":{"__isSmartRef__":true,"id":32518},"user":"sebastianwoinar","tags":[]},"32518":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"32519":{"varMapping":{"__isSmartRef__":true,"id":32520},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":32525},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32520":{"this":{"__isSmartRef__":true,"id":32430},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":32521}},"32521":{"$super":{"__isSmartRef__":true,"id":32522}},"32522":{"varMapping":{"__isSmartRef__":true,"id":32523},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":32524},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32523":{"obj":{"__isSmartRef__":true,"id":32430},"name":"onMouseDown"},"32524":{},"32525":{"timestamp":{"__isSmartRef__":true,"id":32526},"user":"sebastianwoinar","tags":[]},"32526":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"32527":{"varMapping":{"__isSmartRef__":true,"id":32528},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":32529},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32528":{"this":{"__isSmartRef__":true,"id":32430}},"32529":{"timestamp":{"__isSmartRef__":true,"id":32530},"user":"sebastianwoinar","tags":[]},"32530":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"32531":{"varMapping":{"__isSmartRef__":true,"id":32532},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":32533},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32532":{"this":{"__isSmartRef__":true,"id":32430}},"32533":{"timestamp":{"__isSmartRef__":true,"id":32534},"user":"sebastianwoinar","tags":[]},"32534":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"32535":{"varMapping":{"__isSmartRef__":true,"id":32536},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":32537},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32536":{"this":{"__isSmartRef__":true,"id":32430}},"32537":{"timestamp":{"__isSmartRef__":true,"id":32538},"user":"sebastianwoinar","tags":[]},"32538":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"32539":{"varMapping":{"__isSmartRef__":true,"id":32540},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":32541},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32540":{"this":{"__isSmartRef__":true,"id":32430}},"32541":{"timestamp":{"__isSmartRef__":true,"id":32542},"user":"sebastianwoinar","tags":[]},"32542":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"32543":{"varMapping":{"__isSmartRef__":true,"id":32544},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":32545},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32544":{"this":{"__isSmartRef__":true,"id":32430}},"32545":{"timestamp":{"__isSmartRef__":true,"id":32546},"user":"sebastianwoinar","tags":[]},"32546":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"32547":{"varMapping":{"__isSmartRef__":true,"id":32548},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":32549},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32548":{"this":{"__isSmartRef__":true,"id":32430}},"32549":{"timestamp":{"__isSmartRef__":true,"id":32550},"user":"sebastianwoinar","tags":[]},"32550":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"32551":{"varMapping":{"__isSmartRef__":true,"id":32552},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":32553},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32552":{"this":{"__isSmartRef__":true,"id":32430}},"32553":{"timestamp":{"__isSmartRef__":true,"id":32554},"user":"sebastianwoinar","tags":[]},"32554":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"32555":{"varMapping":{"__isSmartRef__":true,"id":32556},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":32557},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32556":{"this":{"__isSmartRef__":true,"id":32430}},"32557":{"timestamp":{"__isSmartRef__":true,"id":32558},"user":"sebastianwoinar","tags":[]},"32558":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"32559":{"submorphs":[{"__isSmartRef__":true,"id":32560}],"scripts":[],"shape":{"__isSmartRef__":true,"id":32577},"id":"FE5378D1-A67B-4DD0-BA91-A34A8C24E40C","eventHandler":{"__isSmartRef__":true,"id":32578},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":32579},"name":"node211","partsBinMetaInfo":{"__isSmartRef__":true,"id":32580},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5851},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":31890},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":32583},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(963.6,210.0)"},"32560":{"submorphs":[],"scripts":[],"id":"55D0C5F7-A615-4B19-95F0-05D28F16FBF1","shape":{"__isSmartRef__":true,"id":32561},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":32562},"textChunks":[{"__isSmartRef__":true,"id":32574}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":32576},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":32559},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"32561":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"32562":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":32563},{"__isSmartRef__":true,"id":32565},{"__isSmartRef__":true,"id":32567},{"__isSmartRef__":true,"id":32569},{"__isSmartRef__":true,"id":32571}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":32573},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"32563":{"date":{"__isSmartRef__":true,"id":32564},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"32564":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"32565":{"date":{"__isSmartRef__":true,"id":32566},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"32566":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"32567":{"date":{"__isSmartRef__":true,"id":32568},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"32568":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"32569":{"date":{"__isSmartRef__":true,"id":32570},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"32570":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"32571":{"date":{"__isSmartRef__":true,"id":32572},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"32572":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"32573":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"32574":{"style":{"__isSmartRef__":true,"id":32575},"morph":{"__isSmartRef__":true,"id":32560},"chunkOwner":{"__isSmartRef__":true,"id":32560},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"32575":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"32576":{"morph":{"__isSmartRef__":true,"id":32560},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"32577":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"32578":{"morph":{"__isSmartRef__":true,"id":32559},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"32579":{},"32580":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":32581}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"32581":{"date":{"__isSmartRef__":true,"id":32582},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"32582":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"32583":{"buildChildNodes":{"__isSmartRef__":true,"id":32584},"getGameTree":{"__isSmartRef__":true,"id":32588},"getLevel":{"__isSmartRef__":true,"id":32592},"getLevelWeight":{"__isSmartRef__":true,"id":32596},"getWeight":{"__isSmartRef__":true,"id":32600},"setNode":{"__isSmartRef__":true,"id":32604},"setParent":{"__isSmartRef__":true,"id":32608},"getParent":{"__isSmartRef__":true,"id":32612},"deactivate":{"__isSmartRef__":true,"id":32616},"blink":{"__isSmartRef__":true,"id":32620},"ABPreturn":{"__isSmartRef__":true,"id":32624},"ABPstart":{"__isSmartRef__":true,"id":32628},"ABPcontinue":{"__isSmartRef__":true,"id":32632},"ABPshowValue":{"__isSmartRef__":true,"id":32636},"ABPgetValue":{"__isSmartRef__":true,"id":32640},"ABPhasChildNodes":{"__isSmartRef__":true,"id":32644},"onMouseDown":{"__isSmartRef__":true,"id":32648},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":32656},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":32660},"ABPmarkAsDone":{"__isSmartRef__":true,"id":32664},"ABPmarkAsActive":{"__isSmartRef__":true,"id":32668},"getStateMorph":{"__isSmartRef__":true,"id":32672},"showState":{"__isSmartRef__":true,"id":32676},"ABPfailHard":{"__isSmartRef__":true,"id":32680},"markFinalDrawWith":{"__isSmartRef__":true,"id":32684}},"32584":{"varMapping":{"__isSmartRef__":true,"id":32585},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":32586},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32585":{"this":{"__isSmartRef__":true,"id":32559}},"32586":{"timestamp":{"__isSmartRef__":true,"id":32587},"user":"sebastianwoinar","tags":[]},"32587":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"32588":{"varMapping":{"__isSmartRef__":true,"id":32589},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":32590},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32589":{"this":{"__isSmartRef__":true,"id":32559}},"32590":{"timestamp":{"__isSmartRef__":true,"id":32591},"user":"sebastianwoinar","tags":[]},"32591":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32592":{"varMapping":{"__isSmartRef__":true,"id":32593},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":32594},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32593":{"this":{"__isSmartRef__":true,"id":32559}},"32594":{"timestamp":{"__isSmartRef__":true,"id":32595},"user":"sebastianwoinar","tags":[]},"32595":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32596":{"varMapping":{"__isSmartRef__":true,"id":32597},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":32598},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32597":{"this":{"__isSmartRef__":true,"id":32559}},"32598":{"timestamp":{"__isSmartRef__":true,"id":32599},"user":"sebastianwoinar","tags":[]},"32599":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32600":{"varMapping":{"__isSmartRef__":true,"id":32601},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":32602},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32601":{"this":{"__isSmartRef__":true,"id":32559}},"32602":{"timestamp":{"__isSmartRef__":true,"id":32603},"user":"sebastianwoinar","tags":[]},"32603":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32604":{"varMapping":{"__isSmartRef__":true,"id":32605},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":32606},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32605":{"this":{"__isSmartRef__":true,"id":32559}},"32606":{"timestamp":{"__isSmartRef__":true,"id":32607},"user":"sebastianwoinar","tags":[]},"32607":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32608":{"varMapping":{"__isSmartRef__":true,"id":32609},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":32610},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32609":{"this":{"__isSmartRef__":true,"id":32559}},"32610":{"timestamp":{"__isSmartRef__":true,"id":32611},"user":"sebastianwoinar","tags":[]},"32611":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32612":{"varMapping":{"__isSmartRef__":true,"id":32613},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":32614},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32613":{"this":{"__isSmartRef__":true,"id":32559}},"32614":{"timestamp":{"__isSmartRef__":true,"id":32615},"user":"sebastianwoinar","tags":[]},"32615":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"32616":{"varMapping":{"__isSmartRef__":true,"id":32617},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":32618},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32617":{"this":{"__isSmartRef__":true,"id":32559}},"32618":{"timestamp":{"__isSmartRef__":true,"id":32619},"user":"sebastianwoinar","tags":[]},"32619":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"32620":{"varMapping":{"__isSmartRef__":true,"id":32621},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":32622},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32621":{"this":{"__isSmartRef__":true,"id":32559}},"32622":{"timestamp":{"__isSmartRef__":true,"id":32623},"user":"sebastianwoinar","tags":[]},"32623":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"32624":{"varMapping":{"__isSmartRef__":true,"id":32625},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":32626},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32625":{"this":{"__isSmartRef__":true,"id":32559}},"32626":{"timestamp":{"__isSmartRef__":true,"id":32627},"user":"sebastianwoinar","tags":[]},"32627":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"32628":{"varMapping":{"__isSmartRef__":true,"id":32629},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":32630},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32629":{"this":{"__isSmartRef__":true,"id":32559}},"32630":{"timestamp":{"__isSmartRef__":true,"id":32631},"user":"sebastianwoinar","tags":[]},"32631":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"32632":{"varMapping":{"__isSmartRef__":true,"id":32633},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":32634},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32633":{"this":{"__isSmartRef__":true,"id":32559}},"32634":{"timestamp":{"__isSmartRef__":true,"id":32635},"user":"sebastianwoinar","tags":[]},"32635":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"32636":{"varMapping":{"__isSmartRef__":true,"id":32637},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":32638},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32637":{"this":{"__isSmartRef__":true,"id":32559}},"32638":{"timestamp":{"__isSmartRef__":true,"id":32639},"user":"sebastianwoinar","tags":[]},"32639":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"32640":{"varMapping":{"__isSmartRef__":true,"id":32641},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":32642},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32641":{"this":{"__isSmartRef__":true,"id":32559}},"32642":{"timestamp":{"__isSmartRef__":true,"id":32643},"user":"sebastianwoinar","tags":[]},"32643":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"32644":{"varMapping":{"__isSmartRef__":true,"id":32645},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":32646},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32645":{"this":{"__isSmartRef__":true,"id":32559}},"32646":{"timestamp":{"__isSmartRef__":true,"id":32647},"user":"sebastianwoinar","tags":[]},"32647":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"32648":{"varMapping":{"__isSmartRef__":true,"id":32649},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":32654},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32649":{"this":{"__isSmartRef__":true,"id":32559},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":32650}},"32650":{"$super":{"__isSmartRef__":true,"id":32651}},"32651":{"varMapping":{"__isSmartRef__":true,"id":32652},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":32653},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32652":{"obj":{"__isSmartRef__":true,"id":32559},"name":"onMouseDown"},"32653":{},"32654":{"timestamp":{"__isSmartRef__":true,"id":32655},"user":"sebastianwoinar","tags":[]},"32655":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"32656":{"varMapping":{"__isSmartRef__":true,"id":32657},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":32658},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32657":{"this":{"__isSmartRef__":true,"id":32559}},"32658":{"timestamp":{"__isSmartRef__":true,"id":32659},"user":"sebastianwoinar","tags":[]},"32659":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"32660":{"varMapping":{"__isSmartRef__":true,"id":32661},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":32662},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32661":{"this":{"__isSmartRef__":true,"id":32559}},"32662":{"timestamp":{"__isSmartRef__":true,"id":32663},"user":"sebastianwoinar","tags":[]},"32663":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"32664":{"varMapping":{"__isSmartRef__":true,"id":32665},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":32666},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32665":{"this":{"__isSmartRef__":true,"id":32559}},"32666":{"timestamp":{"__isSmartRef__":true,"id":32667},"user":"sebastianwoinar","tags":[]},"32667":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"32668":{"varMapping":{"__isSmartRef__":true,"id":32669},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":32670},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32669":{"this":{"__isSmartRef__":true,"id":32559}},"32670":{"timestamp":{"__isSmartRef__":true,"id":32671},"user":"sebastianwoinar","tags":[]},"32671":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"32672":{"varMapping":{"__isSmartRef__":true,"id":32673},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":32674},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32673":{"this":{"__isSmartRef__":true,"id":32559}},"32674":{"timestamp":{"__isSmartRef__":true,"id":32675},"user":"sebastianwoinar","tags":[]},"32675":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"32676":{"varMapping":{"__isSmartRef__":true,"id":32677},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":32678},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32677":{"this":{"__isSmartRef__":true,"id":32559}},"32678":{"timestamp":{"__isSmartRef__":true,"id":32679},"user":"sebastianwoinar","tags":[]},"32679":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"32680":{"varMapping":{"__isSmartRef__":true,"id":32681},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":32682},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32681":{"this":{"__isSmartRef__":true,"id":32559}},"32682":{"timestamp":{"__isSmartRef__":true,"id":32683},"user":"sebastianwoinar","tags":[]},"32683":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"32684":{"varMapping":{"__isSmartRef__":true,"id":32685},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":32686},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32685":{"this":{"__isSmartRef__":true,"id":32559}},"32686":{"timestamp":{"__isSmartRef__":true,"id":32687},"user":"sebastianwoinar","tags":[]},"32687":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"32688":{"submorphs":[{"__isSmartRef__":true,"id":32689}],"scripts":[],"shape":{"__isSmartRef__":true,"id":32706},"id":"647C2E3D-51AB-45CA-8936-9F2F800CC368","eventHandler":{"__isSmartRef__":true,"id":32707},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":32708},"name":"node212","partsBinMetaInfo":{"__isSmartRef__":true,"id":32709},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5853},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":31890},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":32712},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(968.8,210.0)"},"32689":{"submorphs":[],"scripts":[],"id":"52DC9320-03AD-4AB7-93EC-3EB5C0301FD0","shape":{"__isSmartRef__":true,"id":32690},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":32691},"textChunks":[{"__isSmartRef__":true,"id":32703}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":32705},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":32688},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"32690":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"32691":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":32692},{"__isSmartRef__":true,"id":32694},{"__isSmartRef__":true,"id":32696},{"__isSmartRef__":true,"id":32698},{"__isSmartRef__":true,"id":32700}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":32702},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"32692":{"date":{"__isSmartRef__":true,"id":32693},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"32693":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"32694":{"date":{"__isSmartRef__":true,"id":32695},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"32695":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"32696":{"date":{"__isSmartRef__":true,"id":32697},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"32697":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"32698":{"date":{"__isSmartRef__":true,"id":32699},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"32699":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"32700":{"date":{"__isSmartRef__":true,"id":32701},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"32701":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"32702":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"32703":{"style":{"__isSmartRef__":true,"id":32704},"morph":{"__isSmartRef__":true,"id":32689},"chunkOwner":{"__isSmartRef__":true,"id":32689},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"32704":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"32705":{"morph":{"__isSmartRef__":true,"id":32689},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"32706":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"32707":{"morph":{"__isSmartRef__":true,"id":32688},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"32708":{},"32709":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":32710}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"32710":{"date":{"__isSmartRef__":true,"id":32711},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"32711":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"32712":{"buildChildNodes":{"__isSmartRef__":true,"id":32713},"getGameTree":{"__isSmartRef__":true,"id":32717},"getLevel":{"__isSmartRef__":true,"id":32721},"getLevelWeight":{"__isSmartRef__":true,"id":32725},"getWeight":{"__isSmartRef__":true,"id":32729},"setNode":{"__isSmartRef__":true,"id":32733},"setParent":{"__isSmartRef__":true,"id":32737},"getParent":{"__isSmartRef__":true,"id":32741},"deactivate":{"__isSmartRef__":true,"id":32745},"blink":{"__isSmartRef__":true,"id":32749},"ABPreturn":{"__isSmartRef__":true,"id":32753},"ABPstart":{"__isSmartRef__":true,"id":32757},"ABPcontinue":{"__isSmartRef__":true,"id":32761},"ABPshowValue":{"__isSmartRef__":true,"id":32765},"ABPgetValue":{"__isSmartRef__":true,"id":32769},"ABPhasChildNodes":{"__isSmartRef__":true,"id":32773},"onMouseDown":{"__isSmartRef__":true,"id":32777},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":32785},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":32789},"ABPmarkAsDone":{"__isSmartRef__":true,"id":32793},"ABPmarkAsActive":{"__isSmartRef__":true,"id":32797},"getStateMorph":{"__isSmartRef__":true,"id":32801},"showState":{"__isSmartRef__":true,"id":32805},"ABPfailHard":{"__isSmartRef__":true,"id":32809},"markFinalDrawWith":{"__isSmartRef__":true,"id":32813}},"32713":{"varMapping":{"__isSmartRef__":true,"id":32714},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":32715},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32714":{"this":{"__isSmartRef__":true,"id":32688}},"32715":{"timestamp":{"__isSmartRef__":true,"id":32716},"user":"sebastianwoinar","tags":[]},"32716":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"32717":{"varMapping":{"__isSmartRef__":true,"id":32718},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":32719},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32718":{"this":{"__isSmartRef__":true,"id":32688}},"32719":{"timestamp":{"__isSmartRef__":true,"id":32720},"user":"sebastianwoinar","tags":[]},"32720":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32721":{"varMapping":{"__isSmartRef__":true,"id":32722},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":32723},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32722":{"this":{"__isSmartRef__":true,"id":32688}},"32723":{"timestamp":{"__isSmartRef__":true,"id":32724},"user":"sebastianwoinar","tags":[]},"32724":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32725":{"varMapping":{"__isSmartRef__":true,"id":32726},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":32727},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32726":{"this":{"__isSmartRef__":true,"id":32688}},"32727":{"timestamp":{"__isSmartRef__":true,"id":32728},"user":"sebastianwoinar","tags":[]},"32728":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32729":{"varMapping":{"__isSmartRef__":true,"id":32730},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":32731},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32730":{"this":{"__isSmartRef__":true,"id":32688}},"32731":{"timestamp":{"__isSmartRef__":true,"id":32732},"user":"sebastianwoinar","tags":[]},"32732":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32733":{"varMapping":{"__isSmartRef__":true,"id":32734},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":32735},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32734":{"this":{"__isSmartRef__":true,"id":32688}},"32735":{"timestamp":{"__isSmartRef__":true,"id":32736},"user":"sebastianwoinar","tags":[]},"32736":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32737":{"varMapping":{"__isSmartRef__":true,"id":32738},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":32739},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32738":{"this":{"__isSmartRef__":true,"id":32688}},"32739":{"timestamp":{"__isSmartRef__":true,"id":32740},"user":"sebastianwoinar","tags":[]},"32740":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32741":{"varMapping":{"__isSmartRef__":true,"id":32742},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":32743},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32742":{"this":{"__isSmartRef__":true,"id":32688}},"32743":{"timestamp":{"__isSmartRef__":true,"id":32744},"user":"sebastianwoinar","tags":[]},"32744":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"32745":{"varMapping":{"__isSmartRef__":true,"id":32746},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":32747},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32746":{"this":{"__isSmartRef__":true,"id":32688}},"32747":{"timestamp":{"__isSmartRef__":true,"id":32748},"user":"sebastianwoinar","tags":[]},"32748":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"32749":{"varMapping":{"__isSmartRef__":true,"id":32750},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":32751},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32750":{"this":{"__isSmartRef__":true,"id":32688}},"32751":{"timestamp":{"__isSmartRef__":true,"id":32752},"user":"sebastianwoinar","tags":[]},"32752":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"32753":{"varMapping":{"__isSmartRef__":true,"id":32754},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":32755},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32754":{"this":{"__isSmartRef__":true,"id":32688}},"32755":{"timestamp":{"__isSmartRef__":true,"id":32756},"user":"sebastianwoinar","tags":[]},"32756":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"32757":{"varMapping":{"__isSmartRef__":true,"id":32758},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":32759},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32758":{"this":{"__isSmartRef__":true,"id":32688}},"32759":{"timestamp":{"__isSmartRef__":true,"id":32760},"user":"sebastianwoinar","tags":[]},"32760":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"32761":{"varMapping":{"__isSmartRef__":true,"id":32762},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":32763},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32762":{"this":{"__isSmartRef__":true,"id":32688}},"32763":{"timestamp":{"__isSmartRef__":true,"id":32764},"user":"sebastianwoinar","tags":[]},"32764":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"32765":{"varMapping":{"__isSmartRef__":true,"id":32766},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":32767},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32766":{"this":{"__isSmartRef__":true,"id":32688}},"32767":{"timestamp":{"__isSmartRef__":true,"id":32768},"user":"sebastianwoinar","tags":[]},"32768":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"32769":{"varMapping":{"__isSmartRef__":true,"id":32770},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":32771},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32770":{"this":{"__isSmartRef__":true,"id":32688}},"32771":{"timestamp":{"__isSmartRef__":true,"id":32772},"user":"sebastianwoinar","tags":[]},"32772":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"32773":{"varMapping":{"__isSmartRef__":true,"id":32774},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":32775},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32774":{"this":{"__isSmartRef__":true,"id":32688}},"32775":{"timestamp":{"__isSmartRef__":true,"id":32776},"user":"sebastianwoinar","tags":[]},"32776":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"32777":{"varMapping":{"__isSmartRef__":true,"id":32778},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":32783},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32778":{"this":{"__isSmartRef__":true,"id":32688},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":32779}},"32779":{"$super":{"__isSmartRef__":true,"id":32780}},"32780":{"varMapping":{"__isSmartRef__":true,"id":32781},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":32782},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32781":{"obj":{"__isSmartRef__":true,"id":32688},"name":"onMouseDown"},"32782":{},"32783":{"timestamp":{"__isSmartRef__":true,"id":32784},"user":"sebastianwoinar","tags":[]},"32784":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"32785":{"varMapping":{"__isSmartRef__":true,"id":32786},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":32787},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32786":{"this":{"__isSmartRef__":true,"id":32688}},"32787":{"timestamp":{"__isSmartRef__":true,"id":32788},"user":"sebastianwoinar","tags":[]},"32788":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"32789":{"varMapping":{"__isSmartRef__":true,"id":32790},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":32791},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32790":{"this":{"__isSmartRef__":true,"id":32688}},"32791":{"timestamp":{"__isSmartRef__":true,"id":32792},"user":"sebastianwoinar","tags":[]},"32792":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"32793":{"varMapping":{"__isSmartRef__":true,"id":32794},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":32795},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32794":{"this":{"__isSmartRef__":true,"id":32688}},"32795":{"timestamp":{"__isSmartRef__":true,"id":32796},"user":"sebastianwoinar","tags":[]},"32796":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"32797":{"varMapping":{"__isSmartRef__":true,"id":32798},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":32799},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32798":{"this":{"__isSmartRef__":true,"id":32688}},"32799":{"timestamp":{"__isSmartRef__":true,"id":32800},"user":"sebastianwoinar","tags":[]},"32800":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"32801":{"varMapping":{"__isSmartRef__":true,"id":32802},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":32803},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32802":{"this":{"__isSmartRef__":true,"id":32688}},"32803":{"timestamp":{"__isSmartRef__":true,"id":32804},"user":"sebastianwoinar","tags":[]},"32804":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"32805":{"varMapping":{"__isSmartRef__":true,"id":32806},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":32807},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32806":{"this":{"__isSmartRef__":true,"id":32688}},"32807":{"timestamp":{"__isSmartRef__":true,"id":32808},"user":"sebastianwoinar","tags":[]},"32808":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"32809":{"varMapping":{"__isSmartRef__":true,"id":32810},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":32811},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32810":{"this":{"__isSmartRef__":true,"id":32688}},"32811":{"timestamp":{"__isSmartRef__":true,"id":32812},"user":"sebastianwoinar","tags":[]},"32812":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"32813":{"varMapping":{"__isSmartRef__":true,"id":32814},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":32815},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32814":{"this":{"__isSmartRef__":true,"id":32688}},"32815":{"timestamp":{"__isSmartRef__":true,"id":32816},"user":"sebastianwoinar","tags":[]},"32816":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"32817":{"submorphs":[{"__isSmartRef__":true,"id":32818}],"scripts":[],"shape":{"__isSmartRef__":true,"id":32835},"id":"307405B5-30B1-45C8-9D68-48767B5115EC","eventHandler":{"__isSmartRef__":true,"id":32836},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":32837},"name":"node213","partsBinMetaInfo":{"__isSmartRef__":true,"id":32838},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5855},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":31890},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":32841},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(974.0,210.0)"},"32818":{"submorphs":[],"scripts":[],"id":"B50154BC-A220-4F22-876C-BF18320E86EC","shape":{"__isSmartRef__":true,"id":32819},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":32820},"textChunks":[{"__isSmartRef__":true,"id":32832}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":32834},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":32817},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"32819":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"32820":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":32821},{"__isSmartRef__":true,"id":32823},{"__isSmartRef__":true,"id":32825},{"__isSmartRef__":true,"id":32827},{"__isSmartRef__":true,"id":32829}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":32831},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"32821":{"date":{"__isSmartRef__":true,"id":32822},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"32822":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"32823":{"date":{"__isSmartRef__":true,"id":32824},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"32824":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"32825":{"date":{"__isSmartRef__":true,"id":32826},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"32826":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"32827":{"date":{"__isSmartRef__":true,"id":32828},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"32828":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"32829":{"date":{"__isSmartRef__":true,"id":32830},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"32830":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"32831":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"32832":{"style":{"__isSmartRef__":true,"id":32833},"morph":{"__isSmartRef__":true,"id":32818},"chunkOwner":{"__isSmartRef__":true,"id":32818},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"32833":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"32834":{"morph":{"__isSmartRef__":true,"id":32818},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"32835":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"32836":{"morph":{"__isSmartRef__":true,"id":32817},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"32837":{},"32838":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":32839}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"32839":{"date":{"__isSmartRef__":true,"id":32840},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"32840":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"32841":{"buildChildNodes":{"__isSmartRef__":true,"id":32842},"getGameTree":{"__isSmartRef__":true,"id":32846},"getLevel":{"__isSmartRef__":true,"id":32850},"getLevelWeight":{"__isSmartRef__":true,"id":32854},"getWeight":{"__isSmartRef__":true,"id":32858},"setNode":{"__isSmartRef__":true,"id":32862},"setParent":{"__isSmartRef__":true,"id":32866},"getParent":{"__isSmartRef__":true,"id":32870},"deactivate":{"__isSmartRef__":true,"id":32874},"blink":{"__isSmartRef__":true,"id":32878},"ABPreturn":{"__isSmartRef__":true,"id":32882},"ABPstart":{"__isSmartRef__":true,"id":32886},"ABPcontinue":{"__isSmartRef__":true,"id":32890},"ABPshowValue":{"__isSmartRef__":true,"id":32894},"ABPgetValue":{"__isSmartRef__":true,"id":32898},"ABPhasChildNodes":{"__isSmartRef__":true,"id":32902},"onMouseDown":{"__isSmartRef__":true,"id":32906},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":32914},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":32918},"ABPmarkAsDone":{"__isSmartRef__":true,"id":32922},"ABPmarkAsActive":{"__isSmartRef__":true,"id":32926},"getStateMorph":{"__isSmartRef__":true,"id":32930},"showState":{"__isSmartRef__":true,"id":32934},"ABPfailHard":{"__isSmartRef__":true,"id":32938},"markFinalDrawWith":{"__isSmartRef__":true,"id":32942}},"32842":{"varMapping":{"__isSmartRef__":true,"id":32843},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":32844},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32843":{"this":{"__isSmartRef__":true,"id":32817}},"32844":{"timestamp":{"__isSmartRef__":true,"id":32845},"user":"sebastianwoinar","tags":[]},"32845":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"32846":{"varMapping":{"__isSmartRef__":true,"id":32847},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":32848},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32847":{"this":{"__isSmartRef__":true,"id":32817}},"32848":{"timestamp":{"__isSmartRef__":true,"id":32849},"user":"sebastianwoinar","tags":[]},"32849":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32850":{"varMapping":{"__isSmartRef__":true,"id":32851},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":32852},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32851":{"this":{"__isSmartRef__":true,"id":32817}},"32852":{"timestamp":{"__isSmartRef__":true,"id":32853},"user":"sebastianwoinar","tags":[]},"32853":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32854":{"varMapping":{"__isSmartRef__":true,"id":32855},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":32856},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32855":{"this":{"__isSmartRef__":true,"id":32817}},"32856":{"timestamp":{"__isSmartRef__":true,"id":32857},"user":"sebastianwoinar","tags":[]},"32857":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32858":{"varMapping":{"__isSmartRef__":true,"id":32859},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":32860},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32859":{"this":{"__isSmartRef__":true,"id":32817}},"32860":{"timestamp":{"__isSmartRef__":true,"id":32861},"user":"sebastianwoinar","tags":[]},"32861":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32862":{"varMapping":{"__isSmartRef__":true,"id":32863},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":32864},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32863":{"this":{"__isSmartRef__":true,"id":32817}},"32864":{"timestamp":{"__isSmartRef__":true,"id":32865},"user":"sebastianwoinar","tags":[]},"32865":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32866":{"varMapping":{"__isSmartRef__":true,"id":32867},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":32868},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32867":{"this":{"__isSmartRef__":true,"id":32817}},"32868":{"timestamp":{"__isSmartRef__":true,"id":32869},"user":"sebastianwoinar","tags":[]},"32869":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32870":{"varMapping":{"__isSmartRef__":true,"id":32871},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":32872},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32871":{"this":{"__isSmartRef__":true,"id":32817}},"32872":{"timestamp":{"__isSmartRef__":true,"id":32873},"user":"sebastianwoinar","tags":[]},"32873":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"32874":{"varMapping":{"__isSmartRef__":true,"id":32875},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":32876},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32875":{"this":{"__isSmartRef__":true,"id":32817}},"32876":{"timestamp":{"__isSmartRef__":true,"id":32877},"user":"sebastianwoinar","tags":[]},"32877":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"32878":{"varMapping":{"__isSmartRef__":true,"id":32879},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":32880},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32879":{"this":{"__isSmartRef__":true,"id":32817}},"32880":{"timestamp":{"__isSmartRef__":true,"id":32881},"user":"sebastianwoinar","tags":[]},"32881":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"32882":{"varMapping":{"__isSmartRef__":true,"id":32883},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":32884},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32883":{"this":{"__isSmartRef__":true,"id":32817}},"32884":{"timestamp":{"__isSmartRef__":true,"id":32885},"user":"sebastianwoinar","tags":[]},"32885":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"32886":{"varMapping":{"__isSmartRef__":true,"id":32887},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":32888},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32887":{"this":{"__isSmartRef__":true,"id":32817}},"32888":{"timestamp":{"__isSmartRef__":true,"id":32889},"user":"sebastianwoinar","tags":[]},"32889":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"32890":{"varMapping":{"__isSmartRef__":true,"id":32891},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":32892},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32891":{"this":{"__isSmartRef__":true,"id":32817}},"32892":{"timestamp":{"__isSmartRef__":true,"id":32893},"user":"sebastianwoinar","tags":[]},"32893":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"32894":{"varMapping":{"__isSmartRef__":true,"id":32895},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":32896},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32895":{"this":{"__isSmartRef__":true,"id":32817}},"32896":{"timestamp":{"__isSmartRef__":true,"id":32897},"user":"sebastianwoinar","tags":[]},"32897":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"32898":{"varMapping":{"__isSmartRef__":true,"id":32899},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":32900},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32899":{"this":{"__isSmartRef__":true,"id":32817}},"32900":{"timestamp":{"__isSmartRef__":true,"id":32901},"user":"sebastianwoinar","tags":[]},"32901":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"32902":{"varMapping":{"__isSmartRef__":true,"id":32903},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":32904},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32903":{"this":{"__isSmartRef__":true,"id":32817}},"32904":{"timestamp":{"__isSmartRef__":true,"id":32905},"user":"sebastianwoinar","tags":[]},"32905":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"32906":{"varMapping":{"__isSmartRef__":true,"id":32907},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":32912},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32907":{"this":{"__isSmartRef__":true,"id":32817},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":32908}},"32908":{"$super":{"__isSmartRef__":true,"id":32909}},"32909":{"varMapping":{"__isSmartRef__":true,"id":32910},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":32911},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32910":{"obj":{"__isSmartRef__":true,"id":32817},"name":"onMouseDown"},"32911":{},"32912":{"timestamp":{"__isSmartRef__":true,"id":32913},"user":"sebastianwoinar","tags":[]},"32913":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"32914":{"varMapping":{"__isSmartRef__":true,"id":32915},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":32916},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32915":{"this":{"__isSmartRef__":true,"id":32817}},"32916":{"timestamp":{"__isSmartRef__":true,"id":32917},"user":"sebastianwoinar","tags":[]},"32917":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"32918":{"varMapping":{"__isSmartRef__":true,"id":32919},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":32920},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32919":{"this":{"__isSmartRef__":true,"id":32817}},"32920":{"timestamp":{"__isSmartRef__":true,"id":32921},"user":"sebastianwoinar","tags":[]},"32921":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"32922":{"varMapping":{"__isSmartRef__":true,"id":32923},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":32924},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32923":{"this":{"__isSmartRef__":true,"id":32817}},"32924":{"timestamp":{"__isSmartRef__":true,"id":32925},"user":"sebastianwoinar","tags":[]},"32925":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"32926":{"varMapping":{"__isSmartRef__":true,"id":32927},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":32928},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32927":{"this":{"__isSmartRef__":true,"id":32817}},"32928":{"timestamp":{"__isSmartRef__":true,"id":32929},"user":"sebastianwoinar","tags":[]},"32929":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"32930":{"varMapping":{"__isSmartRef__":true,"id":32931},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":32932},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32931":{"this":{"__isSmartRef__":true,"id":32817}},"32932":{"timestamp":{"__isSmartRef__":true,"id":32933},"user":"sebastianwoinar","tags":[]},"32933":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"32934":{"varMapping":{"__isSmartRef__":true,"id":32935},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":32936},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32935":{"this":{"__isSmartRef__":true,"id":32817}},"32936":{"timestamp":{"__isSmartRef__":true,"id":32937},"user":"sebastianwoinar","tags":[]},"32937":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"32938":{"varMapping":{"__isSmartRef__":true,"id":32939},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":32940},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32939":{"this":{"__isSmartRef__":true,"id":32817}},"32940":{"timestamp":{"__isSmartRef__":true,"id":32941},"user":"sebastianwoinar","tags":[]},"32941":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"32942":{"varMapping":{"__isSmartRef__":true,"id":32943},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":32944},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32943":{"this":{"__isSmartRef__":true,"id":32817}},"32944":{"timestamp":{"__isSmartRef__":true,"id":32945},"user":"sebastianwoinar","tags":[]},"32945":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"32946":{"submorphs":[{"__isSmartRef__":true,"id":32947}],"scripts":[],"shape":{"__isSmartRef__":true,"id":32964},"id":"1D92EBEA-9E9A-43C7-BA69-B7831CC9DF71","eventHandler":{"__isSmartRef__":true,"id":32965},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":32966},"name":"node214","partsBinMetaInfo":{"__isSmartRef__":true,"id":32967},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5857},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":31890},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":32970},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(979.1,210.0)"},"32947":{"submorphs":[],"scripts":[],"id":"31D8AC35-0224-4DF0-9C2E-95A950FD175D","shape":{"__isSmartRef__":true,"id":32948},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":32949},"textChunks":[{"__isSmartRef__":true,"id":32961}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":32963},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":32946},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"32948":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"32949":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":32950},{"__isSmartRef__":true,"id":32952},{"__isSmartRef__":true,"id":32954},{"__isSmartRef__":true,"id":32956},{"__isSmartRef__":true,"id":32958}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":32960},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"32950":{"date":{"__isSmartRef__":true,"id":32951},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"32951":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"32952":{"date":{"__isSmartRef__":true,"id":32953},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"32953":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"32954":{"date":{"__isSmartRef__":true,"id":32955},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"32955":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"32956":{"date":{"__isSmartRef__":true,"id":32957},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"32957":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"32958":{"date":{"__isSmartRef__":true,"id":32959},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"32959":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"32960":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"32961":{"style":{"__isSmartRef__":true,"id":32962},"morph":{"__isSmartRef__":true,"id":32947},"chunkOwner":{"__isSmartRef__":true,"id":32947},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"32962":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"32963":{"morph":{"__isSmartRef__":true,"id":32947},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"32964":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"32965":{"morph":{"__isSmartRef__":true,"id":32946},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"32966":{},"32967":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":32968}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"32968":{"date":{"__isSmartRef__":true,"id":32969},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"32969":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"32970":{"buildChildNodes":{"__isSmartRef__":true,"id":32971},"getGameTree":{"__isSmartRef__":true,"id":32975},"getLevel":{"__isSmartRef__":true,"id":32979},"getLevelWeight":{"__isSmartRef__":true,"id":32983},"getWeight":{"__isSmartRef__":true,"id":32987},"setNode":{"__isSmartRef__":true,"id":32991},"setParent":{"__isSmartRef__":true,"id":32995},"getParent":{"__isSmartRef__":true,"id":32999},"deactivate":{"__isSmartRef__":true,"id":33003},"blink":{"__isSmartRef__":true,"id":33007},"ABPreturn":{"__isSmartRef__":true,"id":33011},"ABPstart":{"__isSmartRef__":true,"id":33015},"ABPcontinue":{"__isSmartRef__":true,"id":33019},"ABPshowValue":{"__isSmartRef__":true,"id":33023},"ABPgetValue":{"__isSmartRef__":true,"id":33027},"ABPhasChildNodes":{"__isSmartRef__":true,"id":33031},"onMouseDown":{"__isSmartRef__":true,"id":33035},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":33043},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":33047},"ABPmarkAsDone":{"__isSmartRef__":true,"id":33051},"ABPmarkAsActive":{"__isSmartRef__":true,"id":33055},"getStateMorph":{"__isSmartRef__":true,"id":33059},"showState":{"__isSmartRef__":true,"id":33063},"ABPfailHard":{"__isSmartRef__":true,"id":33067},"markFinalDrawWith":{"__isSmartRef__":true,"id":33071}},"32971":{"varMapping":{"__isSmartRef__":true,"id":32972},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":32973},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32972":{"this":{"__isSmartRef__":true,"id":32946}},"32973":{"timestamp":{"__isSmartRef__":true,"id":32974},"user":"sebastianwoinar","tags":[]},"32974":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"32975":{"varMapping":{"__isSmartRef__":true,"id":32976},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":32977},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32976":{"this":{"__isSmartRef__":true,"id":32946}},"32977":{"timestamp":{"__isSmartRef__":true,"id":32978},"user":"sebastianwoinar","tags":[]},"32978":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32979":{"varMapping":{"__isSmartRef__":true,"id":32980},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":32981},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32980":{"this":{"__isSmartRef__":true,"id":32946}},"32981":{"timestamp":{"__isSmartRef__":true,"id":32982},"user":"sebastianwoinar","tags":[]},"32982":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32983":{"varMapping":{"__isSmartRef__":true,"id":32984},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":32985},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32984":{"this":{"__isSmartRef__":true,"id":32946}},"32985":{"timestamp":{"__isSmartRef__":true,"id":32986},"user":"sebastianwoinar","tags":[]},"32986":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32987":{"varMapping":{"__isSmartRef__":true,"id":32988},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":32989},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32988":{"this":{"__isSmartRef__":true,"id":32946}},"32989":{"timestamp":{"__isSmartRef__":true,"id":32990},"user":"sebastianwoinar","tags":[]},"32990":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32991":{"varMapping":{"__isSmartRef__":true,"id":32992},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":32993},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32992":{"this":{"__isSmartRef__":true,"id":32946}},"32993":{"timestamp":{"__isSmartRef__":true,"id":32994},"user":"sebastianwoinar","tags":[]},"32994":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32995":{"varMapping":{"__isSmartRef__":true,"id":32996},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":32997},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32996":{"this":{"__isSmartRef__":true,"id":32946}},"32997":{"timestamp":{"__isSmartRef__":true,"id":32998},"user":"sebastianwoinar","tags":[]},"32998":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"32999":{"varMapping":{"__isSmartRef__":true,"id":33000},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":33001},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33000":{"this":{"__isSmartRef__":true,"id":32946}},"33001":{"timestamp":{"__isSmartRef__":true,"id":33002},"user":"sebastianwoinar","tags":[]},"33002":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"33003":{"varMapping":{"__isSmartRef__":true,"id":33004},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":33005},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33004":{"this":{"__isSmartRef__":true,"id":32946}},"33005":{"timestamp":{"__isSmartRef__":true,"id":33006},"user":"sebastianwoinar","tags":[]},"33006":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"33007":{"varMapping":{"__isSmartRef__":true,"id":33008},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":33009},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33008":{"this":{"__isSmartRef__":true,"id":32946}},"33009":{"timestamp":{"__isSmartRef__":true,"id":33010},"user":"sebastianwoinar","tags":[]},"33010":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"33011":{"varMapping":{"__isSmartRef__":true,"id":33012},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":33013},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33012":{"this":{"__isSmartRef__":true,"id":32946}},"33013":{"timestamp":{"__isSmartRef__":true,"id":33014},"user":"sebastianwoinar","tags":[]},"33014":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"33015":{"varMapping":{"__isSmartRef__":true,"id":33016},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":33017},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33016":{"this":{"__isSmartRef__":true,"id":32946}},"33017":{"timestamp":{"__isSmartRef__":true,"id":33018},"user":"sebastianwoinar","tags":[]},"33018":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"33019":{"varMapping":{"__isSmartRef__":true,"id":33020},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":33021},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33020":{"this":{"__isSmartRef__":true,"id":32946}},"33021":{"timestamp":{"__isSmartRef__":true,"id":33022},"user":"sebastianwoinar","tags":[]},"33022":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"33023":{"varMapping":{"__isSmartRef__":true,"id":33024},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":33025},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33024":{"this":{"__isSmartRef__":true,"id":32946}},"33025":{"timestamp":{"__isSmartRef__":true,"id":33026},"user":"sebastianwoinar","tags":[]},"33026":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"33027":{"varMapping":{"__isSmartRef__":true,"id":33028},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":33029},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33028":{"this":{"__isSmartRef__":true,"id":32946}},"33029":{"timestamp":{"__isSmartRef__":true,"id":33030},"user":"sebastianwoinar","tags":[]},"33030":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"33031":{"varMapping":{"__isSmartRef__":true,"id":33032},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":33033},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33032":{"this":{"__isSmartRef__":true,"id":32946}},"33033":{"timestamp":{"__isSmartRef__":true,"id":33034},"user":"sebastianwoinar","tags":[]},"33034":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"33035":{"varMapping":{"__isSmartRef__":true,"id":33036},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":33041},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33036":{"this":{"__isSmartRef__":true,"id":32946},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":33037}},"33037":{"$super":{"__isSmartRef__":true,"id":33038}},"33038":{"varMapping":{"__isSmartRef__":true,"id":33039},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":33040},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33039":{"obj":{"__isSmartRef__":true,"id":32946},"name":"onMouseDown"},"33040":{},"33041":{"timestamp":{"__isSmartRef__":true,"id":33042},"user":"sebastianwoinar","tags":[]},"33042":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"33043":{"varMapping":{"__isSmartRef__":true,"id":33044},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":33045},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33044":{"this":{"__isSmartRef__":true,"id":32946}},"33045":{"timestamp":{"__isSmartRef__":true,"id":33046},"user":"sebastianwoinar","tags":[]},"33046":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"33047":{"varMapping":{"__isSmartRef__":true,"id":33048},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":33049},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33048":{"this":{"__isSmartRef__":true,"id":32946}},"33049":{"timestamp":{"__isSmartRef__":true,"id":33050},"user":"sebastianwoinar","tags":[]},"33050":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"33051":{"varMapping":{"__isSmartRef__":true,"id":33052},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":33053},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33052":{"this":{"__isSmartRef__":true,"id":32946}},"33053":{"timestamp":{"__isSmartRef__":true,"id":33054},"user":"sebastianwoinar","tags":[]},"33054":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"33055":{"varMapping":{"__isSmartRef__":true,"id":33056},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":33057},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33056":{"this":{"__isSmartRef__":true,"id":32946}},"33057":{"timestamp":{"__isSmartRef__":true,"id":33058},"user":"sebastianwoinar","tags":[]},"33058":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"33059":{"varMapping":{"__isSmartRef__":true,"id":33060},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":33061},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33060":{"this":{"__isSmartRef__":true,"id":32946}},"33061":{"timestamp":{"__isSmartRef__":true,"id":33062},"user":"sebastianwoinar","tags":[]},"33062":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"33063":{"varMapping":{"__isSmartRef__":true,"id":33064},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":33065},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33064":{"this":{"__isSmartRef__":true,"id":32946}},"33065":{"timestamp":{"__isSmartRef__":true,"id":33066},"user":"sebastianwoinar","tags":[]},"33066":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"33067":{"varMapping":{"__isSmartRef__":true,"id":33068},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":33069},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33068":{"this":{"__isSmartRef__":true,"id":32946}},"33069":{"timestamp":{"__isSmartRef__":true,"id":33070},"user":"sebastianwoinar","tags":[]},"33070":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"33071":{"varMapping":{"__isSmartRef__":true,"id":33072},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":33073},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33072":{"this":{"__isSmartRef__":true,"id":32946}},"33073":{"timestamp":{"__isSmartRef__":true,"id":33074},"user":"sebastianwoinar","tags":[]},"33074":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"33075":{"buildChildNodes":{"__isSmartRef__":true,"id":33076},"getGameTree":{"__isSmartRef__":true,"id":33080},"getLevel":{"__isSmartRef__":true,"id":33084},"getLevelWeight":{"__isSmartRef__":true,"id":33088},"getWeight":{"__isSmartRef__":true,"id":33092},"setNode":{"__isSmartRef__":true,"id":33096},"setParent":{"__isSmartRef__":true,"id":33100},"getParent":{"__isSmartRef__":true,"id":33104},"deactivate":{"__isSmartRef__":true,"id":33108},"blink":{"__isSmartRef__":true,"id":33112},"ABPreturn":{"__isSmartRef__":true,"id":33116},"ABPstart":{"__isSmartRef__":true,"id":33120},"ABPcontinue":{"__isSmartRef__":true,"id":33124},"ABPshowValue":{"__isSmartRef__":true,"id":33128},"ABPgetValue":{"__isSmartRef__":true,"id":33132},"ABPhasChildNodes":{"__isSmartRef__":true,"id":33136},"onMouseDown":{"__isSmartRef__":true,"id":33140},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":33148},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":33152},"ABPmarkAsDone":{"__isSmartRef__":true,"id":33156},"ABPmarkAsActive":{"__isSmartRef__":true,"id":33160},"getStateMorph":{"__isSmartRef__":true,"id":33164},"showState":{"__isSmartRef__":true,"id":33168},"ABPfailHard":{"__isSmartRef__":true,"id":33172},"markFinalDrawWith":{"__isSmartRef__":true,"id":33176}},"33076":{"varMapping":{"__isSmartRef__":true,"id":33077},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":33078},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33077":{"this":{"__isSmartRef__":true,"id":31890}},"33078":{"timestamp":{"__isSmartRef__":true,"id":33079},"user":"sebastianwoinar","tags":[]},"33079":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"33080":{"varMapping":{"__isSmartRef__":true,"id":33081},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":33082},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33081":{"this":{"__isSmartRef__":true,"id":31890}},"33082":{"timestamp":{"__isSmartRef__":true,"id":33083},"user":"sebastianwoinar","tags":[]},"33083":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33084":{"varMapping":{"__isSmartRef__":true,"id":33085},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":33086},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33085":{"this":{"__isSmartRef__":true,"id":31890}},"33086":{"timestamp":{"__isSmartRef__":true,"id":33087},"user":"sebastianwoinar","tags":[]},"33087":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33088":{"varMapping":{"__isSmartRef__":true,"id":33089},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":33090},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33089":{"this":{"__isSmartRef__":true,"id":31890}},"33090":{"timestamp":{"__isSmartRef__":true,"id":33091},"user":"sebastianwoinar","tags":[]},"33091":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33092":{"varMapping":{"__isSmartRef__":true,"id":33093},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":33094},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33093":{"this":{"__isSmartRef__":true,"id":31890}},"33094":{"timestamp":{"__isSmartRef__":true,"id":33095},"user":"sebastianwoinar","tags":[]},"33095":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33096":{"varMapping":{"__isSmartRef__":true,"id":33097},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":33098},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33097":{"this":{"__isSmartRef__":true,"id":31890}},"33098":{"timestamp":{"__isSmartRef__":true,"id":33099},"user":"sebastianwoinar","tags":[]},"33099":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33100":{"varMapping":{"__isSmartRef__":true,"id":33101},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":33102},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33101":{"this":{"__isSmartRef__":true,"id":31890}},"33102":{"timestamp":{"__isSmartRef__":true,"id":33103},"user":"sebastianwoinar","tags":[]},"33103":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33104":{"varMapping":{"__isSmartRef__":true,"id":33105},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":33106},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33105":{"this":{"__isSmartRef__":true,"id":31890}},"33106":{"timestamp":{"__isSmartRef__":true,"id":33107},"user":"sebastianwoinar","tags":[]},"33107":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"33108":{"varMapping":{"__isSmartRef__":true,"id":33109},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":33110},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33109":{"this":{"__isSmartRef__":true,"id":31890}},"33110":{"timestamp":{"__isSmartRef__":true,"id":33111},"user":"sebastianwoinar","tags":[]},"33111":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"33112":{"varMapping":{"__isSmartRef__":true,"id":33113},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":33114},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33113":{"this":{"__isSmartRef__":true,"id":31890}},"33114":{"timestamp":{"__isSmartRef__":true,"id":33115},"user":"sebastianwoinar","tags":[]},"33115":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"33116":{"varMapping":{"__isSmartRef__":true,"id":33117},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":33118},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33117":{"this":{"__isSmartRef__":true,"id":31890}},"33118":{"timestamp":{"__isSmartRef__":true,"id":33119},"user":"sebastianwoinar","tags":[]},"33119":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"33120":{"varMapping":{"__isSmartRef__":true,"id":33121},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":33122},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33121":{"this":{"__isSmartRef__":true,"id":31890}},"33122":{"timestamp":{"__isSmartRef__":true,"id":33123},"user":"sebastianwoinar","tags":[]},"33123":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"33124":{"varMapping":{"__isSmartRef__":true,"id":33125},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":33126},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33125":{"this":{"__isSmartRef__":true,"id":31890}},"33126":{"timestamp":{"__isSmartRef__":true,"id":33127},"user":"sebastianwoinar","tags":[]},"33127":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"33128":{"varMapping":{"__isSmartRef__":true,"id":33129},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":33130},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33129":{"this":{"__isSmartRef__":true,"id":31890}},"33130":{"timestamp":{"__isSmartRef__":true,"id":33131},"user":"sebastianwoinar","tags":[]},"33131":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"33132":{"varMapping":{"__isSmartRef__":true,"id":33133},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":33134},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33133":{"this":{"__isSmartRef__":true,"id":31890}},"33134":{"timestamp":{"__isSmartRef__":true,"id":33135},"user":"sebastianwoinar","tags":[]},"33135":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"33136":{"varMapping":{"__isSmartRef__":true,"id":33137},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":33138},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33137":{"this":{"__isSmartRef__":true,"id":31890}},"33138":{"timestamp":{"__isSmartRef__":true,"id":33139},"user":"sebastianwoinar","tags":[]},"33139":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"33140":{"varMapping":{"__isSmartRef__":true,"id":33141},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":33146},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33141":{"this":{"__isSmartRef__":true,"id":31890},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":33142}},"33142":{"$super":{"__isSmartRef__":true,"id":33143}},"33143":{"varMapping":{"__isSmartRef__":true,"id":33144},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":33145},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33144":{"obj":{"__isSmartRef__":true,"id":31890},"name":"onMouseDown"},"33145":{},"33146":{"timestamp":{"__isSmartRef__":true,"id":33147},"user":"sebastianwoinar","tags":[]},"33147":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"33148":{"varMapping":{"__isSmartRef__":true,"id":33149},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":33150},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33149":{"this":{"__isSmartRef__":true,"id":31890}},"33150":{"timestamp":{"__isSmartRef__":true,"id":33151},"user":"sebastianwoinar","tags":[]},"33151":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"33152":{"varMapping":{"__isSmartRef__":true,"id":33153},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":33154},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33153":{"this":{"__isSmartRef__":true,"id":31890}},"33154":{"timestamp":{"__isSmartRef__":true,"id":33155},"user":"sebastianwoinar","tags":[]},"33155":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"33156":{"varMapping":{"__isSmartRef__":true,"id":33157},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":33158},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33157":{"this":{"__isSmartRef__":true,"id":31890}},"33158":{"timestamp":{"__isSmartRef__":true,"id":33159},"user":"sebastianwoinar","tags":[]},"33159":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"33160":{"varMapping":{"__isSmartRef__":true,"id":33161},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":33162},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33161":{"this":{"__isSmartRef__":true,"id":31890}},"33162":{"timestamp":{"__isSmartRef__":true,"id":33163},"user":"sebastianwoinar","tags":[]},"33163":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"33164":{"varMapping":{"__isSmartRef__":true,"id":33165},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":33166},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33165":{"this":{"__isSmartRef__":true,"id":31890}},"33166":{"timestamp":{"__isSmartRef__":true,"id":33167},"user":"sebastianwoinar","tags":[]},"33167":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"33168":{"varMapping":{"__isSmartRef__":true,"id":33169},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":33170},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33169":{"this":{"__isSmartRef__":true,"id":31890}},"33170":{"timestamp":{"__isSmartRef__":true,"id":33171},"user":"sebastianwoinar","tags":[]},"33171":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"33172":{"varMapping":{"__isSmartRef__":true,"id":33173},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":33174},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33173":{"this":{"__isSmartRef__":true,"id":31890}},"33174":{"timestamp":{"__isSmartRef__":true,"id":33175},"user":"sebastianwoinar","tags":[]},"33175":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"33176":{"varMapping":{"__isSmartRef__":true,"id":33177},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":33178},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33177":{"this":{"__isSmartRef__":true,"id":31890}},"33178":{"timestamp":{"__isSmartRef__":true,"id":33179},"user":"sebastianwoinar","tags":[]},"33179":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"33180":{"buildChildNodes":{"__isSmartRef__":true,"id":33181},"getGameTree":{"__isSmartRef__":true,"id":33185},"getLevel":{"__isSmartRef__":true,"id":33189},"getLevelWeight":{"__isSmartRef__":true,"id":33193},"getWeight":{"__isSmartRef__":true,"id":33197},"setNode":{"__isSmartRef__":true,"id":33201},"setParent":{"__isSmartRef__":true,"id":33205},"getParent":{"__isSmartRef__":true,"id":33209},"deactivate":{"__isSmartRef__":true,"id":33213},"blink":{"__isSmartRef__":true,"id":33217},"ABPreturn":{"__isSmartRef__":true,"id":33221},"ABPstart":{"__isSmartRef__":true,"id":33225},"ABPcontinue":{"__isSmartRef__":true,"id":33229},"ABPshowValue":{"__isSmartRef__":true,"id":33233},"ABPgetValue":{"__isSmartRef__":true,"id":33237},"ABPhasChildNodes":{"__isSmartRef__":true,"id":33241},"onMouseDown":{"__isSmartRef__":true,"id":33245},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":33253},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":33257},"ABPmarkAsDone":{"__isSmartRef__":true,"id":33261},"ABPmarkAsActive":{"__isSmartRef__":true,"id":33265},"getStateMorph":{"__isSmartRef__":true,"id":33269},"showState":{"__isSmartRef__":true,"id":33273},"ABPfailHard":{"__isSmartRef__":true,"id":33277},"markFinalDrawWith":{"__isSmartRef__":true,"id":33281}},"33181":{"varMapping":{"__isSmartRef__":true,"id":33182},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":33183},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33182":{"this":{"__isSmartRef__":true,"id":25287}},"33183":{"timestamp":{"__isSmartRef__":true,"id":33184},"user":"sebastianwoinar","tags":[]},"33184":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"33185":{"varMapping":{"__isSmartRef__":true,"id":33186},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":33187},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33186":{"this":{"__isSmartRef__":true,"id":25287}},"33187":{"timestamp":{"__isSmartRef__":true,"id":33188},"user":"sebastianwoinar","tags":[]},"33188":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33189":{"varMapping":{"__isSmartRef__":true,"id":33190},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":33191},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33190":{"this":{"__isSmartRef__":true,"id":25287}},"33191":{"timestamp":{"__isSmartRef__":true,"id":33192},"user":"sebastianwoinar","tags":[]},"33192":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33193":{"varMapping":{"__isSmartRef__":true,"id":33194},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":33195},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33194":{"this":{"__isSmartRef__":true,"id":25287}},"33195":{"timestamp":{"__isSmartRef__":true,"id":33196},"user":"sebastianwoinar","tags":[]},"33196":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33197":{"varMapping":{"__isSmartRef__":true,"id":33198},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":33199},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33198":{"this":{"__isSmartRef__":true,"id":25287}},"33199":{"timestamp":{"__isSmartRef__":true,"id":33200},"user":"sebastianwoinar","tags":[]},"33200":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33201":{"varMapping":{"__isSmartRef__":true,"id":33202},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":33203},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33202":{"this":{"__isSmartRef__":true,"id":25287}},"33203":{"timestamp":{"__isSmartRef__":true,"id":33204},"user":"sebastianwoinar","tags":[]},"33204":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33205":{"varMapping":{"__isSmartRef__":true,"id":33206},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":33207},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33206":{"this":{"__isSmartRef__":true,"id":25287}},"33207":{"timestamp":{"__isSmartRef__":true,"id":33208},"user":"sebastianwoinar","tags":[]},"33208":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33209":{"varMapping":{"__isSmartRef__":true,"id":33210},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":33211},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33210":{"this":{"__isSmartRef__":true,"id":25287}},"33211":{"timestamp":{"__isSmartRef__":true,"id":33212},"user":"sebastianwoinar","tags":[]},"33212":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"33213":{"varMapping":{"__isSmartRef__":true,"id":33214},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":33215},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33214":{"this":{"__isSmartRef__":true,"id":25287}},"33215":{"timestamp":{"__isSmartRef__":true,"id":33216},"user":"sebastianwoinar","tags":[]},"33216":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"33217":{"varMapping":{"__isSmartRef__":true,"id":33218},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":33219},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33218":{"this":{"__isSmartRef__":true,"id":25287}},"33219":{"timestamp":{"__isSmartRef__":true,"id":33220},"user":"sebastianwoinar","tags":[]},"33220":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"33221":{"varMapping":{"__isSmartRef__":true,"id":33222},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":33223},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33222":{"this":{"__isSmartRef__":true,"id":25287}},"33223":{"timestamp":{"__isSmartRef__":true,"id":33224},"user":"sebastianwoinar","tags":[]},"33224":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"33225":{"varMapping":{"__isSmartRef__":true,"id":33226},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":33227},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33226":{"this":{"__isSmartRef__":true,"id":25287}},"33227":{"timestamp":{"__isSmartRef__":true,"id":33228},"user":"sebastianwoinar","tags":[]},"33228":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"33229":{"varMapping":{"__isSmartRef__":true,"id":33230},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":33231},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33230":{"this":{"__isSmartRef__":true,"id":25287}},"33231":{"timestamp":{"__isSmartRef__":true,"id":33232},"user":"sebastianwoinar","tags":[]},"33232":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"33233":{"varMapping":{"__isSmartRef__":true,"id":33234},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":33235},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33234":{"this":{"__isSmartRef__":true,"id":25287}},"33235":{"timestamp":{"__isSmartRef__":true,"id":33236},"user":"sebastianwoinar","tags":[]},"33236":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"33237":{"varMapping":{"__isSmartRef__":true,"id":33238},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":33239},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33238":{"this":{"__isSmartRef__":true,"id":25287}},"33239":{"timestamp":{"__isSmartRef__":true,"id":33240},"user":"sebastianwoinar","tags":[]},"33240":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"33241":{"varMapping":{"__isSmartRef__":true,"id":33242},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":33243},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33242":{"this":{"__isSmartRef__":true,"id":25287}},"33243":{"timestamp":{"__isSmartRef__":true,"id":33244},"user":"sebastianwoinar","tags":[]},"33244":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"33245":{"varMapping":{"__isSmartRef__":true,"id":33246},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":33251},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33246":{"this":{"__isSmartRef__":true,"id":25287},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":33247}},"33247":{"$super":{"__isSmartRef__":true,"id":33248}},"33248":{"varMapping":{"__isSmartRef__":true,"id":33249},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":33250},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33249":{"obj":{"__isSmartRef__":true,"id":25287},"name":"onMouseDown"},"33250":{},"33251":{"timestamp":{"__isSmartRef__":true,"id":33252},"user":"sebastianwoinar","tags":[]},"33252":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"33253":{"varMapping":{"__isSmartRef__":true,"id":33254},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":33255},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33254":{"this":{"__isSmartRef__":true,"id":25287}},"33255":{"timestamp":{"__isSmartRef__":true,"id":33256},"user":"sebastianwoinar","tags":[]},"33256":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"33257":{"varMapping":{"__isSmartRef__":true,"id":33258},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":33259},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33258":{"this":{"__isSmartRef__":true,"id":25287}},"33259":{"timestamp":{"__isSmartRef__":true,"id":33260},"user":"sebastianwoinar","tags":[]},"33260":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"33261":{"varMapping":{"__isSmartRef__":true,"id":33262},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":33263},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33262":{"this":{"__isSmartRef__":true,"id":25287}},"33263":{"timestamp":{"__isSmartRef__":true,"id":33264},"user":"sebastianwoinar","tags":[]},"33264":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"33265":{"varMapping":{"__isSmartRef__":true,"id":33266},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":33267},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33266":{"this":{"__isSmartRef__":true,"id":25287}},"33267":{"timestamp":{"__isSmartRef__":true,"id":33268},"user":"sebastianwoinar","tags":[]},"33268":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"33269":{"varMapping":{"__isSmartRef__":true,"id":33270},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":33271},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33270":{"this":{"__isSmartRef__":true,"id":25287}},"33271":{"timestamp":{"__isSmartRef__":true,"id":33272},"user":"sebastianwoinar","tags":[]},"33272":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"33273":{"varMapping":{"__isSmartRef__":true,"id":33274},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":33275},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33274":{"this":{"__isSmartRef__":true,"id":25287}},"33275":{"timestamp":{"__isSmartRef__":true,"id":33276},"user":"sebastianwoinar","tags":[]},"33276":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"33277":{"varMapping":{"__isSmartRef__":true,"id":33278},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":33279},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33278":{"this":{"__isSmartRef__":true,"id":25287}},"33279":{"timestamp":{"__isSmartRef__":true,"id":33280},"user":"sebastianwoinar","tags":[]},"33280":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"33281":{"varMapping":{"__isSmartRef__":true,"id":33282},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":33283},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33282":{"this":{"__isSmartRef__":true,"id":25287}},"33283":{"timestamp":{"__isSmartRef__":true,"id":33284},"user":"sebastianwoinar","tags":[]},"33284":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"33285":{"submorphs":[{"__isSmartRef__":true,"id":33286}],"scripts":[],"shape":{"__isSmartRef__":true,"id":33303},"id":"FF966AFA-AD56-43DE-AE74-3BD66FBA655C","eventHandler":{"__isSmartRef__":true,"id":33304},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":33305},"name":"node215","partsBinMetaInfo":{"__isSmartRef__":true,"id":33306},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5859},"owner":{"__isSmartRef__":true,"id":5408},"childNodes":[{"__isSmartRef__":true,"id":33309},{"__isSmartRef__":true,"id":33954},{"__isSmartRef__":true,"id":34986},{"__isSmartRef__":true,"id":36018},{"__isSmartRef__":true,"id":37179}],"parent":{"__isSmartRef__":true,"id":5409},"level":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":38211},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(967.9,110.0)"},"33286":{"submorphs":[],"scripts":[],"id":"868DF1DD-28A6-42C1-A361-66F7D5CF5BEF","shape":{"__isSmartRef__":true,"id":33287},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":33288},"textChunks":[{"__isSmartRef__":true,"id":33300}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":33302},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":33285},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"33287":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"33288":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":33289},{"__isSmartRef__":true,"id":33291},{"__isSmartRef__":true,"id":33293},{"__isSmartRef__":true,"id":33295},{"__isSmartRef__":true,"id":33297}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":33299},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"33289":{"date":{"__isSmartRef__":true,"id":33290},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"33290":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"33291":{"date":{"__isSmartRef__":true,"id":33292},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"33292":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"33293":{"date":{"__isSmartRef__":true,"id":33294},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"33294":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"33295":{"date":{"__isSmartRef__":true,"id":33296},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"33296":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"33297":{"date":{"__isSmartRef__":true,"id":33298},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"33298":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"33299":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"33300":{"style":{"__isSmartRef__":true,"id":33301},"morph":{"__isSmartRef__":true,"id":33286},"chunkOwner":{"__isSmartRef__":true,"id":33286},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"33301":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"33302":{"morph":{"__isSmartRef__":true,"id":33286},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"33303":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"33304":{"morph":{"__isSmartRef__":true,"id":33285},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"33305":{},"33306":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":33307}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"33307":{"date":{"__isSmartRef__":true,"id":33308},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"33308":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"33309":{"submorphs":[{"__isSmartRef__":true,"id":33310}],"scripts":[],"shape":{"__isSmartRef__":true,"id":33327},"id":"EAFF3A3D-93D5-4929-AB73-093EB4384D93","eventHandler":{"__isSmartRef__":true,"id":33328},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":33329},"name":"node216","partsBinMetaInfo":{"__isSmartRef__":true,"id":33330},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5861},"owner":{"__isSmartRef__":true,"id":5408},"childNodes":[{"__isSmartRef__":true,"id":33333},{"__isSmartRef__":true,"id":33462},{"__isSmartRef__":true,"id":33591},{"__isSmartRef__":true,"id":33720}],"parent":{"__isSmartRef__":true,"id":33285},"level":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":33849},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(974.0,160.0)"},"33310":{"submorphs":[],"scripts":[],"id":"475E98CA-B072-4F33-971D-264E30C504AD","shape":{"__isSmartRef__":true,"id":33311},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":33312},"textChunks":[{"__isSmartRef__":true,"id":33324}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":33326},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":33309},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"33311":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"33312":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":33313},{"__isSmartRef__":true,"id":33315},{"__isSmartRef__":true,"id":33317},{"__isSmartRef__":true,"id":33319},{"__isSmartRef__":true,"id":33321}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":33323},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"33313":{"date":{"__isSmartRef__":true,"id":33314},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"33314":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"33315":{"date":{"__isSmartRef__":true,"id":33316},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"33316":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"33317":{"date":{"__isSmartRef__":true,"id":33318},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"33318":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"33319":{"date":{"__isSmartRef__":true,"id":33320},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"33320":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"33321":{"date":{"__isSmartRef__":true,"id":33322},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"33322":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"33323":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"33324":{"style":{"__isSmartRef__":true,"id":33325},"morph":{"__isSmartRef__":true,"id":33310},"chunkOwner":{"__isSmartRef__":true,"id":33310},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"33325":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"33326":{"morph":{"__isSmartRef__":true,"id":33310},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"33327":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"33328":{"morph":{"__isSmartRef__":true,"id":33309},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"33329":{},"33330":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":33331}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"33331":{"date":{"__isSmartRef__":true,"id":33332},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"33332":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"33333":{"submorphs":[{"__isSmartRef__":true,"id":33334}],"scripts":[],"shape":{"__isSmartRef__":true,"id":33351},"id":"9EA550D7-95F8-497E-A03F-975F82D08E01","eventHandler":{"__isSmartRef__":true,"id":33352},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":33353},"name":"node217","partsBinMetaInfo":{"__isSmartRef__":true,"id":33354},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5863},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":33309},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":33357},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(984.3,210.0)"},"33334":{"submorphs":[],"scripts":[],"id":"B67874E7-6333-4290-ABFD-B88FA47451BB","shape":{"__isSmartRef__":true,"id":33335},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":33336},"textChunks":[{"__isSmartRef__":true,"id":33348}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":33350},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":33333},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"33335":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"33336":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":33337},{"__isSmartRef__":true,"id":33339},{"__isSmartRef__":true,"id":33341},{"__isSmartRef__":true,"id":33343},{"__isSmartRef__":true,"id":33345}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":33347},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"33337":{"date":{"__isSmartRef__":true,"id":33338},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"33338":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"33339":{"date":{"__isSmartRef__":true,"id":33340},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"33340":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"33341":{"date":{"__isSmartRef__":true,"id":33342},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"33342":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"33343":{"date":{"__isSmartRef__":true,"id":33344},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"33344":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"33345":{"date":{"__isSmartRef__":true,"id":33346},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"33346":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"33347":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"33348":{"style":{"__isSmartRef__":true,"id":33349},"morph":{"__isSmartRef__":true,"id":33334},"chunkOwner":{"__isSmartRef__":true,"id":33334},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"33349":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"33350":{"morph":{"__isSmartRef__":true,"id":33334},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"33351":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"33352":{"morph":{"__isSmartRef__":true,"id":33333},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"33353":{},"33354":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":33355}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"33355":{"date":{"__isSmartRef__":true,"id":33356},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"33356":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"33357":{"buildChildNodes":{"__isSmartRef__":true,"id":33358},"getGameTree":{"__isSmartRef__":true,"id":33362},"getLevel":{"__isSmartRef__":true,"id":33366},"getLevelWeight":{"__isSmartRef__":true,"id":33370},"getWeight":{"__isSmartRef__":true,"id":33374},"setNode":{"__isSmartRef__":true,"id":33378},"setParent":{"__isSmartRef__":true,"id":33382},"getParent":{"__isSmartRef__":true,"id":33386},"deactivate":{"__isSmartRef__":true,"id":33390},"blink":{"__isSmartRef__":true,"id":33394},"ABPreturn":{"__isSmartRef__":true,"id":33398},"ABPstart":{"__isSmartRef__":true,"id":33402},"ABPcontinue":{"__isSmartRef__":true,"id":33406},"ABPshowValue":{"__isSmartRef__":true,"id":33410},"ABPgetValue":{"__isSmartRef__":true,"id":33414},"ABPhasChildNodes":{"__isSmartRef__":true,"id":33418},"onMouseDown":{"__isSmartRef__":true,"id":33422},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":33430},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":33434},"ABPmarkAsDone":{"__isSmartRef__":true,"id":33438},"ABPmarkAsActive":{"__isSmartRef__":true,"id":33442},"getStateMorph":{"__isSmartRef__":true,"id":33446},"showState":{"__isSmartRef__":true,"id":33450},"ABPfailHard":{"__isSmartRef__":true,"id":33454},"markFinalDrawWith":{"__isSmartRef__":true,"id":33458}},"33358":{"varMapping":{"__isSmartRef__":true,"id":33359},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":33360},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33359":{"this":{"__isSmartRef__":true,"id":33333}},"33360":{"timestamp":{"__isSmartRef__":true,"id":33361},"user":"sebastianwoinar","tags":[]},"33361":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"33362":{"varMapping":{"__isSmartRef__":true,"id":33363},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":33364},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33363":{"this":{"__isSmartRef__":true,"id":33333}},"33364":{"timestamp":{"__isSmartRef__":true,"id":33365},"user":"sebastianwoinar","tags":[]},"33365":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33366":{"varMapping":{"__isSmartRef__":true,"id":33367},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":33368},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33367":{"this":{"__isSmartRef__":true,"id":33333}},"33368":{"timestamp":{"__isSmartRef__":true,"id":33369},"user":"sebastianwoinar","tags":[]},"33369":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33370":{"varMapping":{"__isSmartRef__":true,"id":33371},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":33372},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33371":{"this":{"__isSmartRef__":true,"id":33333}},"33372":{"timestamp":{"__isSmartRef__":true,"id":33373},"user":"sebastianwoinar","tags":[]},"33373":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33374":{"varMapping":{"__isSmartRef__":true,"id":33375},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":33376},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33375":{"this":{"__isSmartRef__":true,"id":33333}},"33376":{"timestamp":{"__isSmartRef__":true,"id":33377},"user":"sebastianwoinar","tags":[]},"33377":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33378":{"varMapping":{"__isSmartRef__":true,"id":33379},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":33380},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33379":{"this":{"__isSmartRef__":true,"id":33333}},"33380":{"timestamp":{"__isSmartRef__":true,"id":33381},"user":"sebastianwoinar","tags":[]},"33381":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33382":{"varMapping":{"__isSmartRef__":true,"id":33383},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":33384},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33383":{"this":{"__isSmartRef__":true,"id":33333}},"33384":{"timestamp":{"__isSmartRef__":true,"id":33385},"user":"sebastianwoinar","tags":[]},"33385":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33386":{"varMapping":{"__isSmartRef__":true,"id":33387},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":33388},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33387":{"this":{"__isSmartRef__":true,"id":33333}},"33388":{"timestamp":{"__isSmartRef__":true,"id":33389},"user":"sebastianwoinar","tags":[]},"33389":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"33390":{"varMapping":{"__isSmartRef__":true,"id":33391},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":33392},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33391":{"this":{"__isSmartRef__":true,"id":33333}},"33392":{"timestamp":{"__isSmartRef__":true,"id":33393},"user":"sebastianwoinar","tags":[]},"33393":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"33394":{"varMapping":{"__isSmartRef__":true,"id":33395},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":33396},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33395":{"this":{"__isSmartRef__":true,"id":33333}},"33396":{"timestamp":{"__isSmartRef__":true,"id":33397},"user":"sebastianwoinar","tags":[]},"33397":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"33398":{"varMapping":{"__isSmartRef__":true,"id":33399},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":33400},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33399":{"this":{"__isSmartRef__":true,"id":33333}},"33400":{"timestamp":{"__isSmartRef__":true,"id":33401},"user":"sebastianwoinar","tags":[]},"33401":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"33402":{"varMapping":{"__isSmartRef__":true,"id":33403},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":33404},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33403":{"this":{"__isSmartRef__":true,"id":33333}},"33404":{"timestamp":{"__isSmartRef__":true,"id":33405},"user":"sebastianwoinar","tags":[]},"33405":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"33406":{"varMapping":{"__isSmartRef__":true,"id":33407},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":33408},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33407":{"this":{"__isSmartRef__":true,"id":33333}},"33408":{"timestamp":{"__isSmartRef__":true,"id":33409},"user":"sebastianwoinar","tags":[]},"33409":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"33410":{"varMapping":{"__isSmartRef__":true,"id":33411},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":33412},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33411":{"this":{"__isSmartRef__":true,"id":33333}},"33412":{"timestamp":{"__isSmartRef__":true,"id":33413},"user":"sebastianwoinar","tags":[]},"33413":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"33414":{"varMapping":{"__isSmartRef__":true,"id":33415},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":33416},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33415":{"this":{"__isSmartRef__":true,"id":33333}},"33416":{"timestamp":{"__isSmartRef__":true,"id":33417},"user":"sebastianwoinar","tags":[]},"33417":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"33418":{"varMapping":{"__isSmartRef__":true,"id":33419},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":33420},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33419":{"this":{"__isSmartRef__":true,"id":33333}},"33420":{"timestamp":{"__isSmartRef__":true,"id":33421},"user":"sebastianwoinar","tags":[]},"33421":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"33422":{"varMapping":{"__isSmartRef__":true,"id":33423},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":33428},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33423":{"this":{"__isSmartRef__":true,"id":33333},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":33424}},"33424":{"$super":{"__isSmartRef__":true,"id":33425}},"33425":{"varMapping":{"__isSmartRef__":true,"id":33426},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":33427},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33426":{"obj":{"__isSmartRef__":true,"id":33333},"name":"onMouseDown"},"33427":{},"33428":{"timestamp":{"__isSmartRef__":true,"id":33429},"user":"sebastianwoinar","tags":[]},"33429":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"33430":{"varMapping":{"__isSmartRef__":true,"id":33431},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":33432},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33431":{"this":{"__isSmartRef__":true,"id":33333}},"33432":{"timestamp":{"__isSmartRef__":true,"id":33433},"user":"sebastianwoinar","tags":[]},"33433":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"33434":{"varMapping":{"__isSmartRef__":true,"id":33435},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":33436},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33435":{"this":{"__isSmartRef__":true,"id":33333}},"33436":{"timestamp":{"__isSmartRef__":true,"id":33437},"user":"sebastianwoinar","tags":[]},"33437":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"33438":{"varMapping":{"__isSmartRef__":true,"id":33439},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":33440},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33439":{"this":{"__isSmartRef__":true,"id":33333}},"33440":{"timestamp":{"__isSmartRef__":true,"id":33441},"user":"sebastianwoinar","tags":[]},"33441":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"33442":{"varMapping":{"__isSmartRef__":true,"id":33443},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":33444},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33443":{"this":{"__isSmartRef__":true,"id":33333}},"33444":{"timestamp":{"__isSmartRef__":true,"id":33445},"user":"sebastianwoinar","tags":[]},"33445":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"33446":{"varMapping":{"__isSmartRef__":true,"id":33447},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":33448},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33447":{"this":{"__isSmartRef__":true,"id":33333}},"33448":{"timestamp":{"__isSmartRef__":true,"id":33449},"user":"sebastianwoinar","tags":[]},"33449":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"33450":{"varMapping":{"__isSmartRef__":true,"id":33451},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":33452},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33451":{"this":{"__isSmartRef__":true,"id":33333}},"33452":{"timestamp":{"__isSmartRef__":true,"id":33453},"user":"sebastianwoinar","tags":[]},"33453":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"33454":{"varMapping":{"__isSmartRef__":true,"id":33455},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":33456},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33455":{"this":{"__isSmartRef__":true,"id":33333}},"33456":{"timestamp":{"__isSmartRef__":true,"id":33457},"user":"sebastianwoinar","tags":[]},"33457":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"33458":{"varMapping":{"__isSmartRef__":true,"id":33459},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":33460},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33459":{"this":{"__isSmartRef__":true,"id":33333}},"33460":{"timestamp":{"__isSmartRef__":true,"id":33461},"user":"sebastianwoinar","tags":[]},"33461":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"33462":{"submorphs":[{"__isSmartRef__":true,"id":33463}],"scripts":[],"shape":{"__isSmartRef__":true,"id":33480},"id":"1057E061-3F15-41EB-8C50-6077BC3284B3","eventHandler":{"__isSmartRef__":true,"id":33481},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":33482},"name":"node218","partsBinMetaInfo":{"__isSmartRef__":true,"id":33483},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5865},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":33309},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":33486},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(989.5,210.0)"},"33463":{"submorphs":[],"scripts":[],"id":"D2D84D01-D287-4DF7-9171-DC7D86620719","shape":{"__isSmartRef__":true,"id":33464},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":33465},"textChunks":[{"__isSmartRef__":true,"id":33477}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":33479},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":33462},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"33464":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"33465":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":33466},{"__isSmartRef__":true,"id":33468},{"__isSmartRef__":true,"id":33470},{"__isSmartRef__":true,"id":33472},{"__isSmartRef__":true,"id":33474}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":33476},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"33466":{"date":{"__isSmartRef__":true,"id":33467},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"33467":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"33468":{"date":{"__isSmartRef__":true,"id":33469},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"33469":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"33470":{"date":{"__isSmartRef__":true,"id":33471},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"33471":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"33472":{"date":{"__isSmartRef__":true,"id":33473},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"33473":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"33474":{"date":{"__isSmartRef__":true,"id":33475},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"33475":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"33476":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"33477":{"style":{"__isSmartRef__":true,"id":33478},"morph":{"__isSmartRef__":true,"id":33463},"chunkOwner":{"__isSmartRef__":true,"id":33463},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"33478":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"33479":{"morph":{"__isSmartRef__":true,"id":33463},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"33480":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"33481":{"morph":{"__isSmartRef__":true,"id":33462},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"33482":{},"33483":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":33484}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"33484":{"date":{"__isSmartRef__":true,"id":33485},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"33485":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"33486":{"buildChildNodes":{"__isSmartRef__":true,"id":33487},"getGameTree":{"__isSmartRef__":true,"id":33491},"getLevel":{"__isSmartRef__":true,"id":33495},"getLevelWeight":{"__isSmartRef__":true,"id":33499},"getWeight":{"__isSmartRef__":true,"id":33503},"setNode":{"__isSmartRef__":true,"id":33507},"setParent":{"__isSmartRef__":true,"id":33511},"getParent":{"__isSmartRef__":true,"id":33515},"deactivate":{"__isSmartRef__":true,"id":33519},"blink":{"__isSmartRef__":true,"id":33523},"ABPreturn":{"__isSmartRef__":true,"id":33527},"ABPstart":{"__isSmartRef__":true,"id":33531},"ABPcontinue":{"__isSmartRef__":true,"id":33535},"ABPshowValue":{"__isSmartRef__":true,"id":33539},"ABPgetValue":{"__isSmartRef__":true,"id":33543},"ABPhasChildNodes":{"__isSmartRef__":true,"id":33547},"onMouseDown":{"__isSmartRef__":true,"id":33551},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":33559},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":33563},"ABPmarkAsDone":{"__isSmartRef__":true,"id":33567},"ABPmarkAsActive":{"__isSmartRef__":true,"id":33571},"getStateMorph":{"__isSmartRef__":true,"id":33575},"showState":{"__isSmartRef__":true,"id":33579},"ABPfailHard":{"__isSmartRef__":true,"id":33583},"markFinalDrawWith":{"__isSmartRef__":true,"id":33587}},"33487":{"varMapping":{"__isSmartRef__":true,"id":33488},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":33489},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33488":{"this":{"__isSmartRef__":true,"id":33462}},"33489":{"timestamp":{"__isSmartRef__":true,"id":33490},"user":"sebastianwoinar","tags":[]},"33490":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"33491":{"varMapping":{"__isSmartRef__":true,"id":33492},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":33493},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33492":{"this":{"__isSmartRef__":true,"id":33462}},"33493":{"timestamp":{"__isSmartRef__":true,"id":33494},"user":"sebastianwoinar","tags":[]},"33494":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33495":{"varMapping":{"__isSmartRef__":true,"id":33496},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":33497},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33496":{"this":{"__isSmartRef__":true,"id":33462}},"33497":{"timestamp":{"__isSmartRef__":true,"id":33498},"user":"sebastianwoinar","tags":[]},"33498":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33499":{"varMapping":{"__isSmartRef__":true,"id":33500},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":33501},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33500":{"this":{"__isSmartRef__":true,"id":33462}},"33501":{"timestamp":{"__isSmartRef__":true,"id":33502},"user":"sebastianwoinar","tags":[]},"33502":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33503":{"varMapping":{"__isSmartRef__":true,"id":33504},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":33505},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33504":{"this":{"__isSmartRef__":true,"id":33462}},"33505":{"timestamp":{"__isSmartRef__":true,"id":33506},"user":"sebastianwoinar","tags":[]},"33506":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33507":{"varMapping":{"__isSmartRef__":true,"id":33508},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":33509},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33508":{"this":{"__isSmartRef__":true,"id":33462}},"33509":{"timestamp":{"__isSmartRef__":true,"id":33510},"user":"sebastianwoinar","tags":[]},"33510":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33511":{"varMapping":{"__isSmartRef__":true,"id":33512},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":33513},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33512":{"this":{"__isSmartRef__":true,"id":33462}},"33513":{"timestamp":{"__isSmartRef__":true,"id":33514},"user":"sebastianwoinar","tags":[]},"33514":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33515":{"varMapping":{"__isSmartRef__":true,"id":33516},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":33517},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33516":{"this":{"__isSmartRef__":true,"id":33462}},"33517":{"timestamp":{"__isSmartRef__":true,"id":33518},"user":"sebastianwoinar","tags":[]},"33518":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"33519":{"varMapping":{"__isSmartRef__":true,"id":33520},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":33521},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33520":{"this":{"__isSmartRef__":true,"id":33462}},"33521":{"timestamp":{"__isSmartRef__":true,"id":33522},"user":"sebastianwoinar","tags":[]},"33522":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"33523":{"varMapping":{"__isSmartRef__":true,"id":33524},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":33525},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33524":{"this":{"__isSmartRef__":true,"id":33462}},"33525":{"timestamp":{"__isSmartRef__":true,"id":33526},"user":"sebastianwoinar","tags":[]},"33526":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"33527":{"varMapping":{"__isSmartRef__":true,"id":33528},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":33529},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33528":{"this":{"__isSmartRef__":true,"id":33462}},"33529":{"timestamp":{"__isSmartRef__":true,"id":33530},"user":"sebastianwoinar","tags":[]},"33530":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"33531":{"varMapping":{"__isSmartRef__":true,"id":33532},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":33533},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33532":{"this":{"__isSmartRef__":true,"id":33462}},"33533":{"timestamp":{"__isSmartRef__":true,"id":33534},"user":"sebastianwoinar","tags":[]},"33534":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"33535":{"varMapping":{"__isSmartRef__":true,"id":33536},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":33537},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33536":{"this":{"__isSmartRef__":true,"id":33462}},"33537":{"timestamp":{"__isSmartRef__":true,"id":33538},"user":"sebastianwoinar","tags":[]},"33538":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"33539":{"varMapping":{"__isSmartRef__":true,"id":33540},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":33541},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33540":{"this":{"__isSmartRef__":true,"id":33462}},"33541":{"timestamp":{"__isSmartRef__":true,"id":33542},"user":"sebastianwoinar","tags":[]},"33542":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"33543":{"varMapping":{"__isSmartRef__":true,"id":33544},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":33545},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33544":{"this":{"__isSmartRef__":true,"id":33462}},"33545":{"timestamp":{"__isSmartRef__":true,"id":33546},"user":"sebastianwoinar","tags":[]},"33546":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"33547":{"varMapping":{"__isSmartRef__":true,"id":33548},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":33549},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33548":{"this":{"__isSmartRef__":true,"id":33462}},"33549":{"timestamp":{"__isSmartRef__":true,"id":33550},"user":"sebastianwoinar","tags":[]},"33550":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"33551":{"varMapping":{"__isSmartRef__":true,"id":33552},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":33557},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33552":{"this":{"__isSmartRef__":true,"id":33462},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":33553}},"33553":{"$super":{"__isSmartRef__":true,"id":33554}},"33554":{"varMapping":{"__isSmartRef__":true,"id":33555},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":33556},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33555":{"obj":{"__isSmartRef__":true,"id":33462},"name":"onMouseDown"},"33556":{},"33557":{"timestamp":{"__isSmartRef__":true,"id":33558},"user":"sebastianwoinar","tags":[]},"33558":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"33559":{"varMapping":{"__isSmartRef__":true,"id":33560},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":33561},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33560":{"this":{"__isSmartRef__":true,"id":33462}},"33561":{"timestamp":{"__isSmartRef__":true,"id":33562},"user":"sebastianwoinar","tags":[]},"33562":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"33563":{"varMapping":{"__isSmartRef__":true,"id":33564},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":33565},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33564":{"this":{"__isSmartRef__":true,"id":33462}},"33565":{"timestamp":{"__isSmartRef__":true,"id":33566},"user":"sebastianwoinar","tags":[]},"33566":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"33567":{"varMapping":{"__isSmartRef__":true,"id":33568},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":33569},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33568":{"this":{"__isSmartRef__":true,"id":33462}},"33569":{"timestamp":{"__isSmartRef__":true,"id":33570},"user":"sebastianwoinar","tags":[]},"33570":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"33571":{"varMapping":{"__isSmartRef__":true,"id":33572},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":33573},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33572":{"this":{"__isSmartRef__":true,"id":33462}},"33573":{"timestamp":{"__isSmartRef__":true,"id":33574},"user":"sebastianwoinar","tags":[]},"33574":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"33575":{"varMapping":{"__isSmartRef__":true,"id":33576},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":33577},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33576":{"this":{"__isSmartRef__":true,"id":33462}},"33577":{"timestamp":{"__isSmartRef__":true,"id":33578},"user":"sebastianwoinar","tags":[]},"33578":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"33579":{"varMapping":{"__isSmartRef__":true,"id":33580},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":33581},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33580":{"this":{"__isSmartRef__":true,"id":33462}},"33581":{"timestamp":{"__isSmartRef__":true,"id":33582},"user":"sebastianwoinar","tags":[]},"33582":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"33583":{"varMapping":{"__isSmartRef__":true,"id":33584},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":33585},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33584":{"this":{"__isSmartRef__":true,"id":33462}},"33585":{"timestamp":{"__isSmartRef__":true,"id":33586},"user":"sebastianwoinar","tags":[]},"33586":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"33587":{"varMapping":{"__isSmartRef__":true,"id":33588},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":33589},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33588":{"this":{"__isSmartRef__":true,"id":33462}},"33589":{"timestamp":{"__isSmartRef__":true,"id":33590},"user":"sebastianwoinar","tags":[]},"33590":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"33591":{"submorphs":[{"__isSmartRef__":true,"id":33592}],"scripts":[],"shape":{"__isSmartRef__":true,"id":33609},"id":"D9196FFA-364B-491E-9447-052F62850EEC","eventHandler":{"__isSmartRef__":true,"id":33610},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":33611},"name":"node219","partsBinMetaInfo":{"__isSmartRef__":true,"id":33612},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5867},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":33309},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":33615},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(994.7,210.0)"},"33592":{"submorphs":[],"scripts":[],"id":"8F1ACEBC-511F-4A8E-BACF-92BF8493501A","shape":{"__isSmartRef__":true,"id":33593},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":33594},"textChunks":[{"__isSmartRef__":true,"id":33606}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":33608},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":33591},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"33593":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"33594":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":33595},{"__isSmartRef__":true,"id":33597},{"__isSmartRef__":true,"id":33599},{"__isSmartRef__":true,"id":33601},{"__isSmartRef__":true,"id":33603}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":33605},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"33595":{"date":{"__isSmartRef__":true,"id":33596},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"33596":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"33597":{"date":{"__isSmartRef__":true,"id":33598},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"33598":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"33599":{"date":{"__isSmartRef__":true,"id":33600},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"33600":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"33601":{"date":{"__isSmartRef__":true,"id":33602},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"33602":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"33603":{"date":{"__isSmartRef__":true,"id":33604},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"33604":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"33605":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"33606":{"style":{"__isSmartRef__":true,"id":33607},"morph":{"__isSmartRef__":true,"id":33592},"chunkOwner":{"__isSmartRef__":true,"id":33592},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"33607":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"33608":{"morph":{"__isSmartRef__":true,"id":33592},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"33609":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"33610":{"morph":{"__isSmartRef__":true,"id":33591},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"33611":{},"33612":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":33613}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"33613":{"date":{"__isSmartRef__":true,"id":33614},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"33614":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"33615":{"buildChildNodes":{"__isSmartRef__":true,"id":33616},"getGameTree":{"__isSmartRef__":true,"id":33620},"getLevel":{"__isSmartRef__":true,"id":33624},"getLevelWeight":{"__isSmartRef__":true,"id":33628},"getWeight":{"__isSmartRef__":true,"id":33632},"setNode":{"__isSmartRef__":true,"id":33636},"setParent":{"__isSmartRef__":true,"id":33640},"getParent":{"__isSmartRef__":true,"id":33644},"deactivate":{"__isSmartRef__":true,"id":33648},"blink":{"__isSmartRef__":true,"id":33652},"ABPreturn":{"__isSmartRef__":true,"id":33656},"ABPstart":{"__isSmartRef__":true,"id":33660},"ABPcontinue":{"__isSmartRef__":true,"id":33664},"ABPshowValue":{"__isSmartRef__":true,"id":33668},"ABPgetValue":{"__isSmartRef__":true,"id":33672},"ABPhasChildNodes":{"__isSmartRef__":true,"id":33676},"onMouseDown":{"__isSmartRef__":true,"id":33680},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":33688},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":33692},"ABPmarkAsDone":{"__isSmartRef__":true,"id":33696},"ABPmarkAsActive":{"__isSmartRef__":true,"id":33700},"getStateMorph":{"__isSmartRef__":true,"id":33704},"showState":{"__isSmartRef__":true,"id":33708},"ABPfailHard":{"__isSmartRef__":true,"id":33712},"markFinalDrawWith":{"__isSmartRef__":true,"id":33716}},"33616":{"varMapping":{"__isSmartRef__":true,"id":33617},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":33618},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33617":{"this":{"__isSmartRef__":true,"id":33591}},"33618":{"timestamp":{"__isSmartRef__":true,"id":33619},"user":"sebastianwoinar","tags":[]},"33619":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"33620":{"varMapping":{"__isSmartRef__":true,"id":33621},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":33622},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33621":{"this":{"__isSmartRef__":true,"id":33591}},"33622":{"timestamp":{"__isSmartRef__":true,"id":33623},"user":"sebastianwoinar","tags":[]},"33623":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33624":{"varMapping":{"__isSmartRef__":true,"id":33625},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":33626},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33625":{"this":{"__isSmartRef__":true,"id":33591}},"33626":{"timestamp":{"__isSmartRef__":true,"id":33627},"user":"sebastianwoinar","tags":[]},"33627":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33628":{"varMapping":{"__isSmartRef__":true,"id":33629},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":33630},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33629":{"this":{"__isSmartRef__":true,"id":33591}},"33630":{"timestamp":{"__isSmartRef__":true,"id":33631},"user":"sebastianwoinar","tags":[]},"33631":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33632":{"varMapping":{"__isSmartRef__":true,"id":33633},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":33634},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33633":{"this":{"__isSmartRef__":true,"id":33591}},"33634":{"timestamp":{"__isSmartRef__":true,"id":33635},"user":"sebastianwoinar","tags":[]},"33635":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33636":{"varMapping":{"__isSmartRef__":true,"id":33637},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":33638},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33637":{"this":{"__isSmartRef__":true,"id":33591}},"33638":{"timestamp":{"__isSmartRef__":true,"id":33639},"user":"sebastianwoinar","tags":[]},"33639":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33640":{"varMapping":{"__isSmartRef__":true,"id":33641},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":33642},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33641":{"this":{"__isSmartRef__":true,"id":33591}},"33642":{"timestamp":{"__isSmartRef__":true,"id":33643},"user":"sebastianwoinar","tags":[]},"33643":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33644":{"varMapping":{"__isSmartRef__":true,"id":33645},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":33646},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33645":{"this":{"__isSmartRef__":true,"id":33591}},"33646":{"timestamp":{"__isSmartRef__":true,"id":33647},"user":"sebastianwoinar","tags":[]},"33647":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"33648":{"varMapping":{"__isSmartRef__":true,"id":33649},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":33650},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33649":{"this":{"__isSmartRef__":true,"id":33591}},"33650":{"timestamp":{"__isSmartRef__":true,"id":33651},"user":"sebastianwoinar","tags":[]},"33651":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"33652":{"varMapping":{"__isSmartRef__":true,"id":33653},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":33654},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33653":{"this":{"__isSmartRef__":true,"id":33591}},"33654":{"timestamp":{"__isSmartRef__":true,"id":33655},"user":"sebastianwoinar","tags":[]},"33655":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"33656":{"varMapping":{"__isSmartRef__":true,"id":33657},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":33658},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33657":{"this":{"__isSmartRef__":true,"id":33591}},"33658":{"timestamp":{"__isSmartRef__":true,"id":33659},"user":"sebastianwoinar","tags":[]},"33659":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"33660":{"varMapping":{"__isSmartRef__":true,"id":33661},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":33662},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33661":{"this":{"__isSmartRef__":true,"id":33591}},"33662":{"timestamp":{"__isSmartRef__":true,"id":33663},"user":"sebastianwoinar","tags":[]},"33663":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"33664":{"varMapping":{"__isSmartRef__":true,"id":33665},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":33666},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33665":{"this":{"__isSmartRef__":true,"id":33591}},"33666":{"timestamp":{"__isSmartRef__":true,"id":33667},"user":"sebastianwoinar","tags":[]},"33667":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"33668":{"varMapping":{"__isSmartRef__":true,"id":33669},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":33670},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33669":{"this":{"__isSmartRef__":true,"id":33591}},"33670":{"timestamp":{"__isSmartRef__":true,"id":33671},"user":"sebastianwoinar","tags":[]},"33671":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"33672":{"varMapping":{"__isSmartRef__":true,"id":33673},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":33674},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33673":{"this":{"__isSmartRef__":true,"id":33591}},"33674":{"timestamp":{"__isSmartRef__":true,"id":33675},"user":"sebastianwoinar","tags":[]},"33675":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"33676":{"varMapping":{"__isSmartRef__":true,"id":33677},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":33678},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33677":{"this":{"__isSmartRef__":true,"id":33591}},"33678":{"timestamp":{"__isSmartRef__":true,"id":33679},"user":"sebastianwoinar","tags":[]},"33679":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"33680":{"varMapping":{"__isSmartRef__":true,"id":33681},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":33686},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33681":{"this":{"__isSmartRef__":true,"id":33591},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":33682}},"33682":{"$super":{"__isSmartRef__":true,"id":33683}},"33683":{"varMapping":{"__isSmartRef__":true,"id":33684},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":33685},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33684":{"obj":{"__isSmartRef__":true,"id":33591},"name":"onMouseDown"},"33685":{},"33686":{"timestamp":{"__isSmartRef__":true,"id":33687},"user":"sebastianwoinar","tags":[]},"33687":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"33688":{"varMapping":{"__isSmartRef__":true,"id":33689},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":33690},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33689":{"this":{"__isSmartRef__":true,"id":33591}},"33690":{"timestamp":{"__isSmartRef__":true,"id":33691},"user":"sebastianwoinar","tags":[]},"33691":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"33692":{"varMapping":{"__isSmartRef__":true,"id":33693},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":33694},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33693":{"this":{"__isSmartRef__":true,"id":33591}},"33694":{"timestamp":{"__isSmartRef__":true,"id":33695},"user":"sebastianwoinar","tags":[]},"33695":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"33696":{"varMapping":{"__isSmartRef__":true,"id":33697},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":33698},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33697":{"this":{"__isSmartRef__":true,"id":33591}},"33698":{"timestamp":{"__isSmartRef__":true,"id":33699},"user":"sebastianwoinar","tags":[]},"33699":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"33700":{"varMapping":{"__isSmartRef__":true,"id":33701},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":33702},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33701":{"this":{"__isSmartRef__":true,"id":33591}},"33702":{"timestamp":{"__isSmartRef__":true,"id":33703},"user":"sebastianwoinar","tags":[]},"33703":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"33704":{"varMapping":{"__isSmartRef__":true,"id":33705},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":33706},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33705":{"this":{"__isSmartRef__":true,"id":33591}},"33706":{"timestamp":{"__isSmartRef__":true,"id":33707},"user":"sebastianwoinar","tags":[]},"33707":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"33708":{"varMapping":{"__isSmartRef__":true,"id":33709},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":33710},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33709":{"this":{"__isSmartRef__":true,"id":33591}},"33710":{"timestamp":{"__isSmartRef__":true,"id":33711},"user":"sebastianwoinar","tags":[]},"33711":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"33712":{"varMapping":{"__isSmartRef__":true,"id":33713},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":33714},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33713":{"this":{"__isSmartRef__":true,"id":33591}},"33714":{"timestamp":{"__isSmartRef__":true,"id":33715},"user":"sebastianwoinar","tags":[]},"33715":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"33716":{"varMapping":{"__isSmartRef__":true,"id":33717},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":33718},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33717":{"this":{"__isSmartRef__":true,"id":33591}},"33718":{"timestamp":{"__isSmartRef__":true,"id":33719},"user":"sebastianwoinar","tags":[]},"33719":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"33720":{"submorphs":[{"__isSmartRef__":true,"id":33721}],"scripts":[],"shape":{"__isSmartRef__":true,"id":33738},"id":"6DEEB821-D367-4278-8031-B6ECCA878B5F","eventHandler":{"__isSmartRef__":true,"id":33739},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":33740},"name":"node220","partsBinMetaInfo":{"__isSmartRef__":true,"id":33741},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5869},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":33309},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":33744},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(999.8,210.0)"},"33721":{"submorphs":[],"scripts":[],"id":"68E209C3-ED45-45E9-8D7A-54F970CCE8C5","shape":{"__isSmartRef__":true,"id":33722},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":33723},"textChunks":[{"__isSmartRef__":true,"id":33735}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":33737},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":33720},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"33722":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"33723":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":33724},{"__isSmartRef__":true,"id":33726},{"__isSmartRef__":true,"id":33728},{"__isSmartRef__":true,"id":33730},{"__isSmartRef__":true,"id":33732}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":33734},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"33724":{"date":{"__isSmartRef__":true,"id":33725},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"33725":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"33726":{"date":{"__isSmartRef__":true,"id":33727},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"33727":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"33728":{"date":{"__isSmartRef__":true,"id":33729},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"33729":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"33730":{"date":{"__isSmartRef__":true,"id":33731},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"33731":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"33732":{"date":{"__isSmartRef__":true,"id":33733},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"33733":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"33734":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"33735":{"style":{"__isSmartRef__":true,"id":33736},"morph":{"__isSmartRef__":true,"id":33721},"chunkOwner":{"__isSmartRef__":true,"id":33721},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"33736":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"33737":{"morph":{"__isSmartRef__":true,"id":33721},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"33738":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"33739":{"morph":{"__isSmartRef__":true,"id":33720},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"33740":{},"33741":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":33742}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"33742":{"date":{"__isSmartRef__":true,"id":33743},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"33743":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"33744":{"buildChildNodes":{"__isSmartRef__":true,"id":33745},"getGameTree":{"__isSmartRef__":true,"id":33749},"getLevel":{"__isSmartRef__":true,"id":33753},"getLevelWeight":{"__isSmartRef__":true,"id":33757},"getWeight":{"__isSmartRef__":true,"id":33761},"setNode":{"__isSmartRef__":true,"id":33765},"setParent":{"__isSmartRef__":true,"id":33769},"getParent":{"__isSmartRef__":true,"id":33773},"deactivate":{"__isSmartRef__":true,"id":33777},"blink":{"__isSmartRef__":true,"id":33781},"ABPreturn":{"__isSmartRef__":true,"id":33785},"ABPstart":{"__isSmartRef__":true,"id":33789},"ABPcontinue":{"__isSmartRef__":true,"id":33793},"ABPshowValue":{"__isSmartRef__":true,"id":33797},"ABPgetValue":{"__isSmartRef__":true,"id":33801},"ABPhasChildNodes":{"__isSmartRef__":true,"id":33805},"onMouseDown":{"__isSmartRef__":true,"id":33809},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":33817},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":33821},"ABPmarkAsDone":{"__isSmartRef__":true,"id":33825},"ABPmarkAsActive":{"__isSmartRef__":true,"id":33829},"getStateMorph":{"__isSmartRef__":true,"id":33833},"showState":{"__isSmartRef__":true,"id":33837},"ABPfailHard":{"__isSmartRef__":true,"id":33841},"markFinalDrawWith":{"__isSmartRef__":true,"id":33845}},"33745":{"varMapping":{"__isSmartRef__":true,"id":33746},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":33747},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33746":{"this":{"__isSmartRef__":true,"id":33720}},"33747":{"timestamp":{"__isSmartRef__":true,"id":33748},"user":"sebastianwoinar","tags":[]},"33748":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"33749":{"varMapping":{"__isSmartRef__":true,"id":33750},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":33751},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33750":{"this":{"__isSmartRef__":true,"id":33720}},"33751":{"timestamp":{"__isSmartRef__":true,"id":33752},"user":"sebastianwoinar","tags":[]},"33752":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33753":{"varMapping":{"__isSmartRef__":true,"id":33754},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":33755},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33754":{"this":{"__isSmartRef__":true,"id":33720}},"33755":{"timestamp":{"__isSmartRef__":true,"id":33756},"user":"sebastianwoinar","tags":[]},"33756":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33757":{"varMapping":{"__isSmartRef__":true,"id":33758},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":33759},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33758":{"this":{"__isSmartRef__":true,"id":33720}},"33759":{"timestamp":{"__isSmartRef__":true,"id":33760},"user":"sebastianwoinar","tags":[]},"33760":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33761":{"varMapping":{"__isSmartRef__":true,"id":33762},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":33763},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33762":{"this":{"__isSmartRef__":true,"id":33720}},"33763":{"timestamp":{"__isSmartRef__":true,"id":33764},"user":"sebastianwoinar","tags":[]},"33764":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33765":{"varMapping":{"__isSmartRef__":true,"id":33766},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":33767},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33766":{"this":{"__isSmartRef__":true,"id":33720}},"33767":{"timestamp":{"__isSmartRef__":true,"id":33768},"user":"sebastianwoinar","tags":[]},"33768":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33769":{"varMapping":{"__isSmartRef__":true,"id":33770},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":33771},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33770":{"this":{"__isSmartRef__":true,"id":33720}},"33771":{"timestamp":{"__isSmartRef__":true,"id":33772},"user":"sebastianwoinar","tags":[]},"33772":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33773":{"varMapping":{"__isSmartRef__":true,"id":33774},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":33775},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33774":{"this":{"__isSmartRef__":true,"id":33720}},"33775":{"timestamp":{"__isSmartRef__":true,"id":33776},"user":"sebastianwoinar","tags":[]},"33776":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"33777":{"varMapping":{"__isSmartRef__":true,"id":33778},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":33779},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33778":{"this":{"__isSmartRef__":true,"id":33720}},"33779":{"timestamp":{"__isSmartRef__":true,"id":33780},"user":"sebastianwoinar","tags":[]},"33780":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"33781":{"varMapping":{"__isSmartRef__":true,"id":33782},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":33783},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33782":{"this":{"__isSmartRef__":true,"id":33720}},"33783":{"timestamp":{"__isSmartRef__":true,"id":33784},"user":"sebastianwoinar","tags":[]},"33784":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"33785":{"varMapping":{"__isSmartRef__":true,"id":33786},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":33787},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33786":{"this":{"__isSmartRef__":true,"id":33720}},"33787":{"timestamp":{"__isSmartRef__":true,"id":33788},"user":"sebastianwoinar","tags":[]},"33788":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"33789":{"varMapping":{"__isSmartRef__":true,"id":33790},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":33791},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33790":{"this":{"__isSmartRef__":true,"id":33720}},"33791":{"timestamp":{"__isSmartRef__":true,"id":33792},"user":"sebastianwoinar","tags":[]},"33792":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"33793":{"varMapping":{"__isSmartRef__":true,"id":33794},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":33795},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33794":{"this":{"__isSmartRef__":true,"id":33720}},"33795":{"timestamp":{"__isSmartRef__":true,"id":33796},"user":"sebastianwoinar","tags":[]},"33796":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"33797":{"varMapping":{"__isSmartRef__":true,"id":33798},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":33799},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33798":{"this":{"__isSmartRef__":true,"id":33720}},"33799":{"timestamp":{"__isSmartRef__":true,"id":33800},"user":"sebastianwoinar","tags":[]},"33800":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"33801":{"varMapping":{"__isSmartRef__":true,"id":33802},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":33803},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33802":{"this":{"__isSmartRef__":true,"id":33720}},"33803":{"timestamp":{"__isSmartRef__":true,"id":33804},"user":"sebastianwoinar","tags":[]},"33804":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"33805":{"varMapping":{"__isSmartRef__":true,"id":33806},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":33807},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33806":{"this":{"__isSmartRef__":true,"id":33720}},"33807":{"timestamp":{"__isSmartRef__":true,"id":33808},"user":"sebastianwoinar","tags":[]},"33808":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"33809":{"varMapping":{"__isSmartRef__":true,"id":33810},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":33815},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33810":{"this":{"__isSmartRef__":true,"id":33720},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":33811}},"33811":{"$super":{"__isSmartRef__":true,"id":33812}},"33812":{"varMapping":{"__isSmartRef__":true,"id":33813},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":33814},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33813":{"obj":{"__isSmartRef__":true,"id":33720},"name":"onMouseDown"},"33814":{},"33815":{"timestamp":{"__isSmartRef__":true,"id":33816},"user":"sebastianwoinar","tags":[]},"33816":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"33817":{"varMapping":{"__isSmartRef__":true,"id":33818},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":33819},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33818":{"this":{"__isSmartRef__":true,"id":33720}},"33819":{"timestamp":{"__isSmartRef__":true,"id":33820},"user":"sebastianwoinar","tags":[]},"33820":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"33821":{"varMapping":{"__isSmartRef__":true,"id":33822},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":33823},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33822":{"this":{"__isSmartRef__":true,"id":33720}},"33823":{"timestamp":{"__isSmartRef__":true,"id":33824},"user":"sebastianwoinar","tags":[]},"33824":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"33825":{"varMapping":{"__isSmartRef__":true,"id":33826},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":33827},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33826":{"this":{"__isSmartRef__":true,"id":33720}},"33827":{"timestamp":{"__isSmartRef__":true,"id":33828},"user":"sebastianwoinar","tags":[]},"33828":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"33829":{"varMapping":{"__isSmartRef__":true,"id":33830},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":33831},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33830":{"this":{"__isSmartRef__":true,"id":33720}},"33831":{"timestamp":{"__isSmartRef__":true,"id":33832},"user":"sebastianwoinar","tags":[]},"33832":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"33833":{"varMapping":{"__isSmartRef__":true,"id":33834},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":33835},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33834":{"this":{"__isSmartRef__":true,"id":33720}},"33835":{"timestamp":{"__isSmartRef__":true,"id":33836},"user":"sebastianwoinar","tags":[]},"33836":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"33837":{"varMapping":{"__isSmartRef__":true,"id":33838},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":33839},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33838":{"this":{"__isSmartRef__":true,"id":33720}},"33839":{"timestamp":{"__isSmartRef__":true,"id":33840},"user":"sebastianwoinar","tags":[]},"33840":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"33841":{"varMapping":{"__isSmartRef__":true,"id":33842},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":33843},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33842":{"this":{"__isSmartRef__":true,"id":33720}},"33843":{"timestamp":{"__isSmartRef__":true,"id":33844},"user":"sebastianwoinar","tags":[]},"33844":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"33845":{"varMapping":{"__isSmartRef__":true,"id":33846},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":33847},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33846":{"this":{"__isSmartRef__":true,"id":33720}},"33847":{"timestamp":{"__isSmartRef__":true,"id":33848},"user":"sebastianwoinar","tags":[]},"33848":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"33849":{"buildChildNodes":{"__isSmartRef__":true,"id":33850},"getGameTree":{"__isSmartRef__":true,"id":33854},"getLevel":{"__isSmartRef__":true,"id":33858},"getLevelWeight":{"__isSmartRef__":true,"id":33862},"getWeight":{"__isSmartRef__":true,"id":33866},"setNode":{"__isSmartRef__":true,"id":33870},"setParent":{"__isSmartRef__":true,"id":33874},"getParent":{"__isSmartRef__":true,"id":33878},"deactivate":{"__isSmartRef__":true,"id":33882},"blink":{"__isSmartRef__":true,"id":33886},"ABPreturn":{"__isSmartRef__":true,"id":33890},"ABPstart":{"__isSmartRef__":true,"id":33894},"ABPcontinue":{"__isSmartRef__":true,"id":33898},"ABPshowValue":{"__isSmartRef__":true,"id":33902},"ABPgetValue":{"__isSmartRef__":true,"id":33906},"ABPhasChildNodes":{"__isSmartRef__":true,"id":33910},"onMouseDown":{"__isSmartRef__":true,"id":33914},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":33922},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":33926},"ABPmarkAsDone":{"__isSmartRef__":true,"id":33930},"ABPmarkAsActive":{"__isSmartRef__":true,"id":33934},"getStateMorph":{"__isSmartRef__":true,"id":33938},"showState":{"__isSmartRef__":true,"id":33942},"ABPfailHard":{"__isSmartRef__":true,"id":33946},"markFinalDrawWith":{"__isSmartRef__":true,"id":33950}},"33850":{"varMapping":{"__isSmartRef__":true,"id":33851},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":33852},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33851":{"this":{"__isSmartRef__":true,"id":33309}},"33852":{"timestamp":{"__isSmartRef__":true,"id":33853},"user":"sebastianwoinar","tags":[]},"33853":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"33854":{"varMapping":{"__isSmartRef__":true,"id":33855},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":33856},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33855":{"this":{"__isSmartRef__":true,"id":33309}},"33856":{"timestamp":{"__isSmartRef__":true,"id":33857},"user":"sebastianwoinar","tags":[]},"33857":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33858":{"varMapping":{"__isSmartRef__":true,"id":33859},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":33860},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33859":{"this":{"__isSmartRef__":true,"id":33309}},"33860":{"timestamp":{"__isSmartRef__":true,"id":33861},"user":"sebastianwoinar","tags":[]},"33861":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33862":{"varMapping":{"__isSmartRef__":true,"id":33863},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":33864},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33863":{"this":{"__isSmartRef__":true,"id":33309}},"33864":{"timestamp":{"__isSmartRef__":true,"id":33865},"user":"sebastianwoinar","tags":[]},"33865":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33866":{"varMapping":{"__isSmartRef__":true,"id":33867},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":33868},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33867":{"this":{"__isSmartRef__":true,"id":33309}},"33868":{"timestamp":{"__isSmartRef__":true,"id":33869},"user":"sebastianwoinar","tags":[]},"33869":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33870":{"varMapping":{"__isSmartRef__":true,"id":33871},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":33872},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33871":{"this":{"__isSmartRef__":true,"id":33309}},"33872":{"timestamp":{"__isSmartRef__":true,"id":33873},"user":"sebastianwoinar","tags":[]},"33873":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33874":{"varMapping":{"__isSmartRef__":true,"id":33875},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":33876},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33875":{"this":{"__isSmartRef__":true,"id":33309}},"33876":{"timestamp":{"__isSmartRef__":true,"id":33877},"user":"sebastianwoinar","tags":[]},"33877":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"33878":{"varMapping":{"__isSmartRef__":true,"id":33879},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":33880},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33879":{"this":{"__isSmartRef__":true,"id":33309}},"33880":{"timestamp":{"__isSmartRef__":true,"id":33881},"user":"sebastianwoinar","tags":[]},"33881":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"33882":{"varMapping":{"__isSmartRef__":true,"id":33883},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":33884},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33883":{"this":{"__isSmartRef__":true,"id":33309}},"33884":{"timestamp":{"__isSmartRef__":true,"id":33885},"user":"sebastianwoinar","tags":[]},"33885":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"33886":{"varMapping":{"__isSmartRef__":true,"id":33887},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":33888},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33887":{"this":{"__isSmartRef__":true,"id":33309}},"33888":{"timestamp":{"__isSmartRef__":true,"id":33889},"user":"sebastianwoinar","tags":[]},"33889":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"33890":{"varMapping":{"__isSmartRef__":true,"id":33891},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":33892},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33891":{"this":{"__isSmartRef__":true,"id":33309}},"33892":{"timestamp":{"__isSmartRef__":true,"id":33893},"user":"sebastianwoinar","tags":[]},"33893":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"33894":{"varMapping":{"__isSmartRef__":true,"id":33895},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":33896},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33895":{"this":{"__isSmartRef__":true,"id":33309}},"33896":{"timestamp":{"__isSmartRef__":true,"id":33897},"user":"sebastianwoinar","tags":[]},"33897":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"33898":{"varMapping":{"__isSmartRef__":true,"id":33899},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":33900},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33899":{"this":{"__isSmartRef__":true,"id":33309}},"33900":{"timestamp":{"__isSmartRef__":true,"id":33901},"user":"sebastianwoinar","tags":[]},"33901":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"33902":{"varMapping":{"__isSmartRef__":true,"id":33903},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":33904},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33903":{"this":{"__isSmartRef__":true,"id":33309}},"33904":{"timestamp":{"__isSmartRef__":true,"id":33905},"user":"sebastianwoinar","tags":[]},"33905":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"33906":{"varMapping":{"__isSmartRef__":true,"id":33907},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":33908},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33907":{"this":{"__isSmartRef__":true,"id":33309}},"33908":{"timestamp":{"__isSmartRef__":true,"id":33909},"user":"sebastianwoinar","tags":[]},"33909":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"33910":{"varMapping":{"__isSmartRef__":true,"id":33911},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":33912},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33911":{"this":{"__isSmartRef__":true,"id":33309}},"33912":{"timestamp":{"__isSmartRef__":true,"id":33913},"user":"sebastianwoinar","tags":[]},"33913":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"33914":{"varMapping":{"__isSmartRef__":true,"id":33915},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":33920},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33915":{"this":{"__isSmartRef__":true,"id":33309},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":33916}},"33916":{"$super":{"__isSmartRef__":true,"id":33917}},"33917":{"varMapping":{"__isSmartRef__":true,"id":33918},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":33919},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33918":{"obj":{"__isSmartRef__":true,"id":33309},"name":"onMouseDown"},"33919":{},"33920":{"timestamp":{"__isSmartRef__":true,"id":33921},"user":"sebastianwoinar","tags":[]},"33921":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"33922":{"varMapping":{"__isSmartRef__":true,"id":33923},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":33924},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33923":{"this":{"__isSmartRef__":true,"id":33309}},"33924":{"timestamp":{"__isSmartRef__":true,"id":33925},"user":"sebastianwoinar","tags":[]},"33925":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"33926":{"varMapping":{"__isSmartRef__":true,"id":33927},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":33928},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33927":{"this":{"__isSmartRef__":true,"id":33309}},"33928":{"timestamp":{"__isSmartRef__":true,"id":33929},"user":"sebastianwoinar","tags":[]},"33929":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"33930":{"varMapping":{"__isSmartRef__":true,"id":33931},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":33932},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33931":{"this":{"__isSmartRef__":true,"id":33309}},"33932":{"timestamp":{"__isSmartRef__":true,"id":33933},"user":"sebastianwoinar","tags":[]},"33933":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"33934":{"varMapping":{"__isSmartRef__":true,"id":33935},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":33936},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33935":{"this":{"__isSmartRef__":true,"id":33309}},"33936":{"timestamp":{"__isSmartRef__":true,"id":33937},"user":"sebastianwoinar","tags":[]},"33937":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"33938":{"varMapping":{"__isSmartRef__":true,"id":33939},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":33940},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33939":{"this":{"__isSmartRef__":true,"id":33309}},"33940":{"timestamp":{"__isSmartRef__":true,"id":33941},"user":"sebastianwoinar","tags":[]},"33941":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"33942":{"varMapping":{"__isSmartRef__":true,"id":33943},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":33944},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33943":{"this":{"__isSmartRef__":true,"id":33309}},"33944":{"timestamp":{"__isSmartRef__":true,"id":33945},"user":"sebastianwoinar","tags":[]},"33945":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"33946":{"varMapping":{"__isSmartRef__":true,"id":33947},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":33948},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33947":{"this":{"__isSmartRef__":true,"id":33309}},"33948":{"timestamp":{"__isSmartRef__":true,"id":33949},"user":"sebastianwoinar","tags":[]},"33949":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"33950":{"varMapping":{"__isSmartRef__":true,"id":33951},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":33952},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"33951":{"this":{"__isSmartRef__":true,"id":33309}},"33952":{"timestamp":{"__isSmartRef__":true,"id":33953},"user":"sebastianwoinar","tags":[]},"33953":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"33954":{"submorphs":[{"__isSmartRef__":true,"id":33955}],"scripts":[],"shape":{"__isSmartRef__":true,"id":33972},"id":"D13F2D32-6902-4492-881E-0371C3CE1811","eventHandler":{"__isSmartRef__":true,"id":33973},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":33974},"name":"node221","partsBinMetaInfo":{"__isSmartRef__":true,"id":33975},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5871},"owner":{"__isSmartRef__":true,"id":5408},"childNodes":[{"__isSmartRef__":true,"id":33978},{"__isSmartRef__":true,"id":34107},{"__isSmartRef__":true,"id":34236},{"__isSmartRef__":true,"id":34365},{"__isSmartRef__":true,"id":34494},{"__isSmartRef__":true,"id":34623},{"__isSmartRef__":true,"id":34752}],"parent":{"__isSmartRef__":true,"id":33285},"level":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":34881},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(1010.2,160.0)"},"33955":{"submorphs":[],"scripts":[],"id":"613E672B-AE25-4479-AF93-936A8634FBE0","shape":{"__isSmartRef__":true,"id":33956},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":33957},"textChunks":[{"__isSmartRef__":true,"id":33969}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":33971},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":33954},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"33956":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"33957":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":33958},{"__isSmartRef__":true,"id":33960},{"__isSmartRef__":true,"id":33962},{"__isSmartRef__":true,"id":33964},{"__isSmartRef__":true,"id":33966}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":33968},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"33958":{"date":{"__isSmartRef__":true,"id":33959},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"33959":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"33960":{"date":{"__isSmartRef__":true,"id":33961},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"33961":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"33962":{"date":{"__isSmartRef__":true,"id":33963},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"33963":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"33964":{"date":{"__isSmartRef__":true,"id":33965},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"33965":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"33966":{"date":{"__isSmartRef__":true,"id":33967},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"33967":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"33968":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"33969":{"style":{"__isSmartRef__":true,"id":33970},"morph":{"__isSmartRef__":true,"id":33955},"chunkOwner":{"__isSmartRef__":true,"id":33955},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"33970":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"33971":{"morph":{"__isSmartRef__":true,"id":33955},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"33972":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"33973":{"morph":{"__isSmartRef__":true,"id":33954},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"33974":{},"33975":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":33976}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"33976":{"date":{"__isSmartRef__":true,"id":33977},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"33977":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"33978":{"submorphs":[{"__isSmartRef__":true,"id":33979}],"scripts":[],"shape":{"__isSmartRef__":true,"id":33996},"id":"A93BF2ED-1909-41CF-B1A2-FBE21F9B24C1","eventHandler":{"__isSmartRef__":true,"id":33997},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":33998},"name":"node222","partsBinMetaInfo":{"__isSmartRef__":true,"id":33999},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5873},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":33954},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":34002},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(1005.0,210.0)"},"33979":{"submorphs":[],"scripts":[],"id":"8B1300BF-B3B7-4945-839F-457B698BAF3C","shape":{"__isSmartRef__":true,"id":33980},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":33981},"textChunks":[{"__isSmartRef__":true,"id":33993}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":33995},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":33978},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"33980":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"33981":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":33982},{"__isSmartRef__":true,"id":33984},{"__isSmartRef__":true,"id":33986},{"__isSmartRef__":true,"id":33988},{"__isSmartRef__":true,"id":33990}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":33992},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"33982":{"date":{"__isSmartRef__":true,"id":33983},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"33983":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"33984":{"date":{"__isSmartRef__":true,"id":33985},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"33985":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"33986":{"date":{"__isSmartRef__":true,"id":33987},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"33987":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"33988":{"date":{"__isSmartRef__":true,"id":33989},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"33989":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"33990":{"date":{"__isSmartRef__":true,"id":33991},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"33991":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"33992":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"33993":{"style":{"__isSmartRef__":true,"id":33994},"morph":{"__isSmartRef__":true,"id":33979},"chunkOwner":{"__isSmartRef__":true,"id":33979},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"33994":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"33995":{"morph":{"__isSmartRef__":true,"id":33979},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"33996":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"33997":{"morph":{"__isSmartRef__":true,"id":33978},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"33998":{},"33999":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":34000}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"34000":{"date":{"__isSmartRef__":true,"id":34001},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"34001":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"34002":{"buildChildNodes":{"__isSmartRef__":true,"id":34003},"getGameTree":{"__isSmartRef__":true,"id":34007},"getLevel":{"__isSmartRef__":true,"id":34011},"getLevelWeight":{"__isSmartRef__":true,"id":34015},"getWeight":{"__isSmartRef__":true,"id":34019},"setNode":{"__isSmartRef__":true,"id":34023},"setParent":{"__isSmartRef__":true,"id":34027},"getParent":{"__isSmartRef__":true,"id":34031},"deactivate":{"__isSmartRef__":true,"id":34035},"blink":{"__isSmartRef__":true,"id":34039},"ABPreturn":{"__isSmartRef__":true,"id":34043},"ABPstart":{"__isSmartRef__":true,"id":34047},"ABPcontinue":{"__isSmartRef__":true,"id":34051},"ABPshowValue":{"__isSmartRef__":true,"id":34055},"ABPgetValue":{"__isSmartRef__":true,"id":34059},"ABPhasChildNodes":{"__isSmartRef__":true,"id":34063},"onMouseDown":{"__isSmartRef__":true,"id":34067},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":34075},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":34079},"ABPmarkAsDone":{"__isSmartRef__":true,"id":34083},"ABPmarkAsActive":{"__isSmartRef__":true,"id":34087},"getStateMorph":{"__isSmartRef__":true,"id":34091},"showState":{"__isSmartRef__":true,"id":34095},"ABPfailHard":{"__isSmartRef__":true,"id":34099},"markFinalDrawWith":{"__isSmartRef__":true,"id":34103}},"34003":{"varMapping":{"__isSmartRef__":true,"id":34004},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":34005},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34004":{"this":{"__isSmartRef__":true,"id":33978}},"34005":{"timestamp":{"__isSmartRef__":true,"id":34006},"user":"sebastianwoinar","tags":[]},"34006":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"34007":{"varMapping":{"__isSmartRef__":true,"id":34008},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":34009},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34008":{"this":{"__isSmartRef__":true,"id":33978}},"34009":{"timestamp":{"__isSmartRef__":true,"id":34010},"user":"sebastianwoinar","tags":[]},"34010":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34011":{"varMapping":{"__isSmartRef__":true,"id":34012},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":34013},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34012":{"this":{"__isSmartRef__":true,"id":33978}},"34013":{"timestamp":{"__isSmartRef__":true,"id":34014},"user":"sebastianwoinar","tags":[]},"34014":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34015":{"varMapping":{"__isSmartRef__":true,"id":34016},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":34017},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34016":{"this":{"__isSmartRef__":true,"id":33978}},"34017":{"timestamp":{"__isSmartRef__":true,"id":34018},"user":"sebastianwoinar","tags":[]},"34018":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34019":{"varMapping":{"__isSmartRef__":true,"id":34020},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":34021},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34020":{"this":{"__isSmartRef__":true,"id":33978}},"34021":{"timestamp":{"__isSmartRef__":true,"id":34022},"user":"sebastianwoinar","tags":[]},"34022":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34023":{"varMapping":{"__isSmartRef__":true,"id":34024},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":34025},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34024":{"this":{"__isSmartRef__":true,"id":33978}},"34025":{"timestamp":{"__isSmartRef__":true,"id":34026},"user":"sebastianwoinar","tags":[]},"34026":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34027":{"varMapping":{"__isSmartRef__":true,"id":34028},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":34029},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34028":{"this":{"__isSmartRef__":true,"id":33978}},"34029":{"timestamp":{"__isSmartRef__":true,"id":34030},"user":"sebastianwoinar","tags":[]},"34030":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34031":{"varMapping":{"__isSmartRef__":true,"id":34032},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":34033},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34032":{"this":{"__isSmartRef__":true,"id":33978}},"34033":{"timestamp":{"__isSmartRef__":true,"id":34034},"user":"sebastianwoinar","tags":[]},"34034":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"34035":{"varMapping":{"__isSmartRef__":true,"id":34036},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":34037},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34036":{"this":{"__isSmartRef__":true,"id":33978}},"34037":{"timestamp":{"__isSmartRef__":true,"id":34038},"user":"sebastianwoinar","tags":[]},"34038":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"34039":{"varMapping":{"__isSmartRef__":true,"id":34040},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":34041},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34040":{"this":{"__isSmartRef__":true,"id":33978}},"34041":{"timestamp":{"__isSmartRef__":true,"id":34042},"user":"sebastianwoinar","tags":[]},"34042":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"34043":{"varMapping":{"__isSmartRef__":true,"id":34044},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":34045},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34044":{"this":{"__isSmartRef__":true,"id":33978}},"34045":{"timestamp":{"__isSmartRef__":true,"id":34046},"user":"sebastianwoinar","tags":[]},"34046":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"34047":{"varMapping":{"__isSmartRef__":true,"id":34048},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":34049},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34048":{"this":{"__isSmartRef__":true,"id":33978}},"34049":{"timestamp":{"__isSmartRef__":true,"id":34050},"user":"sebastianwoinar","tags":[]},"34050":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"34051":{"varMapping":{"__isSmartRef__":true,"id":34052},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":34053},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34052":{"this":{"__isSmartRef__":true,"id":33978}},"34053":{"timestamp":{"__isSmartRef__":true,"id":34054},"user":"sebastianwoinar","tags":[]},"34054":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"34055":{"varMapping":{"__isSmartRef__":true,"id":34056},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":34057},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34056":{"this":{"__isSmartRef__":true,"id":33978}},"34057":{"timestamp":{"__isSmartRef__":true,"id":34058},"user":"sebastianwoinar","tags":[]},"34058":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"34059":{"varMapping":{"__isSmartRef__":true,"id":34060},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":34061},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34060":{"this":{"__isSmartRef__":true,"id":33978}},"34061":{"timestamp":{"__isSmartRef__":true,"id":34062},"user":"sebastianwoinar","tags":[]},"34062":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"34063":{"varMapping":{"__isSmartRef__":true,"id":34064},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":34065},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34064":{"this":{"__isSmartRef__":true,"id":33978}},"34065":{"timestamp":{"__isSmartRef__":true,"id":34066},"user":"sebastianwoinar","tags":[]},"34066":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"34067":{"varMapping":{"__isSmartRef__":true,"id":34068},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":34073},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34068":{"this":{"__isSmartRef__":true,"id":33978},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":34069}},"34069":{"$super":{"__isSmartRef__":true,"id":34070}},"34070":{"varMapping":{"__isSmartRef__":true,"id":34071},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":34072},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34071":{"obj":{"__isSmartRef__":true,"id":33978},"name":"onMouseDown"},"34072":{},"34073":{"timestamp":{"__isSmartRef__":true,"id":34074},"user":"sebastianwoinar","tags":[]},"34074":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"34075":{"varMapping":{"__isSmartRef__":true,"id":34076},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":34077},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34076":{"this":{"__isSmartRef__":true,"id":33978}},"34077":{"timestamp":{"__isSmartRef__":true,"id":34078},"user":"sebastianwoinar","tags":[]},"34078":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"34079":{"varMapping":{"__isSmartRef__":true,"id":34080},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":34081},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34080":{"this":{"__isSmartRef__":true,"id":33978}},"34081":{"timestamp":{"__isSmartRef__":true,"id":34082},"user":"sebastianwoinar","tags":[]},"34082":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"34083":{"varMapping":{"__isSmartRef__":true,"id":34084},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":34085},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34084":{"this":{"__isSmartRef__":true,"id":33978}},"34085":{"timestamp":{"__isSmartRef__":true,"id":34086},"user":"sebastianwoinar","tags":[]},"34086":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"34087":{"varMapping":{"__isSmartRef__":true,"id":34088},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":34089},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34088":{"this":{"__isSmartRef__":true,"id":33978}},"34089":{"timestamp":{"__isSmartRef__":true,"id":34090},"user":"sebastianwoinar","tags":[]},"34090":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"34091":{"varMapping":{"__isSmartRef__":true,"id":34092},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":34093},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34092":{"this":{"__isSmartRef__":true,"id":33978}},"34093":{"timestamp":{"__isSmartRef__":true,"id":34094},"user":"sebastianwoinar","tags":[]},"34094":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"34095":{"varMapping":{"__isSmartRef__":true,"id":34096},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":34097},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34096":{"this":{"__isSmartRef__":true,"id":33978}},"34097":{"timestamp":{"__isSmartRef__":true,"id":34098},"user":"sebastianwoinar","tags":[]},"34098":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"34099":{"varMapping":{"__isSmartRef__":true,"id":34100},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":34101},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34100":{"this":{"__isSmartRef__":true,"id":33978}},"34101":{"timestamp":{"__isSmartRef__":true,"id":34102},"user":"sebastianwoinar","tags":[]},"34102":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"34103":{"varMapping":{"__isSmartRef__":true,"id":34104},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":34105},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34104":{"this":{"__isSmartRef__":true,"id":33978}},"34105":{"timestamp":{"__isSmartRef__":true,"id":34106},"user":"sebastianwoinar","tags":[]},"34106":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"34107":{"submorphs":[{"__isSmartRef__":true,"id":34108}],"scripts":[],"shape":{"__isSmartRef__":true,"id":34125},"id":"49B51A45-C53B-46E5-8199-73E7FCE50CE0","eventHandler":{"__isSmartRef__":true,"id":34126},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":34127},"name":"node223","partsBinMetaInfo":{"__isSmartRef__":true,"id":34128},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5875},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":33954},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":34131},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(1010.2,210.0)"},"34108":{"submorphs":[],"scripts":[],"id":"12582C24-425C-497A-BDD0-AE96986B3F1B","shape":{"__isSmartRef__":true,"id":34109},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":34110},"textChunks":[{"__isSmartRef__":true,"id":34122}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":34124},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":34107},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"34109":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"34110":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":34111},{"__isSmartRef__":true,"id":34113},{"__isSmartRef__":true,"id":34115},{"__isSmartRef__":true,"id":34117},{"__isSmartRef__":true,"id":34119}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":34121},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"34111":{"date":{"__isSmartRef__":true,"id":34112},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"34112":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"34113":{"date":{"__isSmartRef__":true,"id":34114},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"34114":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"34115":{"date":{"__isSmartRef__":true,"id":34116},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"34116":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"34117":{"date":{"__isSmartRef__":true,"id":34118},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"34118":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"34119":{"date":{"__isSmartRef__":true,"id":34120},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"34120":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"34121":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"34122":{"style":{"__isSmartRef__":true,"id":34123},"morph":{"__isSmartRef__":true,"id":34108},"chunkOwner":{"__isSmartRef__":true,"id":34108},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"34123":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"34124":{"morph":{"__isSmartRef__":true,"id":34108},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"34125":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"34126":{"morph":{"__isSmartRef__":true,"id":34107},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"34127":{},"34128":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":34129}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"34129":{"date":{"__isSmartRef__":true,"id":34130},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"34130":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"34131":{"buildChildNodes":{"__isSmartRef__":true,"id":34132},"getGameTree":{"__isSmartRef__":true,"id":34136},"getLevel":{"__isSmartRef__":true,"id":34140},"getLevelWeight":{"__isSmartRef__":true,"id":34144},"getWeight":{"__isSmartRef__":true,"id":34148},"setNode":{"__isSmartRef__":true,"id":34152},"setParent":{"__isSmartRef__":true,"id":34156},"getParent":{"__isSmartRef__":true,"id":34160},"deactivate":{"__isSmartRef__":true,"id":34164},"blink":{"__isSmartRef__":true,"id":34168},"ABPreturn":{"__isSmartRef__":true,"id":34172},"ABPstart":{"__isSmartRef__":true,"id":34176},"ABPcontinue":{"__isSmartRef__":true,"id":34180},"ABPshowValue":{"__isSmartRef__":true,"id":34184},"ABPgetValue":{"__isSmartRef__":true,"id":34188},"ABPhasChildNodes":{"__isSmartRef__":true,"id":34192},"onMouseDown":{"__isSmartRef__":true,"id":34196},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":34204},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":34208},"ABPmarkAsDone":{"__isSmartRef__":true,"id":34212},"ABPmarkAsActive":{"__isSmartRef__":true,"id":34216},"getStateMorph":{"__isSmartRef__":true,"id":34220},"showState":{"__isSmartRef__":true,"id":34224},"ABPfailHard":{"__isSmartRef__":true,"id":34228},"markFinalDrawWith":{"__isSmartRef__":true,"id":34232}},"34132":{"varMapping":{"__isSmartRef__":true,"id":34133},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":34134},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34133":{"this":{"__isSmartRef__":true,"id":34107}},"34134":{"timestamp":{"__isSmartRef__":true,"id":34135},"user":"sebastianwoinar","tags":[]},"34135":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"34136":{"varMapping":{"__isSmartRef__":true,"id":34137},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":34138},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34137":{"this":{"__isSmartRef__":true,"id":34107}},"34138":{"timestamp":{"__isSmartRef__":true,"id":34139},"user":"sebastianwoinar","tags":[]},"34139":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34140":{"varMapping":{"__isSmartRef__":true,"id":34141},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":34142},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34141":{"this":{"__isSmartRef__":true,"id":34107}},"34142":{"timestamp":{"__isSmartRef__":true,"id":34143},"user":"sebastianwoinar","tags":[]},"34143":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34144":{"varMapping":{"__isSmartRef__":true,"id":34145},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":34146},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34145":{"this":{"__isSmartRef__":true,"id":34107}},"34146":{"timestamp":{"__isSmartRef__":true,"id":34147},"user":"sebastianwoinar","tags":[]},"34147":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34148":{"varMapping":{"__isSmartRef__":true,"id":34149},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":34150},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34149":{"this":{"__isSmartRef__":true,"id":34107}},"34150":{"timestamp":{"__isSmartRef__":true,"id":34151},"user":"sebastianwoinar","tags":[]},"34151":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34152":{"varMapping":{"__isSmartRef__":true,"id":34153},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":34154},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34153":{"this":{"__isSmartRef__":true,"id":34107}},"34154":{"timestamp":{"__isSmartRef__":true,"id":34155},"user":"sebastianwoinar","tags":[]},"34155":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34156":{"varMapping":{"__isSmartRef__":true,"id":34157},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":34158},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34157":{"this":{"__isSmartRef__":true,"id":34107}},"34158":{"timestamp":{"__isSmartRef__":true,"id":34159},"user":"sebastianwoinar","tags":[]},"34159":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34160":{"varMapping":{"__isSmartRef__":true,"id":34161},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":34162},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34161":{"this":{"__isSmartRef__":true,"id":34107}},"34162":{"timestamp":{"__isSmartRef__":true,"id":34163},"user":"sebastianwoinar","tags":[]},"34163":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"34164":{"varMapping":{"__isSmartRef__":true,"id":34165},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":34166},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34165":{"this":{"__isSmartRef__":true,"id":34107}},"34166":{"timestamp":{"__isSmartRef__":true,"id":34167},"user":"sebastianwoinar","tags":[]},"34167":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"34168":{"varMapping":{"__isSmartRef__":true,"id":34169},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":34170},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34169":{"this":{"__isSmartRef__":true,"id":34107}},"34170":{"timestamp":{"__isSmartRef__":true,"id":34171},"user":"sebastianwoinar","tags":[]},"34171":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"34172":{"varMapping":{"__isSmartRef__":true,"id":34173},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":34174},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34173":{"this":{"__isSmartRef__":true,"id":34107}},"34174":{"timestamp":{"__isSmartRef__":true,"id":34175},"user":"sebastianwoinar","tags":[]},"34175":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"34176":{"varMapping":{"__isSmartRef__":true,"id":34177},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":34178},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34177":{"this":{"__isSmartRef__":true,"id":34107}},"34178":{"timestamp":{"__isSmartRef__":true,"id":34179},"user":"sebastianwoinar","tags":[]},"34179":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"34180":{"varMapping":{"__isSmartRef__":true,"id":34181},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":34182},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34181":{"this":{"__isSmartRef__":true,"id":34107}},"34182":{"timestamp":{"__isSmartRef__":true,"id":34183},"user":"sebastianwoinar","tags":[]},"34183":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"34184":{"varMapping":{"__isSmartRef__":true,"id":34185},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":34186},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34185":{"this":{"__isSmartRef__":true,"id":34107}},"34186":{"timestamp":{"__isSmartRef__":true,"id":34187},"user":"sebastianwoinar","tags":[]},"34187":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"34188":{"varMapping":{"__isSmartRef__":true,"id":34189},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":34190},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34189":{"this":{"__isSmartRef__":true,"id":34107}},"34190":{"timestamp":{"__isSmartRef__":true,"id":34191},"user":"sebastianwoinar","tags":[]},"34191":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"34192":{"varMapping":{"__isSmartRef__":true,"id":34193},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":34194},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34193":{"this":{"__isSmartRef__":true,"id":34107}},"34194":{"timestamp":{"__isSmartRef__":true,"id":34195},"user":"sebastianwoinar","tags":[]},"34195":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"34196":{"varMapping":{"__isSmartRef__":true,"id":34197},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":34202},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34197":{"this":{"__isSmartRef__":true,"id":34107},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":34198}},"34198":{"$super":{"__isSmartRef__":true,"id":34199}},"34199":{"varMapping":{"__isSmartRef__":true,"id":34200},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":34201},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34200":{"obj":{"__isSmartRef__":true,"id":34107},"name":"onMouseDown"},"34201":{},"34202":{"timestamp":{"__isSmartRef__":true,"id":34203},"user":"sebastianwoinar","tags":[]},"34203":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"34204":{"varMapping":{"__isSmartRef__":true,"id":34205},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":34206},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34205":{"this":{"__isSmartRef__":true,"id":34107}},"34206":{"timestamp":{"__isSmartRef__":true,"id":34207},"user":"sebastianwoinar","tags":[]},"34207":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"34208":{"varMapping":{"__isSmartRef__":true,"id":34209},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":34210},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34209":{"this":{"__isSmartRef__":true,"id":34107}},"34210":{"timestamp":{"__isSmartRef__":true,"id":34211},"user":"sebastianwoinar","tags":[]},"34211":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"34212":{"varMapping":{"__isSmartRef__":true,"id":34213},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":34214},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34213":{"this":{"__isSmartRef__":true,"id":34107}},"34214":{"timestamp":{"__isSmartRef__":true,"id":34215},"user":"sebastianwoinar","tags":[]},"34215":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"34216":{"varMapping":{"__isSmartRef__":true,"id":34217},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":34218},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34217":{"this":{"__isSmartRef__":true,"id":34107}},"34218":{"timestamp":{"__isSmartRef__":true,"id":34219},"user":"sebastianwoinar","tags":[]},"34219":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"34220":{"varMapping":{"__isSmartRef__":true,"id":34221},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":34222},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34221":{"this":{"__isSmartRef__":true,"id":34107}},"34222":{"timestamp":{"__isSmartRef__":true,"id":34223},"user":"sebastianwoinar","tags":[]},"34223":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"34224":{"varMapping":{"__isSmartRef__":true,"id":34225},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":34226},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34225":{"this":{"__isSmartRef__":true,"id":34107}},"34226":{"timestamp":{"__isSmartRef__":true,"id":34227},"user":"sebastianwoinar","tags":[]},"34227":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"34228":{"varMapping":{"__isSmartRef__":true,"id":34229},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":34230},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34229":{"this":{"__isSmartRef__":true,"id":34107}},"34230":{"timestamp":{"__isSmartRef__":true,"id":34231},"user":"sebastianwoinar","tags":[]},"34231":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"34232":{"varMapping":{"__isSmartRef__":true,"id":34233},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":34234},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34233":{"this":{"__isSmartRef__":true,"id":34107}},"34234":{"timestamp":{"__isSmartRef__":true,"id":34235},"user":"sebastianwoinar","tags":[]},"34235":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"34236":{"submorphs":[{"__isSmartRef__":true,"id":34237}],"scripts":[],"shape":{"__isSmartRef__":true,"id":34254},"id":"C69D71A7-BCFB-467E-AB49-339E7574C827","eventHandler":{"__isSmartRef__":true,"id":34255},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":34256},"name":"node224","partsBinMetaInfo":{"__isSmartRef__":true,"id":34257},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5877},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":33954},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":34260},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(1015.4,210.0)"},"34237":{"submorphs":[],"scripts":[],"id":"10498567-FE0B-4940-9F34-23998CB43FA9","shape":{"__isSmartRef__":true,"id":34238},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":34239},"textChunks":[{"__isSmartRef__":true,"id":34251}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":34253},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":34236},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"34238":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"34239":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":34240},{"__isSmartRef__":true,"id":34242},{"__isSmartRef__":true,"id":34244},{"__isSmartRef__":true,"id":34246},{"__isSmartRef__":true,"id":34248}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":34250},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"34240":{"date":{"__isSmartRef__":true,"id":34241},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"34241":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"34242":{"date":{"__isSmartRef__":true,"id":34243},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"34243":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"34244":{"date":{"__isSmartRef__":true,"id":34245},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"34245":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"34246":{"date":{"__isSmartRef__":true,"id":34247},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"34247":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"34248":{"date":{"__isSmartRef__":true,"id":34249},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"34249":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"34250":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"34251":{"style":{"__isSmartRef__":true,"id":34252},"morph":{"__isSmartRef__":true,"id":34237},"chunkOwner":{"__isSmartRef__":true,"id":34237},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"34252":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"34253":{"morph":{"__isSmartRef__":true,"id":34237},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"34254":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"34255":{"morph":{"__isSmartRef__":true,"id":34236},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"34256":{},"34257":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":34258}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"34258":{"date":{"__isSmartRef__":true,"id":34259},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"34259":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"34260":{"buildChildNodes":{"__isSmartRef__":true,"id":34261},"getGameTree":{"__isSmartRef__":true,"id":34265},"getLevel":{"__isSmartRef__":true,"id":34269},"getLevelWeight":{"__isSmartRef__":true,"id":34273},"getWeight":{"__isSmartRef__":true,"id":34277},"setNode":{"__isSmartRef__":true,"id":34281},"setParent":{"__isSmartRef__":true,"id":34285},"getParent":{"__isSmartRef__":true,"id":34289},"deactivate":{"__isSmartRef__":true,"id":34293},"blink":{"__isSmartRef__":true,"id":34297},"ABPreturn":{"__isSmartRef__":true,"id":34301},"ABPstart":{"__isSmartRef__":true,"id":34305},"ABPcontinue":{"__isSmartRef__":true,"id":34309},"ABPshowValue":{"__isSmartRef__":true,"id":34313},"ABPgetValue":{"__isSmartRef__":true,"id":34317},"ABPhasChildNodes":{"__isSmartRef__":true,"id":34321},"onMouseDown":{"__isSmartRef__":true,"id":34325},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":34333},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":34337},"ABPmarkAsDone":{"__isSmartRef__":true,"id":34341},"ABPmarkAsActive":{"__isSmartRef__":true,"id":34345},"getStateMorph":{"__isSmartRef__":true,"id":34349},"showState":{"__isSmartRef__":true,"id":34353},"ABPfailHard":{"__isSmartRef__":true,"id":34357},"markFinalDrawWith":{"__isSmartRef__":true,"id":34361}},"34261":{"varMapping":{"__isSmartRef__":true,"id":34262},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":34263},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34262":{"this":{"__isSmartRef__":true,"id":34236}},"34263":{"timestamp":{"__isSmartRef__":true,"id":34264},"user":"sebastianwoinar","tags":[]},"34264":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"34265":{"varMapping":{"__isSmartRef__":true,"id":34266},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":34267},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34266":{"this":{"__isSmartRef__":true,"id":34236}},"34267":{"timestamp":{"__isSmartRef__":true,"id":34268},"user":"sebastianwoinar","tags":[]},"34268":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34269":{"varMapping":{"__isSmartRef__":true,"id":34270},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":34271},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34270":{"this":{"__isSmartRef__":true,"id":34236}},"34271":{"timestamp":{"__isSmartRef__":true,"id":34272},"user":"sebastianwoinar","tags":[]},"34272":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34273":{"varMapping":{"__isSmartRef__":true,"id":34274},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":34275},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34274":{"this":{"__isSmartRef__":true,"id":34236}},"34275":{"timestamp":{"__isSmartRef__":true,"id":34276},"user":"sebastianwoinar","tags":[]},"34276":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34277":{"varMapping":{"__isSmartRef__":true,"id":34278},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":34279},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34278":{"this":{"__isSmartRef__":true,"id":34236}},"34279":{"timestamp":{"__isSmartRef__":true,"id":34280},"user":"sebastianwoinar","tags":[]},"34280":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34281":{"varMapping":{"__isSmartRef__":true,"id":34282},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":34283},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34282":{"this":{"__isSmartRef__":true,"id":34236}},"34283":{"timestamp":{"__isSmartRef__":true,"id":34284},"user":"sebastianwoinar","tags":[]},"34284":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34285":{"varMapping":{"__isSmartRef__":true,"id":34286},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":34287},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34286":{"this":{"__isSmartRef__":true,"id":34236}},"34287":{"timestamp":{"__isSmartRef__":true,"id":34288},"user":"sebastianwoinar","tags":[]},"34288":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34289":{"varMapping":{"__isSmartRef__":true,"id":34290},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":34291},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34290":{"this":{"__isSmartRef__":true,"id":34236}},"34291":{"timestamp":{"__isSmartRef__":true,"id":34292},"user":"sebastianwoinar","tags":[]},"34292":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"34293":{"varMapping":{"__isSmartRef__":true,"id":34294},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":34295},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34294":{"this":{"__isSmartRef__":true,"id":34236}},"34295":{"timestamp":{"__isSmartRef__":true,"id":34296},"user":"sebastianwoinar","tags":[]},"34296":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"34297":{"varMapping":{"__isSmartRef__":true,"id":34298},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":34299},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34298":{"this":{"__isSmartRef__":true,"id":34236}},"34299":{"timestamp":{"__isSmartRef__":true,"id":34300},"user":"sebastianwoinar","tags":[]},"34300":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"34301":{"varMapping":{"__isSmartRef__":true,"id":34302},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":34303},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34302":{"this":{"__isSmartRef__":true,"id":34236}},"34303":{"timestamp":{"__isSmartRef__":true,"id":34304},"user":"sebastianwoinar","tags":[]},"34304":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"34305":{"varMapping":{"__isSmartRef__":true,"id":34306},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":34307},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34306":{"this":{"__isSmartRef__":true,"id":34236}},"34307":{"timestamp":{"__isSmartRef__":true,"id":34308},"user":"sebastianwoinar","tags":[]},"34308":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"34309":{"varMapping":{"__isSmartRef__":true,"id":34310},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":34311},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34310":{"this":{"__isSmartRef__":true,"id":34236}},"34311":{"timestamp":{"__isSmartRef__":true,"id":34312},"user":"sebastianwoinar","tags":[]},"34312":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"34313":{"varMapping":{"__isSmartRef__":true,"id":34314},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":34315},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34314":{"this":{"__isSmartRef__":true,"id":34236}},"34315":{"timestamp":{"__isSmartRef__":true,"id":34316},"user":"sebastianwoinar","tags":[]},"34316":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"34317":{"varMapping":{"__isSmartRef__":true,"id":34318},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":34319},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34318":{"this":{"__isSmartRef__":true,"id":34236}},"34319":{"timestamp":{"__isSmartRef__":true,"id":34320},"user":"sebastianwoinar","tags":[]},"34320":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"34321":{"varMapping":{"__isSmartRef__":true,"id":34322},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":34323},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34322":{"this":{"__isSmartRef__":true,"id":34236}},"34323":{"timestamp":{"__isSmartRef__":true,"id":34324},"user":"sebastianwoinar","tags":[]},"34324":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"34325":{"varMapping":{"__isSmartRef__":true,"id":34326},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":34331},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34326":{"this":{"__isSmartRef__":true,"id":34236},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":34327}},"34327":{"$super":{"__isSmartRef__":true,"id":34328}},"34328":{"varMapping":{"__isSmartRef__":true,"id":34329},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":34330},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34329":{"obj":{"__isSmartRef__":true,"id":34236},"name":"onMouseDown"},"34330":{},"34331":{"timestamp":{"__isSmartRef__":true,"id":34332},"user":"sebastianwoinar","tags":[]},"34332":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"34333":{"varMapping":{"__isSmartRef__":true,"id":34334},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":34335},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34334":{"this":{"__isSmartRef__":true,"id":34236}},"34335":{"timestamp":{"__isSmartRef__":true,"id":34336},"user":"sebastianwoinar","tags":[]},"34336":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"34337":{"varMapping":{"__isSmartRef__":true,"id":34338},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":34339},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34338":{"this":{"__isSmartRef__":true,"id":34236}},"34339":{"timestamp":{"__isSmartRef__":true,"id":34340},"user":"sebastianwoinar","tags":[]},"34340":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"34341":{"varMapping":{"__isSmartRef__":true,"id":34342},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":34343},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34342":{"this":{"__isSmartRef__":true,"id":34236}},"34343":{"timestamp":{"__isSmartRef__":true,"id":34344},"user":"sebastianwoinar","tags":[]},"34344":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"34345":{"varMapping":{"__isSmartRef__":true,"id":34346},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":34347},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34346":{"this":{"__isSmartRef__":true,"id":34236}},"34347":{"timestamp":{"__isSmartRef__":true,"id":34348},"user":"sebastianwoinar","tags":[]},"34348":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"34349":{"varMapping":{"__isSmartRef__":true,"id":34350},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":34351},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34350":{"this":{"__isSmartRef__":true,"id":34236}},"34351":{"timestamp":{"__isSmartRef__":true,"id":34352},"user":"sebastianwoinar","tags":[]},"34352":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"34353":{"varMapping":{"__isSmartRef__":true,"id":34354},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":34355},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34354":{"this":{"__isSmartRef__":true,"id":34236}},"34355":{"timestamp":{"__isSmartRef__":true,"id":34356},"user":"sebastianwoinar","tags":[]},"34356":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"34357":{"varMapping":{"__isSmartRef__":true,"id":34358},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":34359},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34358":{"this":{"__isSmartRef__":true,"id":34236}},"34359":{"timestamp":{"__isSmartRef__":true,"id":34360},"user":"sebastianwoinar","tags":[]},"34360":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"34361":{"varMapping":{"__isSmartRef__":true,"id":34362},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":34363},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34362":{"this":{"__isSmartRef__":true,"id":34236}},"34363":{"timestamp":{"__isSmartRef__":true,"id":34364},"user":"sebastianwoinar","tags":[]},"34364":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"34365":{"submorphs":[{"__isSmartRef__":true,"id":34366}],"scripts":[],"shape":{"__isSmartRef__":true,"id":34383},"id":"A1EE5A17-FC3B-407C-BFE2-5828F629A25A","eventHandler":{"__isSmartRef__":true,"id":34384},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":34385},"name":"node225","partsBinMetaInfo":{"__isSmartRef__":true,"id":34386},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5879},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":33954},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":34389},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(1020.6,210.0)"},"34366":{"submorphs":[],"scripts":[],"id":"987DFCD2-E64F-4963-B4BC-8AE20A7BC217","shape":{"__isSmartRef__":true,"id":34367},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":34368},"textChunks":[{"__isSmartRef__":true,"id":34380}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":34382},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":34365},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"34367":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"34368":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":34369},{"__isSmartRef__":true,"id":34371},{"__isSmartRef__":true,"id":34373},{"__isSmartRef__":true,"id":34375},{"__isSmartRef__":true,"id":34377}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":34379},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"34369":{"date":{"__isSmartRef__":true,"id":34370},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"34370":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"34371":{"date":{"__isSmartRef__":true,"id":34372},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"34372":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"34373":{"date":{"__isSmartRef__":true,"id":34374},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"34374":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"34375":{"date":{"__isSmartRef__":true,"id":34376},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"34376":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"34377":{"date":{"__isSmartRef__":true,"id":34378},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"34378":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"34379":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"34380":{"style":{"__isSmartRef__":true,"id":34381},"morph":{"__isSmartRef__":true,"id":34366},"chunkOwner":{"__isSmartRef__":true,"id":34366},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"34381":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"34382":{"morph":{"__isSmartRef__":true,"id":34366},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"34383":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"34384":{"morph":{"__isSmartRef__":true,"id":34365},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"34385":{},"34386":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":34387}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"34387":{"date":{"__isSmartRef__":true,"id":34388},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"34388":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"34389":{"buildChildNodes":{"__isSmartRef__":true,"id":34390},"getGameTree":{"__isSmartRef__":true,"id":34394},"getLevel":{"__isSmartRef__":true,"id":34398},"getLevelWeight":{"__isSmartRef__":true,"id":34402},"getWeight":{"__isSmartRef__":true,"id":34406},"setNode":{"__isSmartRef__":true,"id":34410},"setParent":{"__isSmartRef__":true,"id":34414},"getParent":{"__isSmartRef__":true,"id":34418},"deactivate":{"__isSmartRef__":true,"id":34422},"blink":{"__isSmartRef__":true,"id":34426},"ABPreturn":{"__isSmartRef__":true,"id":34430},"ABPstart":{"__isSmartRef__":true,"id":34434},"ABPcontinue":{"__isSmartRef__":true,"id":34438},"ABPshowValue":{"__isSmartRef__":true,"id":34442},"ABPgetValue":{"__isSmartRef__":true,"id":34446},"ABPhasChildNodes":{"__isSmartRef__":true,"id":34450},"onMouseDown":{"__isSmartRef__":true,"id":34454},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":34462},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":34466},"ABPmarkAsDone":{"__isSmartRef__":true,"id":34470},"ABPmarkAsActive":{"__isSmartRef__":true,"id":34474},"getStateMorph":{"__isSmartRef__":true,"id":34478},"showState":{"__isSmartRef__":true,"id":34482},"ABPfailHard":{"__isSmartRef__":true,"id":34486},"markFinalDrawWith":{"__isSmartRef__":true,"id":34490}},"34390":{"varMapping":{"__isSmartRef__":true,"id":34391},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":34392},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34391":{"this":{"__isSmartRef__":true,"id":34365}},"34392":{"timestamp":{"__isSmartRef__":true,"id":34393},"user":"sebastianwoinar","tags":[]},"34393":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"34394":{"varMapping":{"__isSmartRef__":true,"id":34395},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":34396},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34395":{"this":{"__isSmartRef__":true,"id":34365}},"34396":{"timestamp":{"__isSmartRef__":true,"id":34397},"user":"sebastianwoinar","tags":[]},"34397":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34398":{"varMapping":{"__isSmartRef__":true,"id":34399},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":34400},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34399":{"this":{"__isSmartRef__":true,"id":34365}},"34400":{"timestamp":{"__isSmartRef__":true,"id":34401},"user":"sebastianwoinar","tags":[]},"34401":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34402":{"varMapping":{"__isSmartRef__":true,"id":34403},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":34404},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34403":{"this":{"__isSmartRef__":true,"id":34365}},"34404":{"timestamp":{"__isSmartRef__":true,"id":34405},"user":"sebastianwoinar","tags":[]},"34405":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34406":{"varMapping":{"__isSmartRef__":true,"id":34407},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":34408},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34407":{"this":{"__isSmartRef__":true,"id":34365}},"34408":{"timestamp":{"__isSmartRef__":true,"id":34409},"user":"sebastianwoinar","tags":[]},"34409":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34410":{"varMapping":{"__isSmartRef__":true,"id":34411},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":34412},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34411":{"this":{"__isSmartRef__":true,"id":34365}},"34412":{"timestamp":{"__isSmartRef__":true,"id":34413},"user":"sebastianwoinar","tags":[]},"34413":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34414":{"varMapping":{"__isSmartRef__":true,"id":34415},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":34416},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34415":{"this":{"__isSmartRef__":true,"id":34365}},"34416":{"timestamp":{"__isSmartRef__":true,"id":34417},"user":"sebastianwoinar","tags":[]},"34417":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34418":{"varMapping":{"__isSmartRef__":true,"id":34419},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":34420},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34419":{"this":{"__isSmartRef__":true,"id":34365}},"34420":{"timestamp":{"__isSmartRef__":true,"id":34421},"user":"sebastianwoinar","tags":[]},"34421":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"34422":{"varMapping":{"__isSmartRef__":true,"id":34423},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":34424},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34423":{"this":{"__isSmartRef__":true,"id":34365}},"34424":{"timestamp":{"__isSmartRef__":true,"id":34425},"user":"sebastianwoinar","tags":[]},"34425":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"34426":{"varMapping":{"__isSmartRef__":true,"id":34427},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":34428},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34427":{"this":{"__isSmartRef__":true,"id":34365}},"34428":{"timestamp":{"__isSmartRef__":true,"id":34429},"user":"sebastianwoinar","tags":[]},"34429":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"34430":{"varMapping":{"__isSmartRef__":true,"id":34431},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":34432},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34431":{"this":{"__isSmartRef__":true,"id":34365}},"34432":{"timestamp":{"__isSmartRef__":true,"id":34433},"user":"sebastianwoinar","tags":[]},"34433":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"34434":{"varMapping":{"__isSmartRef__":true,"id":34435},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":34436},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34435":{"this":{"__isSmartRef__":true,"id":34365}},"34436":{"timestamp":{"__isSmartRef__":true,"id":34437},"user":"sebastianwoinar","tags":[]},"34437":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"34438":{"varMapping":{"__isSmartRef__":true,"id":34439},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":34440},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34439":{"this":{"__isSmartRef__":true,"id":34365}},"34440":{"timestamp":{"__isSmartRef__":true,"id":34441},"user":"sebastianwoinar","tags":[]},"34441":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"34442":{"varMapping":{"__isSmartRef__":true,"id":34443},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":34444},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34443":{"this":{"__isSmartRef__":true,"id":34365}},"34444":{"timestamp":{"__isSmartRef__":true,"id":34445},"user":"sebastianwoinar","tags":[]},"34445":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"34446":{"varMapping":{"__isSmartRef__":true,"id":34447},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":34448},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34447":{"this":{"__isSmartRef__":true,"id":34365}},"34448":{"timestamp":{"__isSmartRef__":true,"id":34449},"user":"sebastianwoinar","tags":[]},"34449":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"34450":{"varMapping":{"__isSmartRef__":true,"id":34451},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":34452},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34451":{"this":{"__isSmartRef__":true,"id":34365}},"34452":{"timestamp":{"__isSmartRef__":true,"id":34453},"user":"sebastianwoinar","tags":[]},"34453":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"34454":{"varMapping":{"__isSmartRef__":true,"id":34455},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":34460},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34455":{"this":{"__isSmartRef__":true,"id":34365},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":34456}},"34456":{"$super":{"__isSmartRef__":true,"id":34457}},"34457":{"varMapping":{"__isSmartRef__":true,"id":34458},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":34459},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34458":{"obj":{"__isSmartRef__":true,"id":34365},"name":"onMouseDown"},"34459":{},"34460":{"timestamp":{"__isSmartRef__":true,"id":34461},"user":"sebastianwoinar","tags":[]},"34461":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"34462":{"varMapping":{"__isSmartRef__":true,"id":34463},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":34464},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34463":{"this":{"__isSmartRef__":true,"id":34365}},"34464":{"timestamp":{"__isSmartRef__":true,"id":34465},"user":"sebastianwoinar","tags":[]},"34465":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"34466":{"varMapping":{"__isSmartRef__":true,"id":34467},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":34468},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34467":{"this":{"__isSmartRef__":true,"id":34365}},"34468":{"timestamp":{"__isSmartRef__":true,"id":34469},"user":"sebastianwoinar","tags":[]},"34469":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"34470":{"varMapping":{"__isSmartRef__":true,"id":34471},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":34472},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34471":{"this":{"__isSmartRef__":true,"id":34365}},"34472":{"timestamp":{"__isSmartRef__":true,"id":34473},"user":"sebastianwoinar","tags":[]},"34473":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"34474":{"varMapping":{"__isSmartRef__":true,"id":34475},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":34476},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34475":{"this":{"__isSmartRef__":true,"id":34365}},"34476":{"timestamp":{"__isSmartRef__":true,"id":34477},"user":"sebastianwoinar","tags":[]},"34477":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"34478":{"varMapping":{"__isSmartRef__":true,"id":34479},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":34480},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34479":{"this":{"__isSmartRef__":true,"id":34365}},"34480":{"timestamp":{"__isSmartRef__":true,"id":34481},"user":"sebastianwoinar","tags":[]},"34481":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"34482":{"varMapping":{"__isSmartRef__":true,"id":34483},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":34484},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34483":{"this":{"__isSmartRef__":true,"id":34365}},"34484":{"timestamp":{"__isSmartRef__":true,"id":34485},"user":"sebastianwoinar","tags":[]},"34485":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"34486":{"varMapping":{"__isSmartRef__":true,"id":34487},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":34488},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34487":{"this":{"__isSmartRef__":true,"id":34365}},"34488":{"timestamp":{"__isSmartRef__":true,"id":34489},"user":"sebastianwoinar","tags":[]},"34489":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"34490":{"varMapping":{"__isSmartRef__":true,"id":34491},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":34492},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34491":{"this":{"__isSmartRef__":true,"id":34365}},"34492":{"timestamp":{"__isSmartRef__":true,"id":34493},"user":"sebastianwoinar","tags":[]},"34493":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"34494":{"submorphs":[{"__isSmartRef__":true,"id":34495}],"scripts":[],"shape":{"__isSmartRef__":true,"id":34512},"id":"95B93EE3-7659-4EE1-93CC-8F6D5A29D6BC","eventHandler":{"__isSmartRef__":true,"id":34513},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":34514},"name":"node226","partsBinMetaInfo":{"__isSmartRef__":true,"id":34515},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5881},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":33954},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":34518},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(1025.7,210.0)"},"34495":{"submorphs":[],"scripts":[],"id":"80DD0403-BFC3-4CA1-BBAA-483BE7B1CB88","shape":{"__isSmartRef__":true,"id":34496},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":34497},"textChunks":[{"__isSmartRef__":true,"id":34509}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":34511},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":34494},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"34496":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"34497":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":34498},{"__isSmartRef__":true,"id":34500},{"__isSmartRef__":true,"id":34502},{"__isSmartRef__":true,"id":34504},{"__isSmartRef__":true,"id":34506}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":34508},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"34498":{"date":{"__isSmartRef__":true,"id":34499},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"34499":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"34500":{"date":{"__isSmartRef__":true,"id":34501},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"34501":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"34502":{"date":{"__isSmartRef__":true,"id":34503},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"34503":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"34504":{"date":{"__isSmartRef__":true,"id":34505},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"34505":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"34506":{"date":{"__isSmartRef__":true,"id":34507},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"34507":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"34508":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"34509":{"style":{"__isSmartRef__":true,"id":34510},"morph":{"__isSmartRef__":true,"id":34495},"chunkOwner":{"__isSmartRef__":true,"id":34495},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"34510":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"34511":{"morph":{"__isSmartRef__":true,"id":34495},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"34512":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"34513":{"morph":{"__isSmartRef__":true,"id":34494},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"34514":{},"34515":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":34516}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"34516":{"date":{"__isSmartRef__":true,"id":34517},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"34517":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"34518":{"buildChildNodes":{"__isSmartRef__":true,"id":34519},"getGameTree":{"__isSmartRef__":true,"id":34523},"getLevel":{"__isSmartRef__":true,"id":34527},"getLevelWeight":{"__isSmartRef__":true,"id":34531},"getWeight":{"__isSmartRef__":true,"id":34535},"setNode":{"__isSmartRef__":true,"id":34539},"setParent":{"__isSmartRef__":true,"id":34543},"getParent":{"__isSmartRef__":true,"id":34547},"deactivate":{"__isSmartRef__":true,"id":34551},"blink":{"__isSmartRef__":true,"id":34555},"ABPreturn":{"__isSmartRef__":true,"id":34559},"ABPstart":{"__isSmartRef__":true,"id":34563},"ABPcontinue":{"__isSmartRef__":true,"id":34567},"ABPshowValue":{"__isSmartRef__":true,"id":34571},"ABPgetValue":{"__isSmartRef__":true,"id":34575},"ABPhasChildNodes":{"__isSmartRef__":true,"id":34579},"onMouseDown":{"__isSmartRef__":true,"id":34583},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":34591},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":34595},"ABPmarkAsDone":{"__isSmartRef__":true,"id":34599},"ABPmarkAsActive":{"__isSmartRef__":true,"id":34603},"getStateMorph":{"__isSmartRef__":true,"id":34607},"showState":{"__isSmartRef__":true,"id":34611},"ABPfailHard":{"__isSmartRef__":true,"id":34615},"markFinalDrawWith":{"__isSmartRef__":true,"id":34619}},"34519":{"varMapping":{"__isSmartRef__":true,"id":34520},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":34521},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34520":{"this":{"__isSmartRef__":true,"id":34494}},"34521":{"timestamp":{"__isSmartRef__":true,"id":34522},"user":"sebastianwoinar","tags":[]},"34522":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"34523":{"varMapping":{"__isSmartRef__":true,"id":34524},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":34525},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34524":{"this":{"__isSmartRef__":true,"id":34494}},"34525":{"timestamp":{"__isSmartRef__":true,"id":34526},"user":"sebastianwoinar","tags":[]},"34526":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34527":{"varMapping":{"__isSmartRef__":true,"id":34528},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":34529},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34528":{"this":{"__isSmartRef__":true,"id":34494}},"34529":{"timestamp":{"__isSmartRef__":true,"id":34530},"user":"sebastianwoinar","tags":[]},"34530":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34531":{"varMapping":{"__isSmartRef__":true,"id":34532},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":34533},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34532":{"this":{"__isSmartRef__":true,"id":34494}},"34533":{"timestamp":{"__isSmartRef__":true,"id":34534},"user":"sebastianwoinar","tags":[]},"34534":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34535":{"varMapping":{"__isSmartRef__":true,"id":34536},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":34537},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34536":{"this":{"__isSmartRef__":true,"id":34494}},"34537":{"timestamp":{"__isSmartRef__":true,"id":34538},"user":"sebastianwoinar","tags":[]},"34538":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34539":{"varMapping":{"__isSmartRef__":true,"id":34540},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":34541},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34540":{"this":{"__isSmartRef__":true,"id":34494}},"34541":{"timestamp":{"__isSmartRef__":true,"id":34542},"user":"sebastianwoinar","tags":[]},"34542":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34543":{"varMapping":{"__isSmartRef__":true,"id":34544},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":34545},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34544":{"this":{"__isSmartRef__":true,"id":34494}},"34545":{"timestamp":{"__isSmartRef__":true,"id":34546},"user":"sebastianwoinar","tags":[]},"34546":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34547":{"varMapping":{"__isSmartRef__":true,"id":34548},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":34549},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34548":{"this":{"__isSmartRef__":true,"id":34494}},"34549":{"timestamp":{"__isSmartRef__":true,"id":34550},"user":"sebastianwoinar","tags":[]},"34550":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"34551":{"varMapping":{"__isSmartRef__":true,"id":34552},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":34553},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34552":{"this":{"__isSmartRef__":true,"id":34494}},"34553":{"timestamp":{"__isSmartRef__":true,"id":34554},"user":"sebastianwoinar","tags":[]},"34554":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"34555":{"varMapping":{"__isSmartRef__":true,"id":34556},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":34557},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34556":{"this":{"__isSmartRef__":true,"id":34494}},"34557":{"timestamp":{"__isSmartRef__":true,"id":34558},"user":"sebastianwoinar","tags":[]},"34558":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"34559":{"varMapping":{"__isSmartRef__":true,"id":34560},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":34561},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34560":{"this":{"__isSmartRef__":true,"id":34494}},"34561":{"timestamp":{"__isSmartRef__":true,"id":34562},"user":"sebastianwoinar","tags":[]},"34562":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"34563":{"varMapping":{"__isSmartRef__":true,"id":34564},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":34565},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34564":{"this":{"__isSmartRef__":true,"id":34494}},"34565":{"timestamp":{"__isSmartRef__":true,"id":34566},"user":"sebastianwoinar","tags":[]},"34566":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"34567":{"varMapping":{"__isSmartRef__":true,"id":34568},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":34569},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34568":{"this":{"__isSmartRef__":true,"id":34494}},"34569":{"timestamp":{"__isSmartRef__":true,"id":34570},"user":"sebastianwoinar","tags":[]},"34570":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"34571":{"varMapping":{"__isSmartRef__":true,"id":34572},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":34573},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34572":{"this":{"__isSmartRef__":true,"id":34494}},"34573":{"timestamp":{"__isSmartRef__":true,"id":34574},"user":"sebastianwoinar","tags":[]},"34574":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"34575":{"varMapping":{"__isSmartRef__":true,"id":34576},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":34577},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34576":{"this":{"__isSmartRef__":true,"id":34494}},"34577":{"timestamp":{"__isSmartRef__":true,"id":34578},"user":"sebastianwoinar","tags":[]},"34578":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"34579":{"varMapping":{"__isSmartRef__":true,"id":34580},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":34581},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34580":{"this":{"__isSmartRef__":true,"id":34494}},"34581":{"timestamp":{"__isSmartRef__":true,"id":34582},"user":"sebastianwoinar","tags":[]},"34582":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"34583":{"varMapping":{"__isSmartRef__":true,"id":34584},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":34589},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34584":{"this":{"__isSmartRef__":true,"id":34494},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":34585}},"34585":{"$super":{"__isSmartRef__":true,"id":34586}},"34586":{"varMapping":{"__isSmartRef__":true,"id":34587},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":34588},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34587":{"obj":{"__isSmartRef__":true,"id":34494},"name":"onMouseDown"},"34588":{},"34589":{"timestamp":{"__isSmartRef__":true,"id":34590},"user":"sebastianwoinar","tags":[]},"34590":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"34591":{"varMapping":{"__isSmartRef__":true,"id":34592},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":34593},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34592":{"this":{"__isSmartRef__":true,"id":34494}},"34593":{"timestamp":{"__isSmartRef__":true,"id":34594},"user":"sebastianwoinar","tags":[]},"34594":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"34595":{"varMapping":{"__isSmartRef__":true,"id":34596},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":34597},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34596":{"this":{"__isSmartRef__":true,"id":34494}},"34597":{"timestamp":{"__isSmartRef__":true,"id":34598},"user":"sebastianwoinar","tags":[]},"34598":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"34599":{"varMapping":{"__isSmartRef__":true,"id":34600},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":34601},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34600":{"this":{"__isSmartRef__":true,"id":34494}},"34601":{"timestamp":{"__isSmartRef__":true,"id":34602},"user":"sebastianwoinar","tags":[]},"34602":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"34603":{"varMapping":{"__isSmartRef__":true,"id":34604},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":34605},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34604":{"this":{"__isSmartRef__":true,"id":34494}},"34605":{"timestamp":{"__isSmartRef__":true,"id":34606},"user":"sebastianwoinar","tags":[]},"34606":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"34607":{"varMapping":{"__isSmartRef__":true,"id":34608},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":34609},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34608":{"this":{"__isSmartRef__":true,"id":34494}},"34609":{"timestamp":{"__isSmartRef__":true,"id":34610},"user":"sebastianwoinar","tags":[]},"34610":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"34611":{"varMapping":{"__isSmartRef__":true,"id":34612},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":34613},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34612":{"this":{"__isSmartRef__":true,"id":34494}},"34613":{"timestamp":{"__isSmartRef__":true,"id":34614},"user":"sebastianwoinar","tags":[]},"34614":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"34615":{"varMapping":{"__isSmartRef__":true,"id":34616},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":34617},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34616":{"this":{"__isSmartRef__":true,"id":34494}},"34617":{"timestamp":{"__isSmartRef__":true,"id":34618},"user":"sebastianwoinar","tags":[]},"34618":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"34619":{"varMapping":{"__isSmartRef__":true,"id":34620},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":34621},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34620":{"this":{"__isSmartRef__":true,"id":34494}},"34621":{"timestamp":{"__isSmartRef__":true,"id":34622},"user":"sebastianwoinar","tags":[]},"34622":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"34623":{"submorphs":[{"__isSmartRef__":true,"id":34624}],"scripts":[],"shape":{"__isSmartRef__":true,"id":34641},"id":"CA908CB0-A565-4650-8624-E49649CA6E18","eventHandler":{"__isSmartRef__":true,"id":34642},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":34643},"name":"node227","partsBinMetaInfo":{"__isSmartRef__":true,"id":34644},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5883},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":33954},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":34647},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(1030.9,210.0)"},"34624":{"submorphs":[],"scripts":[],"id":"16845769-7804-4A18-8621-5A4DCD47A744","shape":{"__isSmartRef__":true,"id":34625},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":34626},"textChunks":[{"__isSmartRef__":true,"id":34638}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":34640},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":34623},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"34625":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"34626":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":34627},{"__isSmartRef__":true,"id":34629},{"__isSmartRef__":true,"id":34631},{"__isSmartRef__":true,"id":34633},{"__isSmartRef__":true,"id":34635}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":34637},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"34627":{"date":{"__isSmartRef__":true,"id":34628},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"34628":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"34629":{"date":{"__isSmartRef__":true,"id":34630},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"34630":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"34631":{"date":{"__isSmartRef__":true,"id":34632},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"34632":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"34633":{"date":{"__isSmartRef__":true,"id":34634},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"34634":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"34635":{"date":{"__isSmartRef__":true,"id":34636},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"34636":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"34637":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"34638":{"style":{"__isSmartRef__":true,"id":34639},"morph":{"__isSmartRef__":true,"id":34624},"chunkOwner":{"__isSmartRef__":true,"id":34624},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"34639":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"34640":{"morph":{"__isSmartRef__":true,"id":34624},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"34641":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"34642":{"morph":{"__isSmartRef__":true,"id":34623},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"34643":{},"34644":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":34645}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"34645":{"date":{"__isSmartRef__":true,"id":34646},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"34646":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"34647":{"buildChildNodes":{"__isSmartRef__":true,"id":34648},"getGameTree":{"__isSmartRef__":true,"id":34652},"getLevel":{"__isSmartRef__":true,"id":34656},"getLevelWeight":{"__isSmartRef__":true,"id":34660},"getWeight":{"__isSmartRef__":true,"id":34664},"setNode":{"__isSmartRef__":true,"id":34668},"setParent":{"__isSmartRef__":true,"id":34672},"getParent":{"__isSmartRef__":true,"id":34676},"deactivate":{"__isSmartRef__":true,"id":34680},"blink":{"__isSmartRef__":true,"id":34684},"ABPreturn":{"__isSmartRef__":true,"id":34688},"ABPstart":{"__isSmartRef__":true,"id":34692},"ABPcontinue":{"__isSmartRef__":true,"id":34696},"ABPshowValue":{"__isSmartRef__":true,"id":34700},"ABPgetValue":{"__isSmartRef__":true,"id":34704},"ABPhasChildNodes":{"__isSmartRef__":true,"id":34708},"onMouseDown":{"__isSmartRef__":true,"id":34712},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":34720},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":34724},"ABPmarkAsDone":{"__isSmartRef__":true,"id":34728},"ABPmarkAsActive":{"__isSmartRef__":true,"id":34732},"getStateMorph":{"__isSmartRef__":true,"id":34736},"showState":{"__isSmartRef__":true,"id":34740},"ABPfailHard":{"__isSmartRef__":true,"id":34744},"markFinalDrawWith":{"__isSmartRef__":true,"id":34748}},"34648":{"varMapping":{"__isSmartRef__":true,"id":34649},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":34650},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34649":{"this":{"__isSmartRef__":true,"id":34623}},"34650":{"timestamp":{"__isSmartRef__":true,"id":34651},"user":"sebastianwoinar","tags":[]},"34651":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"34652":{"varMapping":{"__isSmartRef__":true,"id":34653},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":34654},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34653":{"this":{"__isSmartRef__":true,"id":34623}},"34654":{"timestamp":{"__isSmartRef__":true,"id":34655},"user":"sebastianwoinar","tags":[]},"34655":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34656":{"varMapping":{"__isSmartRef__":true,"id":34657},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":34658},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34657":{"this":{"__isSmartRef__":true,"id":34623}},"34658":{"timestamp":{"__isSmartRef__":true,"id":34659},"user":"sebastianwoinar","tags":[]},"34659":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34660":{"varMapping":{"__isSmartRef__":true,"id":34661},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":34662},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34661":{"this":{"__isSmartRef__":true,"id":34623}},"34662":{"timestamp":{"__isSmartRef__":true,"id":34663},"user":"sebastianwoinar","tags":[]},"34663":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34664":{"varMapping":{"__isSmartRef__":true,"id":34665},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":34666},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34665":{"this":{"__isSmartRef__":true,"id":34623}},"34666":{"timestamp":{"__isSmartRef__":true,"id":34667},"user":"sebastianwoinar","tags":[]},"34667":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34668":{"varMapping":{"__isSmartRef__":true,"id":34669},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":34670},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34669":{"this":{"__isSmartRef__":true,"id":34623}},"34670":{"timestamp":{"__isSmartRef__":true,"id":34671},"user":"sebastianwoinar","tags":[]},"34671":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34672":{"varMapping":{"__isSmartRef__":true,"id":34673},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":34674},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34673":{"this":{"__isSmartRef__":true,"id":34623}},"34674":{"timestamp":{"__isSmartRef__":true,"id":34675},"user":"sebastianwoinar","tags":[]},"34675":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34676":{"varMapping":{"__isSmartRef__":true,"id":34677},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":34678},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34677":{"this":{"__isSmartRef__":true,"id":34623}},"34678":{"timestamp":{"__isSmartRef__":true,"id":34679},"user":"sebastianwoinar","tags":[]},"34679":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"34680":{"varMapping":{"__isSmartRef__":true,"id":34681},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":34682},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34681":{"this":{"__isSmartRef__":true,"id":34623}},"34682":{"timestamp":{"__isSmartRef__":true,"id":34683},"user":"sebastianwoinar","tags":[]},"34683":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"34684":{"varMapping":{"__isSmartRef__":true,"id":34685},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":34686},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34685":{"this":{"__isSmartRef__":true,"id":34623}},"34686":{"timestamp":{"__isSmartRef__":true,"id":34687},"user":"sebastianwoinar","tags":[]},"34687":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"34688":{"varMapping":{"__isSmartRef__":true,"id":34689},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":34690},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34689":{"this":{"__isSmartRef__":true,"id":34623}},"34690":{"timestamp":{"__isSmartRef__":true,"id":34691},"user":"sebastianwoinar","tags":[]},"34691":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"34692":{"varMapping":{"__isSmartRef__":true,"id":34693},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":34694},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34693":{"this":{"__isSmartRef__":true,"id":34623}},"34694":{"timestamp":{"__isSmartRef__":true,"id":34695},"user":"sebastianwoinar","tags":[]},"34695":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"34696":{"varMapping":{"__isSmartRef__":true,"id":34697},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":34698},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34697":{"this":{"__isSmartRef__":true,"id":34623}},"34698":{"timestamp":{"__isSmartRef__":true,"id":34699},"user":"sebastianwoinar","tags":[]},"34699":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"34700":{"varMapping":{"__isSmartRef__":true,"id":34701},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":34702},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34701":{"this":{"__isSmartRef__":true,"id":34623}},"34702":{"timestamp":{"__isSmartRef__":true,"id":34703},"user":"sebastianwoinar","tags":[]},"34703":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"34704":{"varMapping":{"__isSmartRef__":true,"id":34705},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":34706},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34705":{"this":{"__isSmartRef__":true,"id":34623}},"34706":{"timestamp":{"__isSmartRef__":true,"id":34707},"user":"sebastianwoinar","tags":[]},"34707":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"34708":{"varMapping":{"__isSmartRef__":true,"id":34709},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":34710},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34709":{"this":{"__isSmartRef__":true,"id":34623}},"34710":{"timestamp":{"__isSmartRef__":true,"id":34711},"user":"sebastianwoinar","tags":[]},"34711":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"34712":{"varMapping":{"__isSmartRef__":true,"id":34713},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":34718},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34713":{"this":{"__isSmartRef__":true,"id":34623},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":34714}},"34714":{"$super":{"__isSmartRef__":true,"id":34715}},"34715":{"varMapping":{"__isSmartRef__":true,"id":34716},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":34717},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34716":{"obj":{"__isSmartRef__":true,"id":34623},"name":"onMouseDown"},"34717":{},"34718":{"timestamp":{"__isSmartRef__":true,"id":34719},"user":"sebastianwoinar","tags":[]},"34719":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"34720":{"varMapping":{"__isSmartRef__":true,"id":34721},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":34722},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34721":{"this":{"__isSmartRef__":true,"id":34623}},"34722":{"timestamp":{"__isSmartRef__":true,"id":34723},"user":"sebastianwoinar","tags":[]},"34723":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"34724":{"varMapping":{"__isSmartRef__":true,"id":34725},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":34726},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34725":{"this":{"__isSmartRef__":true,"id":34623}},"34726":{"timestamp":{"__isSmartRef__":true,"id":34727},"user":"sebastianwoinar","tags":[]},"34727":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"34728":{"varMapping":{"__isSmartRef__":true,"id":34729},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":34730},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34729":{"this":{"__isSmartRef__":true,"id":34623}},"34730":{"timestamp":{"__isSmartRef__":true,"id":34731},"user":"sebastianwoinar","tags":[]},"34731":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"34732":{"varMapping":{"__isSmartRef__":true,"id":34733},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":34734},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34733":{"this":{"__isSmartRef__":true,"id":34623}},"34734":{"timestamp":{"__isSmartRef__":true,"id":34735},"user":"sebastianwoinar","tags":[]},"34735":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"34736":{"varMapping":{"__isSmartRef__":true,"id":34737},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":34738},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34737":{"this":{"__isSmartRef__":true,"id":34623}},"34738":{"timestamp":{"__isSmartRef__":true,"id":34739},"user":"sebastianwoinar","tags":[]},"34739":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"34740":{"varMapping":{"__isSmartRef__":true,"id":34741},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":34742},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34741":{"this":{"__isSmartRef__":true,"id":34623}},"34742":{"timestamp":{"__isSmartRef__":true,"id":34743},"user":"sebastianwoinar","tags":[]},"34743":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"34744":{"varMapping":{"__isSmartRef__":true,"id":34745},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":34746},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34745":{"this":{"__isSmartRef__":true,"id":34623}},"34746":{"timestamp":{"__isSmartRef__":true,"id":34747},"user":"sebastianwoinar","tags":[]},"34747":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"34748":{"varMapping":{"__isSmartRef__":true,"id":34749},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":34750},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34749":{"this":{"__isSmartRef__":true,"id":34623}},"34750":{"timestamp":{"__isSmartRef__":true,"id":34751},"user":"sebastianwoinar","tags":[]},"34751":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"34752":{"submorphs":[{"__isSmartRef__":true,"id":34753}],"scripts":[],"shape":{"__isSmartRef__":true,"id":34770},"id":"AAFEC275-2546-4463-8FB1-9EA43544554E","eventHandler":{"__isSmartRef__":true,"id":34771},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":34772},"name":"node228","partsBinMetaInfo":{"__isSmartRef__":true,"id":34773},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5885},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":33954},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":34776},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(1036.1,210.0)"},"34753":{"submorphs":[],"scripts":[],"id":"1D24B1F5-B1D4-45AA-A04D-3503D9123ECE","shape":{"__isSmartRef__":true,"id":34754},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":34755},"textChunks":[{"__isSmartRef__":true,"id":34767}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":34769},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":34752},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"34754":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"34755":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":34756},{"__isSmartRef__":true,"id":34758},{"__isSmartRef__":true,"id":34760},{"__isSmartRef__":true,"id":34762},{"__isSmartRef__":true,"id":34764}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":34766},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"34756":{"date":{"__isSmartRef__":true,"id":34757},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"34757":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"34758":{"date":{"__isSmartRef__":true,"id":34759},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"34759":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"34760":{"date":{"__isSmartRef__":true,"id":34761},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"34761":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"34762":{"date":{"__isSmartRef__":true,"id":34763},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"34763":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"34764":{"date":{"__isSmartRef__":true,"id":34765},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"34765":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"34766":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"34767":{"style":{"__isSmartRef__":true,"id":34768},"morph":{"__isSmartRef__":true,"id":34753},"chunkOwner":{"__isSmartRef__":true,"id":34753},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"34768":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"34769":{"morph":{"__isSmartRef__":true,"id":34753},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"34770":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"34771":{"morph":{"__isSmartRef__":true,"id":34752},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"34772":{},"34773":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":34774}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"34774":{"date":{"__isSmartRef__":true,"id":34775},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"34775":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"34776":{"buildChildNodes":{"__isSmartRef__":true,"id":34777},"getGameTree":{"__isSmartRef__":true,"id":34781},"getLevel":{"__isSmartRef__":true,"id":34785},"getLevelWeight":{"__isSmartRef__":true,"id":34789},"getWeight":{"__isSmartRef__":true,"id":34793},"setNode":{"__isSmartRef__":true,"id":34797},"setParent":{"__isSmartRef__":true,"id":34801},"getParent":{"__isSmartRef__":true,"id":34805},"deactivate":{"__isSmartRef__":true,"id":34809},"blink":{"__isSmartRef__":true,"id":34813},"ABPreturn":{"__isSmartRef__":true,"id":34817},"ABPstart":{"__isSmartRef__":true,"id":34821},"ABPcontinue":{"__isSmartRef__":true,"id":34825},"ABPshowValue":{"__isSmartRef__":true,"id":34829},"ABPgetValue":{"__isSmartRef__":true,"id":34833},"ABPhasChildNodes":{"__isSmartRef__":true,"id":34837},"onMouseDown":{"__isSmartRef__":true,"id":34841},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":34849},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":34853},"ABPmarkAsDone":{"__isSmartRef__":true,"id":34857},"ABPmarkAsActive":{"__isSmartRef__":true,"id":34861},"getStateMorph":{"__isSmartRef__":true,"id":34865},"showState":{"__isSmartRef__":true,"id":34869},"ABPfailHard":{"__isSmartRef__":true,"id":34873},"markFinalDrawWith":{"__isSmartRef__":true,"id":34877}},"34777":{"varMapping":{"__isSmartRef__":true,"id":34778},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":34779},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34778":{"this":{"__isSmartRef__":true,"id":34752}},"34779":{"timestamp":{"__isSmartRef__":true,"id":34780},"user":"sebastianwoinar","tags":[]},"34780":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"34781":{"varMapping":{"__isSmartRef__":true,"id":34782},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":34783},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34782":{"this":{"__isSmartRef__":true,"id":34752}},"34783":{"timestamp":{"__isSmartRef__":true,"id":34784},"user":"sebastianwoinar","tags":[]},"34784":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34785":{"varMapping":{"__isSmartRef__":true,"id":34786},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":34787},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34786":{"this":{"__isSmartRef__":true,"id":34752}},"34787":{"timestamp":{"__isSmartRef__":true,"id":34788},"user":"sebastianwoinar","tags":[]},"34788":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34789":{"varMapping":{"__isSmartRef__":true,"id":34790},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":34791},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34790":{"this":{"__isSmartRef__":true,"id":34752}},"34791":{"timestamp":{"__isSmartRef__":true,"id":34792},"user":"sebastianwoinar","tags":[]},"34792":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34793":{"varMapping":{"__isSmartRef__":true,"id":34794},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":34795},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34794":{"this":{"__isSmartRef__":true,"id":34752}},"34795":{"timestamp":{"__isSmartRef__":true,"id":34796},"user":"sebastianwoinar","tags":[]},"34796":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34797":{"varMapping":{"__isSmartRef__":true,"id":34798},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":34799},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34798":{"this":{"__isSmartRef__":true,"id":34752}},"34799":{"timestamp":{"__isSmartRef__":true,"id":34800},"user":"sebastianwoinar","tags":[]},"34800":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34801":{"varMapping":{"__isSmartRef__":true,"id":34802},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":34803},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34802":{"this":{"__isSmartRef__":true,"id":34752}},"34803":{"timestamp":{"__isSmartRef__":true,"id":34804},"user":"sebastianwoinar","tags":[]},"34804":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34805":{"varMapping":{"__isSmartRef__":true,"id":34806},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":34807},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34806":{"this":{"__isSmartRef__":true,"id":34752}},"34807":{"timestamp":{"__isSmartRef__":true,"id":34808},"user":"sebastianwoinar","tags":[]},"34808":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"34809":{"varMapping":{"__isSmartRef__":true,"id":34810},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":34811},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34810":{"this":{"__isSmartRef__":true,"id":34752}},"34811":{"timestamp":{"__isSmartRef__":true,"id":34812},"user":"sebastianwoinar","tags":[]},"34812":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"34813":{"varMapping":{"__isSmartRef__":true,"id":34814},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":34815},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34814":{"this":{"__isSmartRef__":true,"id":34752}},"34815":{"timestamp":{"__isSmartRef__":true,"id":34816},"user":"sebastianwoinar","tags":[]},"34816":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"34817":{"varMapping":{"__isSmartRef__":true,"id":34818},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":34819},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34818":{"this":{"__isSmartRef__":true,"id":34752}},"34819":{"timestamp":{"__isSmartRef__":true,"id":34820},"user":"sebastianwoinar","tags":[]},"34820":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"34821":{"varMapping":{"__isSmartRef__":true,"id":34822},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":34823},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34822":{"this":{"__isSmartRef__":true,"id":34752}},"34823":{"timestamp":{"__isSmartRef__":true,"id":34824},"user":"sebastianwoinar","tags":[]},"34824":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"34825":{"varMapping":{"__isSmartRef__":true,"id":34826},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":34827},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34826":{"this":{"__isSmartRef__":true,"id":34752}},"34827":{"timestamp":{"__isSmartRef__":true,"id":34828},"user":"sebastianwoinar","tags":[]},"34828":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"34829":{"varMapping":{"__isSmartRef__":true,"id":34830},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":34831},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34830":{"this":{"__isSmartRef__":true,"id":34752}},"34831":{"timestamp":{"__isSmartRef__":true,"id":34832},"user":"sebastianwoinar","tags":[]},"34832":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"34833":{"varMapping":{"__isSmartRef__":true,"id":34834},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":34835},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34834":{"this":{"__isSmartRef__":true,"id":34752}},"34835":{"timestamp":{"__isSmartRef__":true,"id":34836},"user":"sebastianwoinar","tags":[]},"34836":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"34837":{"varMapping":{"__isSmartRef__":true,"id":34838},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":34839},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34838":{"this":{"__isSmartRef__":true,"id":34752}},"34839":{"timestamp":{"__isSmartRef__":true,"id":34840},"user":"sebastianwoinar","tags":[]},"34840":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"34841":{"varMapping":{"__isSmartRef__":true,"id":34842},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":34847},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34842":{"this":{"__isSmartRef__":true,"id":34752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":34843}},"34843":{"$super":{"__isSmartRef__":true,"id":34844}},"34844":{"varMapping":{"__isSmartRef__":true,"id":34845},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":34846},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34845":{"obj":{"__isSmartRef__":true,"id":34752},"name":"onMouseDown"},"34846":{},"34847":{"timestamp":{"__isSmartRef__":true,"id":34848},"user":"sebastianwoinar","tags":[]},"34848":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"34849":{"varMapping":{"__isSmartRef__":true,"id":34850},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":34851},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34850":{"this":{"__isSmartRef__":true,"id":34752}},"34851":{"timestamp":{"__isSmartRef__":true,"id":34852},"user":"sebastianwoinar","tags":[]},"34852":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"34853":{"varMapping":{"__isSmartRef__":true,"id":34854},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":34855},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34854":{"this":{"__isSmartRef__":true,"id":34752}},"34855":{"timestamp":{"__isSmartRef__":true,"id":34856},"user":"sebastianwoinar","tags":[]},"34856":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"34857":{"varMapping":{"__isSmartRef__":true,"id":34858},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":34859},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34858":{"this":{"__isSmartRef__":true,"id":34752}},"34859":{"timestamp":{"__isSmartRef__":true,"id":34860},"user":"sebastianwoinar","tags":[]},"34860":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"34861":{"varMapping":{"__isSmartRef__":true,"id":34862},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":34863},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34862":{"this":{"__isSmartRef__":true,"id":34752}},"34863":{"timestamp":{"__isSmartRef__":true,"id":34864},"user":"sebastianwoinar","tags":[]},"34864":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"34865":{"varMapping":{"__isSmartRef__":true,"id":34866},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":34867},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34866":{"this":{"__isSmartRef__":true,"id":34752}},"34867":{"timestamp":{"__isSmartRef__":true,"id":34868},"user":"sebastianwoinar","tags":[]},"34868":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"34869":{"varMapping":{"__isSmartRef__":true,"id":34870},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":34871},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34870":{"this":{"__isSmartRef__":true,"id":34752}},"34871":{"timestamp":{"__isSmartRef__":true,"id":34872},"user":"sebastianwoinar","tags":[]},"34872":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"34873":{"varMapping":{"__isSmartRef__":true,"id":34874},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":34875},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34874":{"this":{"__isSmartRef__":true,"id":34752}},"34875":{"timestamp":{"__isSmartRef__":true,"id":34876},"user":"sebastianwoinar","tags":[]},"34876":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"34877":{"varMapping":{"__isSmartRef__":true,"id":34878},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":34879},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34878":{"this":{"__isSmartRef__":true,"id":34752}},"34879":{"timestamp":{"__isSmartRef__":true,"id":34880},"user":"sebastianwoinar","tags":[]},"34880":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"34881":{"buildChildNodes":{"__isSmartRef__":true,"id":34882},"getGameTree":{"__isSmartRef__":true,"id":34886},"getLevel":{"__isSmartRef__":true,"id":34890},"getLevelWeight":{"__isSmartRef__":true,"id":34894},"getWeight":{"__isSmartRef__":true,"id":34898},"setNode":{"__isSmartRef__":true,"id":34902},"setParent":{"__isSmartRef__":true,"id":34906},"getParent":{"__isSmartRef__":true,"id":34910},"deactivate":{"__isSmartRef__":true,"id":34914},"blink":{"__isSmartRef__":true,"id":34918},"ABPreturn":{"__isSmartRef__":true,"id":34922},"ABPstart":{"__isSmartRef__":true,"id":34926},"ABPcontinue":{"__isSmartRef__":true,"id":34930},"ABPshowValue":{"__isSmartRef__":true,"id":34934},"ABPgetValue":{"__isSmartRef__":true,"id":34938},"ABPhasChildNodes":{"__isSmartRef__":true,"id":34942},"onMouseDown":{"__isSmartRef__":true,"id":34946},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":34954},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":34958},"ABPmarkAsDone":{"__isSmartRef__":true,"id":34962},"ABPmarkAsActive":{"__isSmartRef__":true,"id":34966},"getStateMorph":{"__isSmartRef__":true,"id":34970},"showState":{"__isSmartRef__":true,"id":34974},"ABPfailHard":{"__isSmartRef__":true,"id":34978},"markFinalDrawWith":{"__isSmartRef__":true,"id":34982}},"34882":{"varMapping":{"__isSmartRef__":true,"id":34883},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":34884},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34883":{"this":{"__isSmartRef__":true,"id":33954}},"34884":{"timestamp":{"__isSmartRef__":true,"id":34885},"user":"sebastianwoinar","tags":[]},"34885":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"34886":{"varMapping":{"__isSmartRef__":true,"id":34887},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":34888},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34887":{"this":{"__isSmartRef__":true,"id":33954}},"34888":{"timestamp":{"__isSmartRef__":true,"id":34889},"user":"sebastianwoinar","tags":[]},"34889":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34890":{"varMapping":{"__isSmartRef__":true,"id":34891},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":34892},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34891":{"this":{"__isSmartRef__":true,"id":33954}},"34892":{"timestamp":{"__isSmartRef__":true,"id":34893},"user":"sebastianwoinar","tags":[]},"34893":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34894":{"varMapping":{"__isSmartRef__":true,"id":34895},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":34896},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34895":{"this":{"__isSmartRef__":true,"id":33954}},"34896":{"timestamp":{"__isSmartRef__":true,"id":34897},"user":"sebastianwoinar","tags":[]},"34897":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34898":{"varMapping":{"__isSmartRef__":true,"id":34899},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":34900},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34899":{"this":{"__isSmartRef__":true,"id":33954}},"34900":{"timestamp":{"__isSmartRef__":true,"id":34901},"user":"sebastianwoinar","tags":[]},"34901":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34902":{"varMapping":{"__isSmartRef__":true,"id":34903},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":34904},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34903":{"this":{"__isSmartRef__":true,"id":33954}},"34904":{"timestamp":{"__isSmartRef__":true,"id":34905},"user":"sebastianwoinar","tags":[]},"34905":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34906":{"varMapping":{"__isSmartRef__":true,"id":34907},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":34908},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34907":{"this":{"__isSmartRef__":true,"id":33954}},"34908":{"timestamp":{"__isSmartRef__":true,"id":34909},"user":"sebastianwoinar","tags":[]},"34909":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"34910":{"varMapping":{"__isSmartRef__":true,"id":34911},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":34912},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34911":{"this":{"__isSmartRef__":true,"id":33954}},"34912":{"timestamp":{"__isSmartRef__":true,"id":34913},"user":"sebastianwoinar","tags":[]},"34913":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"34914":{"varMapping":{"__isSmartRef__":true,"id":34915},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":34916},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34915":{"this":{"__isSmartRef__":true,"id":33954}},"34916":{"timestamp":{"__isSmartRef__":true,"id":34917},"user":"sebastianwoinar","tags":[]},"34917":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"34918":{"varMapping":{"__isSmartRef__":true,"id":34919},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":34920},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34919":{"this":{"__isSmartRef__":true,"id":33954}},"34920":{"timestamp":{"__isSmartRef__":true,"id":34921},"user":"sebastianwoinar","tags":[]},"34921":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"34922":{"varMapping":{"__isSmartRef__":true,"id":34923},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":34924},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34923":{"this":{"__isSmartRef__":true,"id":33954}},"34924":{"timestamp":{"__isSmartRef__":true,"id":34925},"user":"sebastianwoinar","tags":[]},"34925":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"34926":{"varMapping":{"__isSmartRef__":true,"id":34927},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":34928},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34927":{"this":{"__isSmartRef__":true,"id":33954}},"34928":{"timestamp":{"__isSmartRef__":true,"id":34929},"user":"sebastianwoinar","tags":[]},"34929":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"34930":{"varMapping":{"__isSmartRef__":true,"id":34931},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":34932},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34931":{"this":{"__isSmartRef__":true,"id":33954}},"34932":{"timestamp":{"__isSmartRef__":true,"id":34933},"user":"sebastianwoinar","tags":[]},"34933":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"34934":{"varMapping":{"__isSmartRef__":true,"id":34935},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":34936},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34935":{"this":{"__isSmartRef__":true,"id":33954}},"34936":{"timestamp":{"__isSmartRef__":true,"id":34937},"user":"sebastianwoinar","tags":[]},"34937":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"34938":{"varMapping":{"__isSmartRef__":true,"id":34939},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":34940},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34939":{"this":{"__isSmartRef__":true,"id":33954}},"34940":{"timestamp":{"__isSmartRef__":true,"id":34941},"user":"sebastianwoinar","tags":[]},"34941":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"34942":{"varMapping":{"__isSmartRef__":true,"id":34943},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":34944},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34943":{"this":{"__isSmartRef__":true,"id":33954}},"34944":{"timestamp":{"__isSmartRef__":true,"id":34945},"user":"sebastianwoinar","tags":[]},"34945":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"34946":{"varMapping":{"__isSmartRef__":true,"id":34947},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":34952},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34947":{"this":{"__isSmartRef__":true,"id":33954},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":34948}},"34948":{"$super":{"__isSmartRef__":true,"id":34949}},"34949":{"varMapping":{"__isSmartRef__":true,"id":34950},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":34951},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34950":{"obj":{"__isSmartRef__":true,"id":33954},"name":"onMouseDown"},"34951":{},"34952":{"timestamp":{"__isSmartRef__":true,"id":34953},"user":"sebastianwoinar","tags":[]},"34953":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"34954":{"varMapping":{"__isSmartRef__":true,"id":34955},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":34956},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34955":{"this":{"__isSmartRef__":true,"id":33954}},"34956":{"timestamp":{"__isSmartRef__":true,"id":34957},"user":"sebastianwoinar","tags":[]},"34957":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"34958":{"varMapping":{"__isSmartRef__":true,"id":34959},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":34960},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34959":{"this":{"__isSmartRef__":true,"id":33954}},"34960":{"timestamp":{"__isSmartRef__":true,"id":34961},"user":"sebastianwoinar","tags":[]},"34961":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"34962":{"varMapping":{"__isSmartRef__":true,"id":34963},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":34964},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34963":{"this":{"__isSmartRef__":true,"id":33954}},"34964":{"timestamp":{"__isSmartRef__":true,"id":34965},"user":"sebastianwoinar","tags":[]},"34965":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"34966":{"varMapping":{"__isSmartRef__":true,"id":34967},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":34968},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34967":{"this":{"__isSmartRef__":true,"id":33954}},"34968":{"timestamp":{"__isSmartRef__":true,"id":34969},"user":"sebastianwoinar","tags":[]},"34969":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"34970":{"varMapping":{"__isSmartRef__":true,"id":34971},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":34972},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34971":{"this":{"__isSmartRef__":true,"id":33954}},"34972":{"timestamp":{"__isSmartRef__":true,"id":34973},"user":"sebastianwoinar","tags":[]},"34973":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"34974":{"varMapping":{"__isSmartRef__":true,"id":34975},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":34976},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34975":{"this":{"__isSmartRef__":true,"id":33954}},"34976":{"timestamp":{"__isSmartRef__":true,"id":34977},"user":"sebastianwoinar","tags":[]},"34977":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"34978":{"varMapping":{"__isSmartRef__":true,"id":34979},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":34980},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34979":{"this":{"__isSmartRef__":true,"id":33954}},"34980":{"timestamp":{"__isSmartRef__":true,"id":34981},"user":"sebastianwoinar","tags":[]},"34981":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"34982":{"varMapping":{"__isSmartRef__":true,"id":34983},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":34984},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34983":{"this":{"__isSmartRef__":true,"id":33954}},"34984":{"timestamp":{"__isSmartRef__":true,"id":34985},"user":"sebastianwoinar","tags":[]},"34985":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"34986":{"submorphs":[{"__isSmartRef__":true,"id":34987}],"scripts":[],"shape":{"__isSmartRef__":true,"id":35004},"id":"D6A98349-BF6C-4B7D-977B-7711DFF74B2C","eventHandler":{"__isSmartRef__":true,"id":35005},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":35006},"name":"node229","partsBinMetaInfo":{"__isSmartRef__":true,"id":35007},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5887},"owner":{"__isSmartRef__":true,"id":5408},"childNodes":[{"__isSmartRef__":true,"id":35010},{"__isSmartRef__":true,"id":35139},{"__isSmartRef__":true,"id":35268},{"__isSmartRef__":true,"id":35397},{"__isSmartRef__":true,"id":35526},{"__isSmartRef__":true,"id":35655},{"__isSmartRef__":true,"id":35784}],"parent":{"__isSmartRef__":true,"id":33285},"level":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":35913},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(1046.5,160.0)"},"34987":{"submorphs":[],"scripts":[],"id":"B0EC7527-AE4E-4CDA-BD0D-5721385E78DE","shape":{"__isSmartRef__":true,"id":34988},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":34989},"textChunks":[{"__isSmartRef__":true,"id":35001}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":35003},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":34986},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"34988":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"34989":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":34990},{"__isSmartRef__":true,"id":34992},{"__isSmartRef__":true,"id":34994},{"__isSmartRef__":true,"id":34996},{"__isSmartRef__":true,"id":34998}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":35000},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"34990":{"date":{"__isSmartRef__":true,"id":34991},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"34991":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"34992":{"date":{"__isSmartRef__":true,"id":34993},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"34993":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"34994":{"date":{"__isSmartRef__":true,"id":34995},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"34995":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"34996":{"date":{"__isSmartRef__":true,"id":34997},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"34997":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"34998":{"date":{"__isSmartRef__":true,"id":34999},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"34999":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"35000":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"35001":{"style":{"__isSmartRef__":true,"id":35002},"morph":{"__isSmartRef__":true,"id":34987},"chunkOwner":{"__isSmartRef__":true,"id":34987},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"35002":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"35003":{"morph":{"__isSmartRef__":true,"id":34987},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"35004":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"35005":{"morph":{"__isSmartRef__":true,"id":34986},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"35006":{},"35007":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":35008}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"35008":{"date":{"__isSmartRef__":true,"id":35009},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"35009":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"35010":{"submorphs":[{"__isSmartRef__":true,"id":35011}],"scripts":[],"shape":{"__isSmartRef__":true,"id":35028},"id":"88C55DC8-BA01-4AFE-98D7-34FE7B8E4240","eventHandler":{"__isSmartRef__":true,"id":35029},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":35030},"name":"node230","partsBinMetaInfo":{"__isSmartRef__":true,"id":35031},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5889},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":34986},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":35034},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(1041.3,210.0)"},"35011":{"submorphs":[],"scripts":[],"id":"49E829A8-CE79-450D-9D6B-1EDC6E373A9F","shape":{"__isSmartRef__":true,"id":35012},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":35013},"textChunks":[{"__isSmartRef__":true,"id":35025}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":35027},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":35010},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"35012":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"35013":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":35014},{"__isSmartRef__":true,"id":35016},{"__isSmartRef__":true,"id":35018},{"__isSmartRef__":true,"id":35020},{"__isSmartRef__":true,"id":35022}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":35024},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"35014":{"date":{"__isSmartRef__":true,"id":35015},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"35015":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"35016":{"date":{"__isSmartRef__":true,"id":35017},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"35017":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"35018":{"date":{"__isSmartRef__":true,"id":35019},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"35019":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"35020":{"date":{"__isSmartRef__":true,"id":35021},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"35021":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"35022":{"date":{"__isSmartRef__":true,"id":35023},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"35023":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"35024":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"35025":{"style":{"__isSmartRef__":true,"id":35026},"morph":{"__isSmartRef__":true,"id":35011},"chunkOwner":{"__isSmartRef__":true,"id":35011},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"35026":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"35027":{"morph":{"__isSmartRef__":true,"id":35011},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"35028":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"35029":{"morph":{"__isSmartRef__":true,"id":35010},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"35030":{},"35031":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":35032}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"35032":{"date":{"__isSmartRef__":true,"id":35033},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"35033":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"35034":{"buildChildNodes":{"__isSmartRef__":true,"id":35035},"getGameTree":{"__isSmartRef__":true,"id":35039},"getLevel":{"__isSmartRef__":true,"id":35043},"getLevelWeight":{"__isSmartRef__":true,"id":35047},"getWeight":{"__isSmartRef__":true,"id":35051},"setNode":{"__isSmartRef__":true,"id":35055},"setParent":{"__isSmartRef__":true,"id":35059},"getParent":{"__isSmartRef__":true,"id":35063},"deactivate":{"__isSmartRef__":true,"id":35067},"blink":{"__isSmartRef__":true,"id":35071},"ABPreturn":{"__isSmartRef__":true,"id":35075},"ABPstart":{"__isSmartRef__":true,"id":35079},"ABPcontinue":{"__isSmartRef__":true,"id":35083},"ABPshowValue":{"__isSmartRef__":true,"id":35087},"ABPgetValue":{"__isSmartRef__":true,"id":35091},"ABPhasChildNodes":{"__isSmartRef__":true,"id":35095},"onMouseDown":{"__isSmartRef__":true,"id":35099},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":35107},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":35111},"ABPmarkAsDone":{"__isSmartRef__":true,"id":35115},"ABPmarkAsActive":{"__isSmartRef__":true,"id":35119},"getStateMorph":{"__isSmartRef__":true,"id":35123},"showState":{"__isSmartRef__":true,"id":35127},"ABPfailHard":{"__isSmartRef__":true,"id":35131},"markFinalDrawWith":{"__isSmartRef__":true,"id":35135}},"35035":{"varMapping":{"__isSmartRef__":true,"id":35036},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":35037},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35036":{"this":{"__isSmartRef__":true,"id":35010}},"35037":{"timestamp":{"__isSmartRef__":true,"id":35038},"user":"sebastianwoinar","tags":[]},"35038":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"35039":{"varMapping":{"__isSmartRef__":true,"id":35040},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":35041},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35040":{"this":{"__isSmartRef__":true,"id":35010}},"35041":{"timestamp":{"__isSmartRef__":true,"id":35042},"user":"sebastianwoinar","tags":[]},"35042":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35043":{"varMapping":{"__isSmartRef__":true,"id":35044},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":35045},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35044":{"this":{"__isSmartRef__":true,"id":35010}},"35045":{"timestamp":{"__isSmartRef__":true,"id":35046},"user":"sebastianwoinar","tags":[]},"35046":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35047":{"varMapping":{"__isSmartRef__":true,"id":35048},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":35049},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35048":{"this":{"__isSmartRef__":true,"id":35010}},"35049":{"timestamp":{"__isSmartRef__":true,"id":35050},"user":"sebastianwoinar","tags":[]},"35050":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35051":{"varMapping":{"__isSmartRef__":true,"id":35052},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":35053},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35052":{"this":{"__isSmartRef__":true,"id":35010}},"35053":{"timestamp":{"__isSmartRef__":true,"id":35054},"user":"sebastianwoinar","tags":[]},"35054":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35055":{"varMapping":{"__isSmartRef__":true,"id":35056},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":35057},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35056":{"this":{"__isSmartRef__":true,"id":35010}},"35057":{"timestamp":{"__isSmartRef__":true,"id":35058},"user":"sebastianwoinar","tags":[]},"35058":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35059":{"varMapping":{"__isSmartRef__":true,"id":35060},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":35061},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35060":{"this":{"__isSmartRef__":true,"id":35010}},"35061":{"timestamp":{"__isSmartRef__":true,"id":35062},"user":"sebastianwoinar","tags":[]},"35062":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35063":{"varMapping":{"__isSmartRef__":true,"id":35064},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":35065},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35064":{"this":{"__isSmartRef__":true,"id":35010}},"35065":{"timestamp":{"__isSmartRef__":true,"id":35066},"user":"sebastianwoinar","tags":[]},"35066":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"35067":{"varMapping":{"__isSmartRef__":true,"id":35068},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":35069},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35068":{"this":{"__isSmartRef__":true,"id":35010}},"35069":{"timestamp":{"__isSmartRef__":true,"id":35070},"user":"sebastianwoinar","tags":[]},"35070":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"35071":{"varMapping":{"__isSmartRef__":true,"id":35072},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":35073},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35072":{"this":{"__isSmartRef__":true,"id":35010}},"35073":{"timestamp":{"__isSmartRef__":true,"id":35074},"user":"sebastianwoinar","tags":[]},"35074":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"35075":{"varMapping":{"__isSmartRef__":true,"id":35076},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":35077},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35076":{"this":{"__isSmartRef__":true,"id":35010}},"35077":{"timestamp":{"__isSmartRef__":true,"id":35078},"user":"sebastianwoinar","tags":[]},"35078":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"35079":{"varMapping":{"__isSmartRef__":true,"id":35080},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":35081},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35080":{"this":{"__isSmartRef__":true,"id":35010}},"35081":{"timestamp":{"__isSmartRef__":true,"id":35082},"user":"sebastianwoinar","tags":[]},"35082":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"35083":{"varMapping":{"__isSmartRef__":true,"id":35084},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":35085},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35084":{"this":{"__isSmartRef__":true,"id":35010}},"35085":{"timestamp":{"__isSmartRef__":true,"id":35086},"user":"sebastianwoinar","tags":[]},"35086":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"35087":{"varMapping":{"__isSmartRef__":true,"id":35088},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":35089},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35088":{"this":{"__isSmartRef__":true,"id":35010}},"35089":{"timestamp":{"__isSmartRef__":true,"id":35090},"user":"sebastianwoinar","tags":[]},"35090":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"35091":{"varMapping":{"__isSmartRef__":true,"id":35092},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":35093},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35092":{"this":{"__isSmartRef__":true,"id":35010}},"35093":{"timestamp":{"__isSmartRef__":true,"id":35094},"user":"sebastianwoinar","tags":[]},"35094":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"35095":{"varMapping":{"__isSmartRef__":true,"id":35096},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":35097},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35096":{"this":{"__isSmartRef__":true,"id":35010}},"35097":{"timestamp":{"__isSmartRef__":true,"id":35098},"user":"sebastianwoinar","tags":[]},"35098":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"35099":{"varMapping":{"__isSmartRef__":true,"id":35100},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":35105},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35100":{"this":{"__isSmartRef__":true,"id":35010},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":35101}},"35101":{"$super":{"__isSmartRef__":true,"id":35102}},"35102":{"varMapping":{"__isSmartRef__":true,"id":35103},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":35104},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35103":{"obj":{"__isSmartRef__":true,"id":35010},"name":"onMouseDown"},"35104":{},"35105":{"timestamp":{"__isSmartRef__":true,"id":35106},"user":"sebastianwoinar","tags":[]},"35106":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"35107":{"varMapping":{"__isSmartRef__":true,"id":35108},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":35109},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35108":{"this":{"__isSmartRef__":true,"id":35010}},"35109":{"timestamp":{"__isSmartRef__":true,"id":35110},"user":"sebastianwoinar","tags":[]},"35110":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"35111":{"varMapping":{"__isSmartRef__":true,"id":35112},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":35113},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35112":{"this":{"__isSmartRef__":true,"id":35010}},"35113":{"timestamp":{"__isSmartRef__":true,"id":35114},"user":"sebastianwoinar","tags":[]},"35114":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"35115":{"varMapping":{"__isSmartRef__":true,"id":35116},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":35117},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35116":{"this":{"__isSmartRef__":true,"id":35010}},"35117":{"timestamp":{"__isSmartRef__":true,"id":35118},"user":"sebastianwoinar","tags":[]},"35118":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"35119":{"varMapping":{"__isSmartRef__":true,"id":35120},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":35121},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35120":{"this":{"__isSmartRef__":true,"id":35010}},"35121":{"timestamp":{"__isSmartRef__":true,"id":35122},"user":"sebastianwoinar","tags":[]},"35122":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"35123":{"varMapping":{"__isSmartRef__":true,"id":35124},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":35125},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35124":{"this":{"__isSmartRef__":true,"id":35010}},"35125":{"timestamp":{"__isSmartRef__":true,"id":35126},"user":"sebastianwoinar","tags":[]},"35126":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"35127":{"varMapping":{"__isSmartRef__":true,"id":35128},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":35129},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35128":{"this":{"__isSmartRef__":true,"id":35010}},"35129":{"timestamp":{"__isSmartRef__":true,"id":35130},"user":"sebastianwoinar","tags":[]},"35130":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"35131":{"varMapping":{"__isSmartRef__":true,"id":35132},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":35133},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35132":{"this":{"__isSmartRef__":true,"id":35010}},"35133":{"timestamp":{"__isSmartRef__":true,"id":35134},"user":"sebastianwoinar","tags":[]},"35134":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"35135":{"varMapping":{"__isSmartRef__":true,"id":35136},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":35137},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35136":{"this":{"__isSmartRef__":true,"id":35010}},"35137":{"timestamp":{"__isSmartRef__":true,"id":35138},"user":"sebastianwoinar","tags":[]},"35138":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"35139":{"submorphs":[{"__isSmartRef__":true,"id":35140}],"scripts":[],"shape":{"__isSmartRef__":true,"id":35157},"id":"E6F65876-29F4-4FE8-A74C-C132223246A7","eventHandler":{"__isSmartRef__":true,"id":35158},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":35159},"name":"node231","partsBinMetaInfo":{"__isSmartRef__":true,"id":35160},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5891},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":34986},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":35163},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(1046.5,210.0)"},"35140":{"submorphs":[],"scripts":[],"id":"254943F7-B2D5-41A2-A0DF-0B694F7F0DFC","shape":{"__isSmartRef__":true,"id":35141},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":35142},"textChunks":[{"__isSmartRef__":true,"id":35154}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":35156},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":35139},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"35141":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"35142":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":35143},{"__isSmartRef__":true,"id":35145},{"__isSmartRef__":true,"id":35147},{"__isSmartRef__":true,"id":35149},{"__isSmartRef__":true,"id":35151}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":35153},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"35143":{"date":{"__isSmartRef__":true,"id":35144},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"35144":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"35145":{"date":{"__isSmartRef__":true,"id":35146},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"35146":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"35147":{"date":{"__isSmartRef__":true,"id":35148},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"35148":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"35149":{"date":{"__isSmartRef__":true,"id":35150},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"35150":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"35151":{"date":{"__isSmartRef__":true,"id":35152},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"35152":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"35153":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"35154":{"style":{"__isSmartRef__":true,"id":35155},"morph":{"__isSmartRef__":true,"id":35140},"chunkOwner":{"__isSmartRef__":true,"id":35140},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"35155":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"35156":{"morph":{"__isSmartRef__":true,"id":35140},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"35157":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"35158":{"morph":{"__isSmartRef__":true,"id":35139},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"35159":{},"35160":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":35161}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"35161":{"date":{"__isSmartRef__":true,"id":35162},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"35162":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"35163":{"buildChildNodes":{"__isSmartRef__":true,"id":35164},"getGameTree":{"__isSmartRef__":true,"id":35168},"getLevel":{"__isSmartRef__":true,"id":35172},"getLevelWeight":{"__isSmartRef__":true,"id":35176},"getWeight":{"__isSmartRef__":true,"id":35180},"setNode":{"__isSmartRef__":true,"id":35184},"setParent":{"__isSmartRef__":true,"id":35188},"getParent":{"__isSmartRef__":true,"id":35192},"deactivate":{"__isSmartRef__":true,"id":35196},"blink":{"__isSmartRef__":true,"id":35200},"ABPreturn":{"__isSmartRef__":true,"id":35204},"ABPstart":{"__isSmartRef__":true,"id":35208},"ABPcontinue":{"__isSmartRef__":true,"id":35212},"ABPshowValue":{"__isSmartRef__":true,"id":35216},"ABPgetValue":{"__isSmartRef__":true,"id":35220},"ABPhasChildNodes":{"__isSmartRef__":true,"id":35224},"onMouseDown":{"__isSmartRef__":true,"id":35228},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":35236},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":35240},"ABPmarkAsDone":{"__isSmartRef__":true,"id":35244},"ABPmarkAsActive":{"__isSmartRef__":true,"id":35248},"getStateMorph":{"__isSmartRef__":true,"id":35252},"showState":{"__isSmartRef__":true,"id":35256},"ABPfailHard":{"__isSmartRef__":true,"id":35260},"markFinalDrawWith":{"__isSmartRef__":true,"id":35264}},"35164":{"varMapping":{"__isSmartRef__":true,"id":35165},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":35166},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35165":{"this":{"__isSmartRef__":true,"id":35139}},"35166":{"timestamp":{"__isSmartRef__":true,"id":35167},"user":"sebastianwoinar","tags":[]},"35167":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"35168":{"varMapping":{"__isSmartRef__":true,"id":35169},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":35170},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35169":{"this":{"__isSmartRef__":true,"id":35139}},"35170":{"timestamp":{"__isSmartRef__":true,"id":35171},"user":"sebastianwoinar","tags":[]},"35171":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35172":{"varMapping":{"__isSmartRef__":true,"id":35173},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":35174},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35173":{"this":{"__isSmartRef__":true,"id":35139}},"35174":{"timestamp":{"__isSmartRef__":true,"id":35175},"user":"sebastianwoinar","tags":[]},"35175":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35176":{"varMapping":{"__isSmartRef__":true,"id":35177},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":35178},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35177":{"this":{"__isSmartRef__":true,"id":35139}},"35178":{"timestamp":{"__isSmartRef__":true,"id":35179},"user":"sebastianwoinar","tags":[]},"35179":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35180":{"varMapping":{"__isSmartRef__":true,"id":35181},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":35182},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35181":{"this":{"__isSmartRef__":true,"id":35139}},"35182":{"timestamp":{"__isSmartRef__":true,"id":35183},"user":"sebastianwoinar","tags":[]},"35183":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35184":{"varMapping":{"__isSmartRef__":true,"id":35185},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":35186},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35185":{"this":{"__isSmartRef__":true,"id":35139}},"35186":{"timestamp":{"__isSmartRef__":true,"id":35187},"user":"sebastianwoinar","tags":[]},"35187":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35188":{"varMapping":{"__isSmartRef__":true,"id":35189},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":35190},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35189":{"this":{"__isSmartRef__":true,"id":35139}},"35190":{"timestamp":{"__isSmartRef__":true,"id":35191},"user":"sebastianwoinar","tags":[]},"35191":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35192":{"varMapping":{"__isSmartRef__":true,"id":35193},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":35194},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35193":{"this":{"__isSmartRef__":true,"id":35139}},"35194":{"timestamp":{"__isSmartRef__":true,"id":35195},"user":"sebastianwoinar","tags":[]},"35195":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"35196":{"varMapping":{"__isSmartRef__":true,"id":35197},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":35198},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35197":{"this":{"__isSmartRef__":true,"id":35139}},"35198":{"timestamp":{"__isSmartRef__":true,"id":35199},"user":"sebastianwoinar","tags":[]},"35199":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"35200":{"varMapping":{"__isSmartRef__":true,"id":35201},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":35202},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35201":{"this":{"__isSmartRef__":true,"id":35139}},"35202":{"timestamp":{"__isSmartRef__":true,"id":35203},"user":"sebastianwoinar","tags":[]},"35203":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"35204":{"varMapping":{"__isSmartRef__":true,"id":35205},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":35206},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35205":{"this":{"__isSmartRef__":true,"id":35139}},"35206":{"timestamp":{"__isSmartRef__":true,"id":35207},"user":"sebastianwoinar","tags":[]},"35207":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"35208":{"varMapping":{"__isSmartRef__":true,"id":35209},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":35210},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35209":{"this":{"__isSmartRef__":true,"id":35139}},"35210":{"timestamp":{"__isSmartRef__":true,"id":35211},"user":"sebastianwoinar","tags":[]},"35211":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"35212":{"varMapping":{"__isSmartRef__":true,"id":35213},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":35214},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35213":{"this":{"__isSmartRef__":true,"id":35139}},"35214":{"timestamp":{"__isSmartRef__":true,"id":35215},"user":"sebastianwoinar","tags":[]},"35215":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"35216":{"varMapping":{"__isSmartRef__":true,"id":35217},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":35218},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35217":{"this":{"__isSmartRef__":true,"id":35139}},"35218":{"timestamp":{"__isSmartRef__":true,"id":35219},"user":"sebastianwoinar","tags":[]},"35219":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"35220":{"varMapping":{"__isSmartRef__":true,"id":35221},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":35222},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35221":{"this":{"__isSmartRef__":true,"id":35139}},"35222":{"timestamp":{"__isSmartRef__":true,"id":35223},"user":"sebastianwoinar","tags":[]},"35223":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"35224":{"varMapping":{"__isSmartRef__":true,"id":35225},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":35226},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35225":{"this":{"__isSmartRef__":true,"id":35139}},"35226":{"timestamp":{"__isSmartRef__":true,"id":35227},"user":"sebastianwoinar","tags":[]},"35227":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"35228":{"varMapping":{"__isSmartRef__":true,"id":35229},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":35234},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35229":{"this":{"__isSmartRef__":true,"id":35139},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":35230}},"35230":{"$super":{"__isSmartRef__":true,"id":35231}},"35231":{"varMapping":{"__isSmartRef__":true,"id":35232},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":35233},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35232":{"obj":{"__isSmartRef__":true,"id":35139},"name":"onMouseDown"},"35233":{},"35234":{"timestamp":{"__isSmartRef__":true,"id":35235},"user":"sebastianwoinar","tags":[]},"35235":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"35236":{"varMapping":{"__isSmartRef__":true,"id":35237},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":35238},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35237":{"this":{"__isSmartRef__":true,"id":35139}},"35238":{"timestamp":{"__isSmartRef__":true,"id":35239},"user":"sebastianwoinar","tags":[]},"35239":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"35240":{"varMapping":{"__isSmartRef__":true,"id":35241},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":35242},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35241":{"this":{"__isSmartRef__":true,"id":35139}},"35242":{"timestamp":{"__isSmartRef__":true,"id":35243},"user":"sebastianwoinar","tags":[]},"35243":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"35244":{"varMapping":{"__isSmartRef__":true,"id":35245},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":35246},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35245":{"this":{"__isSmartRef__":true,"id":35139}},"35246":{"timestamp":{"__isSmartRef__":true,"id":35247},"user":"sebastianwoinar","tags":[]},"35247":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"35248":{"varMapping":{"__isSmartRef__":true,"id":35249},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":35250},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35249":{"this":{"__isSmartRef__":true,"id":35139}},"35250":{"timestamp":{"__isSmartRef__":true,"id":35251},"user":"sebastianwoinar","tags":[]},"35251":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"35252":{"varMapping":{"__isSmartRef__":true,"id":35253},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":35254},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35253":{"this":{"__isSmartRef__":true,"id":35139}},"35254":{"timestamp":{"__isSmartRef__":true,"id":35255},"user":"sebastianwoinar","tags":[]},"35255":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"35256":{"varMapping":{"__isSmartRef__":true,"id":35257},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":35258},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35257":{"this":{"__isSmartRef__":true,"id":35139}},"35258":{"timestamp":{"__isSmartRef__":true,"id":35259},"user":"sebastianwoinar","tags":[]},"35259":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"35260":{"varMapping":{"__isSmartRef__":true,"id":35261},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":35262},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35261":{"this":{"__isSmartRef__":true,"id":35139}},"35262":{"timestamp":{"__isSmartRef__":true,"id":35263},"user":"sebastianwoinar","tags":[]},"35263":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"35264":{"varMapping":{"__isSmartRef__":true,"id":35265},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":35266},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35265":{"this":{"__isSmartRef__":true,"id":35139}},"35266":{"timestamp":{"__isSmartRef__":true,"id":35267},"user":"sebastianwoinar","tags":[]},"35267":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"35268":{"submorphs":[{"__isSmartRef__":true,"id":35269}],"scripts":[],"shape":{"__isSmartRef__":true,"id":35286},"id":"3079F356-A593-4C3F-93AF-B1D6E307F4D1","eventHandler":{"__isSmartRef__":true,"id":35287},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":35288},"name":"node232","partsBinMetaInfo":{"__isSmartRef__":true,"id":35289},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5893},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":34986},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":35292},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(1051.6,210.0)"},"35269":{"submorphs":[],"scripts":[],"id":"8D414F76-8010-46AA-B8A4-BE23861597E8","shape":{"__isSmartRef__":true,"id":35270},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":35271},"textChunks":[{"__isSmartRef__":true,"id":35283}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":35285},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":35268},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"35270":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"35271":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":35272},{"__isSmartRef__":true,"id":35274},{"__isSmartRef__":true,"id":35276},{"__isSmartRef__":true,"id":35278},{"__isSmartRef__":true,"id":35280}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":35282},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"35272":{"date":{"__isSmartRef__":true,"id":35273},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"35273":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"35274":{"date":{"__isSmartRef__":true,"id":35275},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"35275":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"35276":{"date":{"__isSmartRef__":true,"id":35277},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"35277":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"35278":{"date":{"__isSmartRef__":true,"id":35279},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"35279":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"35280":{"date":{"__isSmartRef__":true,"id":35281},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"35281":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"35282":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"35283":{"style":{"__isSmartRef__":true,"id":35284},"morph":{"__isSmartRef__":true,"id":35269},"chunkOwner":{"__isSmartRef__":true,"id":35269},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"35284":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"35285":{"morph":{"__isSmartRef__":true,"id":35269},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"35286":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"35287":{"morph":{"__isSmartRef__":true,"id":35268},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"35288":{},"35289":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":35290}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"35290":{"date":{"__isSmartRef__":true,"id":35291},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"35291":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"35292":{"buildChildNodes":{"__isSmartRef__":true,"id":35293},"getGameTree":{"__isSmartRef__":true,"id":35297},"getLevel":{"__isSmartRef__":true,"id":35301},"getLevelWeight":{"__isSmartRef__":true,"id":35305},"getWeight":{"__isSmartRef__":true,"id":35309},"setNode":{"__isSmartRef__":true,"id":35313},"setParent":{"__isSmartRef__":true,"id":35317},"getParent":{"__isSmartRef__":true,"id":35321},"deactivate":{"__isSmartRef__":true,"id":35325},"blink":{"__isSmartRef__":true,"id":35329},"ABPreturn":{"__isSmartRef__":true,"id":35333},"ABPstart":{"__isSmartRef__":true,"id":35337},"ABPcontinue":{"__isSmartRef__":true,"id":35341},"ABPshowValue":{"__isSmartRef__":true,"id":35345},"ABPgetValue":{"__isSmartRef__":true,"id":35349},"ABPhasChildNodes":{"__isSmartRef__":true,"id":35353},"onMouseDown":{"__isSmartRef__":true,"id":35357},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":35365},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":35369},"ABPmarkAsDone":{"__isSmartRef__":true,"id":35373},"ABPmarkAsActive":{"__isSmartRef__":true,"id":35377},"getStateMorph":{"__isSmartRef__":true,"id":35381},"showState":{"__isSmartRef__":true,"id":35385},"ABPfailHard":{"__isSmartRef__":true,"id":35389},"markFinalDrawWith":{"__isSmartRef__":true,"id":35393}},"35293":{"varMapping":{"__isSmartRef__":true,"id":35294},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":35295},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35294":{"this":{"__isSmartRef__":true,"id":35268}},"35295":{"timestamp":{"__isSmartRef__":true,"id":35296},"user":"sebastianwoinar","tags":[]},"35296":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"35297":{"varMapping":{"__isSmartRef__":true,"id":35298},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":35299},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35298":{"this":{"__isSmartRef__":true,"id":35268}},"35299":{"timestamp":{"__isSmartRef__":true,"id":35300},"user":"sebastianwoinar","tags":[]},"35300":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35301":{"varMapping":{"__isSmartRef__":true,"id":35302},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":35303},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35302":{"this":{"__isSmartRef__":true,"id":35268}},"35303":{"timestamp":{"__isSmartRef__":true,"id":35304},"user":"sebastianwoinar","tags":[]},"35304":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35305":{"varMapping":{"__isSmartRef__":true,"id":35306},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":35307},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35306":{"this":{"__isSmartRef__":true,"id":35268}},"35307":{"timestamp":{"__isSmartRef__":true,"id":35308},"user":"sebastianwoinar","tags":[]},"35308":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35309":{"varMapping":{"__isSmartRef__":true,"id":35310},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":35311},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35310":{"this":{"__isSmartRef__":true,"id":35268}},"35311":{"timestamp":{"__isSmartRef__":true,"id":35312},"user":"sebastianwoinar","tags":[]},"35312":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35313":{"varMapping":{"__isSmartRef__":true,"id":35314},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":35315},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35314":{"this":{"__isSmartRef__":true,"id":35268}},"35315":{"timestamp":{"__isSmartRef__":true,"id":35316},"user":"sebastianwoinar","tags":[]},"35316":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35317":{"varMapping":{"__isSmartRef__":true,"id":35318},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":35319},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35318":{"this":{"__isSmartRef__":true,"id":35268}},"35319":{"timestamp":{"__isSmartRef__":true,"id":35320},"user":"sebastianwoinar","tags":[]},"35320":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35321":{"varMapping":{"__isSmartRef__":true,"id":35322},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":35323},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35322":{"this":{"__isSmartRef__":true,"id":35268}},"35323":{"timestamp":{"__isSmartRef__":true,"id":35324},"user":"sebastianwoinar","tags":[]},"35324":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"35325":{"varMapping":{"__isSmartRef__":true,"id":35326},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":35327},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35326":{"this":{"__isSmartRef__":true,"id":35268}},"35327":{"timestamp":{"__isSmartRef__":true,"id":35328},"user":"sebastianwoinar","tags":[]},"35328":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"35329":{"varMapping":{"__isSmartRef__":true,"id":35330},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":35331},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35330":{"this":{"__isSmartRef__":true,"id":35268}},"35331":{"timestamp":{"__isSmartRef__":true,"id":35332},"user":"sebastianwoinar","tags":[]},"35332":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"35333":{"varMapping":{"__isSmartRef__":true,"id":35334},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":35335},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35334":{"this":{"__isSmartRef__":true,"id":35268}},"35335":{"timestamp":{"__isSmartRef__":true,"id":35336},"user":"sebastianwoinar","tags":[]},"35336":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"35337":{"varMapping":{"__isSmartRef__":true,"id":35338},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":35339},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35338":{"this":{"__isSmartRef__":true,"id":35268}},"35339":{"timestamp":{"__isSmartRef__":true,"id":35340},"user":"sebastianwoinar","tags":[]},"35340":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"35341":{"varMapping":{"__isSmartRef__":true,"id":35342},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":35343},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35342":{"this":{"__isSmartRef__":true,"id":35268}},"35343":{"timestamp":{"__isSmartRef__":true,"id":35344},"user":"sebastianwoinar","tags":[]},"35344":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"35345":{"varMapping":{"__isSmartRef__":true,"id":35346},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":35347},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35346":{"this":{"__isSmartRef__":true,"id":35268}},"35347":{"timestamp":{"__isSmartRef__":true,"id":35348},"user":"sebastianwoinar","tags":[]},"35348":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"35349":{"varMapping":{"__isSmartRef__":true,"id":35350},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":35351},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35350":{"this":{"__isSmartRef__":true,"id":35268}},"35351":{"timestamp":{"__isSmartRef__":true,"id":35352},"user":"sebastianwoinar","tags":[]},"35352":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"35353":{"varMapping":{"__isSmartRef__":true,"id":35354},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":35355},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35354":{"this":{"__isSmartRef__":true,"id":35268}},"35355":{"timestamp":{"__isSmartRef__":true,"id":35356},"user":"sebastianwoinar","tags":[]},"35356":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"35357":{"varMapping":{"__isSmartRef__":true,"id":35358},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":35363},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35358":{"this":{"__isSmartRef__":true,"id":35268},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":35359}},"35359":{"$super":{"__isSmartRef__":true,"id":35360}},"35360":{"varMapping":{"__isSmartRef__":true,"id":35361},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":35362},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35361":{"obj":{"__isSmartRef__":true,"id":35268},"name":"onMouseDown"},"35362":{},"35363":{"timestamp":{"__isSmartRef__":true,"id":35364},"user":"sebastianwoinar","tags":[]},"35364":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"35365":{"varMapping":{"__isSmartRef__":true,"id":35366},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":35367},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35366":{"this":{"__isSmartRef__":true,"id":35268}},"35367":{"timestamp":{"__isSmartRef__":true,"id":35368},"user":"sebastianwoinar","tags":[]},"35368":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"35369":{"varMapping":{"__isSmartRef__":true,"id":35370},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":35371},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35370":{"this":{"__isSmartRef__":true,"id":35268}},"35371":{"timestamp":{"__isSmartRef__":true,"id":35372},"user":"sebastianwoinar","tags":[]},"35372":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"35373":{"varMapping":{"__isSmartRef__":true,"id":35374},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":35375},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35374":{"this":{"__isSmartRef__":true,"id":35268}},"35375":{"timestamp":{"__isSmartRef__":true,"id":35376},"user":"sebastianwoinar","tags":[]},"35376":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"35377":{"varMapping":{"__isSmartRef__":true,"id":35378},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":35379},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35378":{"this":{"__isSmartRef__":true,"id":35268}},"35379":{"timestamp":{"__isSmartRef__":true,"id":35380},"user":"sebastianwoinar","tags":[]},"35380":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"35381":{"varMapping":{"__isSmartRef__":true,"id":35382},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":35383},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35382":{"this":{"__isSmartRef__":true,"id":35268}},"35383":{"timestamp":{"__isSmartRef__":true,"id":35384},"user":"sebastianwoinar","tags":[]},"35384":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"35385":{"varMapping":{"__isSmartRef__":true,"id":35386},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":35387},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35386":{"this":{"__isSmartRef__":true,"id":35268}},"35387":{"timestamp":{"__isSmartRef__":true,"id":35388},"user":"sebastianwoinar","tags":[]},"35388":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"35389":{"varMapping":{"__isSmartRef__":true,"id":35390},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":35391},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35390":{"this":{"__isSmartRef__":true,"id":35268}},"35391":{"timestamp":{"__isSmartRef__":true,"id":35392},"user":"sebastianwoinar","tags":[]},"35392":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"35393":{"varMapping":{"__isSmartRef__":true,"id":35394},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":35395},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35394":{"this":{"__isSmartRef__":true,"id":35268}},"35395":{"timestamp":{"__isSmartRef__":true,"id":35396},"user":"sebastianwoinar","tags":[]},"35396":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"35397":{"submorphs":[{"__isSmartRef__":true,"id":35398}],"scripts":[],"shape":{"__isSmartRef__":true,"id":35415},"id":"614FD485-38C8-48B7-9339-F4D8A77C2FDC","eventHandler":{"__isSmartRef__":true,"id":35416},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":35417},"name":"node233","partsBinMetaInfo":{"__isSmartRef__":true,"id":35418},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5895},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":34986},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":35421},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(1056.8,210.0)"},"35398":{"submorphs":[],"scripts":[],"id":"377906EF-3E6D-4A69-8E6F-CA4939E14BF5","shape":{"__isSmartRef__":true,"id":35399},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":35400},"textChunks":[{"__isSmartRef__":true,"id":35412}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":35414},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":35397},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"35399":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"35400":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":35401},{"__isSmartRef__":true,"id":35403},{"__isSmartRef__":true,"id":35405},{"__isSmartRef__":true,"id":35407},{"__isSmartRef__":true,"id":35409}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":35411},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"35401":{"date":{"__isSmartRef__":true,"id":35402},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"35402":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"35403":{"date":{"__isSmartRef__":true,"id":35404},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"35404":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"35405":{"date":{"__isSmartRef__":true,"id":35406},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"35406":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"35407":{"date":{"__isSmartRef__":true,"id":35408},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"35408":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"35409":{"date":{"__isSmartRef__":true,"id":35410},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"35410":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"35411":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"35412":{"style":{"__isSmartRef__":true,"id":35413},"morph":{"__isSmartRef__":true,"id":35398},"chunkOwner":{"__isSmartRef__":true,"id":35398},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"35413":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"35414":{"morph":{"__isSmartRef__":true,"id":35398},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"35415":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"35416":{"morph":{"__isSmartRef__":true,"id":35397},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"35417":{},"35418":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":35419}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"35419":{"date":{"__isSmartRef__":true,"id":35420},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"35420":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"35421":{"buildChildNodes":{"__isSmartRef__":true,"id":35422},"getGameTree":{"__isSmartRef__":true,"id":35426},"getLevel":{"__isSmartRef__":true,"id":35430},"getLevelWeight":{"__isSmartRef__":true,"id":35434},"getWeight":{"__isSmartRef__":true,"id":35438},"setNode":{"__isSmartRef__":true,"id":35442},"setParent":{"__isSmartRef__":true,"id":35446},"getParent":{"__isSmartRef__":true,"id":35450},"deactivate":{"__isSmartRef__":true,"id":35454},"blink":{"__isSmartRef__":true,"id":35458},"ABPreturn":{"__isSmartRef__":true,"id":35462},"ABPstart":{"__isSmartRef__":true,"id":35466},"ABPcontinue":{"__isSmartRef__":true,"id":35470},"ABPshowValue":{"__isSmartRef__":true,"id":35474},"ABPgetValue":{"__isSmartRef__":true,"id":35478},"ABPhasChildNodes":{"__isSmartRef__":true,"id":35482},"onMouseDown":{"__isSmartRef__":true,"id":35486},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":35494},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":35498},"ABPmarkAsDone":{"__isSmartRef__":true,"id":35502},"ABPmarkAsActive":{"__isSmartRef__":true,"id":35506},"getStateMorph":{"__isSmartRef__":true,"id":35510},"showState":{"__isSmartRef__":true,"id":35514},"ABPfailHard":{"__isSmartRef__":true,"id":35518},"markFinalDrawWith":{"__isSmartRef__":true,"id":35522}},"35422":{"varMapping":{"__isSmartRef__":true,"id":35423},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":35424},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35423":{"this":{"__isSmartRef__":true,"id":35397}},"35424":{"timestamp":{"__isSmartRef__":true,"id":35425},"user":"sebastianwoinar","tags":[]},"35425":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"35426":{"varMapping":{"__isSmartRef__":true,"id":35427},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":35428},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35427":{"this":{"__isSmartRef__":true,"id":35397}},"35428":{"timestamp":{"__isSmartRef__":true,"id":35429},"user":"sebastianwoinar","tags":[]},"35429":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35430":{"varMapping":{"__isSmartRef__":true,"id":35431},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":35432},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35431":{"this":{"__isSmartRef__":true,"id":35397}},"35432":{"timestamp":{"__isSmartRef__":true,"id":35433},"user":"sebastianwoinar","tags":[]},"35433":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35434":{"varMapping":{"__isSmartRef__":true,"id":35435},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":35436},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35435":{"this":{"__isSmartRef__":true,"id":35397}},"35436":{"timestamp":{"__isSmartRef__":true,"id":35437},"user":"sebastianwoinar","tags":[]},"35437":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35438":{"varMapping":{"__isSmartRef__":true,"id":35439},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":35440},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35439":{"this":{"__isSmartRef__":true,"id":35397}},"35440":{"timestamp":{"__isSmartRef__":true,"id":35441},"user":"sebastianwoinar","tags":[]},"35441":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35442":{"varMapping":{"__isSmartRef__":true,"id":35443},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":35444},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35443":{"this":{"__isSmartRef__":true,"id":35397}},"35444":{"timestamp":{"__isSmartRef__":true,"id":35445},"user":"sebastianwoinar","tags":[]},"35445":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35446":{"varMapping":{"__isSmartRef__":true,"id":35447},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":35448},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35447":{"this":{"__isSmartRef__":true,"id":35397}},"35448":{"timestamp":{"__isSmartRef__":true,"id":35449},"user":"sebastianwoinar","tags":[]},"35449":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35450":{"varMapping":{"__isSmartRef__":true,"id":35451},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":35452},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35451":{"this":{"__isSmartRef__":true,"id":35397}},"35452":{"timestamp":{"__isSmartRef__":true,"id":35453},"user":"sebastianwoinar","tags":[]},"35453":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"35454":{"varMapping":{"__isSmartRef__":true,"id":35455},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":35456},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35455":{"this":{"__isSmartRef__":true,"id":35397}},"35456":{"timestamp":{"__isSmartRef__":true,"id":35457},"user":"sebastianwoinar","tags":[]},"35457":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"35458":{"varMapping":{"__isSmartRef__":true,"id":35459},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":35460},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35459":{"this":{"__isSmartRef__":true,"id":35397}},"35460":{"timestamp":{"__isSmartRef__":true,"id":35461},"user":"sebastianwoinar","tags":[]},"35461":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"35462":{"varMapping":{"__isSmartRef__":true,"id":35463},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":35464},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35463":{"this":{"__isSmartRef__":true,"id":35397}},"35464":{"timestamp":{"__isSmartRef__":true,"id":35465},"user":"sebastianwoinar","tags":[]},"35465":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"35466":{"varMapping":{"__isSmartRef__":true,"id":35467},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":35468},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35467":{"this":{"__isSmartRef__":true,"id":35397}},"35468":{"timestamp":{"__isSmartRef__":true,"id":35469},"user":"sebastianwoinar","tags":[]},"35469":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"35470":{"varMapping":{"__isSmartRef__":true,"id":35471},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":35472},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35471":{"this":{"__isSmartRef__":true,"id":35397}},"35472":{"timestamp":{"__isSmartRef__":true,"id":35473},"user":"sebastianwoinar","tags":[]},"35473":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"35474":{"varMapping":{"__isSmartRef__":true,"id":35475},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":35476},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35475":{"this":{"__isSmartRef__":true,"id":35397}},"35476":{"timestamp":{"__isSmartRef__":true,"id":35477},"user":"sebastianwoinar","tags":[]},"35477":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"35478":{"varMapping":{"__isSmartRef__":true,"id":35479},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":35480},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35479":{"this":{"__isSmartRef__":true,"id":35397}},"35480":{"timestamp":{"__isSmartRef__":true,"id":35481},"user":"sebastianwoinar","tags":[]},"35481":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"35482":{"varMapping":{"__isSmartRef__":true,"id":35483},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":35484},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35483":{"this":{"__isSmartRef__":true,"id":35397}},"35484":{"timestamp":{"__isSmartRef__":true,"id":35485},"user":"sebastianwoinar","tags":[]},"35485":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"35486":{"varMapping":{"__isSmartRef__":true,"id":35487},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":35492},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35487":{"this":{"__isSmartRef__":true,"id":35397},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":35488}},"35488":{"$super":{"__isSmartRef__":true,"id":35489}},"35489":{"varMapping":{"__isSmartRef__":true,"id":35490},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":35491},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35490":{"obj":{"__isSmartRef__":true,"id":35397},"name":"onMouseDown"},"35491":{},"35492":{"timestamp":{"__isSmartRef__":true,"id":35493},"user":"sebastianwoinar","tags":[]},"35493":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"35494":{"varMapping":{"__isSmartRef__":true,"id":35495},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":35496},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35495":{"this":{"__isSmartRef__":true,"id":35397}},"35496":{"timestamp":{"__isSmartRef__":true,"id":35497},"user":"sebastianwoinar","tags":[]},"35497":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"35498":{"varMapping":{"__isSmartRef__":true,"id":35499},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":35500},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35499":{"this":{"__isSmartRef__":true,"id":35397}},"35500":{"timestamp":{"__isSmartRef__":true,"id":35501},"user":"sebastianwoinar","tags":[]},"35501":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"35502":{"varMapping":{"__isSmartRef__":true,"id":35503},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":35504},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35503":{"this":{"__isSmartRef__":true,"id":35397}},"35504":{"timestamp":{"__isSmartRef__":true,"id":35505},"user":"sebastianwoinar","tags":[]},"35505":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"35506":{"varMapping":{"__isSmartRef__":true,"id":35507},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":35508},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35507":{"this":{"__isSmartRef__":true,"id":35397}},"35508":{"timestamp":{"__isSmartRef__":true,"id":35509},"user":"sebastianwoinar","tags":[]},"35509":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"35510":{"varMapping":{"__isSmartRef__":true,"id":35511},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":35512},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35511":{"this":{"__isSmartRef__":true,"id":35397}},"35512":{"timestamp":{"__isSmartRef__":true,"id":35513},"user":"sebastianwoinar","tags":[]},"35513":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"35514":{"varMapping":{"__isSmartRef__":true,"id":35515},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":35516},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35515":{"this":{"__isSmartRef__":true,"id":35397}},"35516":{"timestamp":{"__isSmartRef__":true,"id":35517},"user":"sebastianwoinar","tags":[]},"35517":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"35518":{"varMapping":{"__isSmartRef__":true,"id":35519},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":35520},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35519":{"this":{"__isSmartRef__":true,"id":35397}},"35520":{"timestamp":{"__isSmartRef__":true,"id":35521},"user":"sebastianwoinar","tags":[]},"35521":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"35522":{"varMapping":{"__isSmartRef__":true,"id":35523},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":35524},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35523":{"this":{"__isSmartRef__":true,"id":35397}},"35524":{"timestamp":{"__isSmartRef__":true,"id":35525},"user":"sebastianwoinar","tags":[]},"35525":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"35526":{"submorphs":[{"__isSmartRef__":true,"id":35527}],"scripts":[],"shape":{"__isSmartRef__":true,"id":35544},"id":"629EB36B-8ED5-4F3A-831F-24E820650DB7","eventHandler":{"__isSmartRef__":true,"id":35545},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":35546},"name":"node234","partsBinMetaInfo":{"__isSmartRef__":true,"id":35547},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5897},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":34986},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":35550},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(1062.0,210.0)"},"35527":{"submorphs":[],"scripts":[],"id":"DFEAB5B1-2A79-4C19-B55A-F52952268B77","shape":{"__isSmartRef__":true,"id":35528},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":35529},"textChunks":[{"__isSmartRef__":true,"id":35541}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":35543},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":35526},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"35528":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"35529":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":35530},{"__isSmartRef__":true,"id":35532},{"__isSmartRef__":true,"id":35534},{"__isSmartRef__":true,"id":35536},{"__isSmartRef__":true,"id":35538}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":35540},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"35530":{"date":{"__isSmartRef__":true,"id":35531},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"35531":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"35532":{"date":{"__isSmartRef__":true,"id":35533},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"35533":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"35534":{"date":{"__isSmartRef__":true,"id":35535},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"35535":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"35536":{"date":{"__isSmartRef__":true,"id":35537},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"35537":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"35538":{"date":{"__isSmartRef__":true,"id":35539},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"35539":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"35540":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"35541":{"style":{"__isSmartRef__":true,"id":35542},"morph":{"__isSmartRef__":true,"id":35527},"chunkOwner":{"__isSmartRef__":true,"id":35527},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"35542":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"35543":{"morph":{"__isSmartRef__":true,"id":35527},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"35544":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"35545":{"morph":{"__isSmartRef__":true,"id":35526},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"35546":{},"35547":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":35548}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"35548":{"date":{"__isSmartRef__":true,"id":35549},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"35549":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"35550":{"buildChildNodes":{"__isSmartRef__":true,"id":35551},"getGameTree":{"__isSmartRef__":true,"id":35555},"getLevel":{"__isSmartRef__":true,"id":35559},"getLevelWeight":{"__isSmartRef__":true,"id":35563},"getWeight":{"__isSmartRef__":true,"id":35567},"setNode":{"__isSmartRef__":true,"id":35571},"setParent":{"__isSmartRef__":true,"id":35575},"getParent":{"__isSmartRef__":true,"id":35579},"deactivate":{"__isSmartRef__":true,"id":35583},"blink":{"__isSmartRef__":true,"id":35587},"ABPreturn":{"__isSmartRef__":true,"id":35591},"ABPstart":{"__isSmartRef__":true,"id":35595},"ABPcontinue":{"__isSmartRef__":true,"id":35599},"ABPshowValue":{"__isSmartRef__":true,"id":35603},"ABPgetValue":{"__isSmartRef__":true,"id":35607},"ABPhasChildNodes":{"__isSmartRef__":true,"id":35611},"onMouseDown":{"__isSmartRef__":true,"id":35615},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":35623},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":35627},"ABPmarkAsDone":{"__isSmartRef__":true,"id":35631},"ABPmarkAsActive":{"__isSmartRef__":true,"id":35635},"getStateMorph":{"__isSmartRef__":true,"id":35639},"showState":{"__isSmartRef__":true,"id":35643},"ABPfailHard":{"__isSmartRef__":true,"id":35647},"markFinalDrawWith":{"__isSmartRef__":true,"id":35651}},"35551":{"varMapping":{"__isSmartRef__":true,"id":35552},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":35553},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35552":{"this":{"__isSmartRef__":true,"id":35526}},"35553":{"timestamp":{"__isSmartRef__":true,"id":35554},"user":"sebastianwoinar","tags":[]},"35554":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"35555":{"varMapping":{"__isSmartRef__":true,"id":35556},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":35557},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35556":{"this":{"__isSmartRef__":true,"id":35526}},"35557":{"timestamp":{"__isSmartRef__":true,"id":35558},"user":"sebastianwoinar","tags":[]},"35558":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35559":{"varMapping":{"__isSmartRef__":true,"id":35560},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":35561},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35560":{"this":{"__isSmartRef__":true,"id":35526}},"35561":{"timestamp":{"__isSmartRef__":true,"id":35562},"user":"sebastianwoinar","tags":[]},"35562":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35563":{"varMapping":{"__isSmartRef__":true,"id":35564},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":35565},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35564":{"this":{"__isSmartRef__":true,"id":35526}},"35565":{"timestamp":{"__isSmartRef__":true,"id":35566},"user":"sebastianwoinar","tags":[]},"35566":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35567":{"varMapping":{"__isSmartRef__":true,"id":35568},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":35569},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35568":{"this":{"__isSmartRef__":true,"id":35526}},"35569":{"timestamp":{"__isSmartRef__":true,"id":35570},"user":"sebastianwoinar","tags":[]},"35570":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35571":{"varMapping":{"__isSmartRef__":true,"id":35572},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":35573},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35572":{"this":{"__isSmartRef__":true,"id":35526}},"35573":{"timestamp":{"__isSmartRef__":true,"id":35574},"user":"sebastianwoinar","tags":[]},"35574":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35575":{"varMapping":{"__isSmartRef__":true,"id":35576},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":35577},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35576":{"this":{"__isSmartRef__":true,"id":35526}},"35577":{"timestamp":{"__isSmartRef__":true,"id":35578},"user":"sebastianwoinar","tags":[]},"35578":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35579":{"varMapping":{"__isSmartRef__":true,"id":35580},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":35581},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35580":{"this":{"__isSmartRef__":true,"id":35526}},"35581":{"timestamp":{"__isSmartRef__":true,"id":35582},"user":"sebastianwoinar","tags":[]},"35582":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"35583":{"varMapping":{"__isSmartRef__":true,"id":35584},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":35585},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35584":{"this":{"__isSmartRef__":true,"id":35526}},"35585":{"timestamp":{"__isSmartRef__":true,"id":35586},"user":"sebastianwoinar","tags":[]},"35586":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"35587":{"varMapping":{"__isSmartRef__":true,"id":35588},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":35589},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35588":{"this":{"__isSmartRef__":true,"id":35526}},"35589":{"timestamp":{"__isSmartRef__":true,"id":35590},"user":"sebastianwoinar","tags":[]},"35590":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"35591":{"varMapping":{"__isSmartRef__":true,"id":35592},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":35593},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35592":{"this":{"__isSmartRef__":true,"id":35526}},"35593":{"timestamp":{"__isSmartRef__":true,"id":35594},"user":"sebastianwoinar","tags":[]},"35594":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"35595":{"varMapping":{"__isSmartRef__":true,"id":35596},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":35597},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35596":{"this":{"__isSmartRef__":true,"id":35526}},"35597":{"timestamp":{"__isSmartRef__":true,"id":35598},"user":"sebastianwoinar","tags":[]},"35598":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"35599":{"varMapping":{"__isSmartRef__":true,"id":35600},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":35601},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35600":{"this":{"__isSmartRef__":true,"id":35526}},"35601":{"timestamp":{"__isSmartRef__":true,"id":35602},"user":"sebastianwoinar","tags":[]},"35602":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"35603":{"varMapping":{"__isSmartRef__":true,"id":35604},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":35605},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35604":{"this":{"__isSmartRef__":true,"id":35526}},"35605":{"timestamp":{"__isSmartRef__":true,"id":35606},"user":"sebastianwoinar","tags":[]},"35606":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"35607":{"varMapping":{"__isSmartRef__":true,"id":35608},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":35609},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35608":{"this":{"__isSmartRef__":true,"id":35526}},"35609":{"timestamp":{"__isSmartRef__":true,"id":35610},"user":"sebastianwoinar","tags":[]},"35610":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"35611":{"varMapping":{"__isSmartRef__":true,"id":35612},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":35613},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35612":{"this":{"__isSmartRef__":true,"id":35526}},"35613":{"timestamp":{"__isSmartRef__":true,"id":35614},"user":"sebastianwoinar","tags":[]},"35614":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"35615":{"varMapping":{"__isSmartRef__":true,"id":35616},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":35621},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35616":{"this":{"__isSmartRef__":true,"id":35526},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":35617}},"35617":{"$super":{"__isSmartRef__":true,"id":35618}},"35618":{"varMapping":{"__isSmartRef__":true,"id":35619},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":35620},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35619":{"obj":{"__isSmartRef__":true,"id":35526},"name":"onMouseDown"},"35620":{},"35621":{"timestamp":{"__isSmartRef__":true,"id":35622},"user":"sebastianwoinar","tags":[]},"35622":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"35623":{"varMapping":{"__isSmartRef__":true,"id":35624},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":35625},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35624":{"this":{"__isSmartRef__":true,"id":35526}},"35625":{"timestamp":{"__isSmartRef__":true,"id":35626},"user":"sebastianwoinar","tags":[]},"35626":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"35627":{"varMapping":{"__isSmartRef__":true,"id":35628},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":35629},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35628":{"this":{"__isSmartRef__":true,"id":35526}},"35629":{"timestamp":{"__isSmartRef__":true,"id":35630},"user":"sebastianwoinar","tags":[]},"35630":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"35631":{"varMapping":{"__isSmartRef__":true,"id":35632},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":35633},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35632":{"this":{"__isSmartRef__":true,"id":35526}},"35633":{"timestamp":{"__isSmartRef__":true,"id":35634},"user":"sebastianwoinar","tags":[]},"35634":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"35635":{"varMapping":{"__isSmartRef__":true,"id":35636},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":35637},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35636":{"this":{"__isSmartRef__":true,"id":35526}},"35637":{"timestamp":{"__isSmartRef__":true,"id":35638},"user":"sebastianwoinar","tags":[]},"35638":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"35639":{"varMapping":{"__isSmartRef__":true,"id":35640},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":35641},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35640":{"this":{"__isSmartRef__":true,"id":35526}},"35641":{"timestamp":{"__isSmartRef__":true,"id":35642},"user":"sebastianwoinar","tags":[]},"35642":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"35643":{"varMapping":{"__isSmartRef__":true,"id":35644},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":35645},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35644":{"this":{"__isSmartRef__":true,"id":35526}},"35645":{"timestamp":{"__isSmartRef__":true,"id":35646},"user":"sebastianwoinar","tags":[]},"35646":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"35647":{"varMapping":{"__isSmartRef__":true,"id":35648},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":35649},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35648":{"this":{"__isSmartRef__":true,"id":35526}},"35649":{"timestamp":{"__isSmartRef__":true,"id":35650},"user":"sebastianwoinar","tags":[]},"35650":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"35651":{"varMapping":{"__isSmartRef__":true,"id":35652},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":35653},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35652":{"this":{"__isSmartRef__":true,"id":35526}},"35653":{"timestamp":{"__isSmartRef__":true,"id":35654},"user":"sebastianwoinar","tags":[]},"35654":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"35655":{"submorphs":[{"__isSmartRef__":true,"id":35656}],"scripts":[],"shape":{"__isSmartRef__":true,"id":35673},"id":"AF74E06C-8907-480B-A6F9-4910ED4915B9","eventHandler":{"__isSmartRef__":true,"id":35674},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":35675},"name":"node235","partsBinMetaInfo":{"__isSmartRef__":true,"id":35676},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5899},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":34986},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":35679},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(1067.2,210.0)"},"35656":{"submorphs":[],"scripts":[],"id":"F65184B1-21AE-42BB-9AC8-D608EB71F65A","shape":{"__isSmartRef__":true,"id":35657},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":35658},"textChunks":[{"__isSmartRef__":true,"id":35670}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":35672},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":35655},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"35657":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"35658":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":35659},{"__isSmartRef__":true,"id":35661},{"__isSmartRef__":true,"id":35663},{"__isSmartRef__":true,"id":35665},{"__isSmartRef__":true,"id":35667}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":35669},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"35659":{"date":{"__isSmartRef__":true,"id":35660},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"35660":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"35661":{"date":{"__isSmartRef__":true,"id":35662},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"35662":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"35663":{"date":{"__isSmartRef__":true,"id":35664},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"35664":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"35665":{"date":{"__isSmartRef__":true,"id":35666},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"35666":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"35667":{"date":{"__isSmartRef__":true,"id":35668},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"35668":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"35669":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"35670":{"style":{"__isSmartRef__":true,"id":35671},"morph":{"__isSmartRef__":true,"id":35656},"chunkOwner":{"__isSmartRef__":true,"id":35656},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"35671":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"35672":{"morph":{"__isSmartRef__":true,"id":35656},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"35673":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"35674":{"morph":{"__isSmartRef__":true,"id":35655},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"35675":{},"35676":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":35677}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"35677":{"date":{"__isSmartRef__":true,"id":35678},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"35678":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"35679":{"buildChildNodes":{"__isSmartRef__":true,"id":35680},"getGameTree":{"__isSmartRef__":true,"id":35684},"getLevel":{"__isSmartRef__":true,"id":35688},"getLevelWeight":{"__isSmartRef__":true,"id":35692},"getWeight":{"__isSmartRef__":true,"id":35696},"setNode":{"__isSmartRef__":true,"id":35700},"setParent":{"__isSmartRef__":true,"id":35704},"getParent":{"__isSmartRef__":true,"id":35708},"deactivate":{"__isSmartRef__":true,"id":35712},"blink":{"__isSmartRef__":true,"id":35716},"ABPreturn":{"__isSmartRef__":true,"id":35720},"ABPstart":{"__isSmartRef__":true,"id":35724},"ABPcontinue":{"__isSmartRef__":true,"id":35728},"ABPshowValue":{"__isSmartRef__":true,"id":35732},"ABPgetValue":{"__isSmartRef__":true,"id":35736},"ABPhasChildNodes":{"__isSmartRef__":true,"id":35740},"onMouseDown":{"__isSmartRef__":true,"id":35744},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":35752},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":35756},"ABPmarkAsDone":{"__isSmartRef__":true,"id":35760},"ABPmarkAsActive":{"__isSmartRef__":true,"id":35764},"getStateMorph":{"__isSmartRef__":true,"id":35768},"showState":{"__isSmartRef__":true,"id":35772},"ABPfailHard":{"__isSmartRef__":true,"id":35776},"markFinalDrawWith":{"__isSmartRef__":true,"id":35780}},"35680":{"varMapping":{"__isSmartRef__":true,"id":35681},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":35682},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35681":{"this":{"__isSmartRef__":true,"id":35655}},"35682":{"timestamp":{"__isSmartRef__":true,"id":35683},"user":"sebastianwoinar","tags":[]},"35683":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"35684":{"varMapping":{"__isSmartRef__":true,"id":35685},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":35686},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35685":{"this":{"__isSmartRef__":true,"id":35655}},"35686":{"timestamp":{"__isSmartRef__":true,"id":35687},"user":"sebastianwoinar","tags":[]},"35687":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35688":{"varMapping":{"__isSmartRef__":true,"id":35689},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":35690},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35689":{"this":{"__isSmartRef__":true,"id":35655}},"35690":{"timestamp":{"__isSmartRef__":true,"id":35691},"user":"sebastianwoinar","tags":[]},"35691":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35692":{"varMapping":{"__isSmartRef__":true,"id":35693},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":35694},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35693":{"this":{"__isSmartRef__":true,"id":35655}},"35694":{"timestamp":{"__isSmartRef__":true,"id":35695},"user":"sebastianwoinar","tags":[]},"35695":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35696":{"varMapping":{"__isSmartRef__":true,"id":35697},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":35698},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35697":{"this":{"__isSmartRef__":true,"id":35655}},"35698":{"timestamp":{"__isSmartRef__":true,"id":35699},"user":"sebastianwoinar","tags":[]},"35699":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35700":{"varMapping":{"__isSmartRef__":true,"id":35701},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":35702},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35701":{"this":{"__isSmartRef__":true,"id":35655}},"35702":{"timestamp":{"__isSmartRef__":true,"id":35703},"user":"sebastianwoinar","tags":[]},"35703":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35704":{"varMapping":{"__isSmartRef__":true,"id":35705},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":35706},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35705":{"this":{"__isSmartRef__":true,"id":35655}},"35706":{"timestamp":{"__isSmartRef__":true,"id":35707},"user":"sebastianwoinar","tags":[]},"35707":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35708":{"varMapping":{"__isSmartRef__":true,"id":35709},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":35710},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35709":{"this":{"__isSmartRef__":true,"id":35655}},"35710":{"timestamp":{"__isSmartRef__":true,"id":35711},"user":"sebastianwoinar","tags":[]},"35711":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"35712":{"varMapping":{"__isSmartRef__":true,"id":35713},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":35714},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35713":{"this":{"__isSmartRef__":true,"id":35655}},"35714":{"timestamp":{"__isSmartRef__":true,"id":35715},"user":"sebastianwoinar","tags":[]},"35715":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"35716":{"varMapping":{"__isSmartRef__":true,"id":35717},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":35718},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35717":{"this":{"__isSmartRef__":true,"id":35655}},"35718":{"timestamp":{"__isSmartRef__":true,"id":35719},"user":"sebastianwoinar","tags":[]},"35719":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"35720":{"varMapping":{"__isSmartRef__":true,"id":35721},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":35722},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35721":{"this":{"__isSmartRef__":true,"id":35655}},"35722":{"timestamp":{"__isSmartRef__":true,"id":35723},"user":"sebastianwoinar","tags":[]},"35723":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"35724":{"varMapping":{"__isSmartRef__":true,"id":35725},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":35726},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35725":{"this":{"__isSmartRef__":true,"id":35655}},"35726":{"timestamp":{"__isSmartRef__":true,"id":35727},"user":"sebastianwoinar","tags":[]},"35727":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"35728":{"varMapping":{"__isSmartRef__":true,"id":35729},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":35730},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35729":{"this":{"__isSmartRef__":true,"id":35655}},"35730":{"timestamp":{"__isSmartRef__":true,"id":35731},"user":"sebastianwoinar","tags":[]},"35731":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"35732":{"varMapping":{"__isSmartRef__":true,"id":35733},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":35734},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35733":{"this":{"__isSmartRef__":true,"id":35655}},"35734":{"timestamp":{"__isSmartRef__":true,"id":35735},"user":"sebastianwoinar","tags":[]},"35735":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"35736":{"varMapping":{"__isSmartRef__":true,"id":35737},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":35738},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35737":{"this":{"__isSmartRef__":true,"id":35655}},"35738":{"timestamp":{"__isSmartRef__":true,"id":35739},"user":"sebastianwoinar","tags":[]},"35739":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"35740":{"varMapping":{"__isSmartRef__":true,"id":35741},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":35742},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35741":{"this":{"__isSmartRef__":true,"id":35655}},"35742":{"timestamp":{"__isSmartRef__":true,"id":35743},"user":"sebastianwoinar","tags":[]},"35743":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"35744":{"varMapping":{"__isSmartRef__":true,"id":35745},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":35750},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35745":{"this":{"__isSmartRef__":true,"id":35655},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":35746}},"35746":{"$super":{"__isSmartRef__":true,"id":35747}},"35747":{"varMapping":{"__isSmartRef__":true,"id":35748},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":35749},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35748":{"obj":{"__isSmartRef__":true,"id":35655},"name":"onMouseDown"},"35749":{},"35750":{"timestamp":{"__isSmartRef__":true,"id":35751},"user":"sebastianwoinar","tags":[]},"35751":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"35752":{"varMapping":{"__isSmartRef__":true,"id":35753},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":35754},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35753":{"this":{"__isSmartRef__":true,"id":35655}},"35754":{"timestamp":{"__isSmartRef__":true,"id":35755},"user":"sebastianwoinar","tags":[]},"35755":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"35756":{"varMapping":{"__isSmartRef__":true,"id":35757},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":35758},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35757":{"this":{"__isSmartRef__":true,"id":35655}},"35758":{"timestamp":{"__isSmartRef__":true,"id":35759},"user":"sebastianwoinar","tags":[]},"35759":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"35760":{"varMapping":{"__isSmartRef__":true,"id":35761},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":35762},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35761":{"this":{"__isSmartRef__":true,"id":35655}},"35762":{"timestamp":{"__isSmartRef__":true,"id":35763},"user":"sebastianwoinar","tags":[]},"35763":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"35764":{"varMapping":{"__isSmartRef__":true,"id":35765},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":35766},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35765":{"this":{"__isSmartRef__":true,"id":35655}},"35766":{"timestamp":{"__isSmartRef__":true,"id":35767},"user":"sebastianwoinar","tags":[]},"35767":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"35768":{"varMapping":{"__isSmartRef__":true,"id":35769},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":35770},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35769":{"this":{"__isSmartRef__":true,"id":35655}},"35770":{"timestamp":{"__isSmartRef__":true,"id":35771},"user":"sebastianwoinar","tags":[]},"35771":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"35772":{"varMapping":{"__isSmartRef__":true,"id":35773},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":35774},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35773":{"this":{"__isSmartRef__":true,"id":35655}},"35774":{"timestamp":{"__isSmartRef__":true,"id":35775},"user":"sebastianwoinar","tags":[]},"35775":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"35776":{"varMapping":{"__isSmartRef__":true,"id":35777},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":35778},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35777":{"this":{"__isSmartRef__":true,"id":35655}},"35778":{"timestamp":{"__isSmartRef__":true,"id":35779},"user":"sebastianwoinar","tags":[]},"35779":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"35780":{"varMapping":{"__isSmartRef__":true,"id":35781},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":35782},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35781":{"this":{"__isSmartRef__":true,"id":35655}},"35782":{"timestamp":{"__isSmartRef__":true,"id":35783},"user":"sebastianwoinar","tags":[]},"35783":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"35784":{"submorphs":[{"__isSmartRef__":true,"id":35785}],"scripts":[],"shape":{"__isSmartRef__":true,"id":35802},"id":"9DDE1F07-B319-424A-B206-17892F6C5D8F","eventHandler":{"__isSmartRef__":true,"id":35803},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":35804},"name":"node236","partsBinMetaInfo":{"__isSmartRef__":true,"id":35805},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5901},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":34986},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":35808},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(1072.3,210.0)"},"35785":{"submorphs":[],"scripts":[],"id":"E3D709E3-D76A-4C19-B515-C6F4D6928B79","shape":{"__isSmartRef__":true,"id":35786},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":35787},"textChunks":[{"__isSmartRef__":true,"id":35799}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":35801},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":35784},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"35786":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"35787":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":35788},{"__isSmartRef__":true,"id":35790},{"__isSmartRef__":true,"id":35792},{"__isSmartRef__":true,"id":35794},{"__isSmartRef__":true,"id":35796}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":35798},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"35788":{"date":{"__isSmartRef__":true,"id":35789},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"35789":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"35790":{"date":{"__isSmartRef__":true,"id":35791},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"35791":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"35792":{"date":{"__isSmartRef__":true,"id":35793},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"35793":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"35794":{"date":{"__isSmartRef__":true,"id":35795},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"35795":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"35796":{"date":{"__isSmartRef__":true,"id":35797},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"35797":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"35798":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"35799":{"style":{"__isSmartRef__":true,"id":35800},"morph":{"__isSmartRef__":true,"id":35785},"chunkOwner":{"__isSmartRef__":true,"id":35785},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"35800":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"35801":{"morph":{"__isSmartRef__":true,"id":35785},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"35802":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"35803":{"morph":{"__isSmartRef__":true,"id":35784},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"35804":{},"35805":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":35806}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"35806":{"date":{"__isSmartRef__":true,"id":35807},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"35807":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"35808":{"buildChildNodes":{"__isSmartRef__":true,"id":35809},"getGameTree":{"__isSmartRef__":true,"id":35813},"getLevel":{"__isSmartRef__":true,"id":35817},"getLevelWeight":{"__isSmartRef__":true,"id":35821},"getWeight":{"__isSmartRef__":true,"id":35825},"setNode":{"__isSmartRef__":true,"id":35829},"setParent":{"__isSmartRef__":true,"id":35833},"getParent":{"__isSmartRef__":true,"id":35837},"deactivate":{"__isSmartRef__":true,"id":35841},"blink":{"__isSmartRef__":true,"id":35845},"ABPreturn":{"__isSmartRef__":true,"id":35849},"ABPstart":{"__isSmartRef__":true,"id":35853},"ABPcontinue":{"__isSmartRef__":true,"id":35857},"ABPshowValue":{"__isSmartRef__":true,"id":35861},"ABPgetValue":{"__isSmartRef__":true,"id":35865},"ABPhasChildNodes":{"__isSmartRef__":true,"id":35869},"onMouseDown":{"__isSmartRef__":true,"id":35873},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":35881},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":35885},"ABPmarkAsDone":{"__isSmartRef__":true,"id":35889},"ABPmarkAsActive":{"__isSmartRef__":true,"id":35893},"getStateMorph":{"__isSmartRef__":true,"id":35897},"showState":{"__isSmartRef__":true,"id":35901},"ABPfailHard":{"__isSmartRef__":true,"id":35905},"markFinalDrawWith":{"__isSmartRef__":true,"id":35909}},"35809":{"varMapping":{"__isSmartRef__":true,"id":35810},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":35811},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35810":{"this":{"__isSmartRef__":true,"id":35784}},"35811":{"timestamp":{"__isSmartRef__":true,"id":35812},"user":"sebastianwoinar","tags":[]},"35812":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"35813":{"varMapping":{"__isSmartRef__":true,"id":35814},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":35815},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35814":{"this":{"__isSmartRef__":true,"id":35784}},"35815":{"timestamp":{"__isSmartRef__":true,"id":35816},"user":"sebastianwoinar","tags":[]},"35816":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35817":{"varMapping":{"__isSmartRef__":true,"id":35818},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":35819},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35818":{"this":{"__isSmartRef__":true,"id":35784}},"35819":{"timestamp":{"__isSmartRef__":true,"id":35820},"user":"sebastianwoinar","tags":[]},"35820":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35821":{"varMapping":{"__isSmartRef__":true,"id":35822},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":35823},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35822":{"this":{"__isSmartRef__":true,"id":35784}},"35823":{"timestamp":{"__isSmartRef__":true,"id":35824},"user":"sebastianwoinar","tags":[]},"35824":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35825":{"varMapping":{"__isSmartRef__":true,"id":35826},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":35827},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35826":{"this":{"__isSmartRef__":true,"id":35784}},"35827":{"timestamp":{"__isSmartRef__":true,"id":35828},"user":"sebastianwoinar","tags":[]},"35828":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35829":{"varMapping":{"__isSmartRef__":true,"id":35830},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":35831},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35830":{"this":{"__isSmartRef__":true,"id":35784}},"35831":{"timestamp":{"__isSmartRef__":true,"id":35832},"user":"sebastianwoinar","tags":[]},"35832":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35833":{"varMapping":{"__isSmartRef__":true,"id":35834},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":35835},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35834":{"this":{"__isSmartRef__":true,"id":35784}},"35835":{"timestamp":{"__isSmartRef__":true,"id":35836},"user":"sebastianwoinar","tags":[]},"35836":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35837":{"varMapping":{"__isSmartRef__":true,"id":35838},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":35839},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35838":{"this":{"__isSmartRef__":true,"id":35784}},"35839":{"timestamp":{"__isSmartRef__":true,"id":35840},"user":"sebastianwoinar","tags":[]},"35840":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"35841":{"varMapping":{"__isSmartRef__":true,"id":35842},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":35843},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35842":{"this":{"__isSmartRef__":true,"id":35784}},"35843":{"timestamp":{"__isSmartRef__":true,"id":35844},"user":"sebastianwoinar","tags":[]},"35844":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"35845":{"varMapping":{"__isSmartRef__":true,"id":35846},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":35847},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35846":{"this":{"__isSmartRef__":true,"id":35784}},"35847":{"timestamp":{"__isSmartRef__":true,"id":35848},"user":"sebastianwoinar","tags":[]},"35848":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"35849":{"varMapping":{"__isSmartRef__":true,"id":35850},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":35851},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35850":{"this":{"__isSmartRef__":true,"id":35784}},"35851":{"timestamp":{"__isSmartRef__":true,"id":35852},"user":"sebastianwoinar","tags":[]},"35852":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"35853":{"varMapping":{"__isSmartRef__":true,"id":35854},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":35855},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35854":{"this":{"__isSmartRef__":true,"id":35784}},"35855":{"timestamp":{"__isSmartRef__":true,"id":35856},"user":"sebastianwoinar","tags":[]},"35856":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"35857":{"varMapping":{"__isSmartRef__":true,"id":35858},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":35859},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35858":{"this":{"__isSmartRef__":true,"id":35784}},"35859":{"timestamp":{"__isSmartRef__":true,"id":35860},"user":"sebastianwoinar","tags":[]},"35860":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"35861":{"varMapping":{"__isSmartRef__":true,"id":35862},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":35863},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35862":{"this":{"__isSmartRef__":true,"id":35784}},"35863":{"timestamp":{"__isSmartRef__":true,"id":35864},"user":"sebastianwoinar","tags":[]},"35864":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"35865":{"varMapping":{"__isSmartRef__":true,"id":35866},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":35867},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35866":{"this":{"__isSmartRef__":true,"id":35784}},"35867":{"timestamp":{"__isSmartRef__":true,"id":35868},"user":"sebastianwoinar","tags":[]},"35868":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"35869":{"varMapping":{"__isSmartRef__":true,"id":35870},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":35871},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35870":{"this":{"__isSmartRef__":true,"id":35784}},"35871":{"timestamp":{"__isSmartRef__":true,"id":35872},"user":"sebastianwoinar","tags":[]},"35872":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"35873":{"varMapping":{"__isSmartRef__":true,"id":35874},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":35879},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35874":{"this":{"__isSmartRef__":true,"id":35784},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":35875}},"35875":{"$super":{"__isSmartRef__":true,"id":35876}},"35876":{"varMapping":{"__isSmartRef__":true,"id":35877},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":35878},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35877":{"obj":{"__isSmartRef__":true,"id":35784},"name":"onMouseDown"},"35878":{},"35879":{"timestamp":{"__isSmartRef__":true,"id":35880},"user":"sebastianwoinar","tags":[]},"35880":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"35881":{"varMapping":{"__isSmartRef__":true,"id":35882},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":35883},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35882":{"this":{"__isSmartRef__":true,"id":35784}},"35883":{"timestamp":{"__isSmartRef__":true,"id":35884},"user":"sebastianwoinar","tags":[]},"35884":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"35885":{"varMapping":{"__isSmartRef__":true,"id":35886},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":35887},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35886":{"this":{"__isSmartRef__":true,"id":35784}},"35887":{"timestamp":{"__isSmartRef__":true,"id":35888},"user":"sebastianwoinar","tags":[]},"35888":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"35889":{"varMapping":{"__isSmartRef__":true,"id":35890},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":35891},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35890":{"this":{"__isSmartRef__":true,"id":35784}},"35891":{"timestamp":{"__isSmartRef__":true,"id":35892},"user":"sebastianwoinar","tags":[]},"35892":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"35893":{"varMapping":{"__isSmartRef__":true,"id":35894},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":35895},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35894":{"this":{"__isSmartRef__":true,"id":35784}},"35895":{"timestamp":{"__isSmartRef__":true,"id":35896},"user":"sebastianwoinar","tags":[]},"35896":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"35897":{"varMapping":{"__isSmartRef__":true,"id":35898},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":35899},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35898":{"this":{"__isSmartRef__":true,"id":35784}},"35899":{"timestamp":{"__isSmartRef__":true,"id":35900},"user":"sebastianwoinar","tags":[]},"35900":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"35901":{"varMapping":{"__isSmartRef__":true,"id":35902},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":35903},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35902":{"this":{"__isSmartRef__":true,"id":35784}},"35903":{"timestamp":{"__isSmartRef__":true,"id":35904},"user":"sebastianwoinar","tags":[]},"35904":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"35905":{"varMapping":{"__isSmartRef__":true,"id":35906},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":35907},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35906":{"this":{"__isSmartRef__":true,"id":35784}},"35907":{"timestamp":{"__isSmartRef__":true,"id":35908},"user":"sebastianwoinar","tags":[]},"35908":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"35909":{"varMapping":{"__isSmartRef__":true,"id":35910},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":35911},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35910":{"this":{"__isSmartRef__":true,"id":35784}},"35911":{"timestamp":{"__isSmartRef__":true,"id":35912},"user":"sebastianwoinar","tags":[]},"35912":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"35913":{"buildChildNodes":{"__isSmartRef__":true,"id":35914},"getGameTree":{"__isSmartRef__":true,"id":35918},"getLevel":{"__isSmartRef__":true,"id":35922},"getLevelWeight":{"__isSmartRef__":true,"id":35926},"getWeight":{"__isSmartRef__":true,"id":35930},"setNode":{"__isSmartRef__":true,"id":35934},"setParent":{"__isSmartRef__":true,"id":35938},"getParent":{"__isSmartRef__":true,"id":35942},"deactivate":{"__isSmartRef__":true,"id":35946},"blink":{"__isSmartRef__":true,"id":35950},"ABPreturn":{"__isSmartRef__":true,"id":35954},"ABPstart":{"__isSmartRef__":true,"id":35958},"ABPcontinue":{"__isSmartRef__":true,"id":35962},"ABPshowValue":{"__isSmartRef__":true,"id":35966},"ABPgetValue":{"__isSmartRef__":true,"id":35970},"ABPhasChildNodes":{"__isSmartRef__":true,"id":35974},"onMouseDown":{"__isSmartRef__":true,"id":35978},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":35986},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":35990},"ABPmarkAsDone":{"__isSmartRef__":true,"id":35994},"ABPmarkAsActive":{"__isSmartRef__":true,"id":35998},"getStateMorph":{"__isSmartRef__":true,"id":36002},"showState":{"__isSmartRef__":true,"id":36006},"ABPfailHard":{"__isSmartRef__":true,"id":36010},"markFinalDrawWith":{"__isSmartRef__":true,"id":36014}},"35914":{"varMapping":{"__isSmartRef__":true,"id":35915},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":35916},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35915":{"this":{"__isSmartRef__":true,"id":34986}},"35916":{"timestamp":{"__isSmartRef__":true,"id":35917},"user":"sebastianwoinar","tags":[]},"35917":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"35918":{"varMapping":{"__isSmartRef__":true,"id":35919},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":35920},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35919":{"this":{"__isSmartRef__":true,"id":34986}},"35920":{"timestamp":{"__isSmartRef__":true,"id":35921},"user":"sebastianwoinar","tags":[]},"35921":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35922":{"varMapping":{"__isSmartRef__":true,"id":35923},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":35924},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35923":{"this":{"__isSmartRef__":true,"id":34986}},"35924":{"timestamp":{"__isSmartRef__":true,"id":35925},"user":"sebastianwoinar","tags":[]},"35925":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35926":{"varMapping":{"__isSmartRef__":true,"id":35927},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":35928},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35927":{"this":{"__isSmartRef__":true,"id":34986}},"35928":{"timestamp":{"__isSmartRef__":true,"id":35929},"user":"sebastianwoinar","tags":[]},"35929":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35930":{"varMapping":{"__isSmartRef__":true,"id":35931},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":35932},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35931":{"this":{"__isSmartRef__":true,"id":34986}},"35932":{"timestamp":{"__isSmartRef__":true,"id":35933},"user":"sebastianwoinar","tags":[]},"35933":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35934":{"varMapping":{"__isSmartRef__":true,"id":35935},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":35936},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35935":{"this":{"__isSmartRef__":true,"id":34986}},"35936":{"timestamp":{"__isSmartRef__":true,"id":35937},"user":"sebastianwoinar","tags":[]},"35937":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35938":{"varMapping":{"__isSmartRef__":true,"id":35939},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":35940},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35939":{"this":{"__isSmartRef__":true,"id":34986}},"35940":{"timestamp":{"__isSmartRef__":true,"id":35941},"user":"sebastianwoinar","tags":[]},"35941":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"35942":{"varMapping":{"__isSmartRef__":true,"id":35943},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":35944},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35943":{"this":{"__isSmartRef__":true,"id":34986}},"35944":{"timestamp":{"__isSmartRef__":true,"id":35945},"user":"sebastianwoinar","tags":[]},"35945":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"35946":{"varMapping":{"__isSmartRef__":true,"id":35947},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":35948},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35947":{"this":{"__isSmartRef__":true,"id":34986}},"35948":{"timestamp":{"__isSmartRef__":true,"id":35949},"user":"sebastianwoinar","tags":[]},"35949":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"35950":{"varMapping":{"__isSmartRef__":true,"id":35951},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":35952},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35951":{"this":{"__isSmartRef__":true,"id":34986}},"35952":{"timestamp":{"__isSmartRef__":true,"id":35953},"user":"sebastianwoinar","tags":[]},"35953":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"35954":{"varMapping":{"__isSmartRef__":true,"id":35955},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":35956},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35955":{"this":{"__isSmartRef__":true,"id":34986}},"35956":{"timestamp":{"__isSmartRef__":true,"id":35957},"user":"sebastianwoinar","tags":[]},"35957":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"35958":{"varMapping":{"__isSmartRef__":true,"id":35959},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":35960},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35959":{"this":{"__isSmartRef__":true,"id":34986}},"35960":{"timestamp":{"__isSmartRef__":true,"id":35961},"user":"sebastianwoinar","tags":[]},"35961":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"35962":{"varMapping":{"__isSmartRef__":true,"id":35963},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":35964},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35963":{"this":{"__isSmartRef__":true,"id":34986}},"35964":{"timestamp":{"__isSmartRef__":true,"id":35965},"user":"sebastianwoinar","tags":[]},"35965":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"35966":{"varMapping":{"__isSmartRef__":true,"id":35967},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":35968},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35967":{"this":{"__isSmartRef__":true,"id":34986}},"35968":{"timestamp":{"__isSmartRef__":true,"id":35969},"user":"sebastianwoinar","tags":[]},"35969":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"35970":{"varMapping":{"__isSmartRef__":true,"id":35971},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":35972},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35971":{"this":{"__isSmartRef__":true,"id":34986}},"35972":{"timestamp":{"__isSmartRef__":true,"id":35973},"user":"sebastianwoinar","tags":[]},"35973":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"35974":{"varMapping":{"__isSmartRef__":true,"id":35975},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":35976},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35975":{"this":{"__isSmartRef__":true,"id":34986}},"35976":{"timestamp":{"__isSmartRef__":true,"id":35977},"user":"sebastianwoinar","tags":[]},"35977":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"35978":{"varMapping":{"__isSmartRef__":true,"id":35979},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":35984},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35979":{"this":{"__isSmartRef__":true,"id":34986},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":35980}},"35980":{"$super":{"__isSmartRef__":true,"id":35981}},"35981":{"varMapping":{"__isSmartRef__":true,"id":35982},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":35983},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35982":{"obj":{"__isSmartRef__":true,"id":34986},"name":"onMouseDown"},"35983":{},"35984":{"timestamp":{"__isSmartRef__":true,"id":35985},"user":"sebastianwoinar","tags":[]},"35985":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"35986":{"varMapping":{"__isSmartRef__":true,"id":35987},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":35988},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35987":{"this":{"__isSmartRef__":true,"id":34986}},"35988":{"timestamp":{"__isSmartRef__":true,"id":35989},"user":"sebastianwoinar","tags":[]},"35989":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"35990":{"varMapping":{"__isSmartRef__":true,"id":35991},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":35992},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35991":{"this":{"__isSmartRef__":true,"id":34986}},"35992":{"timestamp":{"__isSmartRef__":true,"id":35993},"user":"sebastianwoinar","tags":[]},"35993":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"35994":{"varMapping":{"__isSmartRef__":true,"id":35995},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":35996},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35995":{"this":{"__isSmartRef__":true,"id":34986}},"35996":{"timestamp":{"__isSmartRef__":true,"id":35997},"user":"sebastianwoinar","tags":[]},"35997":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"35998":{"varMapping":{"__isSmartRef__":true,"id":35999},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":36000},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"35999":{"this":{"__isSmartRef__":true,"id":34986}},"36000":{"timestamp":{"__isSmartRef__":true,"id":36001},"user":"sebastianwoinar","tags":[]},"36001":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"36002":{"varMapping":{"__isSmartRef__":true,"id":36003},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":36004},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36003":{"this":{"__isSmartRef__":true,"id":34986}},"36004":{"timestamp":{"__isSmartRef__":true,"id":36005},"user":"sebastianwoinar","tags":[]},"36005":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"36006":{"varMapping":{"__isSmartRef__":true,"id":36007},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":36008},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36007":{"this":{"__isSmartRef__":true,"id":34986}},"36008":{"timestamp":{"__isSmartRef__":true,"id":36009},"user":"sebastianwoinar","tags":[]},"36009":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"36010":{"varMapping":{"__isSmartRef__":true,"id":36011},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":36012},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36011":{"this":{"__isSmartRef__":true,"id":34986}},"36012":{"timestamp":{"__isSmartRef__":true,"id":36013},"user":"sebastianwoinar","tags":[]},"36013":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"36014":{"varMapping":{"__isSmartRef__":true,"id":36015},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":36016},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36015":{"this":{"__isSmartRef__":true,"id":34986}},"36016":{"timestamp":{"__isSmartRef__":true,"id":36017},"user":"sebastianwoinar","tags":[]},"36017":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"36018":{"submorphs":[{"__isSmartRef__":true,"id":36019}],"scripts":[],"shape":{"__isSmartRef__":true,"id":36036},"id":"56A9326B-40FC-473E-862C-A47B0ACCB464","eventHandler":{"__isSmartRef__":true,"id":36037},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":36038},"name":"node237","partsBinMetaInfo":{"__isSmartRef__":true,"id":36039},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5903},"owner":{"__isSmartRef__":true,"id":5408},"childNodes":[{"__isSmartRef__":true,"id":36042},{"__isSmartRef__":true,"id":36171},{"__isSmartRef__":true,"id":36300},{"__isSmartRef__":true,"id":36429},{"__isSmartRef__":true,"id":36558},{"__isSmartRef__":true,"id":36687},{"__isSmartRef__":true,"id":36816},{"__isSmartRef__":true,"id":36945}],"parent":{"__isSmartRef__":true,"id":33285},"level":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":37074},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(1082.7,160.0)"},"36019":{"submorphs":[],"scripts":[],"id":"6431C5FB-AA5F-47DF-9460-165F59A6FD0F","shape":{"__isSmartRef__":true,"id":36020},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":36021},"textChunks":[{"__isSmartRef__":true,"id":36033}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":36035},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":36018},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"36020":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"36021":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":36022},{"__isSmartRef__":true,"id":36024},{"__isSmartRef__":true,"id":36026},{"__isSmartRef__":true,"id":36028},{"__isSmartRef__":true,"id":36030}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":36032},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"36022":{"date":{"__isSmartRef__":true,"id":36023},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"36023":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"36024":{"date":{"__isSmartRef__":true,"id":36025},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"36025":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"36026":{"date":{"__isSmartRef__":true,"id":36027},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"36027":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"36028":{"date":{"__isSmartRef__":true,"id":36029},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"36029":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"36030":{"date":{"__isSmartRef__":true,"id":36031},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"36031":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"36032":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"36033":{"style":{"__isSmartRef__":true,"id":36034},"morph":{"__isSmartRef__":true,"id":36019},"chunkOwner":{"__isSmartRef__":true,"id":36019},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"36034":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"36035":{"morph":{"__isSmartRef__":true,"id":36019},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"36036":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"36037":{"morph":{"__isSmartRef__":true,"id":36018},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"36038":{},"36039":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":36040}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"36040":{"date":{"__isSmartRef__":true,"id":36041},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"36041":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"36042":{"submorphs":[{"__isSmartRef__":true,"id":36043}],"scripts":[],"shape":{"__isSmartRef__":true,"id":36060},"id":"13080480-88B4-43D3-A337-21142D5FE4D6","eventHandler":{"__isSmartRef__":true,"id":36061},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":36062},"name":"node238","partsBinMetaInfo":{"__isSmartRef__":true,"id":36063},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5905},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":36018},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":36066},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(1077.5,210.0)"},"36043":{"submorphs":[],"scripts":[],"id":"B0DAA37D-776B-48EA-879C-17B54F7789D0","shape":{"__isSmartRef__":true,"id":36044},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":36045},"textChunks":[{"__isSmartRef__":true,"id":36057}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":36059},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":36042},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"36044":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"36045":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":36046},{"__isSmartRef__":true,"id":36048},{"__isSmartRef__":true,"id":36050},{"__isSmartRef__":true,"id":36052},{"__isSmartRef__":true,"id":36054}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":36056},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"36046":{"date":{"__isSmartRef__":true,"id":36047},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"36047":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"36048":{"date":{"__isSmartRef__":true,"id":36049},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"36049":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"36050":{"date":{"__isSmartRef__":true,"id":36051},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"36051":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"36052":{"date":{"__isSmartRef__":true,"id":36053},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"36053":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"36054":{"date":{"__isSmartRef__":true,"id":36055},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"36055":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"36056":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"36057":{"style":{"__isSmartRef__":true,"id":36058},"morph":{"__isSmartRef__":true,"id":36043},"chunkOwner":{"__isSmartRef__":true,"id":36043},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"36058":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"36059":{"morph":{"__isSmartRef__":true,"id":36043},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"36060":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"36061":{"morph":{"__isSmartRef__":true,"id":36042},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"36062":{},"36063":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":36064}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"36064":{"date":{"__isSmartRef__":true,"id":36065},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"36065":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"36066":{"buildChildNodes":{"__isSmartRef__":true,"id":36067},"getGameTree":{"__isSmartRef__":true,"id":36071},"getLevel":{"__isSmartRef__":true,"id":36075},"getLevelWeight":{"__isSmartRef__":true,"id":36079},"getWeight":{"__isSmartRef__":true,"id":36083},"setNode":{"__isSmartRef__":true,"id":36087},"setParent":{"__isSmartRef__":true,"id":36091},"getParent":{"__isSmartRef__":true,"id":36095},"deactivate":{"__isSmartRef__":true,"id":36099},"blink":{"__isSmartRef__":true,"id":36103},"ABPreturn":{"__isSmartRef__":true,"id":36107},"ABPstart":{"__isSmartRef__":true,"id":36111},"ABPcontinue":{"__isSmartRef__":true,"id":36115},"ABPshowValue":{"__isSmartRef__":true,"id":36119},"ABPgetValue":{"__isSmartRef__":true,"id":36123},"ABPhasChildNodes":{"__isSmartRef__":true,"id":36127},"onMouseDown":{"__isSmartRef__":true,"id":36131},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":36139},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":36143},"ABPmarkAsDone":{"__isSmartRef__":true,"id":36147},"ABPmarkAsActive":{"__isSmartRef__":true,"id":36151},"getStateMorph":{"__isSmartRef__":true,"id":36155},"showState":{"__isSmartRef__":true,"id":36159},"ABPfailHard":{"__isSmartRef__":true,"id":36163},"markFinalDrawWith":{"__isSmartRef__":true,"id":36167}},"36067":{"varMapping":{"__isSmartRef__":true,"id":36068},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":36069},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36068":{"this":{"__isSmartRef__":true,"id":36042}},"36069":{"timestamp":{"__isSmartRef__":true,"id":36070},"user":"sebastianwoinar","tags":[]},"36070":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"36071":{"varMapping":{"__isSmartRef__":true,"id":36072},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":36073},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36072":{"this":{"__isSmartRef__":true,"id":36042}},"36073":{"timestamp":{"__isSmartRef__":true,"id":36074},"user":"sebastianwoinar","tags":[]},"36074":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36075":{"varMapping":{"__isSmartRef__":true,"id":36076},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":36077},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36076":{"this":{"__isSmartRef__":true,"id":36042}},"36077":{"timestamp":{"__isSmartRef__":true,"id":36078},"user":"sebastianwoinar","tags":[]},"36078":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36079":{"varMapping":{"__isSmartRef__":true,"id":36080},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":36081},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36080":{"this":{"__isSmartRef__":true,"id":36042}},"36081":{"timestamp":{"__isSmartRef__":true,"id":36082},"user":"sebastianwoinar","tags":[]},"36082":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36083":{"varMapping":{"__isSmartRef__":true,"id":36084},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":36085},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36084":{"this":{"__isSmartRef__":true,"id":36042}},"36085":{"timestamp":{"__isSmartRef__":true,"id":36086},"user":"sebastianwoinar","tags":[]},"36086":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36087":{"varMapping":{"__isSmartRef__":true,"id":36088},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":36089},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36088":{"this":{"__isSmartRef__":true,"id":36042}},"36089":{"timestamp":{"__isSmartRef__":true,"id":36090},"user":"sebastianwoinar","tags":[]},"36090":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36091":{"varMapping":{"__isSmartRef__":true,"id":36092},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":36093},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36092":{"this":{"__isSmartRef__":true,"id":36042}},"36093":{"timestamp":{"__isSmartRef__":true,"id":36094},"user":"sebastianwoinar","tags":[]},"36094":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36095":{"varMapping":{"__isSmartRef__":true,"id":36096},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":36097},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36096":{"this":{"__isSmartRef__":true,"id":36042}},"36097":{"timestamp":{"__isSmartRef__":true,"id":36098},"user":"sebastianwoinar","tags":[]},"36098":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"36099":{"varMapping":{"__isSmartRef__":true,"id":36100},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":36101},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36100":{"this":{"__isSmartRef__":true,"id":36042}},"36101":{"timestamp":{"__isSmartRef__":true,"id":36102},"user":"sebastianwoinar","tags":[]},"36102":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"36103":{"varMapping":{"__isSmartRef__":true,"id":36104},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":36105},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36104":{"this":{"__isSmartRef__":true,"id":36042}},"36105":{"timestamp":{"__isSmartRef__":true,"id":36106},"user":"sebastianwoinar","tags":[]},"36106":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"36107":{"varMapping":{"__isSmartRef__":true,"id":36108},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":36109},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36108":{"this":{"__isSmartRef__":true,"id":36042}},"36109":{"timestamp":{"__isSmartRef__":true,"id":36110},"user":"sebastianwoinar","tags":[]},"36110":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"36111":{"varMapping":{"__isSmartRef__":true,"id":36112},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":36113},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36112":{"this":{"__isSmartRef__":true,"id":36042}},"36113":{"timestamp":{"__isSmartRef__":true,"id":36114},"user":"sebastianwoinar","tags":[]},"36114":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"36115":{"varMapping":{"__isSmartRef__":true,"id":36116},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":36117},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36116":{"this":{"__isSmartRef__":true,"id":36042}},"36117":{"timestamp":{"__isSmartRef__":true,"id":36118},"user":"sebastianwoinar","tags":[]},"36118":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"36119":{"varMapping":{"__isSmartRef__":true,"id":36120},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":36121},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36120":{"this":{"__isSmartRef__":true,"id":36042}},"36121":{"timestamp":{"__isSmartRef__":true,"id":36122},"user":"sebastianwoinar","tags":[]},"36122":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"36123":{"varMapping":{"__isSmartRef__":true,"id":36124},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":36125},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36124":{"this":{"__isSmartRef__":true,"id":36042}},"36125":{"timestamp":{"__isSmartRef__":true,"id":36126},"user":"sebastianwoinar","tags":[]},"36126":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"36127":{"varMapping":{"__isSmartRef__":true,"id":36128},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":36129},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36128":{"this":{"__isSmartRef__":true,"id":36042}},"36129":{"timestamp":{"__isSmartRef__":true,"id":36130},"user":"sebastianwoinar","tags":[]},"36130":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"36131":{"varMapping":{"__isSmartRef__":true,"id":36132},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":36137},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36132":{"this":{"__isSmartRef__":true,"id":36042},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":36133}},"36133":{"$super":{"__isSmartRef__":true,"id":36134}},"36134":{"varMapping":{"__isSmartRef__":true,"id":36135},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":36136},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36135":{"obj":{"__isSmartRef__":true,"id":36042},"name":"onMouseDown"},"36136":{},"36137":{"timestamp":{"__isSmartRef__":true,"id":36138},"user":"sebastianwoinar","tags":[]},"36138":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"36139":{"varMapping":{"__isSmartRef__":true,"id":36140},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":36141},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36140":{"this":{"__isSmartRef__":true,"id":36042}},"36141":{"timestamp":{"__isSmartRef__":true,"id":36142},"user":"sebastianwoinar","tags":[]},"36142":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"36143":{"varMapping":{"__isSmartRef__":true,"id":36144},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":36145},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36144":{"this":{"__isSmartRef__":true,"id":36042}},"36145":{"timestamp":{"__isSmartRef__":true,"id":36146},"user":"sebastianwoinar","tags":[]},"36146":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"36147":{"varMapping":{"__isSmartRef__":true,"id":36148},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":36149},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36148":{"this":{"__isSmartRef__":true,"id":36042}},"36149":{"timestamp":{"__isSmartRef__":true,"id":36150},"user":"sebastianwoinar","tags":[]},"36150":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"36151":{"varMapping":{"__isSmartRef__":true,"id":36152},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":36153},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36152":{"this":{"__isSmartRef__":true,"id":36042}},"36153":{"timestamp":{"__isSmartRef__":true,"id":36154},"user":"sebastianwoinar","tags":[]},"36154":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"36155":{"varMapping":{"__isSmartRef__":true,"id":36156},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":36157},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36156":{"this":{"__isSmartRef__":true,"id":36042}},"36157":{"timestamp":{"__isSmartRef__":true,"id":36158},"user":"sebastianwoinar","tags":[]},"36158":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"36159":{"varMapping":{"__isSmartRef__":true,"id":36160},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":36161},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36160":{"this":{"__isSmartRef__":true,"id":36042}},"36161":{"timestamp":{"__isSmartRef__":true,"id":36162},"user":"sebastianwoinar","tags":[]},"36162":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"36163":{"varMapping":{"__isSmartRef__":true,"id":36164},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":36165},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36164":{"this":{"__isSmartRef__":true,"id":36042}},"36165":{"timestamp":{"__isSmartRef__":true,"id":36166},"user":"sebastianwoinar","tags":[]},"36166":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"36167":{"varMapping":{"__isSmartRef__":true,"id":36168},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":36169},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36168":{"this":{"__isSmartRef__":true,"id":36042}},"36169":{"timestamp":{"__isSmartRef__":true,"id":36170},"user":"sebastianwoinar","tags":[]},"36170":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"36171":{"submorphs":[{"__isSmartRef__":true,"id":36172}],"scripts":[],"shape":{"__isSmartRef__":true,"id":36189},"id":"DEB6B8F8-4EBC-4900-B00C-62746D030B4F","eventHandler":{"__isSmartRef__":true,"id":36190},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":36191},"name":"node239","partsBinMetaInfo":{"__isSmartRef__":true,"id":36192},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5907},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":36018},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":36195},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(1082.7,210.0)"},"36172":{"submorphs":[],"scripts":[],"id":"5B7C5BFF-42D6-463B-A2AC-8AE0B5BBB349","shape":{"__isSmartRef__":true,"id":36173},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":36174},"textChunks":[{"__isSmartRef__":true,"id":36186}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":36188},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":36171},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"36173":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"36174":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":36175},{"__isSmartRef__":true,"id":36177},{"__isSmartRef__":true,"id":36179},{"__isSmartRef__":true,"id":36181},{"__isSmartRef__":true,"id":36183}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":36185},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"36175":{"date":{"__isSmartRef__":true,"id":36176},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"36176":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"36177":{"date":{"__isSmartRef__":true,"id":36178},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"36178":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"36179":{"date":{"__isSmartRef__":true,"id":36180},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"36180":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"36181":{"date":{"__isSmartRef__":true,"id":36182},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"36182":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"36183":{"date":{"__isSmartRef__":true,"id":36184},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"36184":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"36185":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"36186":{"style":{"__isSmartRef__":true,"id":36187},"morph":{"__isSmartRef__":true,"id":36172},"chunkOwner":{"__isSmartRef__":true,"id":36172},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"36187":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"36188":{"morph":{"__isSmartRef__":true,"id":36172},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"36189":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"36190":{"morph":{"__isSmartRef__":true,"id":36171},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"36191":{},"36192":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":36193}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"36193":{"date":{"__isSmartRef__":true,"id":36194},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"36194":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"36195":{"buildChildNodes":{"__isSmartRef__":true,"id":36196},"getGameTree":{"__isSmartRef__":true,"id":36200},"getLevel":{"__isSmartRef__":true,"id":36204},"getLevelWeight":{"__isSmartRef__":true,"id":36208},"getWeight":{"__isSmartRef__":true,"id":36212},"setNode":{"__isSmartRef__":true,"id":36216},"setParent":{"__isSmartRef__":true,"id":36220},"getParent":{"__isSmartRef__":true,"id":36224},"deactivate":{"__isSmartRef__":true,"id":36228},"blink":{"__isSmartRef__":true,"id":36232},"ABPreturn":{"__isSmartRef__":true,"id":36236},"ABPstart":{"__isSmartRef__":true,"id":36240},"ABPcontinue":{"__isSmartRef__":true,"id":36244},"ABPshowValue":{"__isSmartRef__":true,"id":36248},"ABPgetValue":{"__isSmartRef__":true,"id":36252},"ABPhasChildNodes":{"__isSmartRef__":true,"id":36256},"onMouseDown":{"__isSmartRef__":true,"id":36260},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":36268},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":36272},"ABPmarkAsDone":{"__isSmartRef__":true,"id":36276},"ABPmarkAsActive":{"__isSmartRef__":true,"id":36280},"getStateMorph":{"__isSmartRef__":true,"id":36284},"showState":{"__isSmartRef__":true,"id":36288},"ABPfailHard":{"__isSmartRef__":true,"id":36292},"markFinalDrawWith":{"__isSmartRef__":true,"id":36296}},"36196":{"varMapping":{"__isSmartRef__":true,"id":36197},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":36198},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36197":{"this":{"__isSmartRef__":true,"id":36171}},"36198":{"timestamp":{"__isSmartRef__":true,"id":36199},"user":"sebastianwoinar","tags":[]},"36199":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"36200":{"varMapping":{"__isSmartRef__":true,"id":36201},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":36202},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36201":{"this":{"__isSmartRef__":true,"id":36171}},"36202":{"timestamp":{"__isSmartRef__":true,"id":36203},"user":"sebastianwoinar","tags":[]},"36203":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36204":{"varMapping":{"__isSmartRef__":true,"id":36205},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":36206},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36205":{"this":{"__isSmartRef__":true,"id":36171}},"36206":{"timestamp":{"__isSmartRef__":true,"id":36207},"user":"sebastianwoinar","tags":[]},"36207":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36208":{"varMapping":{"__isSmartRef__":true,"id":36209},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":36210},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36209":{"this":{"__isSmartRef__":true,"id":36171}},"36210":{"timestamp":{"__isSmartRef__":true,"id":36211},"user":"sebastianwoinar","tags":[]},"36211":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36212":{"varMapping":{"__isSmartRef__":true,"id":36213},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":36214},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36213":{"this":{"__isSmartRef__":true,"id":36171}},"36214":{"timestamp":{"__isSmartRef__":true,"id":36215},"user":"sebastianwoinar","tags":[]},"36215":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36216":{"varMapping":{"__isSmartRef__":true,"id":36217},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":36218},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36217":{"this":{"__isSmartRef__":true,"id":36171}},"36218":{"timestamp":{"__isSmartRef__":true,"id":36219},"user":"sebastianwoinar","tags":[]},"36219":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36220":{"varMapping":{"__isSmartRef__":true,"id":36221},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":36222},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36221":{"this":{"__isSmartRef__":true,"id":36171}},"36222":{"timestamp":{"__isSmartRef__":true,"id":36223},"user":"sebastianwoinar","tags":[]},"36223":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36224":{"varMapping":{"__isSmartRef__":true,"id":36225},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":36226},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36225":{"this":{"__isSmartRef__":true,"id":36171}},"36226":{"timestamp":{"__isSmartRef__":true,"id":36227},"user":"sebastianwoinar","tags":[]},"36227":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"36228":{"varMapping":{"__isSmartRef__":true,"id":36229},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":36230},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36229":{"this":{"__isSmartRef__":true,"id":36171}},"36230":{"timestamp":{"__isSmartRef__":true,"id":36231},"user":"sebastianwoinar","tags":[]},"36231":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"36232":{"varMapping":{"__isSmartRef__":true,"id":36233},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":36234},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36233":{"this":{"__isSmartRef__":true,"id":36171}},"36234":{"timestamp":{"__isSmartRef__":true,"id":36235},"user":"sebastianwoinar","tags":[]},"36235":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"36236":{"varMapping":{"__isSmartRef__":true,"id":36237},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":36238},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36237":{"this":{"__isSmartRef__":true,"id":36171}},"36238":{"timestamp":{"__isSmartRef__":true,"id":36239},"user":"sebastianwoinar","tags":[]},"36239":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"36240":{"varMapping":{"__isSmartRef__":true,"id":36241},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":36242},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36241":{"this":{"__isSmartRef__":true,"id":36171}},"36242":{"timestamp":{"__isSmartRef__":true,"id":36243},"user":"sebastianwoinar","tags":[]},"36243":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"36244":{"varMapping":{"__isSmartRef__":true,"id":36245},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":36246},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36245":{"this":{"__isSmartRef__":true,"id":36171}},"36246":{"timestamp":{"__isSmartRef__":true,"id":36247},"user":"sebastianwoinar","tags":[]},"36247":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"36248":{"varMapping":{"__isSmartRef__":true,"id":36249},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":36250},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36249":{"this":{"__isSmartRef__":true,"id":36171}},"36250":{"timestamp":{"__isSmartRef__":true,"id":36251},"user":"sebastianwoinar","tags":[]},"36251":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"36252":{"varMapping":{"__isSmartRef__":true,"id":36253},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":36254},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36253":{"this":{"__isSmartRef__":true,"id":36171}},"36254":{"timestamp":{"__isSmartRef__":true,"id":36255},"user":"sebastianwoinar","tags":[]},"36255":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"36256":{"varMapping":{"__isSmartRef__":true,"id":36257},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":36258},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36257":{"this":{"__isSmartRef__":true,"id":36171}},"36258":{"timestamp":{"__isSmartRef__":true,"id":36259},"user":"sebastianwoinar","tags":[]},"36259":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"36260":{"varMapping":{"__isSmartRef__":true,"id":36261},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":36266},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36261":{"this":{"__isSmartRef__":true,"id":36171},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":36262}},"36262":{"$super":{"__isSmartRef__":true,"id":36263}},"36263":{"varMapping":{"__isSmartRef__":true,"id":36264},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":36265},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36264":{"obj":{"__isSmartRef__":true,"id":36171},"name":"onMouseDown"},"36265":{},"36266":{"timestamp":{"__isSmartRef__":true,"id":36267},"user":"sebastianwoinar","tags":[]},"36267":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"36268":{"varMapping":{"__isSmartRef__":true,"id":36269},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":36270},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36269":{"this":{"__isSmartRef__":true,"id":36171}},"36270":{"timestamp":{"__isSmartRef__":true,"id":36271},"user":"sebastianwoinar","tags":[]},"36271":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"36272":{"varMapping":{"__isSmartRef__":true,"id":36273},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":36274},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36273":{"this":{"__isSmartRef__":true,"id":36171}},"36274":{"timestamp":{"__isSmartRef__":true,"id":36275},"user":"sebastianwoinar","tags":[]},"36275":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"36276":{"varMapping":{"__isSmartRef__":true,"id":36277},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":36278},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36277":{"this":{"__isSmartRef__":true,"id":36171}},"36278":{"timestamp":{"__isSmartRef__":true,"id":36279},"user":"sebastianwoinar","tags":[]},"36279":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"36280":{"varMapping":{"__isSmartRef__":true,"id":36281},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":36282},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36281":{"this":{"__isSmartRef__":true,"id":36171}},"36282":{"timestamp":{"__isSmartRef__":true,"id":36283},"user":"sebastianwoinar","tags":[]},"36283":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"36284":{"varMapping":{"__isSmartRef__":true,"id":36285},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":36286},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36285":{"this":{"__isSmartRef__":true,"id":36171}},"36286":{"timestamp":{"__isSmartRef__":true,"id":36287},"user":"sebastianwoinar","tags":[]},"36287":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"36288":{"varMapping":{"__isSmartRef__":true,"id":36289},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":36290},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36289":{"this":{"__isSmartRef__":true,"id":36171}},"36290":{"timestamp":{"__isSmartRef__":true,"id":36291},"user":"sebastianwoinar","tags":[]},"36291":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"36292":{"varMapping":{"__isSmartRef__":true,"id":36293},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":36294},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36293":{"this":{"__isSmartRef__":true,"id":36171}},"36294":{"timestamp":{"__isSmartRef__":true,"id":36295},"user":"sebastianwoinar","tags":[]},"36295":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"36296":{"varMapping":{"__isSmartRef__":true,"id":36297},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":36298},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36297":{"this":{"__isSmartRef__":true,"id":36171}},"36298":{"timestamp":{"__isSmartRef__":true,"id":36299},"user":"sebastianwoinar","tags":[]},"36299":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"36300":{"submorphs":[{"__isSmartRef__":true,"id":36301}],"scripts":[],"shape":{"__isSmartRef__":true,"id":36318},"id":"F3316B2B-B7C4-4885-815C-3169838744EF","eventHandler":{"__isSmartRef__":true,"id":36319},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":36320},"name":"node240","partsBinMetaInfo":{"__isSmartRef__":true,"id":36321},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5909},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":36018},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":36324},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(1087.9,210.0)"},"36301":{"submorphs":[],"scripts":[],"id":"31A1A6E2-29CA-4C2D-B890-4C5FB170FA9E","shape":{"__isSmartRef__":true,"id":36302},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":36303},"textChunks":[{"__isSmartRef__":true,"id":36315}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":36317},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":36300},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"36302":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"36303":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":36304},{"__isSmartRef__":true,"id":36306},{"__isSmartRef__":true,"id":36308},{"__isSmartRef__":true,"id":36310},{"__isSmartRef__":true,"id":36312}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":36314},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"36304":{"date":{"__isSmartRef__":true,"id":36305},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"36305":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"36306":{"date":{"__isSmartRef__":true,"id":36307},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"36307":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"36308":{"date":{"__isSmartRef__":true,"id":36309},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"36309":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"36310":{"date":{"__isSmartRef__":true,"id":36311},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"36311":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"36312":{"date":{"__isSmartRef__":true,"id":36313},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"36313":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"36314":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"36315":{"style":{"__isSmartRef__":true,"id":36316},"morph":{"__isSmartRef__":true,"id":36301},"chunkOwner":{"__isSmartRef__":true,"id":36301},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"36316":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"36317":{"morph":{"__isSmartRef__":true,"id":36301},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"36318":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"36319":{"morph":{"__isSmartRef__":true,"id":36300},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"36320":{},"36321":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":36322}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"36322":{"date":{"__isSmartRef__":true,"id":36323},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"36323":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"36324":{"buildChildNodes":{"__isSmartRef__":true,"id":36325},"getGameTree":{"__isSmartRef__":true,"id":36329},"getLevel":{"__isSmartRef__":true,"id":36333},"getLevelWeight":{"__isSmartRef__":true,"id":36337},"getWeight":{"__isSmartRef__":true,"id":36341},"setNode":{"__isSmartRef__":true,"id":36345},"setParent":{"__isSmartRef__":true,"id":36349},"getParent":{"__isSmartRef__":true,"id":36353},"deactivate":{"__isSmartRef__":true,"id":36357},"blink":{"__isSmartRef__":true,"id":36361},"ABPreturn":{"__isSmartRef__":true,"id":36365},"ABPstart":{"__isSmartRef__":true,"id":36369},"ABPcontinue":{"__isSmartRef__":true,"id":36373},"ABPshowValue":{"__isSmartRef__":true,"id":36377},"ABPgetValue":{"__isSmartRef__":true,"id":36381},"ABPhasChildNodes":{"__isSmartRef__":true,"id":36385},"onMouseDown":{"__isSmartRef__":true,"id":36389},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":36397},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":36401},"ABPmarkAsDone":{"__isSmartRef__":true,"id":36405},"ABPmarkAsActive":{"__isSmartRef__":true,"id":36409},"getStateMorph":{"__isSmartRef__":true,"id":36413},"showState":{"__isSmartRef__":true,"id":36417},"ABPfailHard":{"__isSmartRef__":true,"id":36421},"markFinalDrawWith":{"__isSmartRef__":true,"id":36425}},"36325":{"varMapping":{"__isSmartRef__":true,"id":36326},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":36327},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36326":{"this":{"__isSmartRef__":true,"id":36300}},"36327":{"timestamp":{"__isSmartRef__":true,"id":36328},"user":"sebastianwoinar","tags":[]},"36328":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"36329":{"varMapping":{"__isSmartRef__":true,"id":36330},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":36331},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36330":{"this":{"__isSmartRef__":true,"id":36300}},"36331":{"timestamp":{"__isSmartRef__":true,"id":36332},"user":"sebastianwoinar","tags":[]},"36332":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36333":{"varMapping":{"__isSmartRef__":true,"id":36334},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":36335},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36334":{"this":{"__isSmartRef__":true,"id":36300}},"36335":{"timestamp":{"__isSmartRef__":true,"id":36336},"user":"sebastianwoinar","tags":[]},"36336":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36337":{"varMapping":{"__isSmartRef__":true,"id":36338},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":36339},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36338":{"this":{"__isSmartRef__":true,"id":36300}},"36339":{"timestamp":{"__isSmartRef__":true,"id":36340},"user":"sebastianwoinar","tags":[]},"36340":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36341":{"varMapping":{"__isSmartRef__":true,"id":36342},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":36343},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36342":{"this":{"__isSmartRef__":true,"id":36300}},"36343":{"timestamp":{"__isSmartRef__":true,"id":36344},"user":"sebastianwoinar","tags":[]},"36344":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36345":{"varMapping":{"__isSmartRef__":true,"id":36346},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":36347},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36346":{"this":{"__isSmartRef__":true,"id":36300}},"36347":{"timestamp":{"__isSmartRef__":true,"id":36348},"user":"sebastianwoinar","tags":[]},"36348":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36349":{"varMapping":{"__isSmartRef__":true,"id":36350},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":36351},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36350":{"this":{"__isSmartRef__":true,"id":36300}},"36351":{"timestamp":{"__isSmartRef__":true,"id":36352},"user":"sebastianwoinar","tags":[]},"36352":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36353":{"varMapping":{"__isSmartRef__":true,"id":36354},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":36355},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36354":{"this":{"__isSmartRef__":true,"id":36300}},"36355":{"timestamp":{"__isSmartRef__":true,"id":36356},"user":"sebastianwoinar","tags":[]},"36356":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"36357":{"varMapping":{"__isSmartRef__":true,"id":36358},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":36359},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36358":{"this":{"__isSmartRef__":true,"id":36300}},"36359":{"timestamp":{"__isSmartRef__":true,"id":36360},"user":"sebastianwoinar","tags":[]},"36360":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"36361":{"varMapping":{"__isSmartRef__":true,"id":36362},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":36363},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36362":{"this":{"__isSmartRef__":true,"id":36300}},"36363":{"timestamp":{"__isSmartRef__":true,"id":36364},"user":"sebastianwoinar","tags":[]},"36364":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"36365":{"varMapping":{"__isSmartRef__":true,"id":36366},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":36367},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36366":{"this":{"__isSmartRef__":true,"id":36300}},"36367":{"timestamp":{"__isSmartRef__":true,"id":36368},"user":"sebastianwoinar","tags":[]},"36368":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"36369":{"varMapping":{"__isSmartRef__":true,"id":36370},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":36371},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36370":{"this":{"__isSmartRef__":true,"id":36300}},"36371":{"timestamp":{"__isSmartRef__":true,"id":36372},"user":"sebastianwoinar","tags":[]},"36372":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"36373":{"varMapping":{"__isSmartRef__":true,"id":36374},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":36375},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36374":{"this":{"__isSmartRef__":true,"id":36300}},"36375":{"timestamp":{"__isSmartRef__":true,"id":36376},"user":"sebastianwoinar","tags":[]},"36376":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"36377":{"varMapping":{"__isSmartRef__":true,"id":36378},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":36379},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36378":{"this":{"__isSmartRef__":true,"id":36300}},"36379":{"timestamp":{"__isSmartRef__":true,"id":36380},"user":"sebastianwoinar","tags":[]},"36380":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"36381":{"varMapping":{"__isSmartRef__":true,"id":36382},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":36383},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36382":{"this":{"__isSmartRef__":true,"id":36300}},"36383":{"timestamp":{"__isSmartRef__":true,"id":36384},"user":"sebastianwoinar","tags":[]},"36384":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"36385":{"varMapping":{"__isSmartRef__":true,"id":36386},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":36387},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36386":{"this":{"__isSmartRef__":true,"id":36300}},"36387":{"timestamp":{"__isSmartRef__":true,"id":36388},"user":"sebastianwoinar","tags":[]},"36388":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"36389":{"varMapping":{"__isSmartRef__":true,"id":36390},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":36395},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36390":{"this":{"__isSmartRef__":true,"id":36300},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":36391}},"36391":{"$super":{"__isSmartRef__":true,"id":36392}},"36392":{"varMapping":{"__isSmartRef__":true,"id":36393},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":36394},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36393":{"obj":{"__isSmartRef__":true,"id":36300},"name":"onMouseDown"},"36394":{},"36395":{"timestamp":{"__isSmartRef__":true,"id":36396},"user":"sebastianwoinar","tags":[]},"36396":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"36397":{"varMapping":{"__isSmartRef__":true,"id":36398},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":36399},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36398":{"this":{"__isSmartRef__":true,"id":36300}},"36399":{"timestamp":{"__isSmartRef__":true,"id":36400},"user":"sebastianwoinar","tags":[]},"36400":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"36401":{"varMapping":{"__isSmartRef__":true,"id":36402},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":36403},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36402":{"this":{"__isSmartRef__":true,"id":36300}},"36403":{"timestamp":{"__isSmartRef__":true,"id":36404},"user":"sebastianwoinar","tags":[]},"36404":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"36405":{"varMapping":{"__isSmartRef__":true,"id":36406},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":36407},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36406":{"this":{"__isSmartRef__":true,"id":36300}},"36407":{"timestamp":{"__isSmartRef__":true,"id":36408},"user":"sebastianwoinar","tags":[]},"36408":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"36409":{"varMapping":{"__isSmartRef__":true,"id":36410},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":36411},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36410":{"this":{"__isSmartRef__":true,"id":36300}},"36411":{"timestamp":{"__isSmartRef__":true,"id":36412},"user":"sebastianwoinar","tags":[]},"36412":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"36413":{"varMapping":{"__isSmartRef__":true,"id":36414},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":36415},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36414":{"this":{"__isSmartRef__":true,"id":36300}},"36415":{"timestamp":{"__isSmartRef__":true,"id":36416},"user":"sebastianwoinar","tags":[]},"36416":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"36417":{"varMapping":{"__isSmartRef__":true,"id":36418},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":36419},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36418":{"this":{"__isSmartRef__":true,"id":36300}},"36419":{"timestamp":{"__isSmartRef__":true,"id":36420},"user":"sebastianwoinar","tags":[]},"36420":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"36421":{"varMapping":{"__isSmartRef__":true,"id":36422},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":36423},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36422":{"this":{"__isSmartRef__":true,"id":36300}},"36423":{"timestamp":{"__isSmartRef__":true,"id":36424},"user":"sebastianwoinar","tags":[]},"36424":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"36425":{"varMapping":{"__isSmartRef__":true,"id":36426},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":36427},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36426":{"this":{"__isSmartRef__":true,"id":36300}},"36427":{"timestamp":{"__isSmartRef__":true,"id":36428},"user":"sebastianwoinar","tags":[]},"36428":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"36429":{"submorphs":[{"__isSmartRef__":true,"id":36430}],"scripts":[],"shape":{"__isSmartRef__":true,"id":36447},"id":"1DE36460-1998-4B4A-889C-484FE28584C1","eventHandler":{"__isSmartRef__":true,"id":36448},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":36449},"name":"node241","partsBinMetaInfo":{"__isSmartRef__":true,"id":36450},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5911},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":36018},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":36453},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(1093.1,210.0)"},"36430":{"submorphs":[],"scripts":[],"id":"CC32FB73-27F7-4F0A-947D-F90B627CD323","shape":{"__isSmartRef__":true,"id":36431},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":36432},"textChunks":[{"__isSmartRef__":true,"id":36444}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":36446},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":36429},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"36431":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"36432":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":36433},{"__isSmartRef__":true,"id":36435},{"__isSmartRef__":true,"id":36437},{"__isSmartRef__":true,"id":36439},{"__isSmartRef__":true,"id":36441}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":36443},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"36433":{"date":{"__isSmartRef__":true,"id":36434},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"36434":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"36435":{"date":{"__isSmartRef__":true,"id":36436},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"36436":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"36437":{"date":{"__isSmartRef__":true,"id":36438},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"36438":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"36439":{"date":{"__isSmartRef__":true,"id":36440},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"36440":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"36441":{"date":{"__isSmartRef__":true,"id":36442},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"36442":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"36443":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"36444":{"style":{"__isSmartRef__":true,"id":36445},"morph":{"__isSmartRef__":true,"id":36430},"chunkOwner":{"__isSmartRef__":true,"id":36430},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"36445":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"36446":{"morph":{"__isSmartRef__":true,"id":36430},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"36447":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"36448":{"morph":{"__isSmartRef__":true,"id":36429},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"36449":{},"36450":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":36451}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"36451":{"date":{"__isSmartRef__":true,"id":36452},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"36452":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"36453":{"buildChildNodes":{"__isSmartRef__":true,"id":36454},"getGameTree":{"__isSmartRef__":true,"id":36458},"getLevel":{"__isSmartRef__":true,"id":36462},"getLevelWeight":{"__isSmartRef__":true,"id":36466},"getWeight":{"__isSmartRef__":true,"id":36470},"setNode":{"__isSmartRef__":true,"id":36474},"setParent":{"__isSmartRef__":true,"id":36478},"getParent":{"__isSmartRef__":true,"id":36482},"deactivate":{"__isSmartRef__":true,"id":36486},"blink":{"__isSmartRef__":true,"id":36490},"ABPreturn":{"__isSmartRef__":true,"id":36494},"ABPstart":{"__isSmartRef__":true,"id":36498},"ABPcontinue":{"__isSmartRef__":true,"id":36502},"ABPshowValue":{"__isSmartRef__":true,"id":36506},"ABPgetValue":{"__isSmartRef__":true,"id":36510},"ABPhasChildNodes":{"__isSmartRef__":true,"id":36514},"onMouseDown":{"__isSmartRef__":true,"id":36518},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":36526},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":36530},"ABPmarkAsDone":{"__isSmartRef__":true,"id":36534},"ABPmarkAsActive":{"__isSmartRef__":true,"id":36538},"getStateMorph":{"__isSmartRef__":true,"id":36542},"showState":{"__isSmartRef__":true,"id":36546},"ABPfailHard":{"__isSmartRef__":true,"id":36550},"markFinalDrawWith":{"__isSmartRef__":true,"id":36554}},"36454":{"varMapping":{"__isSmartRef__":true,"id":36455},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":36456},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36455":{"this":{"__isSmartRef__":true,"id":36429}},"36456":{"timestamp":{"__isSmartRef__":true,"id":36457},"user":"sebastianwoinar","tags":[]},"36457":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"36458":{"varMapping":{"__isSmartRef__":true,"id":36459},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":36460},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36459":{"this":{"__isSmartRef__":true,"id":36429}},"36460":{"timestamp":{"__isSmartRef__":true,"id":36461},"user":"sebastianwoinar","tags":[]},"36461":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36462":{"varMapping":{"__isSmartRef__":true,"id":36463},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":36464},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36463":{"this":{"__isSmartRef__":true,"id":36429}},"36464":{"timestamp":{"__isSmartRef__":true,"id":36465},"user":"sebastianwoinar","tags":[]},"36465":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36466":{"varMapping":{"__isSmartRef__":true,"id":36467},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":36468},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36467":{"this":{"__isSmartRef__":true,"id":36429}},"36468":{"timestamp":{"__isSmartRef__":true,"id":36469},"user":"sebastianwoinar","tags":[]},"36469":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36470":{"varMapping":{"__isSmartRef__":true,"id":36471},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":36472},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36471":{"this":{"__isSmartRef__":true,"id":36429}},"36472":{"timestamp":{"__isSmartRef__":true,"id":36473},"user":"sebastianwoinar","tags":[]},"36473":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36474":{"varMapping":{"__isSmartRef__":true,"id":36475},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":36476},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36475":{"this":{"__isSmartRef__":true,"id":36429}},"36476":{"timestamp":{"__isSmartRef__":true,"id":36477},"user":"sebastianwoinar","tags":[]},"36477":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36478":{"varMapping":{"__isSmartRef__":true,"id":36479},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":36480},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36479":{"this":{"__isSmartRef__":true,"id":36429}},"36480":{"timestamp":{"__isSmartRef__":true,"id":36481},"user":"sebastianwoinar","tags":[]},"36481":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36482":{"varMapping":{"__isSmartRef__":true,"id":36483},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":36484},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36483":{"this":{"__isSmartRef__":true,"id":36429}},"36484":{"timestamp":{"__isSmartRef__":true,"id":36485},"user":"sebastianwoinar","tags":[]},"36485":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"36486":{"varMapping":{"__isSmartRef__":true,"id":36487},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":36488},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36487":{"this":{"__isSmartRef__":true,"id":36429}},"36488":{"timestamp":{"__isSmartRef__":true,"id":36489},"user":"sebastianwoinar","tags":[]},"36489":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"36490":{"varMapping":{"__isSmartRef__":true,"id":36491},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":36492},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36491":{"this":{"__isSmartRef__":true,"id":36429}},"36492":{"timestamp":{"__isSmartRef__":true,"id":36493},"user":"sebastianwoinar","tags":[]},"36493":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"36494":{"varMapping":{"__isSmartRef__":true,"id":36495},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":36496},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36495":{"this":{"__isSmartRef__":true,"id":36429}},"36496":{"timestamp":{"__isSmartRef__":true,"id":36497},"user":"sebastianwoinar","tags":[]},"36497":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"36498":{"varMapping":{"__isSmartRef__":true,"id":36499},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":36500},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36499":{"this":{"__isSmartRef__":true,"id":36429}},"36500":{"timestamp":{"__isSmartRef__":true,"id":36501},"user":"sebastianwoinar","tags":[]},"36501":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"36502":{"varMapping":{"__isSmartRef__":true,"id":36503},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":36504},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36503":{"this":{"__isSmartRef__":true,"id":36429}},"36504":{"timestamp":{"__isSmartRef__":true,"id":36505},"user":"sebastianwoinar","tags":[]},"36505":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"36506":{"varMapping":{"__isSmartRef__":true,"id":36507},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":36508},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36507":{"this":{"__isSmartRef__":true,"id":36429}},"36508":{"timestamp":{"__isSmartRef__":true,"id":36509},"user":"sebastianwoinar","tags":[]},"36509":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"36510":{"varMapping":{"__isSmartRef__":true,"id":36511},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":36512},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36511":{"this":{"__isSmartRef__":true,"id":36429}},"36512":{"timestamp":{"__isSmartRef__":true,"id":36513},"user":"sebastianwoinar","tags":[]},"36513":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"36514":{"varMapping":{"__isSmartRef__":true,"id":36515},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":36516},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36515":{"this":{"__isSmartRef__":true,"id":36429}},"36516":{"timestamp":{"__isSmartRef__":true,"id":36517},"user":"sebastianwoinar","tags":[]},"36517":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"36518":{"varMapping":{"__isSmartRef__":true,"id":36519},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":36524},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36519":{"this":{"__isSmartRef__":true,"id":36429},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":36520}},"36520":{"$super":{"__isSmartRef__":true,"id":36521}},"36521":{"varMapping":{"__isSmartRef__":true,"id":36522},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":36523},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36522":{"obj":{"__isSmartRef__":true,"id":36429},"name":"onMouseDown"},"36523":{},"36524":{"timestamp":{"__isSmartRef__":true,"id":36525},"user":"sebastianwoinar","tags":[]},"36525":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"36526":{"varMapping":{"__isSmartRef__":true,"id":36527},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":36528},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36527":{"this":{"__isSmartRef__":true,"id":36429}},"36528":{"timestamp":{"__isSmartRef__":true,"id":36529},"user":"sebastianwoinar","tags":[]},"36529":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"36530":{"varMapping":{"__isSmartRef__":true,"id":36531},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":36532},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36531":{"this":{"__isSmartRef__":true,"id":36429}},"36532":{"timestamp":{"__isSmartRef__":true,"id":36533},"user":"sebastianwoinar","tags":[]},"36533":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"36534":{"varMapping":{"__isSmartRef__":true,"id":36535},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":36536},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36535":{"this":{"__isSmartRef__":true,"id":36429}},"36536":{"timestamp":{"__isSmartRef__":true,"id":36537},"user":"sebastianwoinar","tags":[]},"36537":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"36538":{"varMapping":{"__isSmartRef__":true,"id":36539},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":36540},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36539":{"this":{"__isSmartRef__":true,"id":36429}},"36540":{"timestamp":{"__isSmartRef__":true,"id":36541},"user":"sebastianwoinar","tags":[]},"36541":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"36542":{"varMapping":{"__isSmartRef__":true,"id":36543},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":36544},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36543":{"this":{"__isSmartRef__":true,"id":36429}},"36544":{"timestamp":{"__isSmartRef__":true,"id":36545},"user":"sebastianwoinar","tags":[]},"36545":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"36546":{"varMapping":{"__isSmartRef__":true,"id":36547},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":36548},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36547":{"this":{"__isSmartRef__":true,"id":36429}},"36548":{"timestamp":{"__isSmartRef__":true,"id":36549},"user":"sebastianwoinar","tags":[]},"36549":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"36550":{"varMapping":{"__isSmartRef__":true,"id":36551},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":36552},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36551":{"this":{"__isSmartRef__":true,"id":36429}},"36552":{"timestamp":{"__isSmartRef__":true,"id":36553},"user":"sebastianwoinar","tags":[]},"36553":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"36554":{"varMapping":{"__isSmartRef__":true,"id":36555},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":36556},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36555":{"this":{"__isSmartRef__":true,"id":36429}},"36556":{"timestamp":{"__isSmartRef__":true,"id":36557},"user":"sebastianwoinar","tags":[]},"36557":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"36558":{"submorphs":[{"__isSmartRef__":true,"id":36559}],"scripts":[],"shape":{"__isSmartRef__":true,"id":36576},"id":"2236AF1C-5727-4942-98DB-AE67DC190E82","eventHandler":{"__isSmartRef__":true,"id":36577},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":36578},"name":"node242","partsBinMetaInfo":{"__isSmartRef__":true,"id":36579},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5913},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":36018},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":36582},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(1098.2,210.0)"},"36559":{"submorphs":[],"scripts":[],"id":"5B9E7FE2-D816-42E2-9ACA-86FE71980003","shape":{"__isSmartRef__":true,"id":36560},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":36561},"textChunks":[{"__isSmartRef__":true,"id":36573}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":36575},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":36558},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"36560":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"36561":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":36562},{"__isSmartRef__":true,"id":36564},{"__isSmartRef__":true,"id":36566},{"__isSmartRef__":true,"id":36568},{"__isSmartRef__":true,"id":36570}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":36572},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"36562":{"date":{"__isSmartRef__":true,"id":36563},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"36563":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"36564":{"date":{"__isSmartRef__":true,"id":36565},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"36565":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"36566":{"date":{"__isSmartRef__":true,"id":36567},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"36567":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"36568":{"date":{"__isSmartRef__":true,"id":36569},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"36569":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"36570":{"date":{"__isSmartRef__":true,"id":36571},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"36571":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"36572":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"36573":{"style":{"__isSmartRef__":true,"id":36574},"morph":{"__isSmartRef__":true,"id":36559},"chunkOwner":{"__isSmartRef__":true,"id":36559},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"36574":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"36575":{"morph":{"__isSmartRef__":true,"id":36559},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"36576":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"36577":{"morph":{"__isSmartRef__":true,"id":36558},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"36578":{},"36579":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":36580}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"36580":{"date":{"__isSmartRef__":true,"id":36581},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"36581":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"36582":{"buildChildNodes":{"__isSmartRef__":true,"id":36583},"getGameTree":{"__isSmartRef__":true,"id":36587},"getLevel":{"__isSmartRef__":true,"id":36591},"getLevelWeight":{"__isSmartRef__":true,"id":36595},"getWeight":{"__isSmartRef__":true,"id":36599},"setNode":{"__isSmartRef__":true,"id":36603},"setParent":{"__isSmartRef__":true,"id":36607},"getParent":{"__isSmartRef__":true,"id":36611},"deactivate":{"__isSmartRef__":true,"id":36615},"blink":{"__isSmartRef__":true,"id":36619},"ABPreturn":{"__isSmartRef__":true,"id":36623},"ABPstart":{"__isSmartRef__":true,"id":36627},"ABPcontinue":{"__isSmartRef__":true,"id":36631},"ABPshowValue":{"__isSmartRef__":true,"id":36635},"ABPgetValue":{"__isSmartRef__":true,"id":36639},"ABPhasChildNodes":{"__isSmartRef__":true,"id":36643},"onMouseDown":{"__isSmartRef__":true,"id":36647},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":36655},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":36659},"ABPmarkAsDone":{"__isSmartRef__":true,"id":36663},"ABPmarkAsActive":{"__isSmartRef__":true,"id":36667},"getStateMorph":{"__isSmartRef__":true,"id":36671},"showState":{"__isSmartRef__":true,"id":36675},"ABPfailHard":{"__isSmartRef__":true,"id":36679},"markFinalDrawWith":{"__isSmartRef__":true,"id":36683}},"36583":{"varMapping":{"__isSmartRef__":true,"id":36584},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":36585},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36584":{"this":{"__isSmartRef__":true,"id":36558}},"36585":{"timestamp":{"__isSmartRef__":true,"id":36586},"user":"sebastianwoinar","tags":[]},"36586":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"36587":{"varMapping":{"__isSmartRef__":true,"id":36588},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":36589},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36588":{"this":{"__isSmartRef__":true,"id":36558}},"36589":{"timestamp":{"__isSmartRef__":true,"id":36590},"user":"sebastianwoinar","tags":[]},"36590":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36591":{"varMapping":{"__isSmartRef__":true,"id":36592},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":36593},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36592":{"this":{"__isSmartRef__":true,"id":36558}},"36593":{"timestamp":{"__isSmartRef__":true,"id":36594},"user":"sebastianwoinar","tags":[]},"36594":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36595":{"varMapping":{"__isSmartRef__":true,"id":36596},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":36597},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36596":{"this":{"__isSmartRef__":true,"id":36558}},"36597":{"timestamp":{"__isSmartRef__":true,"id":36598},"user":"sebastianwoinar","tags":[]},"36598":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36599":{"varMapping":{"__isSmartRef__":true,"id":36600},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":36601},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36600":{"this":{"__isSmartRef__":true,"id":36558}},"36601":{"timestamp":{"__isSmartRef__":true,"id":36602},"user":"sebastianwoinar","tags":[]},"36602":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36603":{"varMapping":{"__isSmartRef__":true,"id":36604},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":36605},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36604":{"this":{"__isSmartRef__":true,"id":36558}},"36605":{"timestamp":{"__isSmartRef__":true,"id":36606},"user":"sebastianwoinar","tags":[]},"36606":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36607":{"varMapping":{"__isSmartRef__":true,"id":36608},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":36609},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36608":{"this":{"__isSmartRef__":true,"id":36558}},"36609":{"timestamp":{"__isSmartRef__":true,"id":36610},"user":"sebastianwoinar","tags":[]},"36610":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36611":{"varMapping":{"__isSmartRef__":true,"id":36612},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":36613},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36612":{"this":{"__isSmartRef__":true,"id":36558}},"36613":{"timestamp":{"__isSmartRef__":true,"id":36614},"user":"sebastianwoinar","tags":[]},"36614":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"36615":{"varMapping":{"__isSmartRef__":true,"id":36616},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":36617},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36616":{"this":{"__isSmartRef__":true,"id":36558}},"36617":{"timestamp":{"__isSmartRef__":true,"id":36618},"user":"sebastianwoinar","tags":[]},"36618":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"36619":{"varMapping":{"__isSmartRef__":true,"id":36620},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":36621},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36620":{"this":{"__isSmartRef__":true,"id":36558}},"36621":{"timestamp":{"__isSmartRef__":true,"id":36622},"user":"sebastianwoinar","tags":[]},"36622":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"36623":{"varMapping":{"__isSmartRef__":true,"id":36624},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":36625},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36624":{"this":{"__isSmartRef__":true,"id":36558}},"36625":{"timestamp":{"__isSmartRef__":true,"id":36626},"user":"sebastianwoinar","tags":[]},"36626":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"36627":{"varMapping":{"__isSmartRef__":true,"id":36628},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":36629},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36628":{"this":{"__isSmartRef__":true,"id":36558}},"36629":{"timestamp":{"__isSmartRef__":true,"id":36630},"user":"sebastianwoinar","tags":[]},"36630":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"36631":{"varMapping":{"__isSmartRef__":true,"id":36632},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":36633},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36632":{"this":{"__isSmartRef__":true,"id":36558}},"36633":{"timestamp":{"__isSmartRef__":true,"id":36634},"user":"sebastianwoinar","tags":[]},"36634":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"36635":{"varMapping":{"__isSmartRef__":true,"id":36636},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":36637},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36636":{"this":{"__isSmartRef__":true,"id":36558}},"36637":{"timestamp":{"__isSmartRef__":true,"id":36638},"user":"sebastianwoinar","tags":[]},"36638":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"36639":{"varMapping":{"__isSmartRef__":true,"id":36640},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":36641},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36640":{"this":{"__isSmartRef__":true,"id":36558}},"36641":{"timestamp":{"__isSmartRef__":true,"id":36642},"user":"sebastianwoinar","tags":[]},"36642":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"36643":{"varMapping":{"__isSmartRef__":true,"id":36644},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":36645},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36644":{"this":{"__isSmartRef__":true,"id":36558}},"36645":{"timestamp":{"__isSmartRef__":true,"id":36646},"user":"sebastianwoinar","tags":[]},"36646":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"36647":{"varMapping":{"__isSmartRef__":true,"id":36648},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":36653},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36648":{"this":{"__isSmartRef__":true,"id":36558},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":36649}},"36649":{"$super":{"__isSmartRef__":true,"id":36650}},"36650":{"varMapping":{"__isSmartRef__":true,"id":36651},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":36652},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36651":{"obj":{"__isSmartRef__":true,"id":36558},"name":"onMouseDown"},"36652":{},"36653":{"timestamp":{"__isSmartRef__":true,"id":36654},"user":"sebastianwoinar","tags":[]},"36654":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"36655":{"varMapping":{"__isSmartRef__":true,"id":36656},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":36657},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36656":{"this":{"__isSmartRef__":true,"id":36558}},"36657":{"timestamp":{"__isSmartRef__":true,"id":36658},"user":"sebastianwoinar","tags":[]},"36658":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"36659":{"varMapping":{"__isSmartRef__":true,"id":36660},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":36661},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36660":{"this":{"__isSmartRef__":true,"id":36558}},"36661":{"timestamp":{"__isSmartRef__":true,"id":36662},"user":"sebastianwoinar","tags":[]},"36662":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"36663":{"varMapping":{"__isSmartRef__":true,"id":36664},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":36665},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36664":{"this":{"__isSmartRef__":true,"id":36558}},"36665":{"timestamp":{"__isSmartRef__":true,"id":36666},"user":"sebastianwoinar","tags":[]},"36666":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"36667":{"varMapping":{"__isSmartRef__":true,"id":36668},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":36669},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36668":{"this":{"__isSmartRef__":true,"id":36558}},"36669":{"timestamp":{"__isSmartRef__":true,"id":36670},"user":"sebastianwoinar","tags":[]},"36670":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"36671":{"varMapping":{"__isSmartRef__":true,"id":36672},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":36673},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36672":{"this":{"__isSmartRef__":true,"id":36558}},"36673":{"timestamp":{"__isSmartRef__":true,"id":36674},"user":"sebastianwoinar","tags":[]},"36674":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"36675":{"varMapping":{"__isSmartRef__":true,"id":36676},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":36677},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36676":{"this":{"__isSmartRef__":true,"id":36558}},"36677":{"timestamp":{"__isSmartRef__":true,"id":36678},"user":"sebastianwoinar","tags":[]},"36678":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"36679":{"varMapping":{"__isSmartRef__":true,"id":36680},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":36681},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36680":{"this":{"__isSmartRef__":true,"id":36558}},"36681":{"timestamp":{"__isSmartRef__":true,"id":36682},"user":"sebastianwoinar","tags":[]},"36682":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"36683":{"varMapping":{"__isSmartRef__":true,"id":36684},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":36685},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36684":{"this":{"__isSmartRef__":true,"id":36558}},"36685":{"timestamp":{"__isSmartRef__":true,"id":36686},"user":"sebastianwoinar","tags":[]},"36686":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"36687":{"submorphs":[{"__isSmartRef__":true,"id":36688}],"scripts":[],"shape":{"__isSmartRef__":true,"id":36705},"id":"B86B09A9-75A1-4374-9C40-B8E3ECB436BB","eventHandler":{"__isSmartRef__":true,"id":36706},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":36707},"name":"node243","partsBinMetaInfo":{"__isSmartRef__":true,"id":36708},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5915},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":36018},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":36711},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(1103.4,210.0)"},"36688":{"submorphs":[],"scripts":[],"id":"A4A5C221-E907-45A1-9BBB-609207883E99","shape":{"__isSmartRef__":true,"id":36689},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":36690},"textChunks":[{"__isSmartRef__":true,"id":36702}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":36704},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":36687},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"36689":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"36690":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":36691},{"__isSmartRef__":true,"id":36693},{"__isSmartRef__":true,"id":36695},{"__isSmartRef__":true,"id":36697},{"__isSmartRef__":true,"id":36699}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":36701},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"36691":{"date":{"__isSmartRef__":true,"id":36692},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"36692":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"36693":{"date":{"__isSmartRef__":true,"id":36694},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"36694":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"36695":{"date":{"__isSmartRef__":true,"id":36696},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"36696":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"36697":{"date":{"__isSmartRef__":true,"id":36698},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"36698":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"36699":{"date":{"__isSmartRef__":true,"id":36700},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"36700":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"36701":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"36702":{"style":{"__isSmartRef__":true,"id":36703},"morph":{"__isSmartRef__":true,"id":36688},"chunkOwner":{"__isSmartRef__":true,"id":36688},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"36703":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"36704":{"morph":{"__isSmartRef__":true,"id":36688},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"36705":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"36706":{"morph":{"__isSmartRef__":true,"id":36687},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"36707":{},"36708":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":36709}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"36709":{"date":{"__isSmartRef__":true,"id":36710},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"36710":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"36711":{"buildChildNodes":{"__isSmartRef__":true,"id":36712},"getGameTree":{"__isSmartRef__":true,"id":36716},"getLevel":{"__isSmartRef__":true,"id":36720},"getLevelWeight":{"__isSmartRef__":true,"id":36724},"getWeight":{"__isSmartRef__":true,"id":36728},"setNode":{"__isSmartRef__":true,"id":36732},"setParent":{"__isSmartRef__":true,"id":36736},"getParent":{"__isSmartRef__":true,"id":36740},"deactivate":{"__isSmartRef__":true,"id":36744},"blink":{"__isSmartRef__":true,"id":36748},"ABPreturn":{"__isSmartRef__":true,"id":36752},"ABPstart":{"__isSmartRef__":true,"id":36756},"ABPcontinue":{"__isSmartRef__":true,"id":36760},"ABPshowValue":{"__isSmartRef__":true,"id":36764},"ABPgetValue":{"__isSmartRef__":true,"id":36768},"ABPhasChildNodes":{"__isSmartRef__":true,"id":36772},"onMouseDown":{"__isSmartRef__":true,"id":36776},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":36784},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":36788},"ABPmarkAsDone":{"__isSmartRef__":true,"id":36792},"ABPmarkAsActive":{"__isSmartRef__":true,"id":36796},"getStateMorph":{"__isSmartRef__":true,"id":36800},"showState":{"__isSmartRef__":true,"id":36804},"ABPfailHard":{"__isSmartRef__":true,"id":36808},"markFinalDrawWith":{"__isSmartRef__":true,"id":36812}},"36712":{"varMapping":{"__isSmartRef__":true,"id":36713},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":36714},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36713":{"this":{"__isSmartRef__":true,"id":36687}},"36714":{"timestamp":{"__isSmartRef__":true,"id":36715},"user":"sebastianwoinar","tags":[]},"36715":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"36716":{"varMapping":{"__isSmartRef__":true,"id":36717},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":36718},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36717":{"this":{"__isSmartRef__":true,"id":36687}},"36718":{"timestamp":{"__isSmartRef__":true,"id":36719},"user":"sebastianwoinar","tags":[]},"36719":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36720":{"varMapping":{"__isSmartRef__":true,"id":36721},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":36722},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36721":{"this":{"__isSmartRef__":true,"id":36687}},"36722":{"timestamp":{"__isSmartRef__":true,"id":36723},"user":"sebastianwoinar","tags":[]},"36723":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36724":{"varMapping":{"__isSmartRef__":true,"id":36725},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":36726},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36725":{"this":{"__isSmartRef__":true,"id":36687}},"36726":{"timestamp":{"__isSmartRef__":true,"id":36727},"user":"sebastianwoinar","tags":[]},"36727":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36728":{"varMapping":{"__isSmartRef__":true,"id":36729},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":36730},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36729":{"this":{"__isSmartRef__":true,"id":36687}},"36730":{"timestamp":{"__isSmartRef__":true,"id":36731},"user":"sebastianwoinar","tags":[]},"36731":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36732":{"varMapping":{"__isSmartRef__":true,"id":36733},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":36734},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36733":{"this":{"__isSmartRef__":true,"id":36687}},"36734":{"timestamp":{"__isSmartRef__":true,"id":36735},"user":"sebastianwoinar","tags":[]},"36735":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36736":{"varMapping":{"__isSmartRef__":true,"id":36737},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":36738},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36737":{"this":{"__isSmartRef__":true,"id":36687}},"36738":{"timestamp":{"__isSmartRef__":true,"id":36739},"user":"sebastianwoinar","tags":[]},"36739":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36740":{"varMapping":{"__isSmartRef__":true,"id":36741},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":36742},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36741":{"this":{"__isSmartRef__":true,"id":36687}},"36742":{"timestamp":{"__isSmartRef__":true,"id":36743},"user":"sebastianwoinar","tags":[]},"36743":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"36744":{"varMapping":{"__isSmartRef__":true,"id":36745},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":36746},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36745":{"this":{"__isSmartRef__":true,"id":36687}},"36746":{"timestamp":{"__isSmartRef__":true,"id":36747},"user":"sebastianwoinar","tags":[]},"36747":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"36748":{"varMapping":{"__isSmartRef__":true,"id":36749},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":36750},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36749":{"this":{"__isSmartRef__":true,"id":36687}},"36750":{"timestamp":{"__isSmartRef__":true,"id":36751},"user":"sebastianwoinar","tags":[]},"36751":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"36752":{"varMapping":{"__isSmartRef__":true,"id":36753},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":36754},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36753":{"this":{"__isSmartRef__":true,"id":36687}},"36754":{"timestamp":{"__isSmartRef__":true,"id":36755},"user":"sebastianwoinar","tags":[]},"36755":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"36756":{"varMapping":{"__isSmartRef__":true,"id":36757},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":36758},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36757":{"this":{"__isSmartRef__":true,"id":36687}},"36758":{"timestamp":{"__isSmartRef__":true,"id":36759},"user":"sebastianwoinar","tags":[]},"36759":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"36760":{"varMapping":{"__isSmartRef__":true,"id":36761},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":36762},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36761":{"this":{"__isSmartRef__":true,"id":36687}},"36762":{"timestamp":{"__isSmartRef__":true,"id":36763},"user":"sebastianwoinar","tags":[]},"36763":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"36764":{"varMapping":{"__isSmartRef__":true,"id":36765},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":36766},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36765":{"this":{"__isSmartRef__":true,"id":36687}},"36766":{"timestamp":{"__isSmartRef__":true,"id":36767},"user":"sebastianwoinar","tags":[]},"36767":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"36768":{"varMapping":{"__isSmartRef__":true,"id":36769},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":36770},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36769":{"this":{"__isSmartRef__":true,"id":36687}},"36770":{"timestamp":{"__isSmartRef__":true,"id":36771},"user":"sebastianwoinar","tags":[]},"36771":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"36772":{"varMapping":{"__isSmartRef__":true,"id":36773},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":36774},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36773":{"this":{"__isSmartRef__":true,"id":36687}},"36774":{"timestamp":{"__isSmartRef__":true,"id":36775},"user":"sebastianwoinar","tags":[]},"36775":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"36776":{"varMapping":{"__isSmartRef__":true,"id":36777},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":36782},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36777":{"this":{"__isSmartRef__":true,"id":36687},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":36778}},"36778":{"$super":{"__isSmartRef__":true,"id":36779}},"36779":{"varMapping":{"__isSmartRef__":true,"id":36780},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":36781},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36780":{"obj":{"__isSmartRef__":true,"id":36687},"name":"onMouseDown"},"36781":{},"36782":{"timestamp":{"__isSmartRef__":true,"id":36783},"user":"sebastianwoinar","tags":[]},"36783":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"36784":{"varMapping":{"__isSmartRef__":true,"id":36785},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":36786},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36785":{"this":{"__isSmartRef__":true,"id":36687}},"36786":{"timestamp":{"__isSmartRef__":true,"id":36787},"user":"sebastianwoinar","tags":[]},"36787":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"36788":{"varMapping":{"__isSmartRef__":true,"id":36789},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":36790},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36789":{"this":{"__isSmartRef__":true,"id":36687}},"36790":{"timestamp":{"__isSmartRef__":true,"id":36791},"user":"sebastianwoinar","tags":[]},"36791":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"36792":{"varMapping":{"__isSmartRef__":true,"id":36793},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":36794},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36793":{"this":{"__isSmartRef__":true,"id":36687}},"36794":{"timestamp":{"__isSmartRef__":true,"id":36795},"user":"sebastianwoinar","tags":[]},"36795":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"36796":{"varMapping":{"__isSmartRef__":true,"id":36797},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":36798},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36797":{"this":{"__isSmartRef__":true,"id":36687}},"36798":{"timestamp":{"__isSmartRef__":true,"id":36799},"user":"sebastianwoinar","tags":[]},"36799":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"36800":{"varMapping":{"__isSmartRef__":true,"id":36801},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":36802},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36801":{"this":{"__isSmartRef__":true,"id":36687}},"36802":{"timestamp":{"__isSmartRef__":true,"id":36803},"user":"sebastianwoinar","tags":[]},"36803":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"36804":{"varMapping":{"__isSmartRef__":true,"id":36805},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":36806},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36805":{"this":{"__isSmartRef__":true,"id":36687}},"36806":{"timestamp":{"__isSmartRef__":true,"id":36807},"user":"sebastianwoinar","tags":[]},"36807":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"36808":{"varMapping":{"__isSmartRef__":true,"id":36809},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":36810},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36809":{"this":{"__isSmartRef__":true,"id":36687}},"36810":{"timestamp":{"__isSmartRef__":true,"id":36811},"user":"sebastianwoinar","tags":[]},"36811":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"36812":{"varMapping":{"__isSmartRef__":true,"id":36813},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":36814},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36813":{"this":{"__isSmartRef__":true,"id":36687}},"36814":{"timestamp":{"__isSmartRef__":true,"id":36815},"user":"sebastianwoinar","tags":[]},"36815":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"36816":{"submorphs":[{"__isSmartRef__":true,"id":36817}],"scripts":[],"shape":{"__isSmartRef__":true,"id":36834},"id":"BF52CD3F-6E5F-4FD6-AA97-CBF3BFCEC219","eventHandler":{"__isSmartRef__":true,"id":36835},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":36836},"name":"node244","partsBinMetaInfo":{"__isSmartRef__":true,"id":36837},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5917},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":36018},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":36840},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(1108.6,210.0)"},"36817":{"submorphs":[],"scripts":[],"id":"4C473419-7E03-4E7B-9A83-857E737B8C46","shape":{"__isSmartRef__":true,"id":36818},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":36819},"textChunks":[{"__isSmartRef__":true,"id":36831}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":36833},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":36816},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"36818":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"36819":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":36820},{"__isSmartRef__":true,"id":36822},{"__isSmartRef__":true,"id":36824},{"__isSmartRef__":true,"id":36826},{"__isSmartRef__":true,"id":36828}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":36830},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"36820":{"date":{"__isSmartRef__":true,"id":36821},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"36821":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"36822":{"date":{"__isSmartRef__":true,"id":36823},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"36823":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"36824":{"date":{"__isSmartRef__":true,"id":36825},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"36825":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"36826":{"date":{"__isSmartRef__":true,"id":36827},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"36827":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"36828":{"date":{"__isSmartRef__":true,"id":36829},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"36829":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"36830":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"36831":{"style":{"__isSmartRef__":true,"id":36832},"morph":{"__isSmartRef__":true,"id":36817},"chunkOwner":{"__isSmartRef__":true,"id":36817},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"36832":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"36833":{"morph":{"__isSmartRef__":true,"id":36817},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"36834":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"36835":{"morph":{"__isSmartRef__":true,"id":36816},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"36836":{},"36837":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":36838}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"36838":{"date":{"__isSmartRef__":true,"id":36839},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"36839":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"36840":{"buildChildNodes":{"__isSmartRef__":true,"id":36841},"getGameTree":{"__isSmartRef__":true,"id":36845},"getLevel":{"__isSmartRef__":true,"id":36849},"getLevelWeight":{"__isSmartRef__":true,"id":36853},"getWeight":{"__isSmartRef__":true,"id":36857},"setNode":{"__isSmartRef__":true,"id":36861},"setParent":{"__isSmartRef__":true,"id":36865},"getParent":{"__isSmartRef__":true,"id":36869},"deactivate":{"__isSmartRef__":true,"id":36873},"blink":{"__isSmartRef__":true,"id":36877},"ABPreturn":{"__isSmartRef__":true,"id":36881},"ABPstart":{"__isSmartRef__":true,"id":36885},"ABPcontinue":{"__isSmartRef__":true,"id":36889},"ABPshowValue":{"__isSmartRef__":true,"id":36893},"ABPgetValue":{"__isSmartRef__":true,"id":36897},"ABPhasChildNodes":{"__isSmartRef__":true,"id":36901},"onMouseDown":{"__isSmartRef__":true,"id":36905},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":36913},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":36917},"ABPmarkAsDone":{"__isSmartRef__":true,"id":36921},"ABPmarkAsActive":{"__isSmartRef__":true,"id":36925},"getStateMorph":{"__isSmartRef__":true,"id":36929},"showState":{"__isSmartRef__":true,"id":36933},"ABPfailHard":{"__isSmartRef__":true,"id":36937},"markFinalDrawWith":{"__isSmartRef__":true,"id":36941}},"36841":{"varMapping":{"__isSmartRef__":true,"id":36842},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":36843},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36842":{"this":{"__isSmartRef__":true,"id":36816}},"36843":{"timestamp":{"__isSmartRef__":true,"id":36844},"user":"sebastianwoinar","tags":[]},"36844":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"36845":{"varMapping":{"__isSmartRef__":true,"id":36846},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":36847},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36846":{"this":{"__isSmartRef__":true,"id":36816}},"36847":{"timestamp":{"__isSmartRef__":true,"id":36848},"user":"sebastianwoinar","tags":[]},"36848":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36849":{"varMapping":{"__isSmartRef__":true,"id":36850},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":36851},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36850":{"this":{"__isSmartRef__":true,"id":36816}},"36851":{"timestamp":{"__isSmartRef__":true,"id":36852},"user":"sebastianwoinar","tags":[]},"36852":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36853":{"varMapping":{"__isSmartRef__":true,"id":36854},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":36855},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36854":{"this":{"__isSmartRef__":true,"id":36816}},"36855":{"timestamp":{"__isSmartRef__":true,"id":36856},"user":"sebastianwoinar","tags":[]},"36856":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36857":{"varMapping":{"__isSmartRef__":true,"id":36858},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":36859},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36858":{"this":{"__isSmartRef__":true,"id":36816}},"36859":{"timestamp":{"__isSmartRef__":true,"id":36860},"user":"sebastianwoinar","tags":[]},"36860":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36861":{"varMapping":{"__isSmartRef__":true,"id":36862},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":36863},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36862":{"this":{"__isSmartRef__":true,"id":36816}},"36863":{"timestamp":{"__isSmartRef__":true,"id":36864},"user":"sebastianwoinar","tags":[]},"36864":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36865":{"varMapping":{"__isSmartRef__":true,"id":36866},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":36867},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36866":{"this":{"__isSmartRef__":true,"id":36816}},"36867":{"timestamp":{"__isSmartRef__":true,"id":36868},"user":"sebastianwoinar","tags":[]},"36868":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36869":{"varMapping":{"__isSmartRef__":true,"id":36870},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":36871},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36870":{"this":{"__isSmartRef__":true,"id":36816}},"36871":{"timestamp":{"__isSmartRef__":true,"id":36872},"user":"sebastianwoinar","tags":[]},"36872":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"36873":{"varMapping":{"__isSmartRef__":true,"id":36874},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":36875},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36874":{"this":{"__isSmartRef__":true,"id":36816}},"36875":{"timestamp":{"__isSmartRef__":true,"id":36876},"user":"sebastianwoinar","tags":[]},"36876":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"36877":{"varMapping":{"__isSmartRef__":true,"id":36878},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":36879},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36878":{"this":{"__isSmartRef__":true,"id":36816}},"36879":{"timestamp":{"__isSmartRef__":true,"id":36880},"user":"sebastianwoinar","tags":[]},"36880":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"36881":{"varMapping":{"__isSmartRef__":true,"id":36882},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":36883},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36882":{"this":{"__isSmartRef__":true,"id":36816}},"36883":{"timestamp":{"__isSmartRef__":true,"id":36884},"user":"sebastianwoinar","tags":[]},"36884":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"36885":{"varMapping":{"__isSmartRef__":true,"id":36886},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":36887},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36886":{"this":{"__isSmartRef__":true,"id":36816}},"36887":{"timestamp":{"__isSmartRef__":true,"id":36888},"user":"sebastianwoinar","tags":[]},"36888":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"36889":{"varMapping":{"__isSmartRef__":true,"id":36890},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":36891},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36890":{"this":{"__isSmartRef__":true,"id":36816}},"36891":{"timestamp":{"__isSmartRef__":true,"id":36892},"user":"sebastianwoinar","tags":[]},"36892":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"36893":{"varMapping":{"__isSmartRef__":true,"id":36894},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":36895},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36894":{"this":{"__isSmartRef__":true,"id":36816}},"36895":{"timestamp":{"__isSmartRef__":true,"id":36896},"user":"sebastianwoinar","tags":[]},"36896":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"36897":{"varMapping":{"__isSmartRef__":true,"id":36898},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":36899},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36898":{"this":{"__isSmartRef__":true,"id":36816}},"36899":{"timestamp":{"__isSmartRef__":true,"id":36900},"user":"sebastianwoinar","tags":[]},"36900":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"36901":{"varMapping":{"__isSmartRef__":true,"id":36902},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":36903},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36902":{"this":{"__isSmartRef__":true,"id":36816}},"36903":{"timestamp":{"__isSmartRef__":true,"id":36904},"user":"sebastianwoinar","tags":[]},"36904":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"36905":{"varMapping":{"__isSmartRef__":true,"id":36906},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":36911},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36906":{"this":{"__isSmartRef__":true,"id":36816},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":36907}},"36907":{"$super":{"__isSmartRef__":true,"id":36908}},"36908":{"varMapping":{"__isSmartRef__":true,"id":36909},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":36910},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36909":{"obj":{"__isSmartRef__":true,"id":36816},"name":"onMouseDown"},"36910":{},"36911":{"timestamp":{"__isSmartRef__":true,"id":36912},"user":"sebastianwoinar","tags":[]},"36912":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"36913":{"varMapping":{"__isSmartRef__":true,"id":36914},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":36915},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36914":{"this":{"__isSmartRef__":true,"id":36816}},"36915":{"timestamp":{"__isSmartRef__":true,"id":36916},"user":"sebastianwoinar","tags":[]},"36916":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"36917":{"varMapping":{"__isSmartRef__":true,"id":36918},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":36919},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36918":{"this":{"__isSmartRef__":true,"id":36816}},"36919":{"timestamp":{"__isSmartRef__":true,"id":36920},"user":"sebastianwoinar","tags":[]},"36920":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"36921":{"varMapping":{"__isSmartRef__":true,"id":36922},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":36923},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36922":{"this":{"__isSmartRef__":true,"id":36816}},"36923":{"timestamp":{"__isSmartRef__":true,"id":36924},"user":"sebastianwoinar","tags":[]},"36924":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"36925":{"varMapping":{"__isSmartRef__":true,"id":36926},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":36927},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36926":{"this":{"__isSmartRef__":true,"id":36816}},"36927":{"timestamp":{"__isSmartRef__":true,"id":36928},"user":"sebastianwoinar","tags":[]},"36928":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"36929":{"varMapping":{"__isSmartRef__":true,"id":36930},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":36931},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36930":{"this":{"__isSmartRef__":true,"id":36816}},"36931":{"timestamp":{"__isSmartRef__":true,"id":36932},"user":"sebastianwoinar","tags":[]},"36932":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"36933":{"varMapping":{"__isSmartRef__":true,"id":36934},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":36935},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36934":{"this":{"__isSmartRef__":true,"id":36816}},"36935":{"timestamp":{"__isSmartRef__":true,"id":36936},"user":"sebastianwoinar","tags":[]},"36936":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"36937":{"varMapping":{"__isSmartRef__":true,"id":36938},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":36939},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36938":{"this":{"__isSmartRef__":true,"id":36816}},"36939":{"timestamp":{"__isSmartRef__":true,"id":36940},"user":"sebastianwoinar","tags":[]},"36940":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"36941":{"varMapping":{"__isSmartRef__":true,"id":36942},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":36943},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36942":{"this":{"__isSmartRef__":true,"id":36816}},"36943":{"timestamp":{"__isSmartRef__":true,"id":36944},"user":"sebastianwoinar","tags":[]},"36944":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"36945":{"submorphs":[{"__isSmartRef__":true,"id":36946}],"scripts":[],"shape":{"__isSmartRef__":true,"id":36963},"id":"3BA67D18-357C-447C-979C-893E9C82ED2F","eventHandler":{"__isSmartRef__":true,"id":36964},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":36965},"name":"node245","partsBinMetaInfo":{"__isSmartRef__":true,"id":36966},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5919},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":36018},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":36969},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(1113.8,210.0)"},"36946":{"submorphs":[],"scripts":[],"id":"FECC9802-870F-4DD5-9DBC-DE296EDECEA6","shape":{"__isSmartRef__":true,"id":36947},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":36948},"textChunks":[{"__isSmartRef__":true,"id":36960}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":36962},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":36945},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"36947":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"36948":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":36949},{"__isSmartRef__":true,"id":36951},{"__isSmartRef__":true,"id":36953},{"__isSmartRef__":true,"id":36955},{"__isSmartRef__":true,"id":36957}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":36959},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"36949":{"date":{"__isSmartRef__":true,"id":36950},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"36950":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"36951":{"date":{"__isSmartRef__":true,"id":36952},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"36952":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"36953":{"date":{"__isSmartRef__":true,"id":36954},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"36954":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"36955":{"date":{"__isSmartRef__":true,"id":36956},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"36956":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"36957":{"date":{"__isSmartRef__":true,"id":36958},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"36958":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"36959":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"36960":{"style":{"__isSmartRef__":true,"id":36961},"morph":{"__isSmartRef__":true,"id":36946},"chunkOwner":{"__isSmartRef__":true,"id":36946},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"36961":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"36962":{"morph":{"__isSmartRef__":true,"id":36946},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"36963":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"36964":{"morph":{"__isSmartRef__":true,"id":36945},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"36965":{},"36966":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":36967}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"36967":{"date":{"__isSmartRef__":true,"id":36968},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"36968":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"36969":{"buildChildNodes":{"__isSmartRef__":true,"id":36970},"getGameTree":{"__isSmartRef__":true,"id":36974},"getLevel":{"__isSmartRef__":true,"id":36978},"getLevelWeight":{"__isSmartRef__":true,"id":36982},"getWeight":{"__isSmartRef__":true,"id":36986},"setNode":{"__isSmartRef__":true,"id":36990},"setParent":{"__isSmartRef__":true,"id":36994},"getParent":{"__isSmartRef__":true,"id":36998},"deactivate":{"__isSmartRef__":true,"id":37002},"blink":{"__isSmartRef__":true,"id":37006},"ABPreturn":{"__isSmartRef__":true,"id":37010},"ABPstart":{"__isSmartRef__":true,"id":37014},"ABPcontinue":{"__isSmartRef__":true,"id":37018},"ABPshowValue":{"__isSmartRef__":true,"id":37022},"ABPgetValue":{"__isSmartRef__":true,"id":37026},"ABPhasChildNodes":{"__isSmartRef__":true,"id":37030},"onMouseDown":{"__isSmartRef__":true,"id":37034},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":37042},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":37046},"ABPmarkAsDone":{"__isSmartRef__":true,"id":37050},"ABPmarkAsActive":{"__isSmartRef__":true,"id":37054},"getStateMorph":{"__isSmartRef__":true,"id":37058},"showState":{"__isSmartRef__":true,"id":37062},"ABPfailHard":{"__isSmartRef__":true,"id":37066},"markFinalDrawWith":{"__isSmartRef__":true,"id":37070}},"36970":{"varMapping":{"__isSmartRef__":true,"id":36971},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":36972},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36971":{"this":{"__isSmartRef__":true,"id":36945}},"36972":{"timestamp":{"__isSmartRef__":true,"id":36973},"user":"sebastianwoinar","tags":[]},"36973":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"36974":{"varMapping":{"__isSmartRef__":true,"id":36975},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":36976},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36975":{"this":{"__isSmartRef__":true,"id":36945}},"36976":{"timestamp":{"__isSmartRef__":true,"id":36977},"user":"sebastianwoinar","tags":[]},"36977":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36978":{"varMapping":{"__isSmartRef__":true,"id":36979},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":36980},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36979":{"this":{"__isSmartRef__":true,"id":36945}},"36980":{"timestamp":{"__isSmartRef__":true,"id":36981},"user":"sebastianwoinar","tags":[]},"36981":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36982":{"varMapping":{"__isSmartRef__":true,"id":36983},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":36984},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36983":{"this":{"__isSmartRef__":true,"id":36945}},"36984":{"timestamp":{"__isSmartRef__":true,"id":36985},"user":"sebastianwoinar","tags":[]},"36985":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36986":{"varMapping":{"__isSmartRef__":true,"id":36987},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":36988},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36987":{"this":{"__isSmartRef__":true,"id":36945}},"36988":{"timestamp":{"__isSmartRef__":true,"id":36989},"user":"sebastianwoinar","tags":[]},"36989":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36990":{"varMapping":{"__isSmartRef__":true,"id":36991},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":36992},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36991":{"this":{"__isSmartRef__":true,"id":36945}},"36992":{"timestamp":{"__isSmartRef__":true,"id":36993},"user":"sebastianwoinar","tags":[]},"36993":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36994":{"varMapping":{"__isSmartRef__":true,"id":36995},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":36996},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36995":{"this":{"__isSmartRef__":true,"id":36945}},"36996":{"timestamp":{"__isSmartRef__":true,"id":36997},"user":"sebastianwoinar","tags":[]},"36997":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"36998":{"varMapping":{"__isSmartRef__":true,"id":36999},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":37000},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36999":{"this":{"__isSmartRef__":true,"id":36945}},"37000":{"timestamp":{"__isSmartRef__":true,"id":37001},"user":"sebastianwoinar","tags":[]},"37001":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"37002":{"varMapping":{"__isSmartRef__":true,"id":37003},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":37004},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37003":{"this":{"__isSmartRef__":true,"id":36945}},"37004":{"timestamp":{"__isSmartRef__":true,"id":37005},"user":"sebastianwoinar","tags":[]},"37005":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"37006":{"varMapping":{"__isSmartRef__":true,"id":37007},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":37008},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37007":{"this":{"__isSmartRef__":true,"id":36945}},"37008":{"timestamp":{"__isSmartRef__":true,"id":37009},"user":"sebastianwoinar","tags":[]},"37009":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"37010":{"varMapping":{"__isSmartRef__":true,"id":37011},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":37012},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37011":{"this":{"__isSmartRef__":true,"id":36945}},"37012":{"timestamp":{"__isSmartRef__":true,"id":37013},"user":"sebastianwoinar","tags":[]},"37013":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"37014":{"varMapping":{"__isSmartRef__":true,"id":37015},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":37016},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37015":{"this":{"__isSmartRef__":true,"id":36945}},"37016":{"timestamp":{"__isSmartRef__":true,"id":37017},"user":"sebastianwoinar","tags":[]},"37017":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"37018":{"varMapping":{"__isSmartRef__":true,"id":37019},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":37020},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37019":{"this":{"__isSmartRef__":true,"id":36945}},"37020":{"timestamp":{"__isSmartRef__":true,"id":37021},"user":"sebastianwoinar","tags":[]},"37021":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"37022":{"varMapping":{"__isSmartRef__":true,"id":37023},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":37024},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37023":{"this":{"__isSmartRef__":true,"id":36945}},"37024":{"timestamp":{"__isSmartRef__":true,"id":37025},"user":"sebastianwoinar","tags":[]},"37025":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"37026":{"varMapping":{"__isSmartRef__":true,"id":37027},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":37028},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37027":{"this":{"__isSmartRef__":true,"id":36945}},"37028":{"timestamp":{"__isSmartRef__":true,"id":37029},"user":"sebastianwoinar","tags":[]},"37029":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"37030":{"varMapping":{"__isSmartRef__":true,"id":37031},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":37032},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37031":{"this":{"__isSmartRef__":true,"id":36945}},"37032":{"timestamp":{"__isSmartRef__":true,"id":37033},"user":"sebastianwoinar","tags":[]},"37033":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"37034":{"varMapping":{"__isSmartRef__":true,"id":37035},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":37040},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37035":{"this":{"__isSmartRef__":true,"id":36945},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":37036}},"37036":{"$super":{"__isSmartRef__":true,"id":37037}},"37037":{"varMapping":{"__isSmartRef__":true,"id":37038},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":37039},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37038":{"obj":{"__isSmartRef__":true,"id":36945},"name":"onMouseDown"},"37039":{},"37040":{"timestamp":{"__isSmartRef__":true,"id":37041},"user":"sebastianwoinar","tags":[]},"37041":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"37042":{"varMapping":{"__isSmartRef__":true,"id":37043},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":37044},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37043":{"this":{"__isSmartRef__":true,"id":36945}},"37044":{"timestamp":{"__isSmartRef__":true,"id":37045},"user":"sebastianwoinar","tags":[]},"37045":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"37046":{"varMapping":{"__isSmartRef__":true,"id":37047},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":37048},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37047":{"this":{"__isSmartRef__":true,"id":36945}},"37048":{"timestamp":{"__isSmartRef__":true,"id":37049},"user":"sebastianwoinar","tags":[]},"37049":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"37050":{"varMapping":{"__isSmartRef__":true,"id":37051},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":37052},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37051":{"this":{"__isSmartRef__":true,"id":36945}},"37052":{"timestamp":{"__isSmartRef__":true,"id":37053},"user":"sebastianwoinar","tags":[]},"37053":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"37054":{"varMapping":{"__isSmartRef__":true,"id":37055},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":37056},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37055":{"this":{"__isSmartRef__":true,"id":36945}},"37056":{"timestamp":{"__isSmartRef__":true,"id":37057},"user":"sebastianwoinar","tags":[]},"37057":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"37058":{"varMapping":{"__isSmartRef__":true,"id":37059},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":37060},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37059":{"this":{"__isSmartRef__":true,"id":36945}},"37060":{"timestamp":{"__isSmartRef__":true,"id":37061},"user":"sebastianwoinar","tags":[]},"37061":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"37062":{"varMapping":{"__isSmartRef__":true,"id":37063},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":37064},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37063":{"this":{"__isSmartRef__":true,"id":36945}},"37064":{"timestamp":{"__isSmartRef__":true,"id":37065},"user":"sebastianwoinar","tags":[]},"37065":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"37066":{"varMapping":{"__isSmartRef__":true,"id":37067},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":37068},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37067":{"this":{"__isSmartRef__":true,"id":36945}},"37068":{"timestamp":{"__isSmartRef__":true,"id":37069},"user":"sebastianwoinar","tags":[]},"37069":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"37070":{"varMapping":{"__isSmartRef__":true,"id":37071},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":37072},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37071":{"this":{"__isSmartRef__":true,"id":36945}},"37072":{"timestamp":{"__isSmartRef__":true,"id":37073},"user":"sebastianwoinar","tags":[]},"37073":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"37074":{"buildChildNodes":{"__isSmartRef__":true,"id":37075},"getGameTree":{"__isSmartRef__":true,"id":37079},"getLevel":{"__isSmartRef__":true,"id":37083},"getLevelWeight":{"__isSmartRef__":true,"id":37087},"getWeight":{"__isSmartRef__":true,"id":37091},"setNode":{"__isSmartRef__":true,"id":37095},"setParent":{"__isSmartRef__":true,"id":37099},"getParent":{"__isSmartRef__":true,"id":37103},"deactivate":{"__isSmartRef__":true,"id":37107},"blink":{"__isSmartRef__":true,"id":37111},"ABPreturn":{"__isSmartRef__":true,"id":37115},"ABPstart":{"__isSmartRef__":true,"id":37119},"ABPcontinue":{"__isSmartRef__":true,"id":37123},"ABPshowValue":{"__isSmartRef__":true,"id":37127},"ABPgetValue":{"__isSmartRef__":true,"id":37131},"ABPhasChildNodes":{"__isSmartRef__":true,"id":37135},"onMouseDown":{"__isSmartRef__":true,"id":37139},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":37147},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":37151},"ABPmarkAsDone":{"__isSmartRef__":true,"id":37155},"ABPmarkAsActive":{"__isSmartRef__":true,"id":37159},"getStateMorph":{"__isSmartRef__":true,"id":37163},"showState":{"__isSmartRef__":true,"id":37167},"ABPfailHard":{"__isSmartRef__":true,"id":37171},"markFinalDrawWith":{"__isSmartRef__":true,"id":37175}},"37075":{"varMapping":{"__isSmartRef__":true,"id":37076},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":37077},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37076":{"this":{"__isSmartRef__":true,"id":36018}},"37077":{"timestamp":{"__isSmartRef__":true,"id":37078},"user":"sebastianwoinar","tags":[]},"37078":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"37079":{"varMapping":{"__isSmartRef__":true,"id":37080},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":37081},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37080":{"this":{"__isSmartRef__":true,"id":36018}},"37081":{"timestamp":{"__isSmartRef__":true,"id":37082},"user":"sebastianwoinar","tags":[]},"37082":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37083":{"varMapping":{"__isSmartRef__":true,"id":37084},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":37085},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37084":{"this":{"__isSmartRef__":true,"id":36018}},"37085":{"timestamp":{"__isSmartRef__":true,"id":37086},"user":"sebastianwoinar","tags":[]},"37086":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37087":{"varMapping":{"__isSmartRef__":true,"id":37088},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":37089},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37088":{"this":{"__isSmartRef__":true,"id":36018}},"37089":{"timestamp":{"__isSmartRef__":true,"id":37090},"user":"sebastianwoinar","tags":[]},"37090":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37091":{"varMapping":{"__isSmartRef__":true,"id":37092},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":37093},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37092":{"this":{"__isSmartRef__":true,"id":36018}},"37093":{"timestamp":{"__isSmartRef__":true,"id":37094},"user":"sebastianwoinar","tags":[]},"37094":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37095":{"varMapping":{"__isSmartRef__":true,"id":37096},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":37097},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37096":{"this":{"__isSmartRef__":true,"id":36018}},"37097":{"timestamp":{"__isSmartRef__":true,"id":37098},"user":"sebastianwoinar","tags":[]},"37098":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37099":{"varMapping":{"__isSmartRef__":true,"id":37100},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":37101},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37100":{"this":{"__isSmartRef__":true,"id":36018}},"37101":{"timestamp":{"__isSmartRef__":true,"id":37102},"user":"sebastianwoinar","tags":[]},"37102":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37103":{"varMapping":{"__isSmartRef__":true,"id":37104},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":37105},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37104":{"this":{"__isSmartRef__":true,"id":36018}},"37105":{"timestamp":{"__isSmartRef__":true,"id":37106},"user":"sebastianwoinar","tags":[]},"37106":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"37107":{"varMapping":{"__isSmartRef__":true,"id":37108},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":37109},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37108":{"this":{"__isSmartRef__":true,"id":36018}},"37109":{"timestamp":{"__isSmartRef__":true,"id":37110},"user":"sebastianwoinar","tags":[]},"37110":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"37111":{"varMapping":{"__isSmartRef__":true,"id":37112},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":37113},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37112":{"this":{"__isSmartRef__":true,"id":36018}},"37113":{"timestamp":{"__isSmartRef__":true,"id":37114},"user":"sebastianwoinar","tags":[]},"37114":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"37115":{"varMapping":{"__isSmartRef__":true,"id":37116},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":37117},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37116":{"this":{"__isSmartRef__":true,"id":36018}},"37117":{"timestamp":{"__isSmartRef__":true,"id":37118},"user":"sebastianwoinar","tags":[]},"37118":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"37119":{"varMapping":{"__isSmartRef__":true,"id":37120},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":37121},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37120":{"this":{"__isSmartRef__":true,"id":36018}},"37121":{"timestamp":{"__isSmartRef__":true,"id":37122},"user":"sebastianwoinar","tags":[]},"37122":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"37123":{"varMapping":{"__isSmartRef__":true,"id":37124},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":37125},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37124":{"this":{"__isSmartRef__":true,"id":36018}},"37125":{"timestamp":{"__isSmartRef__":true,"id":37126},"user":"sebastianwoinar","tags":[]},"37126":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"37127":{"varMapping":{"__isSmartRef__":true,"id":37128},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":37129},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37128":{"this":{"__isSmartRef__":true,"id":36018}},"37129":{"timestamp":{"__isSmartRef__":true,"id":37130},"user":"sebastianwoinar","tags":[]},"37130":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"37131":{"varMapping":{"__isSmartRef__":true,"id":37132},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":37133},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37132":{"this":{"__isSmartRef__":true,"id":36018}},"37133":{"timestamp":{"__isSmartRef__":true,"id":37134},"user":"sebastianwoinar","tags":[]},"37134":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"37135":{"varMapping":{"__isSmartRef__":true,"id":37136},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":37137},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37136":{"this":{"__isSmartRef__":true,"id":36018}},"37137":{"timestamp":{"__isSmartRef__":true,"id":37138},"user":"sebastianwoinar","tags":[]},"37138":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"37139":{"varMapping":{"__isSmartRef__":true,"id":37140},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":37145},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37140":{"this":{"__isSmartRef__":true,"id":36018},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":37141}},"37141":{"$super":{"__isSmartRef__":true,"id":37142}},"37142":{"varMapping":{"__isSmartRef__":true,"id":37143},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":37144},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37143":{"obj":{"__isSmartRef__":true,"id":36018},"name":"onMouseDown"},"37144":{},"37145":{"timestamp":{"__isSmartRef__":true,"id":37146},"user":"sebastianwoinar","tags":[]},"37146":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"37147":{"varMapping":{"__isSmartRef__":true,"id":37148},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":37149},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37148":{"this":{"__isSmartRef__":true,"id":36018}},"37149":{"timestamp":{"__isSmartRef__":true,"id":37150},"user":"sebastianwoinar","tags":[]},"37150":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"37151":{"varMapping":{"__isSmartRef__":true,"id":37152},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":37153},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37152":{"this":{"__isSmartRef__":true,"id":36018}},"37153":{"timestamp":{"__isSmartRef__":true,"id":37154},"user":"sebastianwoinar","tags":[]},"37154":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"37155":{"varMapping":{"__isSmartRef__":true,"id":37156},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":37157},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37156":{"this":{"__isSmartRef__":true,"id":36018}},"37157":{"timestamp":{"__isSmartRef__":true,"id":37158},"user":"sebastianwoinar","tags":[]},"37158":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"37159":{"varMapping":{"__isSmartRef__":true,"id":37160},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":37161},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37160":{"this":{"__isSmartRef__":true,"id":36018}},"37161":{"timestamp":{"__isSmartRef__":true,"id":37162},"user":"sebastianwoinar","tags":[]},"37162":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"37163":{"varMapping":{"__isSmartRef__":true,"id":37164},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":37165},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37164":{"this":{"__isSmartRef__":true,"id":36018}},"37165":{"timestamp":{"__isSmartRef__":true,"id":37166},"user":"sebastianwoinar","tags":[]},"37166":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"37167":{"varMapping":{"__isSmartRef__":true,"id":37168},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":37169},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37168":{"this":{"__isSmartRef__":true,"id":36018}},"37169":{"timestamp":{"__isSmartRef__":true,"id":37170},"user":"sebastianwoinar","tags":[]},"37170":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"37171":{"varMapping":{"__isSmartRef__":true,"id":37172},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":37173},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37172":{"this":{"__isSmartRef__":true,"id":36018}},"37173":{"timestamp":{"__isSmartRef__":true,"id":37174},"user":"sebastianwoinar","tags":[]},"37174":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"37175":{"varMapping":{"__isSmartRef__":true,"id":37176},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":37177},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37176":{"this":{"__isSmartRef__":true,"id":36018}},"37177":{"timestamp":{"__isSmartRef__":true,"id":37178},"user":"sebastianwoinar","tags":[]},"37178":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"37179":{"submorphs":[{"__isSmartRef__":true,"id":37180}],"scripts":[],"shape":{"__isSmartRef__":true,"id":37197},"id":"E9FAC025-58F8-4AB0-BEA5-A4863A314548","eventHandler":{"__isSmartRef__":true,"id":37198},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":37199},"name":"node246","partsBinMetaInfo":{"__isSmartRef__":true,"id":37200},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5921},"owner":{"__isSmartRef__":true,"id":5408},"childNodes":[{"__isSmartRef__":true,"id":37203},{"__isSmartRef__":true,"id":37332},{"__isSmartRef__":true,"id":37461},{"__isSmartRef__":true,"id":37590},{"__isSmartRef__":true,"id":37719},{"__isSmartRef__":true,"id":37848},{"__isSmartRef__":true,"id":37977}],"parent":{"__isSmartRef__":true,"id":33285},"level":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":38106},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(1119.0,160.0)"},"37180":{"submorphs":[],"scripts":[],"id":"24AD92AD-2FAE-4CFD-A147-17C87F125D16","shape":{"__isSmartRef__":true,"id":37181},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":37182},"textChunks":[{"__isSmartRef__":true,"id":37194}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":37196},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":37179},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"37181":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"37182":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":37183},{"__isSmartRef__":true,"id":37185},{"__isSmartRef__":true,"id":37187},{"__isSmartRef__":true,"id":37189},{"__isSmartRef__":true,"id":37191}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":37193},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"37183":{"date":{"__isSmartRef__":true,"id":37184},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"37184":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"37185":{"date":{"__isSmartRef__":true,"id":37186},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"37186":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"37187":{"date":{"__isSmartRef__":true,"id":37188},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"37188":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"37189":{"date":{"__isSmartRef__":true,"id":37190},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"37190":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"37191":{"date":{"__isSmartRef__":true,"id":37192},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"37192":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"37193":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"37194":{"style":{"__isSmartRef__":true,"id":37195},"morph":{"__isSmartRef__":true,"id":37180},"chunkOwner":{"__isSmartRef__":true,"id":37180},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"37195":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"37196":{"morph":{"__isSmartRef__":true,"id":37180},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"37197":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"37198":{"morph":{"__isSmartRef__":true,"id":37179},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"37199":{},"37200":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":37201}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"37201":{"date":{"__isSmartRef__":true,"id":37202},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"37202":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"37203":{"submorphs":[{"__isSmartRef__":true,"id":37204}],"scripts":[],"shape":{"__isSmartRef__":true,"id":37221},"id":"28648443-DC6F-48D7-9411-4E661EEC8A4E","eventHandler":{"__isSmartRef__":true,"id":37222},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":37223},"name":"node247","partsBinMetaInfo":{"__isSmartRef__":true,"id":37224},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5923},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":37179},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":37227},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(1119.0,210.0)"},"37204":{"submorphs":[],"scripts":[],"id":"F2B25D56-76F2-4A55-B0FE-DD056031BC49","shape":{"__isSmartRef__":true,"id":37205},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":37206},"textChunks":[{"__isSmartRef__":true,"id":37218}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":37220},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":37203},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"37205":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"37206":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":37207},{"__isSmartRef__":true,"id":37209},{"__isSmartRef__":true,"id":37211},{"__isSmartRef__":true,"id":37213},{"__isSmartRef__":true,"id":37215}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":37217},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"37207":{"date":{"__isSmartRef__":true,"id":37208},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"37208":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"37209":{"date":{"__isSmartRef__":true,"id":37210},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"37210":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"37211":{"date":{"__isSmartRef__":true,"id":37212},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"37212":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"37213":{"date":{"__isSmartRef__":true,"id":37214},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"37214":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"37215":{"date":{"__isSmartRef__":true,"id":37216},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"37216":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"37217":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"37218":{"style":{"__isSmartRef__":true,"id":37219},"morph":{"__isSmartRef__":true,"id":37204},"chunkOwner":{"__isSmartRef__":true,"id":37204},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"37219":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"37220":{"morph":{"__isSmartRef__":true,"id":37204},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"37221":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"37222":{"morph":{"__isSmartRef__":true,"id":37203},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"37223":{},"37224":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":37225}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"37225":{"date":{"__isSmartRef__":true,"id":37226},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"37226":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"37227":{"buildChildNodes":{"__isSmartRef__":true,"id":37228},"getGameTree":{"__isSmartRef__":true,"id":37232},"getLevel":{"__isSmartRef__":true,"id":37236},"getLevelWeight":{"__isSmartRef__":true,"id":37240},"getWeight":{"__isSmartRef__":true,"id":37244},"setNode":{"__isSmartRef__":true,"id":37248},"setParent":{"__isSmartRef__":true,"id":37252},"getParent":{"__isSmartRef__":true,"id":37256},"deactivate":{"__isSmartRef__":true,"id":37260},"blink":{"__isSmartRef__":true,"id":37264},"ABPreturn":{"__isSmartRef__":true,"id":37268},"ABPstart":{"__isSmartRef__":true,"id":37272},"ABPcontinue":{"__isSmartRef__":true,"id":37276},"ABPshowValue":{"__isSmartRef__":true,"id":37280},"ABPgetValue":{"__isSmartRef__":true,"id":37284},"ABPhasChildNodes":{"__isSmartRef__":true,"id":37288},"onMouseDown":{"__isSmartRef__":true,"id":37292},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":37300},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":37304},"ABPmarkAsDone":{"__isSmartRef__":true,"id":37308},"ABPmarkAsActive":{"__isSmartRef__":true,"id":37312},"getStateMorph":{"__isSmartRef__":true,"id":37316},"showState":{"__isSmartRef__":true,"id":37320},"ABPfailHard":{"__isSmartRef__":true,"id":37324},"markFinalDrawWith":{"__isSmartRef__":true,"id":37328}},"37228":{"varMapping":{"__isSmartRef__":true,"id":37229},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":37230},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37229":{"this":{"__isSmartRef__":true,"id":37203}},"37230":{"timestamp":{"__isSmartRef__":true,"id":37231},"user":"sebastianwoinar","tags":[]},"37231":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"37232":{"varMapping":{"__isSmartRef__":true,"id":37233},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":37234},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37233":{"this":{"__isSmartRef__":true,"id":37203}},"37234":{"timestamp":{"__isSmartRef__":true,"id":37235},"user":"sebastianwoinar","tags":[]},"37235":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37236":{"varMapping":{"__isSmartRef__":true,"id":37237},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":37238},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37237":{"this":{"__isSmartRef__":true,"id":37203}},"37238":{"timestamp":{"__isSmartRef__":true,"id":37239},"user":"sebastianwoinar","tags":[]},"37239":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37240":{"varMapping":{"__isSmartRef__":true,"id":37241},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":37242},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37241":{"this":{"__isSmartRef__":true,"id":37203}},"37242":{"timestamp":{"__isSmartRef__":true,"id":37243},"user":"sebastianwoinar","tags":[]},"37243":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37244":{"varMapping":{"__isSmartRef__":true,"id":37245},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":37246},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37245":{"this":{"__isSmartRef__":true,"id":37203}},"37246":{"timestamp":{"__isSmartRef__":true,"id":37247},"user":"sebastianwoinar","tags":[]},"37247":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37248":{"varMapping":{"__isSmartRef__":true,"id":37249},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":37250},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37249":{"this":{"__isSmartRef__":true,"id":37203}},"37250":{"timestamp":{"__isSmartRef__":true,"id":37251},"user":"sebastianwoinar","tags":[]},"37251":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37252":{"varMapping":{"__isSmartRef__":true,"id":37253},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":37254},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37253":{"this":{"__isSmartRef__":true,"id":37203}},"37254":{"timestamp":{"__isSmartRef__":true,"id":37255},"user":"sebastianwoinar","tags":[]},"37255":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37256":{"varMapping":{"__isSmartRef__":true,"id":37257},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":37258},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37257":{"this":{"__isSmartRef__":true,"id":37203}},"37258":{"timestamp":{"__isSmartRef__":true,"id":37259},"user":"sebastianwoinar","tags":[]},"37259":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"37260":{"varMapping":{"__isSmartRef__":true,"id":37261},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":37262},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37261":{"this":{"__isSmartRef__":true,"id":37203}},"37262":{"timestamp":{"__isSmartRef__":true,"id":37263},"user":"sebastianwoinar","tags":[]},"37263":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"37264":{"varMapping":{"__isSmartRef__":true,"id":37265},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":37266},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37265":{"this":{"__isSmartRef__":true,"id":37203}},"37266":{"timestamp":{"__isSmartRef__":true,"id":37267},"user":"sebastianwoinar","tags":[]},"37267":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"37268":{"varMapping":{"__isSmartRef__":true,"id":37269},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":37270},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37269":{"this":{"__isSmartRef__":true,"id":37203}},"37270":{"timestamp":{"__isSmartRef__":true,"id":37271},"user":"sebastianwoinar","tags":[]},"37271":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"37272":{"varMapping":{"__isSmartRef__":true,"id":37273},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":37274},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37273":{"this":{"__isSmartRef__":true,"id":37203}},"37274":{"timestamp":{"__isSmartRef__":true,"id":37275},"user":"sebastianwoinar","tags":[]},"37275":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"37276":{"varMapping":{"__isSmartRef__":true,"id":37277},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":37278},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37277":{"this":{"__isSmartRef__":true,"id":37203}},"37278":{"timestamp":{"__isSmartRef__":true,"id":37279},"user":"sebastianwoinar","tags":[]},"37279":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"37280":{"varMapping":{"__isSmartRef__":true,"id":37281},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":37282},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37281":{"this":{"__isSmartRef__":true,"id":37203}},"37282":{"timestamp":{"__isSmartRef__":true,"id":37283},"user":"sebastianwoinar","tags":[]},"37283":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"37284":{"varMapping":{"__isSmartRef__":true,"id":37285},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":37286},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37285":{"this":{"__isSmartRef__":true,"id":37203}},"37286":{"timestamp":{"__isSmartRef__":true,"id":37287},"user":"sebastianwoinar","tags":[]},"37287":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"37288":{"varMapping":{"__isSmartRef__":true,"id":37289},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":37290},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37289":{"this":{"__isSmartRef__":true,"id":37203}},"37290":{"timestamp":{"__isSmartRef__":true,"id":37291},"user":"sebastianwoinar","tags":[]},"37291":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"37292":{"varMapping":{"__isSmartRef__":true,"id":37293},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":37298},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37293":{"this":{"__isSmartRef__":true,"id":37203},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":37294}},"37294":{"$super":{"__isSmartRef__":true,"id":37295}},"37295":{"varMapping":{"__isSmartRef__":true,"id":37296},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":37297},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37296":{"obj":{"__isSmartRef__":true,"id":37203},"name":"onMouseDown"},"37297":{},"37298":{"timestamp":{"__isSmartRef__":true,"id":37299},"user":"sebastianwoinar","tags":[]},"37299":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"37300":{"varMapping":{"__isSmartRef__":true,"id":37301},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":37302},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37301":{"this":{"__isSmartRef__":true,"id":37203}},"37302":{"timestamp":{"__isSmartRef__":true,"id":37303},"user":"sebastianwoinar","tags":[]},"37303":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"37304":{"varMapping":{"__isSmartRef__":true,"id":37305},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":37306},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37305":{"this":{"__isSmartRef__":true,"id":37203}},"37306":{"timestamp":{"__isSmartRef__":true,"id":37307},"user":"sebastianwoinar","tags":[]},"37307":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"37308":{"varMapping":{"__isSmartRef__":true,"id":37309},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":37310},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37309":{"this":{"__isSmartRef__":true,"id":37203}},"37310":{"timestamp":{"__isSmartRef__":true,"id":37311},"user":"sebastianwoinar","tags":[]},"37311":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"37312":{"varMapping":{"__isSmartRef__":true,"id":37313},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":37314},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37313":{"this":{"__isSmartRef__":true,"id":37203}},"37314":{"timestamp":{"__isSmartRef__":true,"id":37315},"user":"sebastianwoinar","tags":[]},"37315":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"37316":{"varMapping":{"__isSmartRef__":true,"id":37317},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":37318},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37317":{"this":{"__isSmartRef__":true,"id":37203}},"37318":{"timestamp":{"__isSmartRef__":true,"id":37319},"user":"sebastianwoinar","tags":[]},"37319":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"37320":{"varMapping":{"__isSmartRef__":true,"id":37321},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":37322},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37321":{"this":{"__isSmartRef__":true,"id":37203}},"37322":{"timestamp":{"__isSmartRef__":true,"id":37323},"user":"sebastianwoinar","tags":[]},"37323":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"37324":{"varMapping":{"__isSmartRef__":true,"id":37325},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":37326},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37325":{"this":{"__isSmartRef__":true,"id":37203}},"37326":{"timestamp":{"__isSmartRef__":true,"id":37327},"user":"sebastianwoinar","tags":[]},"37327":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"37328":{"varMapping":{"__isSmartRef__":true,"id":37329},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":37330},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37329":{"this":{"__isSmartRef__":true,"id":37203}},"37330":{"timestamp":{"__isSmartRef__":true,"id":37331},"user":"sebastianwoinar","tags":[]},"37331":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"37332":{"submorphs":[{"__isSmartRef__":true,"id":37333}],"scripts":[],"shape":{"__isSmartRef__":true,"id":37350},"id":"128569F2-FB2B-4F5C-BBF8-3F03E313F543","eventHandler":{"__isSmartRef__":true,"id":37351},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":37352},"name":"node248","partsBinMetaInfo":{"__isSmartRef__":true,"id":37353},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5925},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":37179},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":37356},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(1124.1,210.0)"},"37333":{"submorphs":[],"scripts":[],"id":"21A11F7A-809F-4D32-86F2-FDF2F4F4A47F","shape":{"__isSmartRef__":true,"id":37334},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":37335},"textChunks":[{"__isSmartRef__":true,"id":37347}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":37349},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":37332},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"37334":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"37335":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":37336},{"__isSmartRef__":true,"id":37338},{"__isSmartRef__":true,"id":37340},{"__isSmartRef__":true,"id":37342},{"__isSmartRef__":true,"id":37344}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":37346},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"37336":{"date":{"__isSmartRef__":true,"id":37337},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"37337":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"37338":{"date":{"__isSmartRef__":true,"id":37339},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"37339":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"37340":{"date":{"__isSmartRef__":true,"id":37341},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"37341":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"37342":{"date":{"__isSmartRef__":true,"id":37343},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"37343":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"37344":{"date":{"__isSmartRef__":true,"id":37345},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"37345":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"37346":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"37347":{"style":{"__isSmartRef__":true,"id":37348},"morph":{"__isSmartRef__":true,"id":37333},"chunkOwner":{"__isSmartRef__":true,"id":37333},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"37348":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"37349":{"morph":{"__isSmartRef__":true,"id":37333},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"37350":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"37351":{"morph":{"__isSmartRef__":true,"id":37332},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"37352":{},"37353":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":37354}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"37354":{"date":{"__isSmartRef__":true,"id":37355},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"37355":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"37356":{"buildChildNodes":{"__isSmartRef__":true,"id":37357},"getGameTree":{"__isSmartRef__":true,"id":37361},"getLevel":{"__isSmartRef__":true,"id":37365},"getLevelWeight":{"__isSmartRef__":true,"id":37369},"getWeight":{"__isSmartRef__":true,"id":37373},"setNode":{"__isSmartRef__":true,"id":37377},"setParent":{"__isSmartRef__":true,"id":37381},"getParent":{"__isSmartRef__":true,"id":37385},"deactivate":{"__isSmartRef__":true,"id":37389},"blink":{"__isSmartRef__":true,"id":37393},"ABPreturn":{"__isSmartRef__":true,"id":37397},"ABPstart":{"__isSmartRef__":true,"id":37401},"ABPcontinue":{"__isSmartRef__":true,"id":37405},"ABPshowValue":{"__isSmartRef__":true,"id":37409},"ABPgetValue":{"__isSmartRef__":true,"id":37413},"ABPhasChildNodes":{"__isSmartRef__":true,"id":37417},"onMouseDown":{"__isSmartRef__":true,"id":37421},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":37429},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":37433},"ABPmarkAsDone":{"__isSmartRef__":true,"id":37437},"ABPmarkAsActive":{"__isSmartRef__":true,"id":37441},"getStateMorph":{"__isSmartRef__":true,"id":37445},"showState":{"__isSmartRef__":true,"id":37449},"ABPfailHard":{"__isSmartRef__":true,"id":37453},"markFinalDrawWith":{"__isSmartRef__":true,"id":37457}},"37357":{"varMapping":{"__isSmartRef__":true,"id":37358},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":37359},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37358":{"this":{"__isSmartRef__":true,"id":37332}},"37359":{"timestamp":{"__isSmartRef__":true,"id":37360},"user":"sebastianwoinar","tags":[]},"37360":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"37361":{"varMapping":{"__isSmartRef__":true,"id":37362},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":37363},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37362":{"this":{"__isSmartRef__":true,"id":37332}},"37363":{"timestamp":{"__isSmartRef__":true,"id":37364},"user":"sebastianwoinar","tags":[]},"37364":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37365":{"varMapping":{"__isSmartRef__":true,"id":37366},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":37367},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37366":{"this":{"__isSmartRef__":true,"id":37332}},"37367":{"timestamp":{"__isSmartRef__":true,"id":37368},"user":"sebastianwoinar","tags":[]},"37368":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37369":{"varMapping":{"__isSmartRef__":true,"id":37370},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":37371},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37370":{"this":{"__isSmartRef__":true,"id":37332}},"37371":{"timestamp":{"__isSmartRef__":true,"id":37372},"user":"sebastianwoinar","tags":[]},"37372":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37373":{"varMapping":{"__isSmartRef__":true,"id":37374},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":37375},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37374":{"this":{"__isSmartRef__":true,"id":37332}},"37375":{"timestamp":{"__isSmartRef__":true,"id":37376},"user":"sebastianwoinar","tags":[]},"37376":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37377":{"varMapping":{"__isSmartRef__":true,"id":37378},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":37379},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37378":{"this":{"__isSmartRef__":true,"id":37332}},"37379":{"timestamp":{"__isSmartRef__":true,"id":37380},"user":"sebastianwoinar","tags":[]},"37380":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37381":{"varMapping":{"__isSmartRef__":true,"id":37382},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":37383},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37382":{"this":{"__isSmartRef__":true,"id":37332}},"37383":{"timestamp":{"__isSmartRef__":true,"id":37384},"user":"sebastianwoinar","tags":[]},"37384":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37385":{"varMapping":{"__isSmartRef__":true,"id":37386},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":37387},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37386":{"this":{"__isSmartRef__":true,"id":37332}},"37387":{"timestamp":{"__isSmartRef__":true,"id":37388},"user":"sebastianwoinar","tags":[]},"37388":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"37389":{"varMapping":{"__isSmartRef__":true,"id":37390},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":37391},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37390":{"this":{"__isSmartRef__":true,"id":37332}},"37391":{"timestamp":{"__isSmartRef__":true,"id":37392},"user":"sebastianwoinar","tags":[]},"37392":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"37393":{"varMapping":{"__isSmartRef__":true,"id":37394},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":37395},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37394":{"this":{"__isSmartRef__":true,"id":37332}},"37395":{"timestamp":{"__isSmartRef__":true,"id":37396},"user":"sebastianwoinar","tags":[]},"37396":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"37397":{"varMapping":{"__isSmartRef__":true,"id":37398},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":37399},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37398":{"this":{"__isSmartRef__":true,"id":37332}},"37399":{"timestamp":{"__isSmartRef__":true,"id":37400},"user":"sebastianwoinar","tags":[]},"37400":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"37401":{"varMapping":{"__isSmartRef__":true,"id":37402},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":37403},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37402":{"this":{"__isSmartRef__":true,"id":37332}},"37403":{"timestamp":{"__isSmartRef__":true,"id":37404},"user":"sebastianwoinar","tags":[]},"37404":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"37405":{"varMapping":{"__isSmartRef__":true,"id":37406},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":37407},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37406":{"this":{"__isSmartRef__":true,"id":37332}},"37407":{"timestamp":{"__isSmartRef__":true,"id":37408},"user":"sebastianwoinar","tags":[]},"37408":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"37409":{"varMapping":{"__isSmartRef__":true,"id":37410},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":37411},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37410":{"this":{"__isSmartRef__":true,"id":37332}},"37411":{"timestamp":{"__isSmartRef__":true,"id":37412},"user":"sebastianwoinar","tags":[]},"37412":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"37413":{"varMapping":{"__isSmartRef__":true,"id":37414},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":37415},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37414":{"this":{"__isSmartRef__":true,"id":37332}},"37415":{"timestamp":{"__isSmartRef__":true,"id":37416},"user":"sebastianwoinar","tags":[]},"37416":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"37417":{"varMapping":{"__isSmartRef__":true,"id":37418},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":37419},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37418":{"this":{"__isSmartRef__":true,"id":37332}},"37419":{"timestamp":{"__isSmartRef__":true,"id":37420},"user":"sebastianwoinar","tags":[]},"37420":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"37421":{"varMapping":{"__isSmartRef__":true,"id":37422},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":37427},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37422":{"this":{"__isSmartRef__":true,"id":37332},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":37423}},"37423":{"$super":{"__isSmartRef__":true,"id":37424}},"37424":{"varMapping":{"__isSmartRef__":true,"id":37425},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":37426},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37425":{"obj":{"__isSmartRef__":true,"id":37332},"name":"onMouseDown"},"37426":{},"37427":{"timestamp":{"__isSmartRef__":true,"id":37428},"user":"sebastianwoinar","tags":[]},"37428":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"37429":{"varMapping":{"__isSmartRef__":true,"id":37430},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":37431},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37430":{"this":{"__isSmartRef__":true,"id":37332}},"37431":{"timestamp":{"__isSmartRef__":true,"id":37432},"user":"sebastianwoinar","tags":[]},"37432":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"37433":{"varMapping":{"__isSmartRef__":true,"id":37434},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":37435},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37434":{"this":{"__isSmartRef__":true,"id":37332}},"37435":{"timestamp":{"__isSmartRef__":true,"id":37436},"user":"sebastianwoinar","tags":[]},"37436":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"37437":{"varMapping":{"__isSmartRef__":true,"id":37438},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":37439},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37438":{"this":{"__isSmartRef__":true,"id":37332}},"37439":{"timestamp":{"__isSmartRef__":true,"id":37440},"user":"sebastianwoinar","tags":[]},"37440":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"37441":{"varMapping":{"__isSmartRef__":true,"id":37442},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":37443},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37442":{"this":{"__isSmartRef__":true,"id":37332}},"37443":{"timestamp":{"__isSmartRef__":true,"id":37444},"user":"sebastianwoinar","tags":[]},"37444":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"37445":{"varMapping":{"__isSmartRef__":true,"id":37446},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":37447},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37446":{"this":{"__isSmartRef__":true,"id":37332}},"37447":{"timestamp":{"__isSmartRef__":true,"id":37448},"user":"sebastianwoinar","tags":[]},"37448":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"37449":{"varMapping":{"__isSmartRef__":true,"id":37450},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":37451},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37450":{"this":{"__isSmartRef__":true,"id":37332}},"37451":{"timestamp":{"__isSmartRef__":true,"id":37452},"user":"sebastianwoinar","tags":[]},"37452":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"37453":{"varMapping":{"__isSmartRef__":true,"id":37454},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":37455},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37454":{"this":{"__isSmartRef__":true,"id":37332}},"37455":{"timestamp":{"__isSmartRef__":true,"id":37456},"user":"sebastianwoinar","tags":[]},"37456":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"37457":{"varMapping":{"__isSmartRef__":true,"id":37458},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":37459},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37458":{"this":{"__isSmartRef__":true,"id":37332}},"37459":{"timestamp":{"__isSmartRef__":true,"id":37460},"user":"sebastianwoinar","tags":[]},"37460":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"37461":{"submorphs":[{"__isSmartRef__":true,"id":37462}],"scripts":[],"shape":{"__isSmartRef__":true,"id":37479},"id":"909332D0-CFFD-4913-A586-8A44165B4A16","eventHandler":{"__isSmartRef__":true,"id":37480},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":37481},"name":"node249","partsBinMetaInfo":{"__isSmartRef__":true,"id":37482},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5927},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":37179},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":37485},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(1129.3,210.0)"},"37462":{"submorphs":[],"scripts":[],"id":"6795CFFA-96B9-4C12-8DA9-97A881586FAD","shape":{"__isSmartRef__":true,"id":37463},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":37464},"textChunks":[{"__isSmartRef__":true,"id":37476}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":37478},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":37461},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"37463":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"37464":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":37465},{"__isSmartRef__":true,"id":37467},{"__isSmartRef__":true,"id":37469},{"__isSmartRef__":true,"id":37471},{"__isSmartRef__":true,"id":37473}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":37475},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"37465":{"date":{"__isSmartRef__":true,"id":37466},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"37466":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"37467":{"date":{"__isSmartRef__":true,"id":37468},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"37468":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"37469":{"date":{"__isSmartRef__":true,"id":37470},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"37470":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"37471":{"date":{"__isSmartRef__":true,"id":37472},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"37472":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"37473":{"date":{"__isSmartRef__":true,"id":37474},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"37474":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"37475":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"37476":{"style":{"__isSmartRef__":true,"id":37477},"morph":{"__isSmartRef__":true,"id":37462},"chunkOwner":{"__isSmartRef__":true,"id":37462},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"37477":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"37478":{"morph":{"__isSmartRef__":true,"id":37462},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"37479":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"37480":{"morph":{"__isSmartRef__":true,"id":37461},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"37481":{},"37482":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":37483}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"37483":{"date":{"__isSmartRef__":true,"id":37484},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"37484":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"37485":{"buildChildNodes":{"__isSmartRef__":true,"id":37486},"getGameTree":{"__isSmartRef__":true,"id":37490},"getLevel":{"__isSmartRef__":true,"id":37494},"getLevelWeight":{"__isSmartRef__":true,"id":37498},"getWeight":{"__isSmartRef__":true,"id":37502},"setNode":{"__isSmartRef__":true,"id":37506},"setParent":{"__isSmartRef__":true,"id":37510},"getParent":{"__isSmartRef__":true,"id":37514},"deactivate":{"__isSmartRef__":true,"id":37518},"blink":{"__isSmartRef__":true,"id":37522},"ABPreturn":{"__isSmartRef__":true,"id":37526},"ABPstart":{"__isSmartRef__":true,"id":37530},"ABPcontinue":{"__isSmartRef__":true,"id":37534},"ABPshowValue":{"__isSmartRef__":true,"id":37538},"ABPgetValue":{"__isSmartRef__":true,"id":37542},"ABPhasChildNodes":{"__isSmartRef__":true,"id":37546},"onMouseDown":{"__isSmartRef__":true,"id":37550},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":37558},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":37562},"ABPmarkAsDone":{"__isSmartRef__":true,"id":37566},"ABPmarkAsActive":{"__isSmartRef__":true,"id":37570},"getStateMorph":{"__isSmartRef__":true,"id":37574},"showState":{"__isSmartRef__":true,"id":37578},"ABPfailHard":{"__isSmartRef__":true,"id":37582},"markFinalDrawWith":{"__isSmartRef__":true,"id":37586}},"37486":{"varMapping":{"__isSmartRef__":true,"id":37487},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":37488},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37487":{"this":{"__isSmartRef__":true,"id":37461}},"37488":{"timestamp":{"__isSmartRef__":true,"id":37489},"user":"sebastianwoinar","tags":[]},"37489":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"37490":{"varMapping":{"__isSmartRef__":true,"id":37491},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":37492},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37491":{"this":{"__isSmartRef__":true,"id":37461}},"37492":{"timestamp":{"__isSmartRef__":true,"id":37493},"user":"sebastianwoinar","tags":[]},"37493":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37494":{"varMapping":{"__isSmartRef__":true,"id":37495},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":37496},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37495":{"this":{"__isSmartRef__":true,"id":37461}},"37496":{"timestamp":{"__isSmartRef__":true,"id":37497},"user":"sebastianwoinar","tags":[]},"37497":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37498":{"varMapping":{"__isSmartRef__":true,"id":37499},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":37500},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37499":{"this":{"__isSmartRef__":true,"id":37461}},"37500":{"timestamp":{"__isSmartRef__":true,"id":37501},"user":"sebastianwoinar","tags":[]},"37501":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37502":{"varMapping":{"__isSmartRef__":true,"id":37503},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":37504},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37503":{"this":{"__isSmartRef__":true,"id":37461}},"37504":{"timestamp":{"__isSmartRef__":true,"id":37505},"user":"sebastianwoinar","tags":[]},"37505":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37506":{"varMapping":{"__isSmartRef__":true,"id":37507},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":37508},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37507":{"this":{"__isSmartRef__":true,"id":37461}},"37508":{"timestamp":{"__isSmartRef__":true,"id":37509},"user":"sebastianwoinar","tags":[]},"37509":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37510":{"varMapping":{"__isSmartRef__":true,"id":37511},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":37512},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37511":{"this":{"__isSmartRef__":true,"id":37461}},"37512":{"timestamp":{"__isSmartRef__":true,"id":37513},"user":"sebastianwoinar","tags":[]},"37513":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37514":{"varMapping":{"__isSmartRef__":true,"id":37515},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":37516},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37515":{"this":{"__isSmartRef__":true,"id":37461}},"37516":{"timestamp":{"__isSmartRef__":true,"id":37517},"user":"sebastianwoinar","tags":[]},"37517":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"37518":{"varMapping":{"__isSmartRef__":true,"id":37519},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":37520},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37519":{"this":{"__isSmartRef__":true,"id":37461}},"37520":{"timestamp":{"__isSmartRef__":true,"id":37521},"user":"sebastianwoinar","tags":[]},"37521":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"37522":{"varMapping":{"__isSmartRef__":true,"id":37523},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":37524},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37523":{"this":{"__isSmartRef__":true,"id":37461}},"37524":{"timestamp":{"__isSmartRef__":true,"id":37525},"user":"sebastianwoinar","tags":[]},"37525":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"37526":{"varMapping":{"__isSmartRef__":true,"id":37527},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":37528},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37527":{"this":{"__isSmartRef__":true,"id":37461}},"37528":{"timestamp":{"__isSmartRef__":true,"id":37529},"user":"sebastianwoinar","tags":[]},"37529":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"37530":{"varMapping":{"__isSmartRef__":true,"id":37531},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":37532},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37531":{"this":{"__isSmartRef__":true,"id":37461}},"37532":{"timestamp":{"__isSmartRef__":true,"id":37533},"user":"sebastianwoinar","tags":[]},"37533":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"37534":{"varMapping":{"__isSmartRef__":true,"id":37535},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":37536},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37535":{"this":{"__isSmartRef__":true,"id":37461}},"37536":{"timestamp":{"__isSmartRef__":true,"id":37537},"user":"sebastianwoinar","tags":[]},"37537":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"37538":{"varMapping":{"__isSmartRef__":true,"id":37539},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":37540},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37539":{"this":{"__isSmartRef__":true,"id":37461}},"37540":{"timestamp":{"__isSmartRef__":true,"id":37541},"user":"sebastianwoinar","tags":[]},"37541":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"37542":{"varMapping":{"__isSmartRef__":true,"id":37543},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":37544},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37543":{"this":{"__isSmartRef__":true,"id":37461}},"37544":{"timestamp":{"__isSmartRef__":true,"id":37545},"user":"sebastianwoinar","tags":[]},"37545":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"37546":{"varMapping":{"__isSmartRef__":true,"id":37547},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":37548},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37547":{"this":{"__isSmartRef__":true,"id":37461}},"37548":{"timestamp":{"__isSmartRef__":true,"id":37549},"user":"sebastianwoinar","tags":[]},"37549":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"37550":{"varMapping":{"__isSmartRef__":true,"id":37551},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":37556},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37551":{"this":{"__isSmartRef__":true,"id":37461},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":37552}},"37552":{"$super":{"__isSmartRef__":true,"id":37553}},"37553":{"varMapping":{"__isSmartRef__":true,"id":37554},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":37555},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37554":{"obj":{"__isSmartRef__":true,"id":37461},"name":"onMouseDown"},"37555":{},"37556":{"timestamp":{"__isSmartRef__":true,"id":37557},"user":"sebastianwoinar","tags":[]},"37557":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"37558":{"varMapping":{"__isSmartRef__":true,"id":37559},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":37560},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37559":{"this":{"__isSmartRef__":true,"id":37461}},"37560":{"timestamp":{"__isSmartRef__":true,"id":37561},"user":"sebastianwoinar","tags":[]},"37561":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"37562":{"varMapping":{"__isSmartRef__":true,"id":37563},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":37564},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37563":{"this":{"__isSmartRef__":true,"id":37461}},"37564":{"timestamp":{"__isSmartRef__":true,"id":37565},"user":"sebastianwoinar","tags":[]},"37565":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"37566":{"varMapping":{"__isSmartRef__":true,"id":37567},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":37568},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37567":{"this":{"__isSmartRef__":true,"id":37461}},"37568":{"timestamp":{"__isSmartRef__":true,"id":37569},"user":"sebastianwoinar","tags":[]},"37569":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"37570":{"varMapping":{"__isSmartRef__":true,"id":37571},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":37572},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37571":{"this":{"__isSmartRef__":true,"id":37461}},"37572":{"timestamp":{"__isSmartRef__":true,"id":37573},"user":"sebastianwoinar","tags":[]},"37573":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"37574":{"varMapping":{"__isSmartRef__":true,"id":37575},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":37576},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37575":{"this":{"__isSmartRef__":true,"id":37461}},"37576":{"timestamp":{"__isSmartRef__":true,"id":37577},"user":"sebastianwoinar","tags":[]},"37577":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"37578":{"varMapping":{"__isSmartRef__":true,"id":37579},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":37580},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37579":{"this":{"__isSmartRef__":true,"id":37461}},"37580":{"timestamp":{"__isSmartRef__":true,"id":37581},"user":"sebastianwoinar","tags":[]},"37581":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"37582":{"varMapping":{"__isSmartRef__":true,"id":37583},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":37584},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37583":{"this":{"__isSmartRef__":true,"id":37461}},"37584":{"timestamp":{"__isSmartRef__":true,"id":37585},"user":"sebastianwoinar","tags":[]},"37585":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"37586":{"varMapping":{"__isSmartRef__":true,"id":37587},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":37588},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37587":{"this":{"__isSmartRef__":true,"id":37461}},"37588":{"timestamp":{"__isSmartRef__":true,"id":37589},"user":"sebastianwoinar","tags":[]},"37589":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"37590":{"submorphs":[{"__isSmartRef__":true,"id":37591}],"scripts":[],"shape":{"__isSmartRef__":true,"id":37608},"id":"0B6BDDB2-17C8-4B43-B9ED-0EFC79FB7264","eventHandler":{"__isSmartRef__":true,"id":37609},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":37610},"name":"node250","partsBinMetaInfo":{"__isSmartRef__":true,"id":37611},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5929},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":37179},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":37614},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(1134.5,210.0)"},"37591":{"submorphs":[],"scripts":[],"id":"45166D09-67BF-41E5-ABA4-E4AD654B4946","shape":{"__isSmartRef__":true,"id":37592},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":37593},"textChunks":[{"__isSmartRef__":true,"id":37605}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":37607},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":37590},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"37592":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"37593":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":37594},{"__isSmartRef__":true,"id":37596},{"__isSmartRef__":true,"id":37598},{"__isSmartRef__":true,"id":37600},{"__isSmartRef__":true,"id":37602}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":37604},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"37594":{"date":{"__isSmartRef__":true,"id":37595},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"37595":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"37596":{"date":{"__isSmartRef__":true,"id":37597},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"37597":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"37598":{"date":{"__isSmartRef__":true,"id":37599},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"37599":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"37600":{"date":{"__isSmartRef__":true,"id":37601},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"37601":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"37602":{"date":{"__isSmartRef__":true,"id":37603},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"37603":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"37604":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"37605":{"style":{"__isSmartRef__":true,"id":37606},"morph":{"__isSmartRef__":true,"id":37591},"chunkOwner":{"__isSmartRef__":true,"id":37591},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"37606":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"37607":{"morph":{"__isSmartRef__":true,"id":37591},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"37608":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"37609":{"morph":{"__isSmartRef__":true,"id":37590},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"37610":{},"37611":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":37612}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"37612":{"date":{"__isSmartRef__":true,"id":37613},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"37613":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"37614":{"buildChildNodes":{"__isSmartRef__":true,"id":37615},"getGameTree":{"__isSmartRef__":true,"id":37619},"getLevel":{"__isSmartRef__":true,"id":37623},"getLevelWeight":{"__isSmartRef__":true,"id":37627},"getWeight":{"__isSmartRef__":true,"id":37631},"setNode":{"__isSmartRef__":true,"id":37635},"setParent":{"__isSmartRef__":true,"id":37639},"getParent":{"__isSmartRef__":true,"id":37643},"deactivate":{"__isSmartRef__":true,"id":37647},"blink":{"__isSmartRef__":true,"id":37651},"ABPreturn":{"__isSmartRef__":true,"id":37655},"ABPstart":{"__isSmartRef__":true,"id":37659},"ABPcontinue":{"__isSmartRef__":true,"id":37663},"ABPshowValue":{"__isSmartRef__":true,"id":37667},"ABPgetValue":{"__isSmartRef__":true,"id":37671},"ABPhasChildNodes":{"__isSmartRef__":true,"id":37675},"onMouseDown":{"__isSmartRef__":true,"id":37679},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":37687},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":37691},"ABPmarkAsDone":{"__isSmartRef__":true,"id":37695},"ABPmarkAsActive":{"__isSmartRef__":true,"id":37699},"getStateMorph":{"__isSmartRef__":true,"id":37703},"showState":{"__isSmartRef__":true,"id":37707},"ABPfailHard":{"__isSmartRef__":true,"id":37711},"markFinalDrawWith":{"__isSmartRef__":true,"id":37715}},"37615":{"varMapping":{"__isSmartRef__":true,"id":37616},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":37617},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37616":{"this":{"__isSmartRef__":true,"id":37590}},"37617":{"timestamp":{"__isSmartRef__":true,"id":37618},"user":"sebastianwoinar","tags":[]},"37618":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"37619":{"varMapping":{"__isSmartRef__":true,"id":37620},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":37621},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37620":{"this":{"__isSmartRef__":true,"id":37590}},"37621":{"timestamp":{"__isSmartRef__":true,"id":37622},"user":"sebastianwoinar","tags":[]},"37622":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37623":{"varMapping":{"__isSmartRef__":true,"id":37624},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":37625},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37624":{"this":{"__isSmartRef__":true,"id":37590}},"37625":{"timestamp":{"__isSmartRef__":true,"id":37626},"user":"sebastianwoinar","tags":[]},"37626":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37627":{"varMapping":{"__isSmartRef__":true,"id":37628},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":37629},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37628":{"this":{"__isSmartRef__":true,"id":37590}},"37629":{"timestamp":{"__isSmartRef__":true,"id":37630},"user":"sebastianwoinar","tags":[]},"37630":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37631":{"varMapping":{"__isSmartRef__":true,"id":37632},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":37633},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37632":{"this":{"__isSmartRef__":true,"id":37590}},"37633":{"timestamp":{"__isSmartRef__":true,"id":37634},"user":"sebastianwoinar","tags":[]},"37634":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37635":{"varMapping":{"__isSmartRef__":true,"id":37636},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":37637},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37636":{"this":{"__isSmartRef__":true,"id":37590}},"37637":{"timestamp":{"__isSmartRef__":true,"id":37638},"user":"sebastianwoinar","tags":[]},"37638":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37639":{"varMapping":{"__isSmartRef__":true,"id":37640},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":37641},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37640":{"this":{"__isSmartRef__":true,"id":37590}},"37641":{"timestamp":{"__isSmartRef__":true,"id":37642},"user":"sebastianwoinar","tags":[]},"37642":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37643":{"varMapping":{"__isSmartRef__":true,"id":37644},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":37645},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37644":{"this":{"__isSmartRef__":true,"id":37590}},"37645":{"timestamp":{"__isSmartRef__":true,"id":37646},"user":"sebastianwoinar","tags":[]},"37646":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"37647":{"varMapping":{"__isSmartRef__":true,"id":37648},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":37649},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37648":{"this":{"__isSmartRef__":true,"id":37590}},"37649":{"timestamp":{"__isSmartRef__":true,"id":37650},"user":"sebastianwoinar","tags":[]},"37650":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"37651":{"varMapping":{"__isSmartRef__":true,"id":37652},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":37653},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37652":{"this":{"__isSmartRef__":true,"id":37590}},"37653":{"timestamp":{"__isSmartRef__":true,"id":37654},"user":"sebastianwoinar","tags":[]},"37654":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"37655":{"varMapping":{"__isSmartRef__":true,"id":37656},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":37657},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37656":{"this":{"__isSmartRef__":true,"id":37590}},"37657":{"timestamp":{"__isSmartRef__":true,"id":37658},"user":"sebastianwoinar","tags":[]},"37658":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"37659":{"varMapping":{"__isSmartRef__":true,"id":37660},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":37661},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37660":{"this":{"__isSmartRef__":true,"id":37590}},"37661":{"timestamp":{"__isSmartRef__":true,"id":37662},"user":"sebastianwoinar","tags":[]},"37662":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"37663":{"varMapping":{"__isSmartRef__":true,"id":37664},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":37665},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37664":{"this":{"__isSmartRef__":true,"id":37590}},"37665":{"timestamp":{"__isSmartRef__":true,"id":37666},"user":"sebastianwoinar","tags":[]},"37666":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"37667":{"varMapping":{"__isSmartRef__":true,"id":37668},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":37669},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37668":{"this":{"__isSmartRef__":true,"id":37590}},"37669":{"timestamp":{"__isSmartRef__":true,"id":37670},"user":"sebastianwoinar","tags":[]},"37670":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"37671":{"varMapping":{"__isSmartRef__":true,"id":37672},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":37673},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37672":{"this":{"__isSmartRef__":true,"id":37590}},"37673":{"timestamp":{"__isSmartRef__":true,"id":37674},"user":"sebastianwoinar","tags":[]},"37674":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"37675":{"varMapping":{"__isSmartRef__":true,"id":37676},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":37677},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37676":{"this":{"__isSmartRef__":true,"id":37590}},"37677":{"timestamp":{"__isSmartRef__":true,"id":37678},"user":"sebastianwoinar","tags":[]},"37678":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"37679":{"varMapping":{"__isSmartRef__":true,"id":37680},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":37685},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37680":{"this":{"__isSmartRef__":true,"id":37590},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":37681}},"37681":{"$super":{"__isSmartRef__":true,"id":37682}},"37682":{"varMapping":{"__isSmartRef__":true,"id":37683},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":37684},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37683":{"obj":{"__isSmartRef__":true,"id":37590},"name":"onMouseDown"},"37684":{},"37685":{"timestamp":{"__isSmartRef__":true,"id":37686},"user":"sebastianwoinar","tags":[]},"37686":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"37687":{"varMapping":{"__isSmartRef__":true,"id":37688},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":37689},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37688":{"this":{"__isSmartRef__":true,"id":37590}},"37689":{"timestamp":{"__isSmartRef__":true,"id":37690},"user":"sebastianwoinar","tags":[]},"37690":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"37691":{"varMapping":{"__isSmartRef__":true,"id":37692},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":37693},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37692":{"this":{"__isSmartRef__":true,"id":37590}},"37693":{"timestamp":{"__isSmartRef__":true,"id":37694},"user":"sebastianwoinar","tags":[]},"37694":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"37695":{"varMapping":{"__isSmartRef__":true,"id":37696},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":37697},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37696":{"this":{"__isSmartRef__":true,"id":37590}},"37697":{"timestamp":{"__isSmartRef__":true,"id":37698},"user":"sebastianwoinar","tags":[]},"37698":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"37699":{"varMapping":{"__isSmartRef__":true,"id":37700},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":37701},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37700":{"this":{"__isSmartRef__":true,"id":37590}},"37701":{"timestamp":{"__isSmartRef__":true,"id":37702},"user":"sebastianwoinar","tags":[]},"37702":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"37703":{"varMapping":{"__isSmartRef__":true,"id":37704},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":37705},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37704":{"this":{"__isSmartRef__":true,"id":37590}},"37705":{"timestamp":{"__isSmartRef__":true,"id":37706},"user":"sebastianwoinar","tags":[]},"37706":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"37707":{"varMapping":{"__isSmartRef__":true,"id":37708},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":37709},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37708":{"this":{"__isSmartRef__":true,"id":37590}},"37709":{"timestamp":{"__isSmartRef__":true,"id":37710},"user":"sebastianwoinar","tags":[]},"37710":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"37711":{"varMapping":{"__isSmartRef__":true,"id":37712},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":37713},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37712":{"this":{"__isSmartRef__":true,"id":37590}},"37713":{"timestamp":{"__isSmartRef__":true,"id":37714},"user":"sebastianwoinar","tags":[]},"37714":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"37715":{"varMapping":{"__isSmartRef__":true,"id":37716},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":37717},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37716":{"this":{"__isSmartRef__":true,"id":37590}},"37717":{"timestamp":{"__isSmartRef__":true,"id":37718},"user":"sebastianwoinar","tags":[]},"37718":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"37719":{"submorphs":[{"__isSmartRef__":true,"id":37720}],"scripts":[],"shape":{"__isSmartRef__":true,"id":37737},"id":"8442AA5F-02DD-4F78-8B15-A9A896636146","eventHandler":{"__isSmartRef__":true,"id":37738},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":37739},"name":"node251","partsBinMetaInfo":{"__isSmartRef__":true,"id":37740},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5931},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":37179},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":37743},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(1139.7,210.0)"},"37720":{"submorphs":[],"scripts":[],"id":"73EC28EF-0337-4DEE-A973-FAC9739CBB6D","shape":{"__isSmartRef__":true,"id":37721},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":37722},"textChunks":[{"__isSmartRef__":true,"id":37734}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":37736},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":37719},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"37721":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"37722":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":37723},{"__isSmartRef__":true,"id":37725},{"__isSmartRef__":true,"id":37727},{"__isSmartRef__":true,"id":37729},{"__isSmartRef__":true,"id":37731}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":37733},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"37723":{"date":{"__isSmartRef__":true,"id":37724},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"37724":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"37725":{"date":{"__isSmartRef__":true,"id":37726},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"37726":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"37727":{"date":{"__isSmartRef__":true,"id":37728},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"37728":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"37729":{"date":{"__isSmartRef__":true,"id":37730},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"37730":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"37731":{"date":{"__isSmartRef__":true,"id":37732},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"37732":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"37733":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"37734":{"style":{"__isSmartRef__":true,"id":37735},"morph":{"__isSmartRef__":true,"id":37720},"chunkOwner":{"__isSmartRef__":true,"id":37720},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"37735":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"37736":{"morph":{"__isSmartRef__":true,"id":37720},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"37737":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"37738":{"morph":{"__isSmartRef__":true,"id":37719},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"37739":{},"37740":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":37741}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"37741":{"date":{"__isSmartRef__":true,"id":37742},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"37742":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"37743":{"buildChildNodes":{"__isSmartRef__":true,"id":37744},"getGameTree":{"__isSmartRef__":true,"id":37748},"getLevel":{"__isSmartRef__":true,"id":37752},"getLevelWeight":{"__isSmartRef__":true,"id":37756},"getWeight":{"__isSmartRef__":true,"id":37760},"setNode":{"__isSmartRef__":true,"id":37764},"setParent":{"__isSmartRef__":true,"id":37768},"getParent":{"__isSmartRef__":true,"id":37772},"deactivate":{"__isSmartRef__":true,"id":37776},"blink":{"__isSmartRef__":true,"id":37780},"ABPreturn":{"__isSmartRef__":true,"id":37784},"ABPstart":{"__isSmartRef__":true,"id":37788},"ABPcontinue":{"__isSmartRef__":true,"id":37792},"ABPshowValue":{"__isSmartRef__":true,"id":37796},"ABPgetValue":{"__isSmartRef__":true,"id":37800},"ABPhasChildNodes":{"__isSmartRef__":true,"id":37804},"onMouseDown":{"__isSmartRef__":true,"id":37808},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":37816},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":37820},"ABPmarkAsDone":{"__isSmartRef__":true,"id":37824},"ABPmarkAsActive":{"__isSmartRef__":true,"id":37828},"getStateMorph":{"__isSmartRef__":true,"id":37832},"showState":{"__isSmartRef__":true,"id":37836},"ABPfailHard":{"__isSmartRef__":true,"id":37840},"markFinalDrawWith":{"__isSmartRef__":true,"id":37844}},"37744":{"varMapping":{"__isSmartRef__":true,"id":37745},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":37746},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37745":{"this":{"__isSmartRef__":true,"id":37719}},"37746":{"timestamp":{"__isSmartRef__":true,"id":37747},"user":"sebastianwoinar","tags":[]},"37747":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"37748":{"varMapping":{"__isSmartRef__":true,"id":37749},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":37750},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37749":{"this":{"__isSmartRef__":true,"id":37719}},"37750":{"timestamp":{"__isSmartRef__":true,"id":37751},"user":"sebastianwoinar","tags":[]},"37751":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37752":{"varMapping":{"__isSmartRef__":true,"id":37753},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":37754},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37753":{"this":{"__isSmartRef__":true,"id":37719}},"37754":{"timestamp":{"__isSmartRef__":true,"id":37755},"user":"sebastianwoinar","tags":[]},"37755":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37756":{"varMapping":{"__isSmartRef__":true,"id":37757},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":37758},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37757":{"this":{"__isSmartRef__":true,"id":37719}},"37758":{"timestamp":{"__isSmartRef__":true,"id":37759},"user":"sebastianwoinar","tags":[]},"37759":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37760":{"varMapping":{"__isSmartRef__":true,"id":37761},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":37762},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37761":{"this":{"__isSmartRef__":true,"id":37719}},"37762":{"timestamp":{"__isSmartRef__":true,"id":37763},"user":"sebastianwoinar","tags":[]},"37763":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37764":{"varMapping":{"__isSmartRef__":true,"id":37765},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":37766},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37765":{"this":{"__isSmartRef__":true,"id":37719}},"37766":{"timestamp":{"__isSmartRef__":true,"id":37767},"user":"sebastianwoinar","tags":[]},"37767":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37768":{"varMapping":{"__isSmartRef__":true,"id":37769},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":37770},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37769":{"this":{"__isSmartRef__":true,"id":37719}},"37770":{"timestamp":{"__isSmartRef__":true,"id":37771},"user":"sebastianwoinar","tags":[]},"37771":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37772":{"varMapping":{"__isSmartRef__":true,"id":37773},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":37774},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37773":{"this":{"__isSmartRef__":true,"id":37719}},"37774":{"timestamp":{"__isSmartRef__":true,"id":37775},"user":"sebastianwoinar","tags":[]},"37775":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"37776":{"varMapping":{"__isSmartRef__":true,"id":37777},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":37778},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37777":{"this":{"__isSmartRef__":true,"id":37719}},"37778":{"timestamp":{"__isSmartRef__":true,"id":37779},"user":"sebastianwoinar","tags":[]},"37779":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"37780":{"varMapping":{"__isSmartRef__":true,"id":37781},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":37782},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37781":{"this":{"__isSmartRef__":true,"id":37719}},"37782":{"timestamp":{"__isSmartRef__":true,"id":37783},"user":"sebastianwoinar","tags":[]},"37783":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"37784":{"varMapping":{"__isSmartRef__":true,"id":37785},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":37786},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37785":{"this":{"__isSmartRef__":true,"id":37719}},"37786":{"timestamp":{"__isSmartRef__":true,"id":37787},"user":"sebastianwoinar","tags":[]},"37787":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"37788":{"varMapping":{"__isSmartRef__":true,"id":37789},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":37790},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37789":{"this":{"__isSmartRef__":true,"id":37719}},"37790":{"timestamp":{"__isSmartRef__":true,"id":37791},"user":"sebastianwoinar","tags":[]},"37791":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"37792":{"varMapping":{"__isSmartRef__":true,"id":37793},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":37794},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37793":{"this":{"__isSmartRef__":true,"id":37719}},"37794":{"timestamp":{"__isSmartRef__":true,"id":37795},"user":"sebastianwoinar","tags":[]},"37795":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"37796":{"varMapping":{"__isSmartRef__":true,"id":37797},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":37798},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37797":{"this":{"__isSmartRef__":true,"id":37719}},"37798":{"timestamp":{"__isSmartRef__":true,"id":37799},"user":"sebastianwoinar","tags":[]},"37799":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"37800":{"varMapping":{"__isSmartRef__":true,"id":37801},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":37802},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37801":{"this":{"__isSmartRef__":true,"id":37719}},"37802":{"timestamp":{"__isSmartRef__":true,"id":37803},"user":"sebastianwoinar","tags":[]},"37803":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"37804":{"varMapping":{"__isSmartRef__":true,"id":37805},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":37806},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37805":{"this":{"__isSmartRef__":true,"id":37719}},"37806":{"timestamp":{"__isSmartRef__":true,"id":37807},"user":"sebastianwoinar","tags":[]},"37807":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"37808":{"varMapping":{"__isSmartRef__":true,"id":37809},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":37814},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37809":{"this":{"__isSmartRef__":true,"id":37719},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":37810}},"37810":{"$super":{"__isSmartRef__":true,"id":37811}},"37811":{"varMapping":{"__isSmartRef__":true,"id":37812},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":37813},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37812":{"obj":{"__isSmartRef__":true,"id":37719},"name":"onMouseDown"},"37813":{},"37814":{"timestamp":{"__isSmartRef__":true,"id":37815},"user":"sebastianwoinar","tags":[]},"37815":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"37816":{"varMapping":{"__isSmartRef__":true,"id":37817},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":37818},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37817":{"this":{"__isSmartRef__":true,"id":37719}},"37818":{"timestamp":{"__isSmartRef__":true,"id":37819},"user":"sebastianwoinar","tags":[]},"37819":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"37820":{"varMapping":{"__isSmartRef__":true,"id":37821},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":37822},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37821":{"this":{"__isSmartRef__":true,"id":37719}},"37822":{"timestamp":{"__isSmartRef__":true,"id":37823},"user":"sebastianwoinar","tags":[]},"37823":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"37824":{"varMapping":{"__isSmartRef__":true,"id":37825},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":37826},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37825":{"this":{"__isSmartRef__":true,"id":37719}},"37826":{"timestamp":{"__isSmartRef__":true,"id":37827},"user":"sebastianwoinar","tags":[]},"37827":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"37828":{"varMapping":{"__isSmartRef__":true,"id":37829},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":37830},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37829":{"this":{"__isSmartRef__":true,"id":37719}},"37830":{"timestamp":{"__isSmartRef__":true,"id":37831},"user":"sebastianwoinar","tags":[]},"37831":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"37832":{"varMapping":{"__isSmartRef__":true,"id":37833},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":37834},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37833":{"this":{"__isSmartRef__":true,"id":37719}},"37834":{"timestamp":{"__isSmartRef__":true,"id":37835},"user":"sebastianwoinar","tags":[]},"37835":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"37836":{"varMapping":{"__isSmartRef__":true,"id":37837},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":37838},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37837":{"this":{"__isSmartRef__":true,"id":37719}},"37838":{"timestamp":{"__isSmartRef__":true,"id":37839},"user":"sebastianwoinar","tags":[]},"37839":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"37840":{"varMapping":{"__isSmartRef__":true,"id":37841},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":37842},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37841":{"this":{"__isSmartRef__":true,"id":37719}},"37842":{"timestamp":{"__isSmartRef__":true,"id":37843},"user":"sebastianwoinar","tags":[]},"37843":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"37844":{"varMapping":{"__isSmartRef__":true,"id":37845},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":37846},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37845":{"this":{"__isSmartRef__":true,"id":37719}},"37846":{"timestamp":{"__isSmartRef__":true,"id":37847},"user":"sebastianwoinar","tags":[]},"37847":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"37848":{"submorphs":[{"__isSmartRef__":true,"id":37849}],"scripts":[],"shape":{"__isSmartRef__":true,"id":37866},"id":"C7713639-33A0-4240-BA91-51B1E3522186","eventHandler":{"__isSmartRef__":true,"id":37867},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":37868},"name":"node252","partsBinMetaInfo":{"__isSmartRef__":true,"id":37869},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5933},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":37179},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":37872},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(1144.8,210.0)"},"37849":{"submorphs":[],"scripts":[],"id":"B922F7BD-91F8-496F-9263-237A9B5E1141","shape":{"__isSmartRef__":true,"id":37850},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":37851},"textChunks":[{"__isSmartRef__":true,"id":37863}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":37865},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":37848},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"37850":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"37851":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":37852},{"__isSmartRef__":true,"id":37854},{"__isSmartRef__":true,"id":37856},{"__isSmartRef__":true,"id":37858},{"__isSmartRef__":true,"id":37860}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":37862},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"37852":{"date":{"__isSmartRef__":true,"id":37853},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"37853":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"37854":{"date":{"__isSmartRef__":true,"id":37855},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"37855":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"37856":{"date":{"__isSmartRef__":true,"id":37857},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"37857":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"37858":{"date":{"__isSmartRef__":true,"id":37859},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"37859":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"37860":{"date":{"__isSmartRef__":true,"id":37861},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"37861":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"37862":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"37863":{"style":{"__isSmartRef__":true,"id":37864},"morph":{"__isSmartRef__":true,"id":37849},"chunkOwner":{"__isSmartRef__":true,"id":37849},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"37864":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"37865":{"morph":{"__isSmartRef__":true,"id":37849},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"37866":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"37867":{"morph":{"__isSmartRef__":true,"id":37848},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"37868":{},"37869":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":37870}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"37870":{"date":{"__isSmartRef__":true,"id":37871},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"37871":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"37872":{"buildChildNodes":{"__isSmartRef__":true,"id":37873},"getGameTree":{"__isSmartRef__":true,"id":37877},"getLevel":{"__isSmartRef__":true,"id":37881},"getLevelWeight":{"__isSmartRef__":true,"id":37885},"getWeight":{"__isSmartRef__":true,"id":37889},"setNode":{"__isSmartRef__":true,"id":37893},"setParent":{"__isSmartRef__":true,"id":37897},"getParent":{"__isSmartRef__":true,"id":37901},"deactivate":{"__isSmartRef__":true,"id":37905},"blink":{"__isSmartRef__":true,"id":37909},"ABPreturn":{"__isSmartRef__":true,"id":37913},"ABPstart":{"__isSmartRef__":true,"id":37917},"ABPcontinue":{"__isSmartRef__":true,"id":37921},"ABPshowValue":{"__isSmartRef__":true,"id":37925},"ABPgetValue":{"__isSmartRef__":true,"id":37929},"ABPhasChildNodes":{"__isSmartRef__":true,"id":37933},"onMouseDown":{"__isSmartRef__":true,"id":37937},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":37945},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":37949},"ABPmarkAsDone":{"__isSmartRef__":true,"id":37953},"ABPmarkAsActive":{"__isSmartRef__":true,"id":37957},"getStateMorph":{"__isSmartRef__":true,"id":37961},"showState":{"__isSmartRef__":true,"id":37965},"ABPfailHard":{"__isSmartRef__":true,"id":37969},"markFinalDrawWith":{"__isSmartRef__":true,"id":37973}},"37873":{"varMapping":{"__isSmartRef__":true,"id":37874},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":37875},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37874":{"this":{"__isSmartRef__":true,"id":37848}},"37875":{"timestamp":{"__isSmartRef__":true,"id":37876},"user":"sebastianwoinar","tags":[]},"37876":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"37877":{"varMapping":{"__isSmartRef__":true,"id":37878},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":37879},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37878":{"this":{"__isSmartRef__":true,"id":37848}},"37879":{"timestamp":{"__isSmartRef__":true,"id":37880},"user":"sebastianwoinar","tags":[]},"37880":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37881":{"varMapping":{"__isSmartRef__":true,"id":37882},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":37883},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37882":{"this":{"__isSmartRef__":true,"id":37848}},"37883":{"timestamp":{"__isSmartRef__":true,"id":37884},"user":"sebastianwoinar","tags":[]},"37884":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37885":{"varMapping":{"__isSmartRef__":true,"id":37886},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":37887},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37886":{"this":{"__isSmartRef__":true,"id":37848}},"37887":{"timestamp":{"__isSmartRef__":true,"id":37888},"user":"sebastianwoinar","tags":[]},"37888":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37889":{"varMapping":{"__isSmartRef__":true,"id":37890},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":37891},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37890":{"this":{"__isSmartRef__":true,"id":37848}},"37891":{"timestamp":{"__isSmartRef__":true,"id":37892},"user":"sebastianwoinar","tags":[]},"37892":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37893":{"varMapping":{"__isSmartRef__":true,"id":37894},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":37895},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37894":{"this":{"__isSmartRef__":true,"id":37848}},"37895":{"timestamp":{"__isSmartRef__":true,"id":37896},"user":"sebastianwoinar","tags":[]},"37896":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37897":{"varMapping":{"__isSmartRef__":true,"id":37898},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":37899},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37898":{"this":{"__isSmartRef__":true,"id":37848}},"37899":{"timestamp":{"__isSmartRef__":true,"id":37900},"user":"sebastianwoinar","tags":[]},"37900":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"37901":{"varMapping":{"__isSmartRef__":true,"id":37902},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":37903},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37902":{"this":{"__isSmartRef__":true,"id":37848}},"37903":{"timestamp":{"__isSmartRef__":true,"id":37904},"user":"sebastianwoinar","tags":[]},"37904":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"37905":{"varMapping":{"__isSmartRef__":true,"id":37906},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":37907},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37906":{"this":{"__isSmartRef__":true,"id":37848}},"37907":{"timestamp":{"__isSmartRef__":true,"id":37908},"user":"sebastianwoinar","tags":[]},"37908":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"37909":{"varMapping":{"__isSmartRef__":true,"id":37910},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":37911},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37910":{"this":{"__isSmartRef__":true,"id":37848}},"37911":{"timestamp":{"__isSmartRef__":true,"id":37912},"user":"sebastianwoinar","tags":[]},"37912":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"37913":{"varMapping":{"__isSmartRef__":true,"id":37914},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":37915},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37914":{"this":{"__isSmartRef__":true,"id":37848}},"37915":{"timestamp":{"__isSmartRef__":true,"id":37916},"user":"sebastianwoinar","tags":[]},"37916":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"37917":{"varMapping":{"__isSmartRef__":true,"id":37918},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":37919},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37918":{"this":{"__isSmartRef__":true,"id":37848}},"37919":{"timestamp":{"__isSmartRef__":true,"id":37920},"user":"sebastianwoinar","tags":[]},"37920":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"37921":{"varMapping":{"__isSmartRef__":true,"id":37922},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":37923},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37922":{"this":{"__isSmartRef__":true,"id":37848}},"37923":{"timestamp":{"__isSmartRef__":true,"id":37924},"user":"sebastianwoinar","tags":[]},"37924":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"37925":{"varMapping":{"__isSmartRef__":true,"id":37926},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":37927},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37926":{"this":{"__isSmartRef__":true,"id":37848}},"37927":{"timestamp":{"__isSmartRef__":true,"id":37928},"user":"sebastianwoinar","tags":[]},"37928":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"37929":{"varMapping":{"__isSmartRef__":true,"id":37930},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":37931},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37930":{"this":{"__isSmartRef__":true,"id":37848}},"37931":{"timestamp":{"__isSmartRef__":true,"id":37932},"user":"sebastianwoinar","tags":[]},"37932":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"37933":{"varMapping":{"__isSmartRef__":true,"id":37934},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":37935},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37934":{"this":{"__isSmartRef__":true,"id":37848}},"37935":{"timestamp":{"__isSmartRef__":true,"id":37936},"user":"sebastianwoinar","tags":[]},"37936":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"37937":{"varMapping":{"__isSmartRef__":true,"id":37938},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":37943},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37938":{"this":{"__isSmartRef__":true,"id":37848},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":37939}},"37939":{"$super":{"__isSmartRef__":true,"id":37940}},"37940":{"varMapping":{"__isSmartRef__":true,"id":37941},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":37942},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37941":{"obj":{"__isSmartRef__":true,"id":37848},"name":"onMouseDown"},"37942":{},"37943":{"timestamp":{"__isSmartRef__":true,"id":37944},"user":"sebastianwoinar","tags":[]},"37944":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"37945":{"varMapping":{"__isSmartRef__":true,"id":37946},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":37947},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37946":{"this":{"__isSmartRef__":true,"id":37848}},"37947":{"timestamp":{"__isSmartRef__":true,"id":37948},"user":"sebastianwoinar","tags":[]},"37948":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"37949":{"varMapping":{"__isSmartRef__":true,"id":37950},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":37951},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37950":{"this":{"__isSmartRef__":true,"id":37848}},"37951":{"timestamp":{"__isSmartRef__":true,"id":37952},"user":"sebastianwoinar","tags":[]},"37952":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"37953":{"varMapping":{"__isSmartRef__":true,"id":37954},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":37955},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37954":{"this":{"__isSmartRef__":true,"id":37848}},"37955":{"timestamp":{"__isSmartRef__":true,"id":37956},"user":"sebastianwoinar","tags":[]},"37956":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"37957":{"varMapping":{"__isSmartRef__":true,"id":37958},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":37959},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37958":{"this":{"__isSmartRef__":true,"id":37848}},"37959":{"timestamp":{"__isSmartRef__":true,"id":37960},"user":"sebastianwoinar","tags":[]},"37960":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"37961":{"varMapping":{"__isSmartRef__":true,"id":37962},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":37963},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37962":{"this":{"__isSmartRef__":true,"id":37848}},"37963":{"timestamp":{"__isSmartRef__":true,"id":37964},"user":"sebastianwoinar","tags":[]},"37964":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"37965":{"varMapping":{"__isSmartRef__":true,"id":37966},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":37967},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37966":{"this":{"__isSmartRef__":true,"id":37848}},"37967":{"timestamp":{"__isSmartRef__":true,"id":37968},"user":"sebastianwoinar","tags":[]},"37968":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"37969":{"varMapping":{"__isSmartRef__":true,"id":37970},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":37971},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37970":{"this":{"__isSmartRef__":true,"id":37848}},"37971":{"timestamp":{"__isSmartRef__":true,"id":37972},"user":"sebastianwoinar","tags":[]},"37972":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"37973":{"varMapping":{"__isSmartRef__":true,"id":37974},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":37975},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37974":{"this":{"__isSmartRef__":true,"id":37848}},"37975":{"timestamp":{"__isSmartRef__":true,"id":37976},"user":"sebastianwoinar","tags":[]},"37976":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"37977":{"submorphs":[{"__isSmartRef__":true,"id":37978}],"scripts":[],"shape":{"__isSmartRef__":true,"id":37995},"id":"3A4C2559-95E5-4EE0-8DF7-091DEEC8BD44","eventHandler":{"__isSmartRef__":true,"id":37996},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":37997},"name":"node253","partsBinMetaInfo":{"__isSmartRef__":true,"id":37998},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","B7D04369-41DD-48AC-BC75-866BFB6D5CA5"],"_ClipMode":"visible","#startLetters":"no","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"node":{"__isSmartRef__":true,"id":5935},"owner":{"__isSmartRef__":true,"id":5408},"parent":{"__isSmartRef__":true,"id":37179},"level":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":38001},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(1150.0,210.0)"},"37978":{"submorphs":[],"scripts":[],"id":"99F52A2C-1068-439A-A532-95F09038A91B","shape":{"__isSmartRef__":true,"id":37979},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"textMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":37980},"textChunks":[{"__isSmartRef__":true,"id":37992}],"charsReplaced":"Some","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":37994},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","49C188EA-7F40-4BB7-BCD9-47A2DBD456F4","23D4F552-5160-46E1-A76D-8354DAB108DA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":37977},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,0],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-49.0,-47.7)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.5,-7.9)"},"37979":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(19.7,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"37980":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":37981},{"__isSmartRef__":true,"id":37983},{"__isSmartRef__":true,"id":37985},{"__isSmartRef__":true,"id":37987},{"__isSmartRef__":true,"id":37989}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":37991},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"37981":{"date":{"__isSmartRef__":true,"id":37982},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"37982":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"37983":{"date":{"__isSmartRef__":true,"id":37984},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"37984":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"37985":{"date":{"__isSmartRef__":true,"id":37986},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"37986":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"37987":{"date":{"__isSmartRef__":true,"id":37988},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"37988":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"37989":{"date":{"__isSmartRef__":true,"id":37990},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"37990":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"37991":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"37992":{"style":{"__isSmartRef__":true,"id":37993},"morph":{"__isSmartRef__":true,"id":37978},"chunkOwner":{"__isSmartRef__":true,"id":37978},"storedString":"","_id":"_105312","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"37993":{"fontSize":7,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"37994":{"morph":{"__isSmartRef__":true,"id":37978},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"37995":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-50.0,-50.0)","_Extent":"lively.pt(27.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"37996":{"morph":{"__isSmartRef__":true,"id":37977},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"37997":{},"37998":{"partName":"Ellipse","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"undefined","changes":[{"__isSmartRef__":true,"id":37999}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"37999":{"date":{"__isSmartRef__":true,"id":38000},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"38000":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"38001":{"buildChildNodes":{"__isSmartRef__":true,"id":38002},"getGameTree":{"__isSmartRef__":true,"id":38006},"getLevel":{"__isSmartRef__":true,"id":38010},"getLevelWeight":{"__isSmartRef__":true,"id":38014},"getWeight":{"__isSmartRef__":true,"id":38018},"setNode":{"__isSmartRef__":true,"id":38022},"setParent":{"__isSmartRef__":true,"id":38026},"getParent":{"__isSmartRef__":true,"id":38030},"deactivate":{"__isSmartRef__":true,"id":38034},"blink":{"__isSmartRef__":true,"id":38038},"ABPreturn":{"__isSmartRef__":true,"id":38042},"ABPstart":{"__isSmartRef__":true,"id":38046},"ABPcontinue":{"__isSmartRef__":true,"id":38050},"ABPshowValue":{"__isSmartRef__":true,"id":38054},"ABPgetValue":{"__isSmartRef__":true,"id":38058},"ABPhasChildNodes":{"__isSmartRef__":true,"id":38062},"onMouseDown":{"__isSmartRef__":true,"id":38066},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":38074},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":38078},"ABPmarkAsDone":{"__isSmartRef__":true,"id":38082},"ABPmarkAsActive":{"__isSmartRef__":true,"id":38086},"getStateMorph":{"__isSmartRef__":true,"id":38090},"showState":{"__isSmartRef__":true,"id":38094},"ABPfailHard":{"__isSmartRef__":true,"id":38098},"markFinalDrawWith":{"__isSmartRef__":true,"id":38102}},"38002":{"varMapping":{"__isSmartRef__":true,"id":38003},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":38004},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38003":{"this":{"__isSmartRef__":true,"id":37977}},"38004":{"timestamp":{"__isSmartRef__":true,"id":38005},"user":"sebastianwoinar","tags":[]},"38005":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"38006":{"varMapping":{"__isSmartRef__":true,"id":38007},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":38008},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38007":{"this":{"__isSmartRef__":true,"id":37977}},"38008":{"timestamp":{"__isSmartRef__":true,"id":38009},"user":"sebastianwoinar","tags":[]},"38009":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"38010":{"varMapping":{"__isSmartRef__":true,"id":38011},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":38012},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38011":{"this":{"__isSmartRef__":true,"id":37977}},"38012":{"timestamp":{"__isSmartRef__":true,"id":38013},"user":"sebastianwoinar","tags":[]},"38013":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"38014":{"varMapping":{"__isSmartRef__":true,"id":38015},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":38016},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38015":{"this":{"__isSmartRef__":true,"id":37977}},"38016":{"timestamp":{"__isSmartRef__":true,"id":38017},"user":"sebastianwoinar","tags":[]},"38017":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"38018":{"varMapping":{"__isSmartRef__":true,"id":38019},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":38020},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38019":{"this":{"__isSmartRef__":true,"id":37977}},"38020":{"timestamp":{"__isSmartRef__":true,"id":38021},"user":"sebastianwoinar","tags":[]},"38021":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"38022":{"varMapping":{"__isSmartRef__":true,"id":38023},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":38024},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38023":{"this":{"__isSmartRef__":true,"id":37977}},"38024":{"timestamp":{"__isSmartRef__":true,"id":38025},"user":"sebastianwoinar","tags":[]},"38025":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"38026":{"varMapping":{"__isSmartRef__":true,"id":38027},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":38028},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38027":{"this":{"__isSmartRef__":true,"id":37977}},"38028":{"timestamp":{"__isSmartRef__":true,"id":38029},"user":"sebastianwoinar","tags":[]},"38029":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"38030":{"varMapping":{"__isSmartRef__":true,"id":38031},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":38032},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38031":{"this":{"__isSmartRef__":true,"id":37977}},"38032":{"timestamp":{"__isSmartRef__":true,"id":38033},"user":"sebastianwoinar","tags":[]},"38033":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"38034":{"varMapping":{"__isSmartRef__":true,"id":38035},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":38036},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38035":{"this":{"__isSmartRef__":true,"id":37977}},"38036":{"timestamp":{"__isSmartRef__":true,"id":38037},"user":"sebastianwoinar","tags":[]},"38037":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"38038":{"varMapping":{"__isSmartRef__":true,"id":38039},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":38040},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38039":{"this":{"__isSmartRef__":true,"id":37977}},"38040":{"timestamp":{"__isSmartRef__":true,"id":38041},"user":"sebastianwoinar","tags":[]},"38041":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"38042":{"varMapping":{"__isSmartRef__":true,"id":38043},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":38044},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38043":{"this":{"__isSmartRef__":true,"id":37977}},"38044":{"timestamp":{"__isSmartRef__":true,"id":38045},"user":"sebastianwoinar","tags":[]},"38045":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"38046":{"varMapping":{"__isSmartRef__":true,"id":38047},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":38048},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38047":{"this":{"__isSmartRef__":true,"id":37977}},"38048":{"timestamp":{"__isSmartRef__":true,"id":38049},"user":"sebastianwoinar","tags":[]},"38049":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"38050":{"varMapping":{"__isSmartRef__":true,"id":38051},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":38052},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38051":{"this":{"__isSmartRef__":true,"id":37977}},"38052":{"timestamp":{"__isSmartRef__":true,"id":38053},"user":"sebastianwoinar","tags":[]},"38053":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"38054":{"varMapping":{"__isSmartRef__":true,"id":38055},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":38056},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38055":{"this":{"__isSmartRef__":true,"id":37977}},"38056":{"timestamp":{"__isSmartRef__":true,"id":38057},"user":"sebastianwoinar","tags":[]},"38057":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"38058":{"varMapping":{"__isSmartRef__":true,"id":38059},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":38060},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38059":{"this":{"__isSmartRef__":true,"id":37977}},"38060":{"timestamp":{"__isSmartRef__":true,"id":38061},"user":"sebastianwoinar","tags":[]},"38061":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"38062":{"varMapping":{"__isSmartRef__":true,"id":38063},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":38064},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38063":{"this":{"__isSmartRef__":true,"id":37977}},"38064":{"timestamp":{"__isSmartRef__":true,"id":38065},"user":"sebastianwoinar","tags":[]},"38065":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"38066":{"varMapping":{"__isSmartRef__":true,"id":38067},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":38072},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38067":{"this":{"__isSmartRef__":true,"id":37977},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":38068}},"38068":{"$super":{"__isSmartRef__":true,"id":38069}},"38069":{"varMapping":{"__isSmartRef__":true,"id":38070},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":38071},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38070":{"obj":{"__isSmartRef__":true,"id":37977},"name":"onMouseDown"},"38071":{},"38072":{"timestamp":{"__isSmartRef__":true,"id":38073},"user":"sebastianwoinar","tags":[]},"38073":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"38074":{"varMapping":{"__isSmartRef__":true,"id":38075},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":38076},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38075":{"this":{"__isSmartRef__":true,"id":37977}},"38076":{"timestamp":{"__isSmartRef__":true,"id":38077},"user":"sebastianwoinar","tags":[]},"38077":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"38078":{"varMapping":{"__isSmartRef__":true,"id":38079},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":38080},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38079":{"this":{"__isSmartRef__":true,"id":37977}},"38080":{"timestamp":{"__isSmartRef__":true,"id":38081},"user":"sebastianwoinar","tags":[]},"38081":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"38082":{"varMapping":{"__isSmartRef__":true,"id":38083},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":38084},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38083":{"this":{"__isSmartRef__":true,"id":37977}},"38084":{"timestamp":{"__isSmartRef__":true,"id":38085},"user":"sebastianwoinar","tags":[]},"38085":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"38086":{"varMapping":{"__isSmartRef__":true,"id":38087},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":38088},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38087":{"this":{"__isSmartRef__":true,"id":37977}},"38088":{"timestamp":{"__isSmartRef__":true,"id":38089},"user":"sebastianwoinar","tags":[]},"38089":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"38090":{"varMapping":{"__isSmartRef__":true,"id":38091},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":38092},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38091":{"this":{"__isSmartRef__":true,"id":37977}},"38092":{"timestamp":{"__isSmartRef__":true,"id":38093},"user":"sebastianwoinar","tags":[]},"38093":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"38094":{"varMapping":{"__isSmartRef__":true,"id":38095},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":38096},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38095":{"this":{"__isSmartRef__":true,"id":37977}},"38096":{"timestamp":{"__isSmartRef__":true,"id":38097},"user":"sebastianwoinar","tags":[]},"38097":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"38098":{"varMapping":{"__isSmartRef__":true,"id":38099},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":38100},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38099":{"this":{"__isSmartRef__":true,"id":37977}},"38100":{"timestamp":{"__isSmartRef__":true,"id":38101},"user":"sebastianwoinar","tags":[]},"38101":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"38102":{"varMapping":{"__isSmartRef__":true,"id":38103},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":38104},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38103":{"this":{"__isSmartRef__":true,"id":37977}},"38104":{"timestamp":{"__isSmartRef__":true,"id":38105},"user":"sebastianwoinar","tags":[]},"38105":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"38106":{"buildChildNodes":{"__isSmartRef__":true,"id":38107},"getGameTree":{"__isSmartRef__":true,"id":38111},"getLevel":{"__isSmartRef__":true,"id":38115},"getLevelWeight":{"__isSmartRef__":true,"id":38119},"getWeight":{"__isSmartRef__":true,"id":38123},"setNode":{"__isSmartRef__":true,"id":38127},"setParent":{"__isSmartRef__":true,"id":38131},"getParent":{"__isSmartRef__":true,"id":38135},"deactivate":{"__isSmartRef__":true,"id":38139},"blink":{"__isSmartRef__":true,"id":38143},"ABPreturn":{"__isSmartRef__":true,"id":38147},"ABPstart":{"__isSmartRef__":true,"id":38151},"ABPcontinue":{"__isSmartRef__":true,"id":38155},"ABPshowValue":{"__isSmartRef__":true,"id":38159},"ABPgetValue":{"__isSmartRef__":true,"id":38163},"ABPhasChildNodes":{"__isSmartRef__":true,"id":38167},"onMouseDown":{"__isSmartRef__":true,"id":38171},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":38179},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":38183},"ABPmarkAsDone":{"__isSmartRef__":true,"id":38187},"ABPmarkAsActive":{"__isSmartRef__":true,"id":38191},"getStateMorph":{"__isSmartRef__":true,"id":38195},"showState":{"__isSmartRef__":true,"id":38199},"ABPfailHard":{"__isSmartRef__":true,"id":38203},"markFinalDrawWith":{"__isSmartRef__":true,"id":38207}},"38107":{"varMapping":{"__isSmartRef__":true,"id":38108},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":38109},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38108":{"this":{"__isSmartRef__":true,"id":37179}},"38109":{"timestamp":{"__isSmartRef__":true,"id":38110},"user":"sebastianwoinar","tags":[]},"38110":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"38111":{"varMapping":{"__isSmartRef__":true,"id":38112},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":38113},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38112":{"this":{"__isSmartRef__":true,"id":37179}},"38113":{"timestamp":{"__isSmartRef__":true,"id":38114},"user":"sebastianwoinar","tags":[]},"38114":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"38115":{"varMapping":{"__isSmartRef__":true,"id":38116},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":38117},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38116":{"this":{"__isSmartRef__":true,"id":37179}},"38117":{"timestamp":{"__isSmartRef__":true,"id":38118},"user":"sebastianwoinar","tags":[]},"38118":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"38119":{"varMapping":{"__isSmartRef__":true,"id":38120},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":38121},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38120":{"this":{"__isSmartRef__":true,"id":37179}},"38121":{"timestamp":{"__isSmartRef__":true,"id":38122},"user":"sebastianwoinar","tags":[]},"38122":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"38123":{"varMapping":{"__isSmartRef__":true,"id":38124},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":38125},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38124":{"this":{"__isSmartRef__":true,"id":37179}},"38125":{"timestamp":{"__isSmartRef__":true,"id":38126},"user":"sebastianwoinar","tags":[]},"38126":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"38127":{"varMapping":{"__isSmartRef__":true,"id":38128},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":38129},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38128":{"this":{"__isSmartRef__":true,"id":37179}},"38129":{"timestamp":{"__isSmartRef__":true,"id":38130},"user":"sebastianwoinar","tags":[]},"38130":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"38131":{"varMapping":{"__isSmartRef__":true,"id":38132},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":38133},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38132":{"this":{"__isSmartRef__":true,"id":37179}},"38133":{"timestamp":{"__isSmartRef__":true,"id":38134},"user":"sebastianwoinar","tags":[]},"38134":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"38135":{"varMapping":{"__isSmartRef__":true,"id":38136},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":38137},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38136":{"this":{"__isSmartRef__":true,"id":37179}},"38137":{"timestamp":{"__isSmartRef__":true,"id":38138},"user":"sebastianwoinar","tags":[]},"38138":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"38139":{"varMapping":{"__isSmartRef__":true,"id":38140},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":38141},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38140":{"this":{"__isSmartRef__":true,"id":37179}},"38141":{"timestamp":{"__isSmartRef__":true,"id":38142},"user":"sebastianwoinar","tags":[]},"38142":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"38143":{"varMapping":{"__isSmartRef__":true,"id":38144},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":38145},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38144":{"this":{"__isSmartRef__":true,"id":37179}},"38145":{"timestamp":{"__isSmartRef__":true,"id":38146},"user":"sebastianwoinar","tags":[]},"38146":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"38147":{"varMapping":{"__isSmartRef__":true,"id":38148},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":38149},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38148":{"this":{"__isSmartRef__":true,"id":37179}},"38149":{"timestamp":{"__isSmartRef__":true,"id":38150},"user":"sebastianwoinar","tags":[]},"38150":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"38151":{"varMapping":{"__isSmartRef__":true,"id":38152},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":38153},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38152":{"this":{"__isSmartRef__":true,"id":37179}},"38153":{"timestamp":{"__isSmartRef__":true,"id":38154},"user":"sebastianwoinar","tags":[]},"38154":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"38155":{"varMapping":{"__isSmartRef__":true,"id":38156},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":38157},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38156":{"this":{"__isSmartRef__":true,"id":37179}},"38157":{"timestamp":{"__isSmartRef__":true,"id":38158},"user":"sebastianwoinar","tags":[]},"38158":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"38159":{"varMapping":{"__isSmartRef__":true,"id":38160},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":38161},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38160":{"this":{"__isSmartRef__":true,"id":37179}},"38161":{"timestamp":{"__isSmartRef__":true,"id":38162},"user":"sebastianwoinar","tags":[]},"38162":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"38163":{"varMapping":{"__isSmartRef__":true,"id":38164},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":38165},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38164":{"this":{"__isSmartRef__":true,"id":37179}},"38165":{"timestamp":{"__isSmartRef__":true,"id":38166},"user":"sebastianwoinar","tags":[]},"38166":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"38167":{"varMapping":{"__isSmartRef__":true,"id":38168},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":38169},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38168":{"this":{"__isSmartRef__":true,"id":37179}},"38169":{"timestamp":{"__isSmartRef__":true,"id":38170},"user":"sebastianwoinar","tags":[]},"38170":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"38171":{"varMapping":{"__isSmartRef__":true,"id":38172},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":38177},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38172":{"this":{"__isSmartRef__":true,"id":37179},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":38173}},"38173":{"$super":{"__isSmartRef__":true,"id":38174}},"38174":{"varMapping":{"__isSmartRef__":true,"id":38175},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":38176},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38175":{"obj":{"__isSmartRef__":true,"id":37179},"name":"onMouseDown"},"38176":{},"38177":{"timestamp":{"__isSmartRef__":true,"id":38178},"user":"sebastianwoinar","tags":[]},"38178":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"38179":{"varMapping":{"__isSmartRef__":true,"id":38180},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":38181},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38180":{"this":{"__isSmartRef__":true,"id":37179}},"38181":{"timestamp":{"__isSmartRef__":true,"id":38182},"user":"sebastianwoinar","tags":[]},"38182":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"38183":{"varMapping":{"__isSmartRef__":true,"id":38184},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":38185},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38184":{"this":{"__isSmartRef__":true,"id":37179}},"38185":{"timestamp":{"__isSmartRef__":true,"id":38186},"user":"sebastianwoinar","tags":[]},"38186":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"38187":{"varMapping":{"__isSmartRef__":true,"id":38188},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":38189},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38188":{"this":{"__isSmartRef__":true,"id":37179}},"38189":{"timestamp":{"__isSmartRef__":true,"id":38190},"user":"sebastianwoinar","tags":[]},"38190":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"38191":{"varMapping":{"__isSmartRef__":true,"id":38192},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":38193},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38192":{"this":{"__isSmartRef__":true,"id":37179}},"38193":{"timestamp":{"__isSmartRef__":true,"id":38194},"user":"sebastianwoinar","tags":[]},"38194":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"38195":{"varMapping":{"__isSmartRef__":true,"id":38196},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":38197},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38196":{"this":{"__isSmartRef__":true,"id":37179}},"38197":{"timestamp":{"__isSmartRef__":true,"id":38198},"user":"sebastianwoinar","tags":[]},"38198":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"38199":{"varMapping":{"__isSmartRef__":true,"id":38200},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":38201},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38200":{"this":{"__isSmartRef__":true,"id":37179}},"38201":{"timestamp":{"__isSmartRef__":true,"id":38202},"user":"sebastianwoinar","tags":[]},"38202":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"38203":{"varMapping":{"__isSmartRef__":true,"id":38204},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":38205},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38204":{"this":{"__isSmartRef__":true,"id":37179}},"38205":{"timestamp":{"__isSmartRef__":true,"id":38206},"user":"sebastianwoinar","tags":[]},"38206":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"38207":{"varMapping":{"__isSmartRef__":true,"id":38208},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":38209},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38208":{"this":{"__isSmartRef__":true,"id":37179}},"38209":{"timestamp":{"__isSmartRef__":true,"id":38210},"user":"sebastianwoinar","tags":[]},"38210":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"38211":{"buildChildNodes":{"__isSmartRef__":true,"id":38212},"getGameTree":{"__isSmartRef__":true,"id":38216},"getLevel":{"__isSmartRef__":true,"id":38220},"getLevelWeight":{"__isSmartRef__":true,"id":38224},"getWeight":{"__isSmartRef__":true,"id":38228},"setNode":{"__isSmartRef__":true,"id":38232},"setParent":{"__isSmartRef__":true,"id":38236},"getParent":{"__isSmartRef__":true,"id":38240},"deactivate":{"__isSmartRef__":true,"id":38244},"blink":{"__isSmartRef__":true,"id":38248},"ABPreturn":{"__isSmartRef__":true,"id":38252},"ABPstart":{"__isSmartRef__":true,"id":38256},"ABPcontinue":{"__isSmartRef__":true,"id":38260},"ABPshowValue":{"__isSmartRef__":true,"id":38264},"ABPgetValue":{"__isSmartRef__":true,"id":38268},"ABPhasChildNodes":{"__isSmartRef__":true,"id":38272},"onMouseDown":{"__isSmartRef__":true,"id":38276},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":38284},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":38288},"ABPmarkAsDone":{"__isSmartRef__":true,"id":38292},"ABPmarkAsActive":{"__isSmartRef__":true,"id":38296},"getStateMorph":{"__isSmartRef__":true,"id":38300},"showState":{"__isSmartRef__":true,"id":38304},"ABPfailHard":{"__isSmartRef__":true,"id":38308},"markFinalDrawWith":{"__isSmartRef__":true,"id":38312}},"38212":{"varMapping":{"__isSmartRef__":true,"id":38213},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":38214},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38213":{"this":{"__isSmartRef__":true,"id":33285}},"38214":{"timestamp":{"__isSmartRef__":true,"id":38215},"user":"sebastianwoinar","tags":[]},"38215":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"38216":{"varMapping":{"__isSmartRef__":true,"id":38217},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":38218},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38217":{"this":{"__isSmartRef__":true,"id":33285}},"38218":{"timestamp":{"__isSmartRef__":true,"id":38219},"user":"sebastianwoinar","tags":[]},"38219":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"38220":{"varMapping":{"__isSmartRef__":true,"id":38221},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":38222},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38221":{"this":{"__isSmartRef__":true,"id":33285}},"38222":{"timestamp":{"__isSmartRef__":true,"id":38223},"user":"sebastianwoinar","tags":[]},"38223":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"38224":{"varMapping":{"__isSmartRef__":true,"id":38225},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":38226},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38225":{"this":{"__isSmartRef__":true,"id":33285}},"38226":{"timestamp":{"__isSmartRef__":true,"id":38227},"user":"sebastianwoinar","tags":[]},"38227":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"38228":{"varMapping":{"__isSmartRef__":true,"id":38229},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":38230},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38229":{"this":{"__isSmartRef__":true,"id":33285}},"38230":{"timestamp":{"__isSmartRef__":true,"id":38231},"user":"sebastianwoinar","tags":[]},"38231":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"38232":{"varMapping":{"__isSmartRef__":true,"id":38233},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":38234},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38233":{"this":{"__isSmartRef__":true,"id":33285}},"38234":{"timestamp":{"__isSmartRef__":true,"id":38235},"user":"sebastianwoinar","tags":[]},"38235":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"38236":{"varMapping":{"__isSmartRef__":true,"id":38237},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":38238},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38237":{"this":{"__isSmartRef__":true,"id":33285}},"38238":{"timestamp":{"__isSmartRef__":true,"id":38239},"user":"sebastianwoinar","tags":[]},"38239":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"38240":{"varMapping":{"__isSmartRef__":true,"id":38241},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":38242},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38241":{"this":{"__isSmartRef__":true,"id":33285}},"38242":{"timestamp":{"__isSmartRef__":true,"id":38243},"user":"sebastianwoinar","tags":[]},"38243":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"38244":{"varMapping":{"__isSmartRef__":true,"id":38245},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":38246},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38245":{"this":{"__isSmartRef__":true,"id":33285}},"38246":{"timestamp":{"__isSmartRef__":true,"id":38247},"user":"sebastianwoinar","tags":[]},"38247":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"38248":{"varMapping":{"__isSmartRef__":true,"id":38249},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":38250},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38249":{"this":{"__isSmartRef__":true,"id":33285}},"38250":{"timestamp":{"__isSmartRef__":true,"id":38251},"user":"sebastianwoinar","tags":[]},"38251":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"38252":{"varMapping":{"__isSmartRef__":true,"id":38253},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":38254},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38253":{"this":{"__isSmartRef__":true,"id":33285}},"38254":{"timestamp":{"__isSmartRef__":true,"id":38255},"user":"sebastianwoinar","tags":[]},"38255":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"38256":{"varMapping":{"__isSmartRef__":true,"id":38257},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":38258},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38257":{"this":{"__isSmartRef__":true,"id":33285}},"38258":{"timestamp":{"__isSmartRef__":true,"id":38259},"user":"sebastianwoinar","tags":[]},"38259":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"38260":{"varMapping":{"__isSmartRef__":true,"id":38261},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":38262},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38261":{"this":{"__isSmartRef__":true,"id":33285}},"38262":{"timestamp":{"__isSmartRef__":true,"id":38263},"user":"sebastianwoinar","tags":[]},"38263":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"38264":{"varMapping":{"__isSmartRef__":true,"id":38265},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":38266},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38265":{"this":{"__isSmartRef__":true,"id":33285}},"38266":{"timestamp":{"__isSmartRef__":true,"id":38267},"user":"sebastianwoinar","tags":[]},"38267":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"38268":{"varMapping":{"__isSmartRef__":true,"id":38269},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":38270},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38269":{"this":{"__isSmartRef__":true,"id":33285}},"38270":{"timestamp":{"__isSmartRef__":true,"id":38271},"user":"sebastianwoinar","tags":[]},"38271":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"38272":{"varMapping":{"__isSmartRef__":true,"id":38273},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":38274},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38273":{"this":{"__isSmartRef__":true,"id":33285}},"38274":{"timestamp":{"__isSmartRef__":true,"id":38275},"user":"sebastianwoinar","tags":[]},"38275":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"38276":{"varMapping":{"__isSmartRef__":true,"id":38277},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":38282},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38277":{"this":{"__isSmartRef__":true,"id":33285},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":38278}},"38278":{"$super":{"__isSmartRef__":true,"id":38279}},"38279":{"varMapping":{"__isSmartRef__":true,"id":38280},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":38281},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38280":{"obj":{"__isSmartRef__":true,"id":33285},"name":"onMouseDown"},"38281":{},"38282":{"timestamp":{"__isSmartRef__":true,"id":38283},"user":"sebastianwoinar","tags":[]},"38283":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"38284":{"varMapping":{"__isSmartRef__":true,"id":38285},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":38286},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38285":{"this":{"__isSmartRef__":true,"id":33285}},"38286":{"timestamp":{"__isSmartRef__":true,"id":38287},"user":"sebastianwoinar","tags":[]},"38287":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"38288":{"varMapping":{"__isSmartRef__":true,"id":38289},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":38290},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38289":{"this":{"__isSmartRef__":true,"id":33285}},"38290":{"timestamp":{"__isSmartRef__":true,"id":38291},"user":"sebastianwoinar","tags":[]},"38291":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"38292":{"varMapping":{"__isSmartRef__":true,"id":38293},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":38294},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38293":{"this":{"__isSmartRef__":true,"id":33285}},"38294":{"timestamp":{"__isSmartRef__":true,"id":38295},"user":"sebastianwoinar","tags":[]},"38295":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"38296":{"varMapping":{"__isSmartRef__":true,"id":38297},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":38298},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38297":{"this":{"__isSmartRef__":true,"id":33285}},"38298":{"timestamp":{"__isSmartRef__":true,"id":38299},"user":"sebastianwoinar","tags":[]},"38299":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"38300":{"varMapping":{"__isSmartRef__":true,"id":38301},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":38302},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38301":{"this":{"__isSmartRef__":true,"id":33285}},"38302":{"timestamp":{"__isSmartRef__":true,"id":38303},"user":"sebastianwoinar","tags":[]},"38303":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"38304":{"varMapping":{"__isSmartRef__":true,"id":38305},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":38306},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38305":{"this":{"__isSmartRef__":true,"id":33285}},"38306":{"timestamp":{"__isSmartRef__":true,"id":38307},"user":"sebastianwoinar","tags":[]},"38307":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"38308":{"varMapping":{"__isSmartRef__":true,"id":38309},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":38310},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38309":{"this":{"__isSmartRef__":true,"id":33285}},"38310":{"timestamp":{"__isSmartRef__":true,"id":38311},"user":"sebastianwoinar","tags":[]},"38311":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"38312":{"varMapping":{"__isSmartRef__":true,"id":38313},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":38314},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38313":{"this":{"__isSmartRef__":true,"id":33285}},"38314":{"timestamp":{"__isSmartRef__":true,"id":38315},"user":"sebastianwoinar","tags":[]},"38315":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"38316":{"buildChildNodes":{"__isSmartRef__":true,"id":38317},"getGameTree":{"__isSmartRef__":true,"id":38321},"getLevel":{"__isSmartRef__":true,"id":38325},"getLevelWeight":{"__isSmartRef__":true,"id":38329},"getWeight":{"__isSmartRef__":true,"id":38333},"setNode":{"__isSmartRef__":true,"id":38337},"setParent":{"__isSmartRef__":true,"id":38341},"getParent":{"__isSmartRef__":true,"id":38345},"deactivate":{"__isSmartRef__":true,"id":38349},"blink":{"__isSmartRef__":true,"id":38353},"ABPreturn":{"__isSmartRef__":true,"id":38357},"ABPstart":{"__isSmartRef__":true,"id":38361},"ABPcontinue":{"__isSmartRef__":true,"id":38365},"ABPshowValue":{"__isSmartRef__":true,"id":38369},"ABPgetValue":{"__isSmartRef__":true,"id":38373},"ABPhasChildNodes":{"__isSmartRef__":true,"id":38377},"onMouseDown":{"__isSmartRef__":true,"id":38381},"ABPmarkChildNodesAsSkippedAfter":{"__isSmartRef__":true,"id":38389},"ABPmarkAsSkipped":{"__isSmartRef__":true,"id":38393},"ABPmarkAsDone":{"__isSmartRef__":true,"id":38397},"ABPmarkAsActive":{"__isSmartRef__":true,"id":38401},"getStateMorph":{"__isSmartRef__":true,"id":38405},"showState":{"__isSmartRef__":true,"id":38409},"ABPfailHard":{"__isSmartRef__":true,"id":38413},"markFinalDrawWith":{"__isSmartRef__":true,"id":38417}},"38317":{"varMapping":{"__isSmartRef__":true,"id":38318},"source":"function buildChildNodes() {\n if(this.getLevel() >= this.getGameTree().getMovesCount()){\n return;\n }\n var that = this;\n this.childNodes = new Array();\n this.node.buildChildNodes();\n this.node.getChilds().forEach(function(node){\n var child = that.getGameTree().getNewNode();\n child.setNode(node);\n that.getGameTree().addNode(child);\n that.getGameTree().addMorph(child);\n child.buildChildNodes();\n child.setParent(that);\n that.childNodes.push(child);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":38319},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38318":{"this":{"__isSmartRef__":true,"id":5409}},"38319":{"timestamp":{"__isSmartRef__":true,"id":38320},"user":"sebastianwoinar","tags":[]},"38320":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:40:39 GMT+0100 (CET)"},"38321":{"varMapping":{"__isSmartRef__":true,"id":38322},"source":"function getGameTree() {\n return this.owner;\n}","funcProperties":{"__isSmartRef__":true,"id":38323},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38322":{"this":{"__isSmartRef__":true,"id":5409}},"38323":{"timestamp":{"__isSmartRef__":true,"id":38324},"user":"sebastianwoinar","tags":[]},"38324":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"38325":{"varMapping":{"__isSmartRef__":true,"id":38326},"source":"function getLevel() {\n return this.node.level;\n}","funcProperties":{"__isSmartRef__":true,"id":38327},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38326":{"this":{"__isSmartRef__":true,"id":5409}},"38327":{"timestamp":{"__isSmartRef__":true,"id":38328},"user":"sebastianwoinar","tags":[]},"38328":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"38329":{"varMapping":{"__isSmartRef__":true,"id":38330},"source":"function getLevelWeight(level) {\n if (level == 0) {\n return 1;\n } else if (this.level == level - 1) {\n return this.childNodes.length;\n } else {\n var weight = 0;\n this.childNodes.forEach(function(ele) {\n weight = weight + ele.getLevelWeight(level);\n });\n return weight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":38331},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38330":{"this":{"__isSmartRef__":true,"id":5409}},"38331":{"timestamp":{"__isSmartRef__":true,"id":38332},"user":"sebastianwoinar","tags":[]},"38332":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"38333":{"varMapping":{"__isSmartRef__":true,"id":38334},"source":"function getWeight() {\n return this.childNodes.length;\n}","funcProperties":{"__isSmartRef__":true,"id":38335},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38334":{"this":{"__isSmartRef__":true,"id":5409}},"38335":{"timestamp":{"__isSmartRef__":true,"id":38336},"user":"sebastianwoinar","tags":[]},"38336":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"38337":{"varMapping":{"__isSmartRef__":true,"id":38338},"source":"function setNode(node) {\n this.node = node;\n}","funcProperties":{"__isSmartRef__":true,"id":38339},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38338":{"this":{"__isSmartRef__":true,"id":5409}},"38339":{"timestamp":{"__isSmartRef__":true,"id":38340},"user":"sebastianwoinar","tags":[]},"38340":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"38341":{"varMapping":{"__isSmartRef__":true,"id":38342},"source":"function setParent(parent) {\n this.parent = parent;\n this.level = parent.getLevel() + 1;\n}","funcProperties":{"__isSmartRef__":true,"id":38343},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38342":{"this":{"__isSmartRef__":true,"id":5409}},"38343":{"timestamp":{"__isSmartRef__":true,"id":38344},"user":"sebastianwoinar","tags":[]},"38344":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:58:16 GMT+0100 (CET)"},"38345":{"varMapping":{"__isSmartRef__":true,"id":38346},"source":"function getParent() {\n return this.parent;\n}","funcProperties":{"__isSmartRef__":true,"id":38347},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38346":{"this":{"__isSmartRef__":true,"id":5409}},"38347":{"timestamp":{"__isSmartRef__":true,"id":38348},"user":"sebastianwoinar","tags":[]},"38348":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:39 GMT+0100 (CET)"},"38349":{"varMapping":{"__isSmartRef__":true,"id":38350},"source":"function deactivate() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":38351},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38350":{"this":{"__isSmartRef__":true,"id":5409}},"38351":{"timestamp":{"__isSmartRef__":true,"id":38352},"user":"sebastianwoinar","tags":[]},"38352":{"isSerializedDate":true,"string":"Sun Dec 02 2012 13:48:19 GMT+0100 (CET)"},"38353":{"varMapping":{"__isSmartRef__":true,"id":38354},"source":"function blink() {\n this.jQuery().fadeOut().fadeIn();\n}","funcProperties":{"__isSmartRef__":true,"id":38355},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38354":{"this":{"__isSmartRef__":true,"id":5409}},"38355":{"timestamp":{"__isSmartRef__":true,"id":38356},"user":"sebastianwoinar","tags":[]},"38356":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:49:46 GMT+0100 (CET)"},"38357":{"varMapping":{"__isSmartRef__":true,"id":38358},"source":"function ABPreturn() {\n this.blink();\n this.ABPshowValue();\n if(this.abp.origAlpha == this.abp.alpha){\n // \"alpha return\" therefore the I have better draws than this\n this.submorphs[0].setTextColor(Color.blue);\n } \n setTimeout(function(){\n this.ABPmarkAsDone();\n this.getGameTree().ABPreturn(this.abp.parentCallback);\n }.bind(this), 300); \n}","funcProperties":{"__isSmartRef__":true,"id":38359},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38358":{"this":{"__isSmartRef__":true,"id":5409}},"38359":{"timestamp":{"__isSmartRef__":true,"id":38360},"user":"sebastianwoinar","tags":[]},"38360":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:01:02 GMT+0100 (CET)"},"38361":{"varMapping":{"__isSmartRef__":true,"id":38362},"source":"function ABPstart(useABP, alpha, beta, callbackFn) {\n // initiliaze instance variabels for \n this.ABPmarkAsActive();\n this.abp = {\n \"isActive\" : useABP,\n \"alpha\" : alpha,\n \"beta\" : beta,\n \"i\" : 0,\n \"m\" : alpha,\n \"origAlpha\" : alpha,\n \"d\" : 0,\n \"parentCallback\" : callbackFn\n };\n this.ABPcontinue();\n}","funcProperties":{"__isSmartRef__":true,"id":38363},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38362":{"this":{"__isSmartRef__":true,"id":5409}},"38363":{"timestamp":{"__isSmartRef__":true,"id":38364},"user":"sebastianwoinar","tags":[]},"38364":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:06:35 GMT+0100 (CET)"},"38365":{"varMapping":{"__isSmartRef__":true,"id":38366},"source":"function ABPcontinue() {\n this.showState();\n\n if( this.ABPhasChildNodes() == false ) {\n this.abp.m = this.node.state.value();\n this.abp.alpha = this.abp.m;\n }\n if (this.ABPhasChildNodes() == false || this.abp.i >= this.childNodes.length){\n this.ABPreturn();\n } else {\n \n var child = this.childNodes[this.abp.i];\n \n var callbackForChild = function() {\n this.abp.i++;\n var t = -child.ABPgetValue();\n \n if(t > this.abp.m) {\n this.abp.m = t;\n this.abp.alpha = this.abp.m;\n }\n \n if(this.abp.isActive == true) {\n // use additional recursive exit condition for ABP optimization\n if (t >= this.abp.beta){\n // this state is better for me than the best draw of my oppenent, therefore he would never chose this branch\n this.ABPfailHard();\n return;\n }\n }\n \n this.ABPcontinue();\n }.bind(this);\n \n child.ABPstart(this.abp.isActive, - this.abp.beta, - this.abp.m, callbackForChild);\n \n }\n}","funcProperties":{"__isSmartRef__":true,"id":38367},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38366":{"this":{"__isSmartRef__":true,"id":5409}},"38367":{"timestamp":{"__isSmartRef__":true,"id":38368},"user":"sebastianwoinar","tags":[]},"38368":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:25:56 GMT+0100 (CET)"},"38369":{"varMapping":{"__isSmartRef__":true,"id":38370},"source":"function ABPshowValue() {\n this.submorphs[0].setTextString(this.abp.m);\n this.showState();\n}","funcProperties":{"__isSmartRef__":true,"id":38371},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38370":{"this":{"__isSmartRef__":true,"id":5409}},"38371":{"timestamp":{"__isSmartRef__":true,"id":38372},"user":"sebastianwoinar","tags":[]},"38372":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:51:07 GMT+0100 (CET)"},"38373":{"varMapping":{"__isSmartRef__":true,"id":38374},"source":"function ABPgetValue() {\n return this.abp.m;\n}","funcProperties":{"__isSmartRef__":true,"id":38375},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38374":{"this":{"__isSmartRef__":true,"id":5409}},"38375":{"timestamp":{"__isSmartRef__":true,"id":38376},"user":"sebastianwoinar","tags":[]},"38376":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:02:26 GMT+0100 (CET)"},"38377":{"varMapping":{"__isSmartRef__":true,"id":38378},"source":"function ABPhasChildNodes() {\n return typeof this.childNodes != \"undefined\" && this.childNodes.length > 0;\n}","funcProperties":{"__isSmartRef__":true,"id":38379},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38378":{"this":{"__isSmartRef__":true,"id":5409}},"38379":{"timestamp":{"__isSmartRef__":true,"id":38380},"user":"sebastianwoinar","tags":[]},"38380":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:07:07 GMT+0100 (CET)"},"38381":{"varMapping":{"__isSmartRef__":true,"id":38382},"source":"function onMouseDown(evt) {\n this.showState();\n this.getGameTree().showStateOf(this);\n \n $super(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":38387},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38382":{"this":{"__isSmartRef__":true,"id":5409},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":38383}},"38383":{"$super":{"__isSmartRef__":true,"id":38384}},"38384":{"varMapping":{"__isSmartRef__":true,"id":38385},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":38386},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38385":{"obj":{"__isSmartRef__":true,"id":5409},"name":"onMouseDown"},"38386":{},"38387":{"timestamp":{"__isSmartRef__":true,"id":38388},"user":"sebastianwoinar","tags":[]},"38388":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:39:29 GMT+0100 (CET)"},"38389":{"varMapping":{"__isSmartRef__":true,"id":38390},"source":"function ABPmarkChildNodesAsSkippedAfter(index) {\n if(typeof this.childNodes != \"undefined\"){\n for(var i = index ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.ABPmarkAsSkipped();\n child.ABPmarkChildNodesAsSkippedAfter(0);\n }\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":38391},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38390":{"this":{"__isSmartRef__":true,"id":5409}},"38391":{"timestamp":{"__isSmartRef__":true,"id":38392},"user":"sebastianwoinar","tags":[]},"38392":{"isSerializedDate":true,"string":"Mon Dec 10 2012 16:36:35 GMT+0100 (CET)"},"38393":{"varMapping":{"__isSmartRef__":true,"id":38394},"source":"function ABPmarkAsSkipped() {\n this.setBorderColor(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":38395},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38394":{"this":{"__isSmartRef__":true,"id":5409}},"38395":{"timestamp":{"__isSmartRef__":true,"id":38396},"user":"sebastianwoinar","tags":[]},"38396":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:27 GMT+0100 (CET)"},"38397":{"varMapping":{"__isSmartRef__":true,"id":38398},"source":"function ABPmarkAsDone() {\n this.setBorderColor(Color.black);\n}","funcProperties":{"__isSmartRef__":true,"id":38399},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38398":{"this":{"__isSmartRef__":true,"id":5409}},"38399":{"timestamp":{"__isSmartRef__":true,"id":38400},"user":"sebastianwoinar","tags":[]},"38400":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:08:22 GMT+0100 (CET)"},"38401":{"varMapping":{"__isSmartRef__":true,"id":38402},"source":"function ABPmarkAsActive() {\n this.setBorderColor(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":38403},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38402":{"this":{"__isSmartRef__":true,"id":5409}},"38403":{"timestamp":{"__isSmartRef__":true,"id":38404},"user":"sebastianwoinar","tags":[]},"38404":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:06:59 GMT+0100 (CET)"},"38405":{"varMapping":{"__isSmartRef__":true,"id":38406},"source":"function getStateMorph() {\n return $morph(\"ABPstateMorph\");\n}","funcProperties":{"__isSmartRef__":true,"id":38407},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38406":{"this":{"__isSmartRef__":true,"id":5409}},"38407":{"timestamp":{"__isSmartRef__":true,"id":38408},"user":"sebastianwoinar","tags":[]},"38408":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:34:19 GMT+0100 (CET)"},"38409":{"varMapping":{"__isSmartRef__":true,"id":38410},"source":"function showState() {\n if(typeof this.abp != \"undefined\") {\n var m = this.getStateMorph();\n m.setAlpha(this.abp.alpha);\n m.setBeta(this.abp.beta);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":38411},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38410":{"this":{"__isSmartRef__":true,"id":5409}},"38411":{"timestamp":{"__isSmartRef__":true,"id":38412},"user":"sebastianwoinar","tags":[]},"38412":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:23:13 GMT+0100 (CET)"},"38413":{"varMapping":{"__isSmartRef__":true,"id":38414},"source":"function ABPfailHard() {\n this.ABPreturn();\n this.ABPmarkChildNodesAsSkippedAfter(this.abp.i);\n this.submorphs[0].setTextString(this.abp.beta);\n this.submorphs[0].setTextColor(Color.red);\n // beta cut off\n}","funcProperties":{"__isSmartRef__":true,"id":38415},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38414":{"this":{"__isSmartRef__":true,"id":5409}},"38415":{"timestamp":{"__isSmartRef__":true,"id":38416},"user":"sebastianwoinar","tags":[]},"38416":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:00:03 GMT+0100 (CET)"},"38417":{"varMapping":{"__isSmartRef__":true,"id":38418},"source":"function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":38419},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38418":{"this":{"__isSmartRef__":true,"id":5409}},"38419":{"timestamp":{"__isSmartRef__":true,"id":38420},"user":"sebastianwoinar","tags":[]},"38420":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:30:30 GMT+0100 (CET)"},"38421":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38422},"id":"D781FBF0-ED04-4CFE-BB3F-14283490D832","eventHandler":{"__isSmartRef__":true,"id":38425},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38426},{"__isSmartRef__":true,"id":38427}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38428},"name":"edge1","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(556.9,24.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38422":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38423},{"__isSmartRef__":true,"id":38424}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-376.6,12.0)","_Extent":"lively.pt(377.6,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38423":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38424":{"isAbsolute":true,"x":-374.5666666666667,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38425":{"morph":{"__isSmartRef__":true,"id":38421},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38426":{"morph":{"__isSmartRef__":true,"id":38421},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38427":{"morph":{"__isSmartRef__":true,"id":38421},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38428":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38429":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38430},"id":"425D4A78-8D23-4899-82C8-A1C135B85821","eventHandler":{"__isSmartRef__":true,"id":38433},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38434},{"__isSmartRef__":true,"id":38435}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38436},"name":"edge2","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(556.9,24.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38430":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38431},{"__isSmartRef__":true,"id":38432}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-189.3,12.0)","_Extent":"lively.pt(190.3,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38431":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38432":{"isAbsolute":true,"x":-187.28333333333336,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38433":{"morph":{"__isSmartRef__":true,"id":38429},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38434":{"morph":{"__isSmartRef__":true,"id":38429},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38435":{"morph":{"__isSmartRef__":true,"id":38429},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38436":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38437":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38438},"id":"E6655ECF-7E29-4146-9652-1A87A601A39D","eventHandler":{"__isSmartRef__":true,"id":38441},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38442},{"__isSmartRef__":true,"id":38443}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38444},"name":"edge3","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(556.9,24.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38438":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38439},{"__isSmartRef__":true,"id":38440}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(3.0,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38439":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38440":{"isAbsolute":true,"x":0,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38441":{"morph":{"__isSmartRef__":true,"id":38437},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38442":{"morph":{"__isSmartRef__":true,"id":38437},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38443":{"morph":{"__isSmartRef__":true,"id":38437},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38444":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38445":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38446},"id":"CC2E4729-C9CE-4521-93D3-76E8BC4F0ABC","eventHandler":{"__isSmartRef__":true,"id":38449},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38450},{"__isSmartRef__":true,"id":38451}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38452},"name":"edge4","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(556.9,24.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38446":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38447},{"__isSmartRef__":true,"id":38448}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(190.3,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38447":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38448":{"isAbsolute":true,"x":187.2833333333333,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38449":{"morph":{"__isSmartRef__":true,"id":38445},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38450":{"morph":{"__isSmartRef__":true,"id":38445},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38451":{"morph":{"__isSmartRef__":true,"id":38445},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38452":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38453":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38454},"id":"309F10B3-7E7D-43F4-B04F-D8DA7E25B9FD","eventHandler":{"__isSmartRef__":true,"id":38457},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38458},{"__isSmartRef__":true,"id":38459}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38460},"name":"edge5","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(556.9,24.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38454":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38455},{"__isSmartRef__":true,"id":38456}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(377.6,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38455":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38456":{"isAbsolute":true,"x":374.5666666666666,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38457":{"morph":{"__isSmartRef__":true,"id":38453},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38458":{"morph":{"__isSmartRef__":true,"id":38453},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38459":{"morph":{"__isSmartRef__":true,"id":38453},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38460":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38461":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38462},"id":"18CBAE6C-A26B-44A0-B06F-A6472B451637","eventHandler":{"__isSmartRef__":true,"id":38465},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38466},{"__isSmartRef__":true,"id":38467}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38468},"name":"edge6","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(182.3,74.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38462":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38463},{"__isSmartRef__":true,"id":38464}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-153.0,12.0)","_Extent":"lively.pt(154.0,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38463":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38464":{"isAbsolute":true,"x":-151.03494623655914,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38465":{"morph":{"__isSmartRef__":true,"id":38461},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38466":{"morph":{"__isSmartRef__":true,"id":38461},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38467":{"morph":{"__isSmartRef__":true,"id":38461},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38468":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38469":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38470},"id":"FA706CC3-0AAC-49E9-8E59-1C6450DCF3FF","eventHandler":{"__isSmartRef__":true,"id":38473},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38474},{"__isSmartRef__":true,"id":38475}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38476},"name":"edge7","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(182.3,74.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38470":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38471},{"__isSmartRef__":true,"id":38472}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-116.8,12.0)","_Extent":"lively.pt(117.8,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38471":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38472":{"isAbsolute":true,"x":-114.78655913978494,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38473":{"morph":{"__isSmartRef__":true,"id":38469},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38474":{"morph":{"__isSmartRef__":true,"id":38469},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38475":{"morph":{"__isSmartRef__":true,"id":38469},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38476":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38477":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38478},"id":"67FB8EC2-3CF0-4762-A07D-A0BFE76FCD94","eventHandler":{"__isSmartRef__":true,"id":38481},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38482},{"__isSmartRef__":true,"id":38483}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38484},"name":"edge8","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(182.3,74.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38478":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38479},{"__isSmartRef__":true,"id":38480}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-80.5,12.0)","_Extent":"lively.pt(81.5,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38479":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38480":{"isAbsolute":true,"x":-78.53817204301075,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38481":{"morph":{"__isSmartRef__":true,"id":38477},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38482":{"morph":{"__isSmartRef__":true,"id":38477},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38483":{"morph":{"__isSmartRef__":true,"id":38477},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38484":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38485":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38486},"id":"D243F83D-6214-448B-8166-D6FE0BEFFA42","eventHandler":{"__isSmartRef__":true,"id":38489},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38490},{"__isSmartRef__":true,"id":38491}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38492},"name":"edge9","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(182.3,74.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38486":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38487},{"__isSmartRef__":true,"id":38488}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-44.3,12.0)","_Extent":"lively.pt(45.3,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38487":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38488":{"isAbsolute":true,"x":-42.28978494623655,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38489":{"morph":{"__isSmartRef__":true,"id":38485},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38490":{"morph":{"__isSmartRef__":true,"id":38485},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38491":{"morph":{"__isSmartRef__":true,"id":38485},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38492":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38493":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38494},"id":"91230CDD-0AFD-4A92-96DF-6BC37F0D6BB1","eventHandler":{"__isSmartRef__":true,"id":38497},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38498},{"__isSmartRef__":true,"id":38499}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38500},"name":"edge10","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(182.3,74.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38494":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38495},{"__isSmartRef__":true,"id":38496}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-8.0,12.0)","_Extent":"lively.pt(9.0,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38495":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38496":{"isAbsolute":true,"x":-6.041397849462356,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38497":{"morph":{"__isSmartRef__":true,"id":38493},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38498":{"morph":{"__isSmartRef__":true,"id":38493},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38499":{"morph":{"__isSmartRef__":true,"id":38493},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38500":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38501":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38502},"id":"91AF7A74-11CD-490C-8668-78FD31D70E55","eventHandler":{"__isSmartRef__":true,"id":38505},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38506},{"__isSmartRef__":true,"id":38507}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38508},"name":"edge11","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(182.3,74.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38502":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38503},{"__isSmartRef__":true,"id":38504}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(33.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38503":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38504":{"isAbsolute":true,"x":30.20698924731184,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38505":{"morph":{"__isSmartRef__":true,"id":38501},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38506":{"morph":{"__isSmartRef__":true,"id":38501},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38507":{"morph":{"__isSmartRef__":true,"id":38501},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38508":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38509":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38510},"id":"7A9EE190-E9AE-4673-8936-F0C456AE1E34","eventHandler":{"__isSmartRef__":true,"id":38513},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38514},{"__isSmartRef__":true,"id":38515}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38516},"name":"edge12","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(182.3,74.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38510":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38511},{"__isSmartRef__":true,"id":38512}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(69.5,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38511":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38512":{"isAbsolute":true,"x":66.45537634408603,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38513":{"morph":{"__isSmartRef__":true,"id":38509},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38514":{"morph":{"__isSmartRef__":true,"id":38509},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38515":{"morph":{"__isSmartRef__":true,"id":38509},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38516":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38517":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38518},"id":"DC6C9260-2BCD-410C-B818-DC18443B184C","eventHandler":{"__isSmartRef__":true,"id":38521},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38522},{"__isSmartRef__":true,"id":38523}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38524},"name":"edge13","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(369.6,74.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38518":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38519},{"__isSmartRef__":true,"id":38520}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-86.6,12.0)","_Extent":"lively.pt(87.6,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38519":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38520":{"isAbsolute":true,"x":-84.5795698924731,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38521":{"morph":{"__isSmartRef__":true,"id":38517},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38522":{"morph":{"__isSmartRef__":true,"id":38517},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38523":{"morph":{"__isSmartRef__":true,"id":38517},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38524":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38525":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38526},"id":"D667BEDB-5B8E-471E-8C2A-7BC1D8C9C68B","eventHandler":{"__isSmartRef__":true,"id":38529},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38530},{"__isSmartRef__":true,"id":38531}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38532},"name":"edge14","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(369.6,74.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38526":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38527},{"__isSmartRef__":true,"id":38528}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-50.3,12.0)","_Extent":"lively.pt(51.3,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38527":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38528":{"isAbsolute":true,"x":-48.33118279569891,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38529":{"morph":{"__isSmartRef__":true,"id":38525},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38530":{"morph":{"__isSmartRef__":true,"id":38525},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38531":{"morph":{"__isSmartRef__":true,"id":38525},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38532":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38533":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38534},"id":"83CCC60C-2438-499B-8236-A171B211DFCA","eventHandler":{"__isSmartRef__":true,"id":38537},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38538},{"__isSmartRef__":true,"id":38539}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38540},"name":"edge15","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(369.6,74.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38534":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38535},{"__isSmartRef__":true,"id":38536}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-14.1,12.0)","_Extent":"lively.pt(15.1,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38535":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38536":{"isAbsolute":true,"x":-12.082795698924713,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38537":{"morph":{"__isSmartRef__":true,"id":38533},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38538":{"morph":{"__isSmartRef__":true,"id":38533},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38539":{"morph":{"__isSmartRef__":true,"id":38533},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38540":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38541":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38542},"id":"4DA237ED-9321-44A4-9526-052F3479E404","eventHandler":{"__isSmartRef__":true,"id":38545},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38546},{"__isSmartRef__":true,"id":38547}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38548},"name":"edge16","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(369.6,74.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38542":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38543},{"__isSmartRef__":true,"id":38544}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(27.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38543":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38544":{"isAbsolute":true,"x":24.165591397849482,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38545":{"morph":{"__isSmartRef__":true,"id":38541},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38546":{"morph":{"__isSmartRef__":true,"id":38541},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38547":{"morph":{"__isSmartRef__":true,"id":38541},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38548":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38549":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38550},"id":"0075483F-5214-4B2B-8B60-467A5B76AAC5","eventHandler":{"__isSmartRef__":true,"id":38553},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38554},{"__isSmartRef__":true,"id":38555}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38556},"name":"edge17","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(369.6,74.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38550":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38551},{"__isSmartRef__":true,"id":38552}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(63.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38551":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38552":{"isAbsolute":true,"x":60.41397849462368,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38553":{"morph":{"__isSmartRef__":true,"id":38549},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38554":{"morph":{"__isSmartRef__":true,"id":38549},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38555":{"morph":{"__isSmartRef__":true,"id":38549},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38556":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38557":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38558},"id":"E1AE0916-F1B4-42A8-B781-655983907510","eventHandler":{"__isSmartRef__":true,"id":38561},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38562},{"__isSmartRef__":true,"id":38563}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38564},"name":"edge18","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(556.9,74.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38558":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38559},{"__isSmartRef__":true,"id":38560}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-92.6,12.0)","_Extent":"lively.pt(93.6,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38559":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38560":{"isAbsolute":true,"x":-90.62096774193549,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38561":{"morph":{"__isSmartRef__":true,"id":38557},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38562":{"morph":{"__isSmartRef__":true,"id":38557},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38563":{"morph":{"__isSmartRef__":true,"id":38557},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38564":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38565":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38566},"id":"BB79C00C-9303-49F0-8B71-5C1A8311E07A","eventHandler":{"__isSmartRef__":true,"id":38569},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38570},{"__isSmartRef__":true,"id":38571}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38572},"name":"edge19","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(556.9,74.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38566":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38567},{"__isSmartRef__":true,"id":38568}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-56.4,12.0)","_Extent":"lively.pt(57.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38567":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38568":{"isAbsolute":true,"x":-54.37258064516129,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38569":{"morph":{"__isSmartRef__":true,"id":38565},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38570":{"morph":{"__isSmartRef__":true,"id":38565},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38571":{"morph":{"__isSmartRef__":true,"id":38565},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38572":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38573":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38574},"id":"1EDA13EB-77BA-4F0A-A9F4-55D89C3F4BF8","eventHandler":{"__isSmartRef__":true,"id":38577},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38578},{"__isSmartRef__":true,"id":38579}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38580},"name":"edge20","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(556.9,74.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38574":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38575},{"__isSmartRef__":true,"id":38576}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-20.1,12.0)","_Extent":"lively.pt(21.1,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38575":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38576":{"isAbsolute":true,"x":-18.124193548387098,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38577":{"morph":{"__isSmartRef__":true,"id":38573},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38578":{"morph":{"__isSmartRef__":true,"id":38573},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38579":{"morph":{"__isSmartRef__":true,"id":38573},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38580":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38581":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38582},"id":"985EE75A-4846-4759-ABD1-7CE16AC30FE2","eventHandler":{"__isSmartRef__":true,"id":38585},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38586},{"__isSmartRef__":true,"id":38587}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38588},"name":"edge21","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(556.9,74.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38582":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38583},{"__isSmartRef__":true,"id":38584}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(21.1,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38583":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38584":{"isAbsolute":true,"x":18.124193548387098,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38585":{"morph":{"__isSmartRef__":true,"id":38581},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38586":{"morph":{"__isSmartRef__":true,"id":38581},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38587":{"morph":{"__isSmartRef__":true,"id":38581},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38588":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38589":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38590},"id":"C867A2C3-AFEE-46BD-93D1-7A9714D9C5D1","eventHandler":{"__isSmartRef__":true,"id":38593},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38594},{"__isSmartRef__":true,"id":38595}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38596},"name":"edge22","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(556.9,74.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38590":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38591},{"__isSmartRef__":true,"id":38592}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(57.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38591":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38592":{"isAbsolute":true,"x":54.37258064516129,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38593":{"morph":{"__isSmartRef__":true,"id":38589},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38594":{"morph":{"__isSmartRef__":true,"id":38589},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38595":{"morph":{"__isSmartRef__":true,"id":38589},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38596":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38597":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38598},"id":"A9149A99-34D6-47CE-9041-9D662E1C4988","eventHandler":{"__isSmartRef__":true,"id":38601},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38602},{"__isSmartRef__":true,"id":38603}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38604},"name":"edge23","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(556.9,74.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38598":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38599},{"__isSmartRef__":true,"id":38600}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(93.6,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38599":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38600":{"isAbsolute":true,"x":90.62096774193549,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38601":{"morph":{"__isSmartRef__":true,"id":38597},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38602":{"morph":{"__isSmartRef__":true,"id":38597},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38603":{"morph":{"__isSmartRef__":true,"id":38597},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38604":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38605":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38606},"id":"EC68867F-4083-469B-AE8A-AD79B2B3D7A4","eventHandler":{"__isSmartRef__":true,"id":38609},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38610},{"__isSmartRef__":true,"id":38611}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38612},"name":"edge24","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(744.1,74.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38606":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38607},{"__isSmartRef__":true,"id":38608}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-62.4,12.0)","_Extent":"lively.pt(63.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38607":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38608":{"isAbsolute":true,"x":-60.41397849462362,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38609":{"morph":{"__isSmartRef__":true,"id":38605},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38610":{"morph":{"__isSmartRef__":true,"id":38605},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38611":{"morph":{"__isSmartRef__":true,"id":38605},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38612":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38613":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38614},"id":"B78538C2-4CDF-4B01-84A4-EAFBA8BF46B2","eventHandler":{"__isSmartRef__":true,"id":38617},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38618},{"__isSmartRef__":true,"id":38619}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38620},"name":"edge25","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(744.1,74.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38614":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38615},{"__isSmartRef__":true,"id":38616}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-26.2,12.0)","_Extent":"lively.pt(27.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38615":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38616":{"isAbsolute":true,"x":-24.165591397849425,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38617":{"morph":{"__isSmartRef__":true,"id":38613},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38618":{"morph":{"__isSmartRef__":true,"id":38613},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38619":{"morph":{"__isSmartRef__":true,"id":38613},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38620":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38621":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38622},"id":"73BD5ABA-593F-4FC0-A7D2-50FDB9FFEAF8","eventHandler":{"__isSmartRef__":true,"id":38625},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38626},{"__isSmartRef__":true,"id":38627}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38628},"name":"edge26","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(744.1,74.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38622":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38623},{"__isSmartRef__":true,"id":38624}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(15.1,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38623":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38624":{"isAbsolute":true,"x":12.08279569892477,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38625":{"morph":{"__isSmartRef__":true,"id":38621},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38626":{"morph":{"__isSmartRef__":true,"id":38621},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38627":{"morph":{"__isSmartRef__":true,"id":38621},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38628":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38629":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38630},"id":"A4A5866A-C5D3-49CA-8E4B-28298635F788","eventHandler":{"__isSmartRef__":true,"id":38633},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38634},{"__isSmartRef__":true,"id":38635}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38636},"name":"edge27","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(744.1,74.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38630":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38631},{"__isSmartRef__":true,"id":38632}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(51.3,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38631":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38632":{"isAbsolute":true,"x":48.331182795698965,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38633":{"morph":{"__isSmartRef__":true,"id":38629},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38634":{"morph":{"__isSmartRef__":true,"id":38629},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38635":{"morph":{"__isSmartRef__":true,"id":38629},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38636":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38637":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38638},"id":"F7A9558E-AFB8-478F-962E-BC05A1D3107D","eventHandler":{"__isSmartRef__":true,"id":38641},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38642},{"__isSmartRef__":true,"id":38643}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38644},"name":"edge28","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(744.1,74.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38638":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38639},{"__isSmartRef__":true,"id":38640}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(87.6,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38639":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38640":{"isAbsolute":true,"x":84.57956989247316,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38641":{"morph":{"__isSmartRef__":true,"id":38637},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38642":{"morph":{"__isSmartRef__":true,"id":38637},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38643":{"morph":{"__isSmartRef__":true,"id":38637},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38644":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38645":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38646},"id":"58FEAC08-C7A8-4133-AAAB-9AE8103E6587","eventHandler":{"__isSmartRef__":true,"id":38649},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38650},{"__isSmartRef__":true,"id":38651}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38652},"name":"edge29","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(744.1,74.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38646":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38647},{"__isSmartRef__":true,"id":38648}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(123.8,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38647":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38648":{"isAbsolute":true,"x":120.82795698924735,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38649":{"morph":{"__isSmartRef__":true,"id":38645},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38650":{"morph":{"__isSmartRef__":true,"id":38645},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38651":{"morph":{"__isSmartRef__":true,"id":38645},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38652":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38653":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38654},"id":"14AEA91D-17F1-4842-920B-80C7DC8F72C3","eventHandler":{"__isSmartRef__":true,"id":38657},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38658},{"__isSmartRef__":true,"id":38659}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38660},"name":"edge30","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(744.1,74.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38654":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38655},{"__isSmartRef__":true,"id":38656}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(160.1,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38655":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38656":{"isAbsolute":true,"x":157.07634408602155,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38657":{"morph":{"__isSmartRef__":true,"id":38653},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38658":{"morph":{"__isSmartRef__":true,"id":38653},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38659":{"morph":{"__isSmartRef__":true,"id":38653},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38660":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38661":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38662},"id":"7B473FC2-CF76-42C6-8D83-92FFF2D96B85","eventHandler":{"__isSmartRef__":true,"id":38665},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38666},{"__isSmartRef__":true,"id":38667}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38668},"name":"edge31","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(931.4,74.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38662":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38663},{"__isSmartRef__":true,"id":38664}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(9.0,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38663":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38664":{"isAbsolute":true,"x":6.041397849462442,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38665":{"morph":{"__isSmartRef__":true,"id":38661},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38666":{"morph":{"__isSmartRef__":true,"id":38661},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38667":{"morph":{"__isSmartRef__":true,"id":38661},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38668":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38669":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38670},"id":"54B15882-BC16-4CCC-87DC-824B323C20B7","eventHandler":{"__isSmartRef__":true,"id":38673},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38674},{"__isSmartRef__":true,"id":38675}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38676},"name":"edge32","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(931.4,74.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38670":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38671},{"__isSmartRef__":true,"id":38672}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(45.3,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38671":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38672":{"isAbsolute":true,"x":42.28978494623664,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38673":{"morph":{"__isSmartRef__":true,"id":38669},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38674":{"morph":{"__isSmartRef__":true,"id":38669},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38675":{"morph":{"__isSmartRef__":true,"id":38669},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38676":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38677":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38678},"id":"6AF88480-6D11-4FCC-B8F1-4B0836F03086","eventHandler":{"__isSmartRef__":true,"id":38681},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38682},{"__isSmartRef__":true,"id":38683}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38684},"name":"edge33","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(931.4,74.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38678":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38679},{"__isSmartRef__":true,"id":38680}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(81.5,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38679":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38680":{"isAbsolute":true,"x":78.53817204301083,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38681":{"morph":{"__isSmartRef__":true,"id":38677},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38682":{"morph":{"__isSmartRef__":true,"id":38677},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38683":{"morph":{"__isSmartRef__":true,"id":38677},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38684":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38685":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38686},"id":"B2B60D0D-A1B7-4D8E-9941-EBEF1039F0CC","eventHandler":{"__isSmartRef__":true,"id":38689},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38690},{"__isSmartRef__":true,"id":38691}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38692},"name":"edge34","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(931.4,74.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38686":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38687},{"__isSmartRef__":true,"id":38688}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(117.8,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38687":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38688":{"isAbsolute":true,"x":114.78655913978503,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38689":{"morph":{"__isSmartRef__":true,"id":38685},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38690":{"morph":{"__isSmartRef__":true,"id":38685},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38691":{"morph":{"__isSmartRef__":true,"id":38685},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38692":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38693":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38694},"id":"DB63EA29-05B8-4223-AEF6-60635FEA79D4","eventHandler":{"__isSmartRef__":true,"id":38697},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38698},{"__isSmartRef__":true,"id":38699}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38700},"name":"edge35","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(931.4,74.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38694":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38695},{"__isSmartRef__":true,"id":38696}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(154.0,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38695":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38696":{"isAbsolute":true,"x":151.03494623655922,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38697":{"morph":{"__isSmartRef__":true,"id":38693},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38698":{"morph":{"__isSmartRef__":true,"id":38693},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38699":{"morph":{"__isSmartRef__":true,"id":38693},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38700":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38701":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38702},"id":"A555A600-B753-4917-B8DD-2E784351B539","eventHandler":{"__isSmartRef__":true,"id":38705},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38706},{"__isSmartRef__":true,"id":38707}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38708},"name":"edge36","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(31.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38702":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38703},{"__isSmartRef__":true,"id":38704}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-33.1,12.0)","_Extent":"lively.pt(34.1,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38703":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38704":{"isAbsolute":true,"x":-31.07004608294931,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38705":{"morph":{"__isSmartRef__":true,"id":38701},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38706":{"morph":{"__isSmartRef__":true,"id":38701},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38707":{"morph":{"__isSmartRef__":true,"id":38701},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38708":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38709":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38710},"id":"55B944F5-50F7-4885-B865-EC5268FD2F97","eventHandler":{"__isSmartRef__":true,"id":38713},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38714},{"__isSmartRef__":true,"id":38715}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38716},"name":"edge37","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(31.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38710":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38711},{"__isSmartRef__":true,"id":38712}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-27.9,12.0)","_Extent":"lively.pt(28.9,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38711":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38712":{"isAbsolute":true,"x":-25.891705069124427,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38713":{"morph":{"__isSmartRef__":true,"id":38709},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38714":{"morph":{"__isSmartRef__":true,"id":38709},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38715":{"morph":{"__isSmartRef__":true,"id":38709},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38716":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38717":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38718},"id":"B929EC40-7D59-4B0B-A673-602F04359122","eventHandler":{"__isSmartRef__":true,"id":38721},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38722},{"__isSmartRef__":true,"id":38723}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38724},"name":"edge38","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(31.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38718":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38719},{"__isSmartRef__":true,"id":38720}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-22.7,12.0)","_Extent":"lively.pt(23.7,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38719":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38720":{"isAbsolute":true,"x":-20.713364055299536,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38721":{"morph":{"__isSmartRef__":true,"id":38717},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38722":{"morph":{"__isSmartRef__":true,"id":38717},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38723":{"morph":{"__isSmartRef__":true,"id":38717},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38724":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38725":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38726},"id":"F5A68D42-F5C5-4AA3-9D95-78C25CE6C836","eventHandler":{"__isSmartRef__":true,"id":38729},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38730},{"__isSmartRef__":true,"id":38731}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38732},"name":"edge39","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(31.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38726":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38727},{"__isSmartRef__":true,"id":38728}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-17.5,12.0)","_Extent":"lively.pt(18.5,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38727":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38728":{"isAbsolute":true,"x":-15.535023041474659,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38729":{"morph":{"__isSmartRef__":true,"id":38725},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38730":{"morph":{"__isSmartRef__":true,"id":38725},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38731":{"morph":{"__isSmartRef__":true,"id":38725},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38732":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38733":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38734},"id":"46FEB345-EEB7-4B23-AA3F-815E723684BC","eventHandler":{"__isSmartRef__":true,"id":38737},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38738},{"__isSmartRef__":true,"id":38739}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38740},"name":"edge40","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(31.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38734":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38735},{"__isSmartRef__":true,"id":38736}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-12.4,12.0)","_Extent":"lively.pt(13.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38735":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38736":{"isAbsolute":true,"x":-10.356682027649768,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38737":{"morph":{"__isSmartRef__":true,"id":38733},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38738":{"morph":{"__isSmartRef__":true,"id":38733},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38739":{"morph":{"__isSmartRef__":true,"id":38733},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38740":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38741":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38742},"id":"0032025D-1A41-45A1-B9D4-D87B6A2EFC85","eventHandler":{"__isSmartRef__":true,"id":38745},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38746},{"__isSmartRef__":true,"id":38747}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38748},"name":"edge41","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(31.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38742":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38743},{"__isSmartRef__":true,"id":38744}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-7.2,12.0)","_Extent":"lively.pt(8.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38743":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38744":{"isAbsolute":true,"x":-5.178341013824877,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38745":{"morph":{"__isSmartRef__":true,"id":38741},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38746":{"morph":{"__isSmartRef__":true,"id":38741},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38747":{"morph":{"__isSmartRef__":true,"id":38741},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38748":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38749":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38750},"id":"B2598537-97AC-42E3-BCCC-B9EE58D00401","eventHandler":{"__isSmartRef__":true,"id":38753},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38754},{"__isSmartRef__":true,"id":38755}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38756},"name":"edge42","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(31.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38750":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38751},{"__isSmartRef__":true,"id":38752}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(3.0,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38751":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38752":{"isAbsolute":true,"x":0,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38753":{"morph":{"__isSmartRef__":true,"id":38749},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38754":{"morph":{"__isSmartRef__":true,"id":38749},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38755":{"morph":{"__isSmartRef__":true,"id":38749},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38756":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38757":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38758},"id":"492BF5C6-F8DB-490E-A87C-442AE6B9AEFD","eventHandler":{"__isSmartRef__":true,"id":38761},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38762},{"__isSmartRef__":true,"id":38763}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38764},"name":"edge43","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(31.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38758":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38759},{"__isSmartRef__":true,"id":38760}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(8.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38759":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38760":{"isAbsolute":true,"x":5.178341013824877,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38761":{"morph":{"__isSmartRef__":true,"id":38757},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38762":{"morph":{"__isSmartRef__":true,"id":38757},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38763":{"morph":{"__isSmartRef__":true,"id":38757},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38764":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38765":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38766},"id":"5250DB7B-1914-4A95-AC5F-42133E8E0D8F","eventHandler":{"__isSmartRef__":true,"id":38769},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38770},{"__isSmartRef__":true,"id":38771}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38772},"name":"edge44","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(67.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38766":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38767},{"__isSmartRef__":true,"id":38768}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-27.9,12.0)","_Extent":"lively.pt(28.9,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38767":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38768":{"isAbsolute":true,"x":-25.891705069124427,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38769":{"morph":{"__isSmartRef__":true,"id":38765},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38770":{"morph":{"__isSmartRef__":true,"id":38765},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38771":{"morph":{"__isSmartRef__":true,"id":38765},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38772":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38773":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38774},"id":"056E16F4-4934-4CFA-8636-BC6932DA9CC8","eventHandler":{"__isSmartRef__":true,"id":38777},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38778},{"__isSmartRef__":true,"id":38779}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38780},"name":"edge45","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(67.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38774":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38775},{"__isSmartRef__":true,"id":38776}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-22.7,12.0)","_Extent":"lively.pt(23.7,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38775":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38776":{"isAbsolute":true,"x":-20.713364055299536,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38777":{"morph":{"__isSmartRef__":true,"id":38773},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38778":{"morph":{"__isSmartRef__":true,"id":38773},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38779":{"morph":{"__isSmartRef__":true,"id":38773},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38780":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38781":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38782},"id":"A1BFD506-31BD-46C2-B1D7-26CC6329D7F5","eventHandler":{"__isSmartRef__":true,"id":38785},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38786},{"__isSmartRef__":true,"id":38787}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38788},"name":"edge46","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(67.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38782":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38783},{"__isSmartRef__":true,"id":38784}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-17.5,12.0)","_Extent":"lively.pt(18.5,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38783":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38784":{"isAbsolute":true,"x":-15.535023041474659,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38785":{"morph":{"__isSmartRef__":true,"id":38781},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38786":{"morph":{"__isSmartRef__":true,"id":38781},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38787":{"morph":{"__isSmartRef__":true,"id":38781},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38788":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38789":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38790},"id":"24A7CE11-438A-4F41-9810-9B388FDBA856","eventHandler":{"__isSmartRef__":true,"id":38793},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38794},{"__isSmartRef__":true,"id":38795}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38796},"name":"edge47","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(67.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38790":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38791},{"__isSmartRef__":true,"id":38792}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-12.4,12.0)","_Extent":"lively.pt(13.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38791":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38792":{"isAbsolute":true,"x":-10.356682027649768,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38793":{"morph":{"__isSmartRef__":true,"id":38789},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38794":{"morph":{"__isSmartRef__":true,"id":38789},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38795":{"morph":{"__isSmartRef__":true,"id":38789},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38796":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38797":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38798},"id":"A2A6952A-930C-4F20-82D4-5B31321C7D8B","eventHandler":{"__isSmartRef__":true,"id":38801},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38802},{"__isSmartRef__":true,"id":38803}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38804},"name":"edge48","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(67.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38798":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38799},{"__isSmartRef__":true,"id":38800}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-7.2,12.0)","_Extent":"lively.pt(8.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38799":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38800":{"isAbsolute":true,"x":-5.178341013824891,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38801":{"morph":{"__isSmartRef__":true,"id":38797},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38802":{"morph":{"__isSmartRef__":true,"id":38797},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38803":{"morph":{"__isSmartRef__":true,"id":38797},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38804":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38805":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38806},"id":"96B8F932-302D-4EEF-A14E-2988E0102319","eventHandler":{"__isSmartRef__":true,"id":38809},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38810},{"__isSmartRef__":true,"id":38811}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38812},"name":"edge49","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(103.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38806":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38807},{"__isSmartRef__":true,"id":38808}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-38.2,12.0)","_Extent":"lively.pt(39.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38807":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38808":{"isAbsolute":true,"x":-36.248387096774195,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38809":{"morph":{"__isSmartRef__":true,"id":38805},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38810":{"morph":{"__isSmartRef__":true,"id":38805},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38811":{"morph":{"__isSmartRef__":true,"id":38805},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38812":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38813":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38814},"id":"1C657BE7-A2CE-4DFB-9695-5B2C2FE3CCD4","eventHandler":{"__isSmartRef__":true,"id":38817},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38818},{"__isSmartRef__":true,"id":38819}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38820},"name":"edge50","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(103.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38814":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38815},{"__isSmartRef__":true,"id":38816}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-33.1,12.0)","_Extent":"lively.pt(34.1,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38815":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38816":{"isAbsolute":true,"x":-31.070046082949318,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38817":{"morph":{"__isSmartRef__":true,"id":38813},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38818":{"morph":{"__isSmartRef__":true,"id":38813},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38819":{"morph":{"__isSmartRef__":true,"id":38813},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38820":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38821":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38822},"id":"CF94E29C-B59D-4FBF-9A3F-D5E431C5790A","eventHandler":{"__isSmartRef__":true,"id":38825},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38826},{"__isSmartRef__":true,"id":38827}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38828},"name":"edge51","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(103.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38822":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38823},{"__isSmartRef__":true,"id":38824}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-27.9,12.0)","_Extent":"lively.pt(28.9,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38823":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38824":{"isAbsolute":true,"x":-25.891705069124427,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38825":{"morph":{"__isSmartRef__":true,"id":38821},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38826":{"morph":{"__isSmartRef__":true,"id":38821},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38827":{"morph":{"__isSmartRef__":true,"id":38821},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38828":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38829":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38830},"id":"02A43C69-65B8-4F4D-90EA-592C92B3BB78","eventHandler":{"__isSmartRef__":true,"id":38833},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38834},{"__isSmartRef__":true,"id":38835}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38836},"name":"edge52","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(103.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38830":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38831},{"__isSmartRef__":true,"id":38832}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-22.7,12.0)","_Extent":"lively.pt(23.7,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38831":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38832":{"isAbsolute":true,"x":-20.713364055299536,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38833":{"morph":{"__isSmartRef__":true,"id":38829},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38834":{"morph":{"__isSmartRef__":true,"id":38829},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38835":{"morph":{"__isSmartRef__":true,"id":38829},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38836":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38837":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38838},"id":"11D46080-3CA2-4FC3-88F1-4879110474CC","eventHandler":{"__isSmartRef__":true,"id":38841},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38842},{"__isSmartRef__":true,"id":38843}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38844},"name":"edge53","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(103.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38838":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38839},{"__isSmartRef__":true,"id":38840}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-17.5,12.0)","_Extent":"lively.pt(18.5,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38839":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38840":{"isAbsolute":true,"x":-15.535023041474659,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38841":{"morph":{"__isSmartRef__":true,"id":38837},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38842":{"morph":{"__isSmartRef__":true,"id":38837},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38843":{"morph":{"__isSmartRef__":true,"id":38837},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38844":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38845":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38846},"id":"8E705D63-76BF-42BB-BD0B-74F9A8733920","eventHandler":{"__isSmartRef__":true,"id":38849},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38850},{"__isSmartRef__":true,"id":38851}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38852},"name":"edge54","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(103.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38846":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38847},{"__isSmartRef__":true,"id":38848}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-12.4,12.0)","_Extent":"lively.pt(13.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38847":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38848":{"isAbsolute":true,"x":-10.356682027649754,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38849":{"morph":{"__isSmartRef__":true,"id":38845},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38850":{"morph":{"__isSmartRef__":true,"id":38845},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38851":{"morph":{"__isSmartRef__":true,"id":38845},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38852":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38853":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38854},"id":"39A27690-7DC0-4EF8-B67E-DCC55B0129A2","eventHandler":{"__isSmartRef__":true,"id":38857},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38858},{"__isSmartRef__":true,"id":38859}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38860},"name":"edge55","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(103.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38854":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38855},{"__isSmartRef__":true,"id":38856}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-7.2,12.0)","_Extent":"lively.pt(8.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38855":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38856":{"isAbsolute":true,"x":-5.178341013824877,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38857":{"morph":{"__isSmartRef__":true,"id":38853},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38858":{"morph":{"__isSmartRef__":true,"id":38853},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38859":{"morph":{"__isSmartRef__":true,"id":38853},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38860":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38861":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38862},"id":"7AD1256F-3C44-4A24-838E-7672428B64E0","eventHandler":{"__isSmartRef__":true,"id":38865},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38866},{"__isSmartRef__":true,"id":38867}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38868},"name":"edge56","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(140.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38862":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38863},{"__isSmartRef__":true,"id":38864}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-38.2,12.0)","_Extent":"lively.pt(39.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38863":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38864":{"isAbsolute":true,"x":-36.248387096774195,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38865":{"morph":{"__isSmartRef__":true,"id":38861},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38866":{"morph":{"__isSmartRef__":true,"id":38861},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38867":{"morph":{"__isSmartRef__":true,"id":38861},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38868":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38869":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38870},"id":"838575A5-29E8-4B29-BCA9-CBFF87CB2193","eventHandler":{"__isSmartRef__":true,"id":38873},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38874},{"__isSmartRef__":true,"id":38875}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38876},"name":"edge57","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(140.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38870":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38871},{"__isSmartRef__":true,"id":38872}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-33.1,12.0)","_Extent":"lively.pt(34.1,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38871":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38872":{"isAbsolute":true,"x":-31.070046082949318,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38873":{"morph":{"__isSmartRef__":true,"id":38869},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38874":{"morph":{"__isSmartRef__":true,"id":38869},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38875":{"morph":{"__isSmartRef__":true,"id":38869},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38876":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38877":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38878},"id":"8CA19401-B3B1-42BB-8C13-EA6D679ABA50","eventHandler":{"__isSmartRef__":true,"id":38881},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38882},{"__isSmartRef__":true,"id":38883}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38884},"name":"edge58","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(140.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38878":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38879},{"__isSmartRef__":true,"id":38880}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-27.9,12.0)","_Extent":"lively.pt(28.9,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38879":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38880":{"isAbsolute":true,"x":-25.89170506912444,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38881":{"morph":{"__isSmartRef__":true,"id":38877},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38882":{"morph":{"__isSmartRef__":true,"id":38877},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38883":{"morph":{"__isSmartRef__":true,"id":38877},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38884":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38885":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38886},"id":"EFF3484A-82E3-4063-9DD2-FD5B3C6E280E","eventHandler":{"__isSmartRef__":true,"id":38889},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38890},{"__isSmartRef__":true,"id":38891}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38892},"name":"edge59","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(140.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38886":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38887},{"__isSmartRef__":true,"id":38888}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-22.7,12.0)","_Extent":"lively.pt(23.7,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38887":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38888":{"isAbsolute":true,"x":-20.713364055299536,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38889":{"morph":{"__isSmartRef__":true,"id":38885},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38890":{"morph":{"__isSmartRef__":true,"id":38885},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38891":{"morph":{"__isSmartRef__":true,"id":38885},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38892":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38893":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38894},"id":"DD6BAEF7-3997-481A-9529-3E71F792EF35","eventHandler":{"__isSmartRef__":true,"id":38897},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38898},{"__isSmartRef__":true,"id":38899}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38900},"name":"edge60","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(140.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38894":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38895},{"__isSmartRef__":true,"id":38896}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-17.5,12.0)","_Extent":"lively.pt(18.5,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38895":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38896":{"isAbsolute":true,"x":-15.535023041474659,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38897":{"morph":{"__isSmartRef__":true,"id":38893},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38898":{"morph":{"__isSmartRef__":true,"id":38893},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38899":{"morph":{"__isSmartRef__":true,"id":38893},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38900":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38901":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38902},"id":"61E908F7-AC91-47CB-B82E-75A5C63A2296","eventHandler":{"__isSmartRef__":true,"id":38905},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38906},{"__isSmartRef__":true,"id":38907}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38908},"name":"edge61","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(176.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38902":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38903},{"__isSmartRef__":true,"id":38904}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-48.6,12.0)","_Extent":"lively.pt(49.6,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38903":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38904":{"isAbsolute":true,"x":-46.60506912442398,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38905":{"morph":{"__isSmartRef__":true,"id":38901},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38906":{"morph":{"__isSmartRef__":true,"id":38901},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38907":{"morph":{"__isSmartRef__":true,"id":38901},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38908":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38909":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38910},"id":"BFD468B0-E099-41F6-9B1E-35DFA294F33D","eventHandler":{"__isSmartRef__":true,"id":38913},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38914},{"__isSmartRef__":true,"id":38915}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38916},"name":"edge62","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(176.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38910":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38911},{"__isSmartRef__":true,"id":38912}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-43.4,12.0)","_Extent":"lively.pt(44.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38911":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38912":{"isAbsolute":true,"x":-41.42672811059907,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38913":{"morph":{"__isSmartRef__":true,"id":38909},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38914":{"morph":{"__isSmartRef__":true,"id":38909},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38915":{"morph":{"__isSmartRef__":true,"id":38909},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38916":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38917":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38918},"id":"F151F0C2-C6BF-4396-B301-D767F7104765","eventHandler":{"__isSmartRef__":true,"id":38921},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38922},{"__isSmartRef__":true,"id":38923}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38924},"name":"edge63","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(176.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38918":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38919},{"__isSmartRef__":true,"id":38920}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-38.2,12.0)","_Extent":"lively.pt(39.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38919":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38920":{"isAbsolute":true,"x":-36.248387096774195,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38921":{"morph":{"__isSmartRef__":true,"id":38917},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38922":{"morph":{"__isSmartRef__":true,"id":38917},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38923":{"morph":{"__isSmartRef__":true,"id":38917},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38924":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38925":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38926},"id":"D2B5A9EE-33DF-42FB-B093-566409DD6988","eventHandler":{"__isSmartRef__":true,"id":38929},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38930},{"__isSmartRef__":true,"id":38931}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38932},"name":"edge64","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(176.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38926":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38927},{"__isSmartRef__":true,"id":38928}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-33.1,12.0)","_Extent":"lively.pt(34.1,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38927":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38928":{"isAbsolute":true,"x":-31.070046082949318,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38929":{"morph":{"__isSmartRef__":true,"id":38925},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38930":{"morph":{"__isSmartRef__":true,"id":38925},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38931":{"morph":{"__isSmartRef__":true,"id":38925},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38932":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38933":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38934},"id":"C23CFB00-385C-4A30-91DB-6C065E8E61F4","eventHandler":{"__isSmartRef__":true,"id":38937},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38938},{"__isSmartRef__":true,"id":38939}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38940},"name":"edge65","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(176.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38934":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38935},{"__isSmartRef__":true,"id":38936}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-27.9,12.0)","_Extent":"lively.pt(28.9,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38935":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38936":{"isAbsolute":true,"x":-25.89170506912444,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38937":{"morph":{"__isSmartRef__":true,"id":38933},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38938":{"morph":{"__isSmartRef__":true,"id":38933},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38939":{"morph":{"__isSmartRef__":true,"id":38933},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38940":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38941":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38942},"id":"9325BA5A-1E3C-437E-9D0F-253C1C88C756","eventHandler":{"__isSmartRef__":true,"id":38945},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38946},{"__isSmartRef__":true,"id":38947}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38948},"name":"edge66","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(176.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38942":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38943},{"__isSmartRef__":true,"id":38944}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-22.7,12.0)","_Extent":"lively.pt(23.7,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38943":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38944":{"isAbsolute":true,"x":-20.713364055299536,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38945":{"morph":{"__isSmartRef__":true,"id":38941},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38946":{"morph":{"__isSmartRef__":true,"id":38941},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38947":{"morph":{"__isSmartRef__":true,"id":38941},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38948":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38949":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38950},"id":"10D988F4-1196-4B41-8912-2C2F86137309","eventHandler":{"__isSmartRef__":true,"id":38953},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38954},{"__isSmartRef__":true,"id":38955}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38956},"name":"edge67","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(212.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38950":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38951},{"__isSmartRef__":true,"id":38952}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-53.8,12.0)","_Extent":"lively.pt(54.8,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38951":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38952":{"isAbsolute":true,"x":-51.783410138248854,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38953":{"morph":{"__isSmartRef__":true,"id":38949},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38954":{"morph":{"__isSmartRef__":true,"id":38949},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38955":{"morph":{"__isSmartRef__":true,"id":38949},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38956":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38957":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38958},"id":"F0993FFC-C83D-458A-A948-E3EF5560C045","eventHandler":{"__isSmartRef__":true,"id":38961},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38962},{"__isSmartRef__":true,"id":38963}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38964},"name":"edge68","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(212.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38958":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38959},{"__isSmartRef__":true,"id":38960}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-48.6,12.0)","_Extent":"lively.pt(49.6,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38959":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38960":{"isAbsolute":true,"x":-46.60506912442398,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38961":{"morph":{"__isSmartRef__":true,"id":38957},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38962":{"morph":{"__isSmartRef__":true,"id":38957},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38963":{"morph":{"__isSmartRef__":true,"id":38957},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38964":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38965":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38966},"id":"EB6B9271-D056-4E23-816C-AD871E206F80","eventHandler":{"__isSmartRef__":true,"id":38969},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38970},{"__isSmartRef__":true,"id":38971}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38972},"name":"edge69","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(212.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38966":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38967},{"__isSmartRef__":true,"id":38968}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-43.4,12.0)","_Extent":"lively.pt(44.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38967":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38968":{"isAbsolute":true,"x":-41.42672811059907,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38969":{"morph":{"__isSmartRef__":true,"id":38965},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38970":{"morph":{"__isSmartRef__":true,"id":38965},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38971":{"morph":{"__isSmartRef__":true,"id":38965},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38972":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38973":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38974},"id":"5F7B71D4-E5B0-4EB4-A10A-C400A1ED1362","eventHandler":{"__isSmartRef__":true,"id":38977},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38978},{"__isSmartRef__":true,"id":38979}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38980},"name":"edge70","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(212.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38974":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38975},{"__isSmartRef__":true,"id":38976}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-38.2,12.0)","_Extent":"lively.pt(39.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38975":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38976":{"isAbsolute":true,"x":-36.248387096774195,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38977":{"morph":{"__isSmartRef__":true,"id":38973},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38978":{"morph":{"__isSmartRef__":true,"id":38973},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38979":{"morph":{"__isSmartRef__":true,"id":38973},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38980":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38981":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38982},"id":"8B48DC04-01B2-49E9-A5B2-2C3E1FEDEEB0","eventHandler":{"__isSmartRef__":true,"id":38985},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38986},{"__isSmartRef__":true,"id":38987}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38988},"name":"edge71","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(212.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38982":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38983},{"__isSmartRef__":true,"id":38984}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-33.1,12.0)","_Extent":"lively.pt(34.1,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38983":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38984":{"isAbsolute":true,"x":-31.070046082949318,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38985":{"morph":{"__isSmartRef__":true,"id":38981},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38986":{"morph":{"__isSmartRef__":true,"id":38981},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38987":{"morph":{"__isSmartRef__":true,"id":38981},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38988":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38989":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38990},"id":"3F72A2E6-9DF9-4EE7-8B3C-E8D4947FC7FE","eventHandler":{"__isSmartRef__":true,"id":38993},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":38994},{"__isSmartRef__":true,"id":38995}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":38996},"name":"edge72","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(212.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38990":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38991},{"__isSmartRef__":true,"id":38992}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-27.9,12.0)","_Extent":"lively.pt(28.9,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38991":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38992":{"isAbsolute":true,"x":-25.89170506912444,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"38993":{"morph":{"__isSmartRef__":true,"id":38989},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38994":{"morph":{"__isSmartRef__":true,"id":38989},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38995":{"morph":{"__isSmartRef__":true,"id":38989},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"38996":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"38997":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":38998},"id":"403C33D3-B912-4D4A-B2AE-DE26A1102CA9","eventHandler":{"__isSmartRef__":true,"id":39001},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39002},{"__isSmartRef__":true,"id":39003}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39004},"name":"edge73","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(212.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"38998":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":38999},{"__isSmartRef__":true,"id":39000}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-22.7,12.0)","_Extent":"lively.pt(23.7,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"38999":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39000":{"isAbsolute":true,"x":-20.713364055299536,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39001":{"morph":{"__isSmartRef__":true,"id":38997},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39002":{"morph":{"__isSmartRef__":true,"id":38997},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39003":{"morph":{"__isSmartRef__":true,"id":38997},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39004":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39005":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39006},"id":"C54CE0F4-9DC7-4043-A400-7529954D132B","eventHandler":{"__isSmartRef__":true,"id":39009},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39010},{"__isSmartRef__":true,"id":39011}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39012},"name":"edge74","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(212.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39006":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39007},{"__isSmartRef__":true,"id":39008}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-17.5,12.0)","_Extent":"lively.pt(18.5,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39007":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39008":{"isAbsolute":true,"x":-15.535023041474659,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39009":{"morph":{"__isSmartRef__":true,"id":39005},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39010":{"morph":{"__isSmartRef__":true,"id":39005},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39011":{"morph":{"__isSmartRef__":true,"id":39005},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39012":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39013":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39014},"id":"95DF98F6-CF36-4D19-9FE3-EFC7C620F10B","eventHandler":{"__isSmartRef__":true,"id":39017},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39018},{"__isSmartRef__":true,"id":39019}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39020},"name":"edge75","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(212.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39014":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39015},{"__isSmartRef__":true,"id":39016}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-12.4,12.0)","_Extent":"lively.pt(13.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39015":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39016":{"isAbsolute":true,"x":-10.356682027649782,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39017":{"morph":{"__isSmartRef__":true,"id":39013},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39018":{"morph":{"__isSmartRef__":true,"id":39013},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39019":{"morph":{"__isSmartRef__":true,"id":39013},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39020":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39021":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39022},"id":"7BEB21C4-4033-4BCF-A4B1-A0C5824CC2D9","eventHandler":{"__isSmartRef__":true,"id":39025},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39026},{"__isSmartRef__":true,"id":39027}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39028},"name":"edge76","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(248.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39022":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39023},{"__isSmartRef__":true,"id":39024}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-43.4,12.0)","_Extent":"lively.pt(44.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39023":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39024":{"isAbsolute":true,"x":-41.42672811059907,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39025":{"morph":{"__isSmartRef__":true,"id":39021},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39026":{"morph":{"__isSmartRef__":true,"id":39021},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39027":{"morph":{"__isSmartRef__":true,"id":39021},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39028":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39029":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39030},"id":"D2094C58-2127-4856-8FD2-156385FEB6FD","eventHandler":{"__isSmartRef__":true,"id":39033},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39034},{"__isSmartRef__":true,"id":39035}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39036},"name":"edge77","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(248.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39030":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39031},{"__isSmartRef__":true,"id":39032}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-38.2,12.0)","_Extent":"lively.pt(39.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39031":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39032":{"isAbsolute":true,"x":-36.248387096774195,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39033":{"morph":{"__isSmartRef__":true,"id":39029},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39034":{"morph":{"__isSmartRef__":true,"id":39029},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39035":{"morph":{"__isSmartRef__":true,"id":39029},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39036":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39037":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39038},"id":"E2B108DA-1E64-489C-A4E0-A56FE4D18E38","eventHandler":{"__isSmartRef__":true,"id":39041},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39042},{"__isSmartRef__":true,"id":39043}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39044},"name":"edge78","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(248.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39038":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39039},{"__isSmartRef__":true,"id":39040}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-33.1,12.0)","_Extent":"lively.pt(34.1,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39039":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39040":{"isAbsolute":true,"x":-31.070046082949318,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39041":{"morph":{"__isSmartRef__":true,"id":39037},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39042":{"morph":{"__isSmartRef__":true,"id":39037},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39043":{"morph":{"__isSmartRef__":true,"id":39037},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39044":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39045":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39046},"id":"7D198C78-87FE-4A81-9459-852F3BA4FF16","eventHandler":{"__isSmartRef__":true,"id":39049},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39050},{"__isSmartRef__":true,"id":39051}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39052},"name":"edge79","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(285.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39046":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39047},{"__isSmartRef__":true,"id":39048}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-64.1,12.0)","_Extent":"lively.pt(65.1,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39047":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39048":{"isAbsolute":true,"x":-62.140092165898636,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39049":{"morph":{"__isSmartRef__":true,"id":39045},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39050":{"morph":{"__isSmartRef__":true,"id":39045},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39051":{"morph":{"__isSmartRef__":true,"id":39045},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39052":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39053":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39054},"id":"C934AB50-15C6-403D-BDE7-45A3CD309B2B","eventHandler":{"__isSmartRef__":true,"id":39057},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39058},{"__isSmartRef__":true,"id":39059}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39060},"name":"edge80","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(285.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39054":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39055},{"__isSmartRef__":true,"id":39056}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-59.0,12.0)","_Extent":"lively.pt(60.0,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39055":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39056":{"isAbsolute":true,"x":-56.9617511520737,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39057":{"morph":{"__isSmartRef__":true,"id":39053},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39058":{"morph":{"__isSmartRef__":true,"id":39053},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39059":{"morph":{"__isSmartRef__":true,"id":39053},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39060":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39061":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39062},"id":"8B9053E2-9AF7-4D7F-9FDB-ECCA57A78261","eventHandler":{"__isSmartRef__":true,"id":39065},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39066},{"__isSmartRef__":true,"id":39067}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39068},"name":"edge81","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(285.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39062":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39063},{"__isSmartRef__":true,"id":39064}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-53.8,12.0)","_Extent":"lively.pt(54.8,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39063":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39064":{"isAbsolute":true,"x":-51.78341013824888,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39065":{"morph":{"__isSmartRef__":true,"id":39061},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39066":{"morph":{"__isSmartRef__":true,"id":39061},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39067":{"morph":{"__isSmartRef__":true,"id":39061},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39068":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39069":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39070},"id":"6B53ECD2-021B-4C4B-A8B7-D6956C073A84","eventHandler":{"__isSmartRef__":true,"id":39073},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39074},{"__isSmartRef__":true,"id":39075}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39076},"name":"edge82","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(285.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39070":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39071},{"__isSmartRef__":true,"id":39072}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-48.6,12.0)","_Extent":"lively.pt(49.6,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39071":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39072":{"isAbsolute":true,"x":-46.60506912442395,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39073":{"morph":{"__isSmartRef__":true,"id":39069},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39074":{"morph":{"__isSmartRef__":true,"id":39069},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39075":{"morph":{"__isSmartRef__":true,"id":39069},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39076":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39077":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39078},"id":"16291169-3A91-45DE-A6D8-67714ECA8FDD","eventHandler":{"__isSmartRef__":true,"id":39081},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39082},{"__isSmartRef__":true,"id":39083}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39084},"name":"edge83","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(285.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39078":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39079},{"__isSmartRef__":true,"id":39080}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-43.4,12.0)","_Extent":"lively.pt(44.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39079":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39080":{"isAbsolute":true,"x":-41.42672811059907,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39081":{"morph":{"__isSmartRef__":true,"id":39077},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39082":{"morph":{"__isSmartRef__":true,"id":39077},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39083":{"morph":{"__isSmartRef__":true,"id":39077},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39084":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39085":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39086},"id":"527EB533-517D-4B50-BAD9-69A5ECD8BAAA","eventHandler":{"__isSmartRef__":true,"id":39089},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39090},{"__isSmartRef__":true,"id":39091}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39092},"name":"edge84","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(285.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39086":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39087},{"__isSmartRef__":true,"id":39088}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-38.2,12.0)","_Extent":"lively.pt(39.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39087":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39088":{"isAbsolute":true,"x":-36.248387096774195,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39089":{"morph":{"__isSmartRef__":true,"id":39085},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39090":{"morph":{"__isSmartRef__":true,"id":39085},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39091":{"morph":{"__isSmartRef__":true,"id":39085},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39092":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39093":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39094},"id":"00BEEB2E-B0B6-4A40-B30F-149F5762F126","eventHandler":{"__isSmartRef__":true,"id":39097},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39098},{"__isSmartRef__":true,"id":39099}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39100},"name":"edge85","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(285.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39094":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39095},{"__isSmartRef__":true,"id":39096}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-33.1,12.0)","_Extent":"lively.pt(34.1,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39095":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39096":{"isAbsolute":true,"x":-31.070046082949318,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39097":{"morph":{"__isSmartRef__":true,"id":39093},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39098":{"morph":{"__isSmartRef__":true,"id":39093},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39099":{"morph":{"__isSmartRef__":true,"id":39093},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39100":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39101":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39102},"id":"175611B6-55E6-4124-9B66-F38D59FD3361","eventHandler":{"__isSmartRef__":true,"id":39105},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39106},{"__isSmartRef__":true,"id":39107}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39108},"name":"edge86","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(321.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39102":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39103},{"__isSmartRef__":true,"id":39104}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-64.1,12.0)","_Extent":"lively.pt(65.1,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39103":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39104":{"isAbsolute":true,"x":-62.140092165898636,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39105":{"morph":{"__isSmartRef__":true,"id":39101},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39106":{"morph":{"__isSmartRef__":true,"id":39101},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39107":{"morph":{"__isSmartRef__":true,"id":39101},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39108":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39109":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39110},"id":"6373BCB9-3D7B-4E5A-B4CE-21DEFB7206B0","eventHandler":{"__isSmartRef__":true,"id":39113},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39114},{"__isSmartRef__":true,"id":39115}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39116},"name":"edge87","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(321.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39110":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39111},{"__isSmartRef__":true,"id":39112}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-59.0,12.0)","_Extent":"lively.pt(60.0,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39111":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39112":{"isAbsolute":true,"x":-56.96175115207376,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39113":{"morph":{"__isSmartRef__":true,"id":39109},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39114":{"morph":{"__isSmartRef__":true,"id":39109},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39115":{"morph":{"__isSmartRef__":true,"id":39109},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39116":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39117":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39118},"id":"D95BB2E8-60E4-4EED-8BAF-3B9C54AC560D","eventHandler":{"__isSmartRef__":true,"id":39121},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39122},{"__isSmartRef__":true,"id":39123}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39124},"name":"edge88","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(321.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39118":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39119},{"__isSmartRef__":true,"id":39120}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-53.8,12.0)","_Extent":"lively.pt(54.8,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39119":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39120":{"isAbsolute":true,"x":-51.78341013824888,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39121":{"morph":{"__isSmartRef__":true,"id":39117},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39122":{"morph":{"__isSmartRef__":true,"id":39117},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39123":{"morph":{"__isSmartRef__":true,"id":39117},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39124":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39125":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39126},"id":"6E66F715-D190-46F3-8FD9-A628E1C6FFCB","eventHandler":{"__isSmartRef__":true,"id":39129},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39130},{"__isSmartRef__":true,"id":39131}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39132},"name":"edge89","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(321.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39126":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39127},{"__isSmartRef__":true,"id":39128}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-48.6,12.0)","_Extent":"lively.pt(49.6,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39127":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39128":{"isAbsolute":true,"x":-46.60506912442395,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39129":{"morph":{"__isSmartRef__":true,"id":39125},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39130":{"morph":{"__isSmartRef__":true,"id":39125},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39131":{"morph":{"__isSmartRef__":true,"id":39125},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39132":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39133":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39134},"id":"A86C285A-06A6-441A-8948-F93E686D4F77","eventHandler":{"__isSmartRef__":true,"id":39137},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39138},{"__isSmartRef__":true,"id":39139}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39140},"name":"edge90","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(321.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39134":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39135},{"__isSmartRef__":true,"id":39136}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-43.4,12.0)","_Extent":"lively.pt(44.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39135":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39136":{"isAbsolute":true,"x":-41.42672811059907,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39137":{"morph":{"__isSmartRef__":true,"id":39133},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39138":{"morph":{"__isSmartRef__":true,"id":39133},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39139":{"morph":{"__isSmartRef__":true,"id":39133},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39140":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39141":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39142},"id":"96F3A916-B679-48AB-BE25-522E29A1A06E","eventHandler":{"__isSmartRef__":true,"id":39145},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39146},{"__isSmartRef__":true,"id":39147}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39148},"name":"edge91","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(321.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39142":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39143},{"__isSmartRef__":true,"id":39144}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-38.2,12.0)","_Extent":"lively.pt(39.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39143":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39144":{"isAbsolute":true,"x":-36.248387096774195,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39145":{"morph":{"__isSmartRef__":true,"id":39141},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39146":{"morph":{"__isSmartRef__":true,"id":39141},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39147":{"morph":{"__isSmartRef__":true,"id":39141},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39148":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39149":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39150},"id":"98AB16D9-1E8E-4031-AB56-C0460B558B83","eventHandler":{"__isSmartRef__":true,"id":39153},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39154},{"__isSmartRef__":true,"id":39155}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39156},"name":"edge92","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(321.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39150":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39151},{"__isSmartRef__":true,"id":39152}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-33.1,12.0)","_Extent":"lively.pt(34.1,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39151":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39152":{"isAbsolute":true,"x":-31.070046082949318,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39153":{"morph":{"__isSmartRef__":true,"id":39149},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39154":{"morph":{"__isSmartRef__":true,"id":39149},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39155":{"morph":{"__isSmartRef__":true,"id":39149},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39156":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39157":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39158},"id":"A10F908B-9B9A-4999-A9F6-A991A12CC0B1","eventHandler":{"__isSmartRef__":true,"id":39161},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39162},{"__isSmartRef__":true,"id":39163}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39164},"name":"edge93","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(357.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39158":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39159},{"__isSmartRef__":true,"id":39160}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-64.1,12.0)","_Extent":"lively.pt(65.1,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39159":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39160":{"isAbsolute":true,"x":-62.140092165898636,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39161":{"morph":{"__isSmartRef__":true,"id":39157},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39162":{"morph":{"__isSmartRef__":true,"id":39157},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39163":{"morph":{"__isSmartRef__":true,"id":39157},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39164":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39165":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39166},"id":"114380FD-6555-43CA-B704-32A901830DE4","eventHandler":{"__isSmartRef__":true,"id":39169},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39170},{"__isSmartRef__":true,"id":39171}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39172},"name":"edge94","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(357.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39166":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39167},{"__isSmartRef__":true,"id":39168}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-59.0,12.0)","_Extent":"lively.pt(60.0,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39167":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39168":{"isAbsolute":true,"x":-56.96175115207376,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39169":{"morph":{"__isSmartRef__":true,"id":39165},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39170":{"morph":{"__isSmartRef__":true,"id":39165},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39171":{"morph":{"__isSmartRef__":true,"id":39165},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39172":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39173":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39174},"id":"4B69C415-A742-4966-8520-23D5AE6CDED0","eventHandler":{"__isSmartRef__":true,"id":39177},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39178},{"__isSmartRef__":true,"id":39179}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39180},"name":"edge95","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(357.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39174":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39175},{"__isSmartRef__":true,"id":39176}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-53.8,12.0)","_Extent":"lively.pt(54.8,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39175":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39176":{"isAbsolute":true,"x":-51.78341013824888,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39177":{"morph":{"__isSmartRef__":true,"id":39173},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39178":{"morph":{"__isSmartRef__":true,"id":39173},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39179":{"morph":{"__isSmartRef__":true,"id":39173},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39180":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39181":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39182},"id":"489A04B0-41A6-47B5-BDC6-9B5B75C3213F","eventHandler":{"__isSmartRef__":true,"id":39185},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39186},{"__isSmartRef__":true,"id":39187}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39188},"name":"edge96","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(357.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39182":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39183},{"__isSmartRef__":true,"id":39184}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-48.6,12.0)","_Extent":"lively.pt(49.6,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39183":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39184":{"isAbsolute":true,"x":-46.60506912442395,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39185":{"morph":{"__isSmartRef__":true,"id":39181},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39186":{"morph":{"__isSmartRef__":true,"id":39181},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39187":{"morph":{"__isSmartRef__":true,"id":39181},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39188":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39189":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39190},"id":"033176BA-0C8D-4906-9F60-4A873E04C447","eventHandler":{"__isSmartRef__":true,"id":39193},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39194},{"__isSmartRef__":true,"id":39195}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39196},"name":"edge97","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(357.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39190":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39191},{"__isSmartRef__":true,"id":39192}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-43.4,12.0)","_Extent":"lively.pt(44.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39191":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39192":{"isAbsolute":true,"x":-41.42672811059907,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39193":{"morph":{"__isSmartRef__":true,"id":39189},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39194":{"morph":{"__isSmartRef__":true,"id":39189},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39195":{"morph":{"__isSmartRef__":true,"id":39189},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39196":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39197":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39198},"id":"7435D1E0-89D5-4B59-8B15-3C72371A512C","eventHandler":{"__isSmartRef__":true,"id":39201},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39202},{"__isSmartRef__":true,"id":39203}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39204},"name":"edge98","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(357.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39198":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39199},{"__isSmartRef__":true,"id":39200}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-38.2,12.0)","_Extent":"lively.pt(39.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39199":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39200":{"isAbsolute":true,"x":-36.248387096774195,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39201":{"morph":{"__isSmartRef__":true,"id":39197},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39202":{"morph":{"__isSmartRef__":true,"id":39197},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39203":{"morph":{"__isSmartRef__":true,"id":39197},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39204":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39205":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39206},"id":"E6B9F810-E046-4673-9500-C4C8FA616441","eventHandler":{"__isSmartRef__":true,"id":39209},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39210},{"__isSmartRef__":true,"id":39211}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39212},"name":"edge99","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(393.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39206":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39207},{"__isSmartRef__":true,"id":39208}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-69.3,12.0)","_Extent":"lively.pt(70.3,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39207":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39208":{"isAbsolute":true,"x":-67.31843317972351,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39209":{"morph":{"__isSmartRef__":true,"id":39205},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39210":{"morph":{"__isSmartRef__":true,"id":39205},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39211":{"morph":{"__isSmartRef__":true,"id":39205},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39212":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39213":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39214},"id":"86FF5365-D89D-4858-89C1-4D2C05B72132","eventHandler":{"__isSmartRef__":true,"id":39217},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39218},{"__isSmartRef__":true,"id":39219}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39220},"name":"edge100","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(393.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39214":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39215},{"__isSmartRef__":true,"id":39216}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-64.1,12.0)","_Extent":"lively.pt(65.1,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39215":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39216":{"isAbsolute":true,"x":-62.140092165898636,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39217":{"morph":{"__isSmartRef__":true,"id":39213},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39218":{"morph":{"__isSmartRef__":true,"id":39213},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39219":{"morph":{"__isSmartRef__":true,"id":39213},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39220":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39221":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39222},"id":"F598AF96-6928-438D-868D-A2972CEAE8D2","eventHandler":{"__isSmartRef__":true,"id":39225},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39226},{"__isSmartRef__":true,"id":39227}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39228},"name":"edge101","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(393.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39222":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39223},{"__isSmartRef__":true,"id":39224}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-59.0,12.0)","_Extent":"lively.pt(60.0,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39223":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39224":{"isAbsolute":true,"x":-56.96175115207376,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39225":{"morph":{"__isSmartRef__":true,"id":39221},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39226":{"morph":{"__isSmartRef__":true,"id":39221},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39227":{"morph":{"__isSmartRef__":true,"id":39221},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39228":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39229":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39230},"id":"2BD419D5-246D-4DBB-9BE6-0DC93D7F38D9","eventHandler":{"__isSmartRef__":true,"id":39233},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39234},{"__isSmartRef__":true,"id":39235}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39236},"name":"edge102","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(393.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39230":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39231},{"__isSmartRef__":true,"id":39232}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-53.8,12.0)","_Extent":"lively.pt(54.8,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39231":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39232":{"isAbsolute":true,"x":-51.78341013824888,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39233":{"morph":{"__isSmartRef__":true,"id":39229},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39234":{"morph":{"__isSmartRef__":true,"id":39229},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39235":{"morph":{"__isSmartRef__":true,"id":39229},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39236":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39237":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39238},"id":"7BC36BE1-FEC3-4422-9162-7B6D2E000FA7","eventHandler":{"__isSmartRef__":true,"id":39241},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39242},{"__isSmartRef__":true,"id":39243}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39244},"name":"edge103","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(393.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39238":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39239},{"__isSmartRef__":true,"id":39240}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-48.6,12.0)","_Extent":"lively.pt(49.6,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39239":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39240":{"isAbsolute":true,"x":-46.60506912442395,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39241":{"morph":{"__isSmartRef__":true,"id":39237},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39242":{"morph":{"__isSmartRef__":true,"id":39237},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39243":{"morph":{"__isSmartRef__":true,"id":39237},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39244":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39245":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39246},"id":"3522F73C-B628-4B6B-A9B4-AC15D7FC6119","eventHandler":{"__isSmartRef__":true,"id":39249},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39250},{"__isSmartRef__":true,"id":39251}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39252},"name":"edge104","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(393.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39246":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39247},{"__isSmartRef__":true,"id":39248}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-43.4,12.0)","_Extent":"lively.pt(44.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39247":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39248":{"isAbsolute":true,"x":-41.42672811059907,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39249":{"morph":{"__isSmartRef__":true,"id":39245},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39250":{"morph":{"__isSmartRef__":true,"id":39245},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39251":{"morph":{"__isSmartRef__":true,"id":39245},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39252":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39253":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39254},"id":"64A55F90-EB9A-40C4-BA1B-58E3672961ED","eventHandler":{"__isSmartRef__":true,"id":39257},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39258},{"__isSmartRef__":true,"id":39259}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39260},"name":"edge105","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(393.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39254":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39255},{"__isSmartRef__":true,"id":39256}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-38.2,12.0)","_Extent":"lively.pt(39.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39255":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39256":{"isAbsolute":true,"x":-36.248387096774195,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39257":{"morph":{"__isSmartRef__":true,"id":39253},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39258":{"morph":{"__isSmartRef__":true,"id":39253},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39259":{"morph":{"__isSmartRef__":true,"id":39253},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39260":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39261":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39262},"id":"34376840-60D7-435F-B410-59B6F7D50BA0","eventHandler":{"__isSmartRef__":true,"id":39265},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39266},{"__isSmartRef__":true,"id":39267}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39268},"name":"edge106","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(393.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39262":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39263},{"__isSmartRef__":true,"id":39264}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-33.1,12.0)","_Extent":"lively.pt(34.1,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39263":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39264":{"isAbsolute":true,"x":-31.070046082949318,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39265":{"morph":{"__isSmartRef__":true,"id":39261},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39266":{"morph":{"__isSmartRef__":true,"id":39261},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39267":{"morph":{"__isSmartRef__":true,"id":39261},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39268":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39269":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39270},"id":"02FEB0ED-97A9-43BF-B239-EBDA7B53A2AB","eventHandler":{"__isSmartRef__":true,"id":39273},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39274},{"__isSmartRef__":true,"id":39275}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39276},"name":"edge107","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(393.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39270":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39271},{"__isSmartRef__":true,"id":39272}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-27.9,12.0)","_Extent":"lively.pt(28.9,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39271":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39272":{"isAbsolute":true,"x":-25.89170506912444,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39273":{"morph":{"__isSmartRef__":true,"id":39269},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39274":{"morph":{"__isSmartRef__":true,"id":39269},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39275":{"morph":{"__isSmartRef__":true,"id":39269},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39276":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39277":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39278},"id":"0AB8F64B-01DD-44DA-8D88-54FFB39CE88C","eventHandler":{"__isSmartRef__":true,"id":39281},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39282},{"__isSmartRef__":true,"id":39283}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39284},"name":"edge108","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(430.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39278":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39279},{"__isSmartRef__":true,"id":39280}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-59.0,12.0)","_Extent":"lively.pt(60.0,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39279":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39280":{"isAbsolute":true,"x":-56.96175115207376,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39281":{"morph":{"__isSmartRef__":true,"id":39277},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39282":{"morph":{"__isSmartRef__":true,"id":39277},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39283":{"morph":{"__isSmartRef__":true,"id":39277},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39284":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39285":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39286},"id":"A9E775B9-1537-443B-B1B5-512BCF1F7915","eventHandler":{"__isSmartRef__":true,"id":39289},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39290},{"__isSmartRef__":true,"id":39291}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39292},"name":"edge109","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(430.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39286":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39287},{"__isSmartRef__":true,"id":39288}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-53.8,12.0)","_Extent":"lively.pt(54.8,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39287":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39288":{"isAbsolute":true,"x":-51.78341013824888,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39289":{"morph":{"__isSmartRef__":true,"id":39285},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39290":{"morph":{"__isSmartRef__":true,"id":39285},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39291":{"morph":{"__isSmartRef__":true,"id":39285},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39292":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39293":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39294},"id":"B3D1AB4D-2136-4CA3-8FF9-906364653162","eventHandler":{"__isSmartRef__":true,"id":39297},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39298},{"__isSmartRef__":true,"id":39299}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39300},"name":"edge110","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(430.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39294":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39295},{"__isSmartRef__":true,"id":39296}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-48.6,12.0)","_Extent":"lively.pt(49.6,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39295":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39296":{"isAbsolute":true,"x":-46.60506912442395,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39297":{"morph":{"__isSmartRef__":true,"id":39293},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39298":{"morph":{"__isSmartRef__":true,"id":39293},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39299":{"morph":{"__isSmartRef__":true,"id":39293},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39300":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39301":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39302},"id":"6D8FBEB0-A3BF-47FC-83FC-4A98E1FF5891","eventHandler":{"__isSmartRef__":true,"id":39305},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39306},{"__isSmartRef__":true,"id":39307}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39308},"name":"edge111","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(430.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39302":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39303},{"__isSmartRef__":true,"id":39304}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-43.4,12.0)","_Extent":"lively.pt(44.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39303":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39304":{"isAbsolute":true,"x":-41.42672811059907,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39305":{"morph":{"__isSmartRef__":true,"id":39301},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39306":{"morph":{"__isSmartRef__":true,"id":39301},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39307":{"morph":{"__isSmartRef__":true,"id":39301},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39308":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39309":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39310},"id":"ED2CFA15-DCE3-4B3F-9AD2-0158BE02144B","eventHandler":{"__isSmartRef__":true,"id":39313},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39314},{"__isSmartRef__":true,"id":39315}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39316},"name":"edge112","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(430.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39310":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39311},{"__isSmartRef__":true,"id":39312}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-38.2,12.0)","_Extent":"lively.pt(39.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39311":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39312":{"isAbsolute":true,"x":-36.248387096774195,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39313":{"morph":{"__isSmartRef__":true,"id":39309},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39314":{"morph":{"__isSmartRef__":true,"id":39309},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39315":{"morph":{"__isSmartRef__":true,"id":39309},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39316":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39317":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39318},"id":"A7E0B369-F885-4BAB-B651-B863D9E28D74","eventHandler":{"__isSmartRef__":true,"id":39321},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39322},{"__isSmartRef__":true,"id":39323}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39324},"name":"edge113","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(430.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39318":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39319},{"__isSmartRef__":true,"id":39320}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-33.1,12.0)","_Extent":"lively.pt(34.1,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39319":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39320":{"isAbsolute":true,"x":-31.070046082949318,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39321":{"morph":{"__isSmartRef__":true,"id":39317},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39322":{"morph":{"__isSmartRef__":true,"id":39317},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39323":{"morph":{"__isSmartRef__":true,"id":39317},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39324":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39325":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39326},"id":"475398AE-C96F-4FF6-8DFD-8F721838FBC9","eventHandler":{"__isSmartRef__":true,"id":39329},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39330},{"__isSmartRef__":true,"id":39331}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39332},"name":"edge114","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(466.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39326":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39327},{"__isSmartRef__":true,"id":39328}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-64.1,12.0)","_Extent":"lively.pt(65.1,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39327":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39328":{"isAbsolute":true,"x":-62.140092165898636,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39329":{"morph":{"__isSmartRef__":true,"id":39325},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39330":{"morph":{"__isSmartRef__":true,"id":39325},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39331":{"morph":{"__isSmartRef__":true,"id":39325},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39332":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39333":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39334},"id":"4859BC68-E4CA-46AD-B52F-93FD0072E7F1","eventHandler":{"__isSmartRef__":true,"id":39337},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39338},{"__isSmartRef__":true,"id":39339}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39340},"name":"edge115","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(466.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39334":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39335},{"__isSmartRef__":true,"id":39336}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-59.0,12.0)","_Extent":"lively.pt(60.0,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39335":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39336":{"isAbsolute":true,"x":-56.96175115207376,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39337":{"morph":{"__isSmartRef__":true,"id":39333},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39338":{"morph":{"__isSmartRef__":true,"id":39333},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39339":{"morph":{"__isSmartRef__":true,"id":39333},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39340":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39341":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39342},"id":"031801CA-849A-4DBC-AEE6-238C01C8516F","eventHandler":{"__isSmartRef__":true,"id":39345},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39346},{"__isSmartRef__":true,"id":39347}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39348},"name":"edge116","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(466.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39342":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39343},{"__isSmartRef__":true,"id":39344}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-53.8,12.0)","_Extent":"lively.pt(54.8,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39343":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39344":{"isAbsolute":true,"x":-51.78341013824888,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39345":{"morph":{"__isSmartRef__":true,"id":39341},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39346":{"morph":{"__isSmartRef__":true,"id":39341},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39347":{"morph":{"__isSmartRef__":true,"id":39341},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39348":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39349":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39350},"id":"8B219826-DBAB-479B-8D24-F2BE1A20AD2E","eventHandler":{"__isSmartRef__":true,"id":39353},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39354},{"__isSmartRef__":true,"id":39355}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39356},"name":"edge117","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(466.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39350":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39351},{"__isSmartRef__":true,"id":39352}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-48.6,12.0)","_Extent":"lively.pt(49.6,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39351":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39352":{"isAbsolute":true,"x":-46.60506912442395,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39353":{"morph":{"__isSmartRef__":true,"id":39349},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39354":{"morph":{"__isSmartRef__":true,"id":39349},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39355":{"morph":{"__isSmartRef__":true,"id":39349},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39356":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39357":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39358},"id":"FE20EBE5-EC01-4881-99D6-2F2F687E8D72","eventHandler":{"__isSmartRef__":true,"id":39361},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39362},{"__isSmartRef__":true,"id":39363}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39364},"name":"edge118","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(466.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39358":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39359},{"__isSmartRef__":true,"id":39360}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-43.4,12.0)","_Extent":"lively.pt(44.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39359":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39360":{"isAbsolute":true,"x":-41.42672811059907,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39361":{"morph":{"__isSmartRef__":true,"id":39357},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39362":{"morph":{"__isSmartRef__":true,"id":39357},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39363":{"morph":{"__isSmartRef__":true,"id":39357},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39364":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39365":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39366},"id":"21E1D5BF-9DAF-4691-AC2A-8648B4F0A4ED","eventHandler":{"__isSmartRef__":true,"id":39369},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39370},{"__isSmartRef__":true,"id":39371}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39372},"name":"edge119","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(466.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39366":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39367},{"__isSmartRef__":true,"id":39368}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-38.2,12.0)","_Extent":"lively.pt(39.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39367":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39368":{"isAbsolute":true,"x":-36.248387096774195,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39369":{"morph":{"__isSmartRef__":true,"id":39365},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39370":{"morph":{"__isSmartRef__":true,"id":39365},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39371":{"morph":{"__isSmartRef__":true,"id":39365},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39372":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39373":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39374},"id":"315D71D6-93C2-403F-A09A-9A2AC560F826","eventHandler":{"__isSmartRef__":true,"id":39377},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39378},{"__isSmartRef__":true,"id":39379}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39380},"name":"edge120","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(466.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39374":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39375},{"__isSmartRef__":true,"id":39376}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-33.1,12.0)","_Extent":"lively.pt(34.1,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39375":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39376":{"isAbsolute":true,"x":-31.070046082949318,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39377":{"morph":{"__isSmartRef__":true,"id":39373},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39378":{"morph":{"__isSmartRef__":true,"id":39373},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39379":{"morph":{"__isSmartRef__":true,"id":39373},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39380":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39381":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39382},"id":"387986C2-FE29-4809-B6C5-B79EFA28B4AB","eventHandler":{"__isSmartRef__":true,"id":39385},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39386},{"__isSmartRef__":true,"id":39387}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39388},"name":"edge121","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(502.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39382":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39383},{"__isSmartRef__":true,"id":39384}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-64.1,12.0)","_Extent":"lively.pt(65.1,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39383":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39384":{"isAbsolute":true,"x":-62.140092165898636,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39385":{"morph":{"__isSmartRef__":true,"id":39381},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39386":{"morph":{"__isSmartRef__":true,"id":39381},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39387":{"morph":{"__isSmartRef__":true,"id":39381},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39388":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39389":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39390},"id":"9A6E58E0-8D27-4418-B334-AD8CD902CB76","eventHandler":{"__isSmartRef__":true,"id":39393},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39394},{"__isSmartRef__":true,"id":39395}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39396},"name":"edge122","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(502.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39390":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39391},{"__isSmartRef__":true,"id":39392}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-59.0,12.0)","_Extent":"lively.pt(60.0,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39391":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39392":{"isAbsolute":true,"x":-56.96175115207376,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39393":{"morph":{"__isSmartRef__":true,"id":39389},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39394":{"morph":{"__isSmartRef__":true,"id":39389},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39395":{"morph":{"__isSmartRef__":true,"id":39389},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39396":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39397":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39398},"id":"D05214B5-D237-46CF-8F45-BB749C48DB3F","eventHandler":{"__isSmartRef__":true,"id":39401},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39402},{"__isSmartRef__":true,"id":39403}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39404},"name":"edge123","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(502.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39398":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39399},{"__isSmartRef__":true,"id":39400}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-53.8,12.0)","_Extent":"lively.pt(54.8,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39399":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39400":{"isAbsolute":true,"x":-51.78341013824888,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39401":{"morph":{"__isSmartRef__":true,"id":39397},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39402":{"morph":{"__isSmartRef__":true,"id":39397},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39403":{"morph":{"__isSmartRef__":true,"id":39397},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39404":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39405":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39406},"id":"E2BC8769-8411-4746-8FA2-C0FC1A05AE60","eventHandler":{"__isSmartRef__":true,"id":39409},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39410},{"__isSmartRef__":true,"id":39411}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39412},"name":"edge124","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(502.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39406":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39407},{"__isSmartRef__":true,"id":39408}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-48.6,12.0)","_Extent":"lively.pt(49.6,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39407":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39408":{"isAbsolute":true,"x":-46.60506912442395,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39409":{"morph":{"__isSmartRef__":true,"id":39405},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39410":{"morph":{"__isSmartRef__":true,"id":39405},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39411":{"morph":{"__isSmartRef__":true,"id":39405},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39412":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39413":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39414},"id":"2688114C-D50B-4C73-ABC0-F17BA1333927","eventHandler":{"__isSmartRef__":true,"id":39417},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39418},{"__isSmartRef__":true,"id":39419}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39420},"name":"edge125","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(502.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39414":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39415},{"__isSmartRef__":true,"id":39416}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-43.4,12.0)","_Extent":"lively.pt(44.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39415":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39416":{"isAbsolute":true,"x":-41.42672811059907,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39417":{"morph":{"__isSmartRef__":true,"id":39413},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39418":{"morph":{"__isSmartRef__":true,"id":39413},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39419":{"morph":{"__isSmartRef__":true,"id":39413},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39420":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39421":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39422},"id":"B448B410-ECFF-43E6-8B5A-725731F38395","eventHandler":{"__isSmartRef__":true,"id":39425},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39426},{"__isSmartRef__":true,"id":39427}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39428},"name":"edge126","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(502.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39422":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39423},{"__isSmartRef__":true,"id":39424}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-38.2,12.0)","_Extent":"lively.pt(39.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39423":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39424":{"isAbsolute":true,"x":-36.248387096774195,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39425":{"morph":{"__isSmartRef__":true,"id":39421},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39426":{"morph":{"__isSmartRef__":true,"id":39421},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39427":{"morph":{"__isSmartRef__":true,"id":39421},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39428":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39429":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39430},"id":"4CEFDD67-699C-412E-93FD-B033549D10F5","eventHandler":{"__isSmartRef__":true,"id":39433},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39434},{"__isSmartRef__":true,"id":39435}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39436},"name":"edge127","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(502.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39430":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39431},{"__isSmartRef__":true,"id":39432}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-33.1,12.0)","_Extent":"lively.pt(34.1,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39431":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39432":{"isAbsolute":true,"x":-31.070046082949375,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39433":{"morph":{"__isSmartRef__":true,"id":39429},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39434":{"morph":{"__isSmartRef__":true,"id":39429},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39435":{"morph":{"__isSmartRef__":true,"id":39429},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39436":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39437":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39438},"id":"2ACEA80B-08B2-4E9A-BF06-229E1BB4ABFA","eventHandler":{"__isSmartRef__":true,"id":39441},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39442},{"__isSmartRef__":true,"id":39443}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39444},"name":"edge128","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(502.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39438":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39439},{"__isSmartRef__":true,"id":39440}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-27.9,12.0)","_Extent":"lively.pt(28.9,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39439":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39440":{"isAbsolute":true,"x":-25.89170506912444,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39441":{"morph":{"__isSmartRef__":true,"id":39437},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39442":{"morph":{"__isSmartRef__":true,"id":39437},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39443":{"morph":{"__isSmartRef__":true,"id":39437},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39444":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39445":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39446},"id":"EA27F729-EA69-4073-90CC-79B09807F038","eventHandler":{"__isSmartRef__":true,"id":39449},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39450},{"__isSmartRef__":true,"id":39451}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39452},"name":"edge129","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(538.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39446":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39447},{"__isSmartRef__":true,"id":39448}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-59.0,12.0)","_Extent":"lively.pt(60.0,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39447":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39448":{"isAbsolute":true,"x":-56.9617511520737,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39449":{"morph":{"__isSmartRef__":true,"id":39445},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39450":{"morph":{"__isSmartRef__":true,"id":39445},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39451":{"morph":{"__isSmartRef__":true,"id":39445},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39452":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39453":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39454},"id":"67927265-0315-47AF-80F9-05FF8BDD31DC","eventHandler":{"__isSmartRef__":true,"id":39457},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39458},{"__isSmartRef__":true,"id":39459}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39460},"name":"edge130","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(538.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39454":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39455},{"__isSmartRef__":true,"id":39456}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-53.8,12.0)","_Extent":"lively.pt(54.8,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39455":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39456":{"isAbsolute":true,"x":-51.78341013824888,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39457":{"morph":{"__isSmartRef__":true,"id":39453},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39458":{"morph":{"__isSmartRef__":true,"id":39453},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39459":{"morph":{"__isSmartRef__":true,"id":39453},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39460":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39461":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39462},"id":"E2002293-8B59-45B3-B420-F4CE00CE53FC","eventHandler":{"__isSmartRef__":true,"id":39465},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39466},{"__isSmartRef__":true,"id":39467}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39468},"name":"edge131","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(538.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39462":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39463},{"__isSmartRef__":true,"id":39464}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-48.6,12.0)","_Extent":"lively.pt(49.6,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39463":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39464":{"isAbsolute":true,"x":-46.60506912442395,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39465":{"morph":{"__isSmartRef__":true,"id":39461},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39466":{"morph":{"__isSmartRef__":true,"id":39461},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39467":{"morph":{"__isSmartRef__":true,"id":39461},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39468":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39469":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39470},"id":"B3748746-6620-4151-8F6E-566006D7CB70","eventHandler":{"__isSmartRef__":true,"id":39473},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39474},{"__isSmartRef__":true,"id":39475}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39476},"name":"edge132","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(538.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39470":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39471},{"__isSmartRef__":true,"id":39472}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-43.4,12.0)","_Extent":"lively.pt(44.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39471":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39472":{"isAbsolute":true,"x":-41.426728110599015,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39473":{"morph":{"__isSmartRef__":true,"id":39469},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39474":{"morph":{"__isSmartRef__":true,"id":39469},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39475":{"morph":{"__isSmartRef__":true,"id":39469},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39476":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39477":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39478},"id":"C9ECA8CE-DC33-4C93-83BD-457F4C1ACE39","eventHandler":{"__isSmartRef__":true,"id":39481},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39482},{"__isSmartRef__":true,"id":39483}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39484},"name":"edge133","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(538.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39478":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39479},{"__isSmartRef__":true,"id":39480}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-38.2,12.0)","_Extent":"lively.pt(39.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39479":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39480":{"isAbsolute":true,"x":-36.248387096774195,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39481":{"morph":{"__isSmartRef__":true,"id":39477},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39482":{"morph":{"__isSmartRef__":true,"id":39477},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39483":{"morph":{"__isSmartRef__":true,"id":39477},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39484":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39485":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39486},"id":"AC787C70-6878-4BAF-B967-BE19EBF98380","eventHandler":{"__isSmartRef__":true,"id":39489},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39490},{"__isSmartRef__":true,"id":39491}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39492},"name":"edge134","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(538.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39486":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39487},{"__isSmartRef__":true,"id":39488}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-33.1,12.0)","_Extent":"lively.pt(34.1,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39487":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39488":{"isAbsolute":true,"x":-31.070046082949375,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39489":{"morph":{"__isSmartRef__":true,"id":39485},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39490":{"morph":{"__isSmartRef__":true,"id":39485},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39491":{"morph":{"__isSmartRef__":true,"id":39485},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39492":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39493":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39494},"id":"1F72AA9B-66F1-42A0-A393-DBCEFF3DD15D","eventHandler":{"__isSmartRef__":true,"id":39497},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39498},{"__isSmartRef__":true,"id":39499}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39500},"name":"edge135","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(538.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39494":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39495},{"__isSmartRef__":true,"id":39496}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-27.9,12.0)","_Extent":"lively.pt(28.9,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39495":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39496":{"isAbsolute":true,"x":-25.89170506912444,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39497":{"morph":{"__isSmartRef__":true,"id":39493},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39498":{"morph":{"__isSmartRef__":true,"id":39493},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39499":{"morph":{"__isSmartRef__":true,"id":39493},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39500":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39501":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39502},"id":"99C139E4-C5B7-433B-8FBE-45009B2A92EF","eventHandler":{"__isSmartRef__":true,"id":39505},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39506},{"__isSmartRef__":true,"id":39507}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39508},"name":"edge136","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(538.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39502":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39503},{"__isSmartRef__":true,"id":39504}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-22.7,12.0)","_Extent":"lively.pt(23.7,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39503":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39504":{"isAbsolute":true,"x":-20.713364055299508,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39505":{"morph":{"__isSmartRef__":true,"id":39501},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39506":{"morph":{"__isSmartRef__":true,"id":39501},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39507":{"morph":{"__isSmartRef__":true,"id":39501},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39508":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39509":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39510},"id":"9BBC6A8A-384A-4327-A72B-000256004933","eventHandler":{"__isSmartRef__":true,"id":39513},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39514},{"__isSmartRef__":true,"id":39515}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39516},"name":"edge137","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(538.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39510":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39511},{"__isSmartRef__":true,"id":39512}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-17.5,12.0)","_Extent":"lively.pt(18.5,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39511":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39512":{"isAbsolute":true,"x":-15.535023041474687,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39513":{"morph":{"__isSmartRef__":true,"id":39509},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39514":{"morph":{"__isSmartRef__":true,"id":39509},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39515":{"morph":{"__isSmartRef__":true,"id":39509},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39516":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39517":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39518},"id":"EC5E61AC-2E70-41FC-A71D-A279BA4D8C32","eventHandler":{"__isSmartRef__":true,"id":39521},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39522},{"__isSmartRef__":true,"id":39523}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39524},"name":"edge138","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(575.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39518":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39519},{"__isSmartRef__":true,"id":39520}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-48.6,12.0)","_Extent":"lively.pt(49.6,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39519":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39520":{"isAbsolute":true,"x":-46.60506912442395,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39521":{"morph":{"__isSmartRef__":true,"id":39517},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39522":{"morph":{"__isSmartRef__":true,"id":39517},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39523":{"morph":{"__isSmartRef__":true,"id":39517},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39524":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39525":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39526},"id":"76B2DACE-9627-4C6D-B075-92556D4E4316","eventHandler":{"__isSmartRef__":true,"id":39529},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39530},{"__isSmartRef__":true,"id":39531}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39532},"name":"edge139","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(575.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39526":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39527},{"__isSmartRef__":true,"id":39528}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-43.4,12.0)","_Extent":"lively.pt(44.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39527":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39528":{"isAbsolute":true,"x":-41.42672811059913,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39529":{"morph":{"__isSmartRef__":true,"id":39525},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39530":{"morph":{"__isSmartRef__":true,"id":39525},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39531":{"morph":{"__isSmartRef__":true,"id":39525},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39532":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39533":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39534},"id":"DB4492AC-6725-47BF-9692-D9B89AF4DBC2","eventHandler":{"__isSmartRef__":true,"id":39537},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39538},{"__isSmartRef__":true,"id":39539}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39540},"name":"edge140","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(575.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39534":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39535},{"__isSmartRef__":true,"id":39536}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-38.2,12.0)","_Extent":"lively.pt(39.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39535":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39536":{"isAbsolute":true,"x":-36.248387096774195,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39537":{"morph":{"__isSmartRef__":true,"id":39533},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39538":{"morph":{"__isSmartRef__":true,"id":39533},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39539":{"morph":{"__isSmartRef__":true,"id":39533},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39540":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39541":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39542},"id":"853ADE39-A20D-4459-8235-0C4B8AE2610C","eventHandler":{"__isSmartRef__":true,"id":39545},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39546},{"__isSmartRef__":true,"id":39547}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39548},"name":"edge141","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(575.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39542":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39543},{"__isSmartRef__":true,"id":39544}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-33.1,12.0)","_Extent":"lively.pt(34.1,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39543":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39544":{"isAbsolute":true,"x":-31.070046082949375,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39545":{"morph":{"__isSmartRef__":true,"id":39541},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39546":{"morph":{"__isSmartRef__":true,"id":39541},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39547":{"morph":{"__isSmartRef__":true,"id":39541},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39548":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39549":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39550},"id":"B15D2E3B-91FD-4F99-BDBB-1BA4C35B1BD2","eventHandler":{"__isSmartRef__":true,"id":39553},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39554},{"__isSmartRef__":true,"id":39555}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39556},"name":"edge142","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(575.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39550":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39551},{"__isSmartRef__":true,"id":39552}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-27.9,12.0)","_Extent":"lively.pt(28.9,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39551":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39552":{"isAbsolute":true,"x":-25.89170506912444,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39553":{"morph":{"__isSmartRef__":true,"id":39549},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39554":{"morph":{"__isSmartRef__":true,"id":39549},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39555":{"morph":{"__isSmartRef__":true,"id":39549},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39556":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39557":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39558},"id":"7C6CF518-F726-457F-A439-B05097C1CAFD","eventHandler":{"__isSmartRef__":true,"id":39561},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39562},{"__isSmartRef__":true,"id":39563}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39564},"name":"edge143","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(575.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39558":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39559},{"__isSmartRef__":true,"id":39560}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-22.7,12.0)","_Extent":"lively.pt(23.7,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39559":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39560":{"isAbsolute":true,"x":-20.713364055299508,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39561":{"morph":{"__isSmartRef__":true,"id":39557},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39562":{"morph":{"__isSmartRef__":true,"id":39557},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39563":{"morph":{"__isSmartRef__":true,"id":39557},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39564":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39565":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39566},"id":"D67B4039-28B9-41FE-BB1C-5A4E0762A45D","eventHandler":{"__isSmartRef__":true,"id":39569},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39570},{"__isSmartRef__":true,"id":39571}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39572},"name":"edge144","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(575.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39566":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39567},{"__isSmartRef__":true,"id":39568}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-17.5,12.0)","_Extent":"lively.pt(18.5,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39567":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39568":{"isAbsolute":true,"x":-15.535023041474687,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39569":{"morph":{"__isSmartRef__":true,"id":39565},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39570":{"morph":{"__isSmartRef__":true,"id":39565},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39571":{"morph":{"__isSmartRef__":true,"id":39565},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39572":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39573":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39574},"id":"AF95CAB7-662A-4879-A03D-A20EC515D64F","eventHandler":{"__isSmartRef__":true,"id":39577},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39578},{"__isSmartRef__":true,"id":39579}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39580},"name":"edge145","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(575.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39574":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39575},{"__isSmartRef__":true,"id":39576}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-12.4,12.0)","_Extent":"lively.pt(13.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39575":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39576":{"isAbsolute":true,"x":-10.356682027649754,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39577":{"morph":{"__isSmartRef__":true,"id":39573},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39578":{"morph":{"__isSmartRef__":true,"id":39573},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39579":{"morph":{"__isSmartRef__":true,"id":39573},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39580":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39581":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39582},"id":"A20FA7FE-C2D5-4BC8-B90A-AD32EC9FFA7C","eventHandler":{"__isSmartRef__":true,"id":39585},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39586},{"__isSmartRef__":true,"id":39587}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39588},"name":"edge146","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(575.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39582":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39583},{"__isSmartRef__":true,"id":39584}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-7.2,12.0)","_Extent":"lively.pt(8.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39583":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39584":{"isAbsolute":true,"x":-5.178341013824934,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39585":{"morph":{"__isSmartRef__":true,"id":39581},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39586":{"morph":{"__isSmartRef__":true,"id":39581},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39587":{"morph":{"__isSmartRef__":true,"id":39581},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39588":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39589":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39590},"id":"3E361DC2-05A3-465F-931A-86EE8CB57724","eventHandler":{"__isSmartRef__":true,"id":39593},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39594},{"__isSmartRef__":true,"id":39595}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39596},"name":"edge147","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(611.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39590":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39591},{"__isSmartRef__":true,"id":39592}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-38.2,12.0)","_Extent":"lively.pt(39.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39591":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39592":{"isAbsolute":true,"x":-36.248387096774195,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39593":{"morph":{"__isSmartRef__":true,"id":39589},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39594":{"morph":{"__isSmartRef__":true,"id":39589},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39595":{"morph":{"__isSmartRef__":true,"id":39589},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39596":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39597":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39598},"id":"82AD35C2-5480-4E91-859C-6109D9011E9D","eventHandler":{"__isSmartRef__":true,"id":39601},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39602},{"__isSmartRef__":true,"id":39603}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39604},"name":"edge148","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(611.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39598":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39599},{"__isSmartRef__":true,"id":39600}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-33.1,12.0)","_Extent":"lively.pt(34.1,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39599":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39600":{"isAbsolute":true,"x":-31.070046082949375,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39601":{"morph":{"__isSmartRef__":true,"id":39597},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39602":{"morph":{"__isSmartRef__":true,"id":39597},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39603":{"morph":{"__isSmartRef__":true,"id":39597},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39604":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39605":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39606},"id":"17FC4236-9FBB-4784-AB27-88C56928B658","eventHandler":{"__isSmartRef__":true,"id":39609},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39610},{"__isSmartRef__":true,"id":39611}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39612},"name":"edge149","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(611.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39606":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39607},{"__isSmartRef__":true,"id":39608}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-27.9,12.0)","_Extent":"lively.pt(28.9,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39607":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39608":{"isAbsolute":true,"x":-25.89170506912444,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39609":{"morph":{"__isSmartRef__":true,"id":39605},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39610":{"morph":{"__isSmartRef__":true,"id":39605},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39611":{"morph":{"__isSmartRef__":true,"id":39605},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39612":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39613":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39614},"id":"2A085C0C-64B5-4E45-9D72-E2B2C118361C","eventHandler":{"__isSmartRef__":true,"id":39617},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39618},{"__isSmartRef__":true,"id":39619}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39620},"name":"edge150","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(611.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39614":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39615},{"__isSmartRef__":true,"id":39616}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-22.7,12.0)","_Extent":"lively.pt(23.7,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39615":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39616":{"isAbsolute":true,"x":-20.713364055299508,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39617":{"morph":{"__isSmartRef__":true,"id":39613},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39618":{"morph":{"__isSmartRef__":true,"id":39613},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39619":{"morph":{"__isSmartRef__":true,"id":39613},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39620":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39621":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39622},"id":"3F41845C-016F-489D-93B8-413BB6DDEA42","eventHandler":{"__isSmartRef__":true,"id":39625},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39626},{"__isSmartRef__":true,"id":39627}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39628},"name":"edge151","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(611.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39622":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39623},{"__isSmartRef__":true,"id":39624}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-17.5,12.0)","_Extent":"lively.pt(18.5,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39623":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39624":{"isAbsolute":true,"x":-15.535023041474687,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39625":{"morph":{"__isSmartRef__":true,"id":39621},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39626":{"morph":{"__isSmartRef__":true,"id":39621},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39627":{"morph":{"__isSmartRef__":true,"id":39621},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39628":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39629":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39630},"id":"F573252E-08E6-4189-9356-4378A382639E","eventHandler":{"__isSmartRef__":true,"id":39633},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39634},{"__isSmartRef__":true,"id":39635}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39636},"name":"edge152","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(611.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39630":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39631},{"__isSmartRef__":true,"id":39632}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-12.4,12.0)","_Extent":"lively.pt(13.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39631":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39632":{"isAbsolute":true,"x":-10.356682027649754,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39633":{"morph":{"__isSmartRef__":true,"id":39629},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39634":{"morph":{"__isSmartRef__":true,"id":39629},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39635":{"morph":{"__isSmartRef__":true,"id":39629},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39636":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39637":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39638},"id":"1A44E5E6-0BE5-4237-A400-40ED149F1CB6","eventHandler":{"__isSmartRef__":true,"id":39641},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39642},{"__isSmartRef__":true,"id":39643}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39644},"name":"edge153","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(611.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39638":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39639},{"__isSmartRef__":true,"id":39640}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-7.2,12.0)","_Extent":"lively.pt(8.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39639":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39640":{"isAbsolute":true,"x":-5.178341013824934,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39641":{"morph":{"__isSmartRef__":true,"id":39637},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39642":{"morph":{"__isSmartRef__":true,"id":39637},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39643":{"morph":{"__isSmartRef__":true,"id":39637},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39644":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39645":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39646},"id":"77DB9555-7DBD-45FE-A859-55DA24518E52","eventHandler":{"__isSmartRef__":true,"id":39649},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39650},{"__isSmartRef__":true,"id":39651}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39652},"name":"edge154","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(611.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39646":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39647},{"__isSmartRef__":true,"id":39648}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(3.0,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39647":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39648":{"isAbsolute":true,"x":0,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39649":{"morph":{"__isSmartRef__":true,"id":39645},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39650":{"morph":{"__isSmartRef__":true,"id":39645},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39651":{"morph":{"__isSmartRef__":true,"id":39645},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39652":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39653":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39654},"id":"BEC561F9-1468-4442-AF42-7B2A3B84F10D","eventHandler":{"__isSmartRef__":true,"id":39657},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39658},{"__isSmartRef__":true,"id":39659}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39660},"name":"edge155","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(611.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39654":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39655},{"__isSmartRef__":true,"id":39656}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(8.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39655":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39656":{"isAbsolute":true,"x":5.17834101382482,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39657":{"morph":{"__isSmartRef__":true,"id":39653},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39658":{"morph":{"__isSmartRef__":true,"id":39653},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39659":{"morph":{"__isSmartRef__":true,"id":39653},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39660":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39661":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39662},"id":"039516AE-5798-498C-963D-3ABD5DEC031B","eventHandler":{"__isSmartRef__":true,"id":39665},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39666},{"__isSmartRef__":true,"id":39667}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39668},"name":"edge156","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(647.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39662":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39663},{"__isSmartRef__":true,"id":39664}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-27.9,12.0)","_Extent":"lively.pt(28.9,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39663":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39664":{"isAbsolute":true,"x":-25.89170506912444,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39665":{"morph":{"__isSmartRef__":true,"id":39661},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39666":{"morph":{"__isSmartRef__":true,"id":39661},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39667":{"morph":{"__isSmartRef__":true,"id":39661},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39668":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39669":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39670},"id":"BB9B7F33-C783-42C4-8F3E-890ACB6C730C","eventHandler":{"__isSmartRef__":true,"id":39673},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39674},{"__isSmartRef__":true,"id":39675}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39676},"name":"edge157","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(647.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39670":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39671},{"__isSmartRef__":true,"id":39672}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-22.7,12.0)","_Extent":"lively.pt(23.7,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39671":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39672":{"isAbsolute":true,"x":-20.713364055299508,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39673":{"morph":{"__isSmartRef__":true,"id":39669},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39674":{"morph":{"__isSmartRef__":true,"id":39669},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39675":{"morph":{"__isSmartRef__":true,"id":39669},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39676":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39677":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39678},"id":"E27BD1B6-85C6-456D-BE64-C24BEAA97FB7","eventHandler":{"__isSmartRef__":true,"id":39681},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39682},{"__isSmartRef__":true,"id":39683}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39684},"name":"edge158","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(647.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39678":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39679},{"__isSmartRef__":true,"id":39680}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-17.5,12.0)","_Extent":"lively.pt(18.5,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39679":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39680":{"isAbsolute":true,"x":-15.535023041474687,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39681":{"morph":{"__isSmartRef__":true,"id":39677},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39682":{"morph":{"__isSmartRef__":true,"id":39677},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39683":{"morph":{"__isSmartRef__":true,"id":39677},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39684":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39685":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39686},"id":"D23C8935-09A7-4F41-A649-41D0E3E3CDAA","eventHandler":{"__isSmartRef__":true,"id":39689},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39690},{"__isSmartRef__":true,"id":39691}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39692},"name":"edge159","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(647.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39686":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39687},{"__isSmartRef__":true,"id":39688}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-12.4,12.0)","_Extent":"lively.pt(13.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39687":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39688":{"isAbsolute":true,"x":-10.356682027649754,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39689":{"morph":{"__isSmartRef__":true,"id":39685},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39690":{"morph":{"__isSmartRef__":true,"id":39685},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39691":{"morph":{"__isSmartRef__":true,"id":39685},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39692":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39693":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39694},"id":"D294275A-2A0D-446A-8405-91D897EFC87D","eventHandler":{"__isSmartRef__":true,"id":39697},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39698},{"__isSmartRef__":true,"id":39699}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39700},"name":"edge160","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(647.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39694":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39695},{"__isSmartRef__":true,"id":39696}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-7.2,12.0)","_Extent":"lively.pt(8.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39695":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39696":{"isAbsolute":true,"x":-5.178341013824934,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39697":{"morph":{"__isSmartRef__":true,"id":39693},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39698":{"morph":{"__isSmartRef__":true,"id":39693},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39699":{"morph":{"__isSmartRef__":true,"id":39693},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39700":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39701":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39702},"id":"D1238E30-1767-4FF0-A21D-723D408100CD","eventHandler":{"__isSmartRef__":true,"id":39705},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39706},{"__isSmartRef__":true,"id":39707}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39708},"name":"edge161","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(647.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39702":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39703},{"__isSmartRef__":true,"id":39704}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(3.0,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39703":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39704":{"isAbsolute":true,"x":0,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39705":{"morph":{"__isSmartRef__":true,"id":39701},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39706":{"morph":{"__isSmartRef__":true,"id":39701},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39707":{"morph":{"__isSmartRef__":true,"id":39701},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39708":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39709":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39710},"id":"4B05B5AA-D4BC-43E4-9CDC-1DE1376B249F","eventHandler":{"__isSmartRef__":true,"id":39713},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39714},{"__isSmartRef__":true,"id":39715}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39716},"name":"edge162","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(647.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39710":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39711},{"__isSmartRef__":true,"id":39712}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(8.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39711":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39712":{"isAbsolute":true,"x":5.17834101382482,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39713":{"morph":{"__isSmartRef__":true,"id":39709},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39714":{"morph":{"__isSmartRef__":true,"id":39709},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39715":{"morph":{"__isSmartRef__":true,"id":39709},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39716":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39717":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39718},"id":"E50A53F8-5126-4CB1-8933-68304F409AFA","eventHandler":{"__isSmartRef__":true,"id":39721},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39722},{"__isSmartRef__":true,"id":39723}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39724},"name":"edge163","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(647.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39718":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39719},{"__isSmartRef__":true,"id":39720}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(13.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39719":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39720":{"isAbsolute":true,"x":10.356682027649754,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39721":{"morph":{"__isSmartRef__":true,"id":39717},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39722":{"morph":{"__isSmartRef__":true,"id":39717},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39723":{"morph":{"__isSmartRef__":true,"id":39717},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39724":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39725":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39726},"id":"8CED9A5A-36B4-4E06-AB06-5E2D0EEE2A1B","eventHandler":{"__isSmartRef__":true,"id":39729},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39730},{"__isSmartRef__":true,"id":39731}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39732},"name":"edge164","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(647.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39726":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39727},{"__isSmartRef__":true,"id":39728}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(18.5,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39727":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39728":{"isAbsolute":true,"x":15.535023041474687,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39729":{"morph":{"__isSmartRef__":true,"id":39725},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39730":{"morph":{"__isSmartRef__":true,"id":39725},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39731":{"morph":{"__isSmartRef__":true,"id":39725},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39732":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39733":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39734},"id":"EB9D28D1-B183-440D-B25A-6FD5328B1FD1","eventHandler":{"__isSmartRef__":true,"id":39737},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39738},{"__isSmartRef__":true,"id":39739}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39740},"name":"edge165","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(683.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39734":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39735},{"__isSmartRef__":true,"id":39736}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-17.5,12.0)","_Extent":"lively.pt(18.5,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39735":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39736":{"isAbsolute":true,"x":-15.535023041474687,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39737":{"morph":{"__isSmartRef__":true,"id":39733},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39738":{"morph":{"__isSmartRef__":true,"id":39733},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39739":{"morph":{"__isSmartRef__":true,"id":39733},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39740":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39741":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39742},"id":"B146D8E9-4E6C-4A03-A2F3-91428AC2D301","eventHandler":{"__isSmartRef__":true,"id":39745},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39746},{"__isSmartRef__":true,"id":39747}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39748},"name":"edge166","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(683.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39742":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39743},{"__isSmartRef__":true,"id":39744}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-12.4,12.0)","_Extent":"lively.pt(13.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39743":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39744":{"isAbsolute":true,"x":-10.356682027649754,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39745":{"morph":{"__isSmartRef__":true,"id":39741},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39746":{"morph":{"__isSmartRef__":true,"id":39741},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39747":{"morph":{"__isSmartRef__":true,"id":39741},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39748":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39749":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39750},"id":"3015B48C-140C-4D82-9CDC-6261F2F62531","eventHandler":{"__isSmartRef__":true,"id":39753},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39754},{"__isSmartRef__":true,"id":39755}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39756},"name":"edge167","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(683.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39750":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39751},{"__isSmartRef__":true,"id":39752}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-7.2,12.0)","_Extent":"lively.pt(8.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39751":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39752":{"isAbsolute":true,"x":-5.178341013824934,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39753":{"morph":{"__isSmartRef__":true,"id":39749},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39754":{"morph":{"__isSmartRef__":true,"id":39749},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39755":{"morph":{"__isSmartRef__":true,"id":39749},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39756":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39757":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39758},"id":"E29C6F9E-A74A-45DF-91DD-4A7D5B166A0A","eventHandler":{"__isSmartRef__":true,"id":39761},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39762},{"__isSmartRef__":true,"id":39763}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39764},"name":"edge168","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(683.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39758":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39759},{"__isSmartRef__":true,"id":39760}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(3.0,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39759":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39760":{"isAbsolute":true,"x":0,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39761":{"morph":{"__isSmartRef__":true,"id":39757},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39762":{"morph":{"__isSmartRef__":true,"id":39757},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39763":{"morph":{"__isSmartRef__":true,"id":39757},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39764":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39765":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39766},"id":"4103EEB0-26DA-4C81-A0AE-ECBD49D69DCD","eventHandler":{"__isSmartRef__":true,"id":39769},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39770},{"__isSmartRef__":true,"id":39771}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39772},"name":"edge169","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(683.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39766":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39767},{"__isSmartRef__":true,"id":39768}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(8.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39767":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39768":{"isAbsolute":true,"x":5.17834101382482,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39769":{"morph":{"__isSmartRef__":true,"id":39765},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39770":{"morph":{"__isSmartRef__":true,"id":39765},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39771":{"morph":{"__isSmartRef__":true,"id":39765},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39772":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39773":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39774},"id":"76265022-36EA-4CEC-A3DA-6A0592BCFFC0","eventHandler":{"__isSmartRef__":true,"id":39777},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39778},{"__isSmartRef__":true,"id":39779}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39780},"name":"edge170","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(683.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39774":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39775},{"__isSmartRef__":true,"id":39776}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(13.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39775":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39776":{"isAbsolute":true,"x":10.356682027649754,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39777":{"morph":{"__isSmartRef__":true,"id":39773},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39778":{"morph":{"__isSmartRef__":true,"id":39773},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39779":{"morph":{"__isSmartRef__":true,"id":39773},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39780":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39781":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39782},"id":"B701615E-49A5-45C0-96A5-E07659AE0550","eventHandler":{"__isSmartRef__":true,"id":39785},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39786},{"__isSmartRef__":true,"id":39787}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39788},"name":"edge171","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(683.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39782":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39783},{"__isSmartRef__":true,"id":39784}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(18.5,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39783":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39784":{"isAbsolute":true,"x":15.535023041474687,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39785":{"morph":{"__isSmartRef__":true,"id":39781},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39786":{"morph":{"__isSmartRef__":true,"id":39781},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39787":{"morph":{"__isSmartRef__":true,"id":39781},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39788":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39789":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39790},"id":"6A2DC546-F317-4355-9D99-46450C81BE22","eventHandler":{"__isSmartRef__":true,"id":39793},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39794},{"__isSmartRef__":true,"id":39795}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39796},"name":"edge172","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(683.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39790":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39791},{"__isSmartRef__":true,"id":39792}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(23.7,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39791":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39792":{"isAbsolute":true,"x":20.713364055299508,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39793":{"morph":{"__isSmartRef__":true,"id":39789},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39794":{"morph":{"__isSmartRef__":true,"id":39789},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39795":{"morph":{"__isSmartRef__":true,"id":39789},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39796":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39797":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39798},"id":"6C29FBE3-64B4-466C-B3EB-9AD111A2F500","eventHandler":{"__isSmartRef__":true,"id":39801},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39802},{"__isSmartRef__":true,"id":39803}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39804},"name":"edge173","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(683.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39798":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39799},{"__isSmartRef__":true,"id":39800}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(28.9,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39799":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39800":{"isAbsolute":true,"x":25.89170506912444,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39801":{"morph":{"__isSmartRef__":true,"id":39797},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39802":{"morph":{"__isSmartRef__":true,"id":39797},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39803":{"morph":{"__isSmartRef__":true,"id":39797},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39804":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39805":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39806},"id":"22D61B99-5A74-40ED-9B15-538167B6452A","eventHandler":{"__isSmartRef__":true,"id":39809},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39810},{"__isSmartRef__":true,"id":39811}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39812},"name":"edge174","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(720.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39806":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39807},{"__isSmartRef__":true,"id":39808}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-7.2,12.0)","_Extent":"lively.pt(8.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39807":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39808":{"isAbsolute":true,"x":-5.178341013824934,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39809":{"morph":{"__isSmartRef__":true,"id":39805},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39810":{"morph":{"__isSmartRef__":true,"id":39805},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39811":{"morph":{"__isSmartRef__":true,"id":39805},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39812":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39813":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39814},"id":"F55F2451-EFB1-4FD5-856B-5AB4811F50C1","eventHandler":{"__isSmartRef__":true,"id":39817},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39818},{"__isSmartRef__":true,"id":39819}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39820},"name":"edge175","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(720.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39814":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39815},{"__isSmartRef__":true,"id":39816}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(3.0,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39815":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39816":{"isAbsolute":true,"x":0,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39817":{"morph":{"__isSmartRef__":true,"id":39813},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39818":{"morph":{"__isSmartRef__":true,"id":39813},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39819":{"morph":{"__isSmartRef__":true,"id":39813},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39820":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39821":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39822},"id":"2CD61BAB-EB3F-479E-BA0D-CD1FC084818D","eventHandler":{"__isSmartRef__":true,"id":39825},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39826},{"__isSmartRef__":true,"id":39827}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39828},"name":"edge176","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(720.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39822":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39823},{"__isSmartRef__":true,"id":39824}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(8.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39823":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39824":{"isAbsolute":true,"x":5.17834101382482,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39825":{"morph":{"__isSmartRef__":true,"id":39821},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39826":{"morph":{"__isSmartRef__":true,"id":39821},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39827":{"morph":{"__isSmartRef__":true,"id":39821},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39828":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39829":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39830},"id":"4B35EB1F-908E-436F-8862-40841D020083","eventHandler":{"__isSmartRef__":true,"id":39833},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39834},{"__isSmartRef__":true,"id":39835}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39836},"name":"edge177","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(720.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39830":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39831},{"__isSmartRef__":true,"id":39832}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(13.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39831":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39832":{"isAbsolute":true,"x":10.356682027649754,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39833":{"morph":{"__isSmartRef__":true,"id":39829},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39834":{"morph":{"__isSmartRef__":true,"id":39829},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39835":{"morph":{"__isSmartRef__":true,"id":39829},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39836":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39837":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39838},"id":"DAEAA4F3-9EFA-473B-81D4-F90F47E50058","eventHandler":{"__isSmartRef__":true,"id":39841},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39842},{"__isSmartRef__":true,"id":39843}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39844},"name":"edge178","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(720.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39838":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39839},{"__isSmartRef__":true,"id":39840}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(18.5,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39839":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39840":{"isAbsolute":true,"x":15.535023041474687,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39841":{"morph":{"__isSmartRef__":true,"id":39837},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39842":{"morph":{"__isSmartRef__":true,"id":39837},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39843":{"morph":{"__isSmartRef__":true,"id":39837},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39844":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39845":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39846},"id":"AD17580E-63FB-4856-8D3F-DCE1F178AB68","eventHandler":{"__isSmartRef__":true,"id":39849},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39850},{"__isSmartRef__":true,"id":39851}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39852},"name":"edge179","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(720.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39846":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39847},{"__isSmartRef__":true,"id":39848}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(23.7,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39847":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39848":{"isAbsolute":true,"x":20.713364055299508,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39849":{"morph":{"__isSmartRef__":true,"id":39845},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39850":{"morph":{"__isSmartRef__":true,"id":39845},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39851":{"morph":{"__isSmartRef__":true,"id":39845},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39852":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39853":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39854},"id":"07552EBA-F1C2-4A03-9358-1C185C9CDECE","eventHandler":{"__isSmartRef__":true,"id":39857},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39858},{"__isSmartRef__":true,"id":39859}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39860},"name":"edge180","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(720.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39854":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39855},{"__isSmartRef__":true,"id":39856}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(28.9,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39855":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39856":{"isAbsolute":true,"x":25.89170506912444,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39857":{"morph":{"__isSmartRef__":true,"id":39853},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39858":{"morph":{"__isSmartRef__":true,"id":39853},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39859":{"morph":{"__isSmartRef__":true,"id":39853},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39860":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39861":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39862},"id":"F2B31745-4AB3-4210-B0FE-B095EDA85E59","eventHandler":{"__isSmartRef__":true,"id":39865},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39866},{"__isSmartRef__":true,"id":39867}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39868},"name":"edge181","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(720.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39862":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39863},{"__isSmartRef__":true,"id":39864}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(34.1,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39863":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39864":{"isAbsolute":true,"x":31.07004608294926,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39865":{"morph":{"__isSmartRef__":true,"id":39861},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39866":{"morph":{"__isSmartRef__":true,"id":39861},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39867":{"morph":{"__isSmartRef__":true,"id":39861},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39868":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39869":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39870},"id":"81B363FA-EA04-4CA2-BC03-1998AF58DB6F","eventHandler":{"__isSmartRef__":true,"id":39873},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39874},{"__isSmartRef__":true,"id":39875}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39876},"name":"edge182","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(756.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39870":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39871},{"__isSmartRef__":true,"id":39872}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(3.0,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39871":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39872":{"isAbsolute":true,"x":0,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39873":{"morph":{"__isSmartRef__":true,"id":39869},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39874":{"morph":{"__isSmartRef__":true,"id":39869},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39875":{"morph":{"__isSmartRef__":true,"id":39869},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39876":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39877":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39878},"id":"80CFCACC-F994-447F-9FDD-BDB101A070FF","eventHandler":{"__isSmartRef__":true,"id":39881},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39882},{"__isSmartRef__":true,"id":39883}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39884},"name":"edge183","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(756.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39878":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39879},{"__isSmartRef__":true,"id":39880}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(8.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39879":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39880":{"isAbsolute":true,"x":5.17834101382482,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39881":{"morph":{"__isSmartRef__":true,"id":39877},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39882":{"morph":{"__isSmartRef__":true,"id":39877},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39883":{"morph":{"__isSmartRef__":true,"id":39877},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39884":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39885":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39886},"id":"6E1FC682-2E82-4920-93FE-C0B060B963A2","eventHandler":{"__isSmartRef__":true,"id":39889},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39890},{"__isSmartRef__":true,"id":39891}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39892},"name":"edge184","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(756.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39886":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39887},{"__isSmartRef__":true,"id":39888}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(13.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39887":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39888":{"isAbsolute":true,"x":10.356682027649754,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39889":{"morph":{"__isSmartRef__":true,"id":39885},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39890":{"morph":{"__isSmartRef__":true,"id":39885},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39891":{"morph":{"__isSmartRef__":true,"id":39885},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39892":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39893":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39894},"id":"170D6E6A-E8B1-4160-8786-7A5E742A0265","eventHandler":{"__isSmartRef__":true,"id":39897},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39898},{"__isSmartRef__":true,"id":39899}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39900},"name":"edge185","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(756.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39894":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39895},{"__isSmartRef__":true,"id":39896}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(18.5,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39895":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39896":{"isAbsolute":true,"x":15.535023041474687,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39897":{"morph":{"__isSmartRef__":true,"id":39893},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39898":{"morph":{"__isSmartRef__":true,"id":39893},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39899":{"morph":{"__isSmartRef__":true,"id":39893},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39900":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39901":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39902},"id":"93AB5390-2631-481F-9AE8-B7535C2FBB32","eventHandler":{"__isSmartRef__":true,"id":39905},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39906},{"__isSmartRef__":true,"id":39907}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39908},"name":"edge186","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(756.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39902":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39903},{"__isSmartRef__":true,"id":39904}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(23.7,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39903":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39904":{"isAbsolute":true,"x":20.713364055299508,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39905":{"morph":{"__isSmartRef__":true,"id":39901},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39906":{"morph":{"__isSmartRef__":true,"id":39901},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39907":{"morph":{"__isSmartRef__":true,"id":39901},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39908":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39909":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39910},"id":"DB5E5F06-1C11-43C1-A05E-3BCB09A144E1","eventHandler":{"__isSmartRef__":true,"id":39913},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39914},{"__isSmartRef__":true,"id":39915}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39916},"name":"edge187","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(756.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39910":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39911},{"__isSmartRef__":true,"id":39912}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(28.9,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39911":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39912":{"isAbsolute":true,"x":25.89170506912444,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39913":{"morph":{"__isSmartRef__":true,"id":39909},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39914":{"morph":{"__isSmartRef__":true,"id":39909},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39915":{"morph":{"__isSmartRef__":true,"id":39909},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39916":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39917":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39918},"id":"609872ED-CDEC-41E9-9D94-62AB5E81C1EF","eventHandler":{"__isSmartRef__":true,"id":39921},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39922},{"__isSmartRef__":true,"id":39923}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39924},"name":"edge188","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(756.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39918":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39919},{"__isSmartRef__":true,"id":39920}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(34.1,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39919":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39920":{"isAbsolute":true,"x":31.07004608294926,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39921":{"morph":{"__isSmartRef__":true,"id":39917},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39922":{"morph":{"__isSmartRef__":true,"id":39917},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39923":{"morph":{"__isSmartRef__":true,"id":39917},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39924":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39925":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39926},"id":"EBC1736F-5F4D-48E7-B908-CD29C4EE78DA","eventHandler":{"__isSmartRef__":true,"id":39929},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39930},{"__isSmartRef__":true,"id":39931}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39932},"name":"edge189","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(756.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39926":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39927},{"__isSmartRef__":true,"id":39928}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(39.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39927":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39928":{"isAbsolute":true,"x":36.248387096774195,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39929":{"morph":{"__isSmartRef__":true,"id":39925},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39930":{"morph":{"__isSmartRef__":true,"id":39925},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39931":{"morph":{"__isSmartRef__":true,"id":39925},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39932":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39933":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39934},"id":"1A53145D-748E-4CF2-8B9D-F11535AC84A6","eventHandler":{"__isSmartRef__":true,"id":39937},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39938},{"__isSmartRef__":true,"id":39939}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39940},"name":"edge190","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(756.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39934":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39935},{"__isSmartRef__":true,"id":39936}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(44.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39935":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39936":{"isAbsolute":true,"x":41.426728110599015,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39937":{"morph":{"__isSmartRef__":true,"id":39933},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39938":{"morph":{"__isSmartRef__":true,"id":39933},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39939":{"morph":{"__isSmartRef__":true,"id":39933},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39940":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39941":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39942},"id":"918ED170-A779-48BF-94A7-D11F29734AEA","eventHandler":{"__isSmartRef__":true,"id":39945},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39946},{"__isSmartRef__":true,"id":39947}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39948},"name":"edge191","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(792.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39942":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39943},{"__isSmartRef__":true,"id":39944}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(13.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39943":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39944":{"isAbsolute":true,"x":10.356682027649754,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39945":{"morph":{"__isSmartRef__":true,"id":39941},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39946":{"morph":{"__isSmartRef__":true,"id":39941},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39947":{"morph":{"__isSmartRef__":true,"id":39941},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39948":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39949":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39950},"id":"1EB09B6F-1089-4D69-B5C8-9EB911D517D3","eventHandler":{"__isSmartRef__":true,"id":39953},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39954},{"__isSmartRef__":true,"id":39955}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39956},"name":"edge192","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(792.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39950":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39951},{"__isSmartRef__":true,"id":39952}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(18.5,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39951":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39952":{"isAbsolute":true,"x":15.535023041474687,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39953":{"morph":{"__isSmartRef__":true,"id":39949},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39954":{"morph":{"__isSmartRef__":true,"id":39949},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39955":{"morph":{"__isSmartRef__":true,"id":39949},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39956":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39957":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39958},"id":"6D6A2F5C-7885-46E3-9D0D-98DDA4BADE75","eventHandler":{"__isSmartRef__":true,"id":39961},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39962},{"__isSmartRef__":true,"id":39963}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39964},"name":"edge193","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(792.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39958":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39959},{"__isSmartRef__":true,"id":39960}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(23.7,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39959":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39960":{"isAbsolute":true,"x":20.713364055299508,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39961":{"morph":{"__isSmartRef__":true,"id":39957},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39962":{"morph":{"__isSmartRef__":true,"id":39957},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39963":{"morph":{"__isSmartRef__":true,"id":39957},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39964":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39965":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39966},"id":"2F5463DD-4D5A-4B3C-86F4-FFAB2F536957","eventHandler":{"__isSmartRef__":true,"id":39969},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39970},{"__isSmartRef__":true,"id":39971}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39972},"name":"edge194","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(792.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39966":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39967},{"__isSmartRef__":true,"id":39968}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(28.9,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39967":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39968":{"isAbsolute":true,"x":25.89170506912444,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39969":{"morph":{"__isSmartRef__":true,"id":39965},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39970":{"morph":{"__isSmartRef__":true,"id":39965},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39971":{"morph":{"__isSmartRef__":true,"id":39965},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39972":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39973":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39974},"id":"45E2BFB2-AA31-4F5B-BAF2-4284F0396541","eventHandler":{"__isSmartRef__":true,"id":39977},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39978},{"__isSmartRef__":true,"id":39979}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39980},"name":"edge195","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(792.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39974":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39975},{"__isSmartRef__":true,"id":39976}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(34.1,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39975":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39976":{"isAbsolute":true,"x":31.07004608294926,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39977":{"morph":{"__isSmartRef__":true,"id":39973},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39978":{"morph":{"__isSmartRef__":true,"id":39973},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39979":{"morph":{"__isSmartRef__":true,"id":39973},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39980":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39981":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39982},"id":"541E293D-A9E2-4D27-A3FE-9C948AF86EC5","eventHandler":{"__isSmartRef__":true,"id":39985},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39986},{"__isSmartRef__":true,"id":39987}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39988},"name":"edge196","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(828.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39982":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39983},{"__isSmartRef__":true,"id":39984}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(3.0,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39983":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39984":{"isAbsolute":true,"x":0,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39985":{"morph":{"__isSmartRef__":true,"id":39981},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39986":{"morph":{"__isSmartRef__":true,"id":39981},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39987":{"morph":{"__isSmartRef__":true,"id":39981},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39988":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39989":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39990},"id":"558D93B6-48D8-466D-A899-0CC1B6B74224","eventHandler":{"__isSmartRef__":true,"id":39993},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":39994},{"__isSmartRef__":true,"id":39995}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":39996},"name":"edge197","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(828.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39990":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39991},{"__isSmartRef__":true,"id":39992}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(8.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39991":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39992":{"isAbsolute":true,"x":5.17834101382482,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"39993":{"morph":{"__isSmartRef__":true,"id":39989},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39994":{"morph":{"__isSmartRef__":true,"id":39989},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39995":{"morph":{"__isSmartRef__":true,"id":39989},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"39996":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"39997":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":39998},"id":"9EE5FCE0-FC9F-410C-935B-DCCD4C92F6D3","eventHandler":{"__isSmartRef__":true,"id":40001},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40002},{"__isSmartRef__":true,"id":40003}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40004},"name":"edge198","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(828.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"39998":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":39999},{"__isSmartRef__":true,"id":40000}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(13.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"39999":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40000":{"isAbsolute":true,"x":10.356682027649754,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40001":{"morph":{"__isSmartRef__":true,"id":39997},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40002":{"morph":{"__isSmartRef__":true,"id":39997},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40003":{"morph":{"__isSmartRef__":true,"id":39997},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40004":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40005":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40006},"id":"843D2F51-ACAA-4303-A004-322A7D6A112A","eventHandler":{"__isSmartRef__":true,"id":40009},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40010},{"__isSmartRef__":true,"id":40011}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40012},"name":"edge199","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(828.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40006":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40007},{"__isSmartRef__":true,"id":40008}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(18.5,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40007":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40008":{"isAbsolute":true,"x":15.535023041474687,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40009":{"morph":{"__isSmartRef__":true,"id":40005},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40010":{"morph":{"__isSmartRef__":true,"id":40005},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40011":{"morph":{"__isSmartRef__":true,"id":40005},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40012":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40013":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40014},"id":"78B59EAB-AA52-4C49-BDA9-F2FA629E1786","eventHandler":{"__isSmartRef__":true,"id":40017},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40018},{"__isSmartRef__":true,"id":40019}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40020},"name":"edge200","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(828.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40014":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40015},{"__isSmartRef__":true,"id":40016}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(23.7,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40015":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40016":{"isAbsolute":true,"x":20.713364055299508,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40017":{"morph":{"__isSmartRef__":true,"id":40013},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40018":{"morph":{"__isSmartRef__":true,"id":40013},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40019":{"morph":{"__isSmartRef__":true,"id":40013},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40020":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40021":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40022},"id":"1EE8F980-D4EA-4BB3-92DF-BC69EB27B4FA","eventHandler":{"__isSmartRef__":true,"id":40025},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40026},{"__isSmartRef__":true,"id":40027}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40028},"name":"edge201","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(865.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40022":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40023},{"__isSmartRef__":true,"id":40024}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-12.4,12.0)","_Extent":"lively.pt(13.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40023":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40024":{"isAbsolute":true,"x":-10.356682027649754,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40025":{"morph":{"__isSmartRef__":true,"id":40021},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40026":{"morph":{"__isSmartRef__":true,"id":40021},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40027":{"morph":{"__isSmartRef__":true,"id":40021},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40028":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40029":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40030},"id":"D7F06364-284A-4FE1-B535-C9CD453E6A64","eventHandler":{"__isSmartRef__":true,"id":40033},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40034},{"__isSmartRef__":true,"id":40035}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40036},"name":"edge202","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(865.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40030":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40031},{"__isSmartRef__":true,"id":40032}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-7.2,12.0)","_Extent":"lively.pt(8.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40031":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40032":{"isAbsolute":true,"x":-5.178341013824934,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40033":{"morph":{"__isSmartRef__":true,"id":40029},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40034":{"morph":{"__isSmartRef__":true,"id":40029},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40035":{"morph":{"__isSmartRef__":true,"id":40029},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40036":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40037":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40038},"id":"5791DD82-A112-416E-80BC-511CFE183FF8","eventHandler":{"__isSmartRef__":true,"id":40041},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40042},{"__isSmartRef__":true,"id":40043}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40044},"name":"edge203","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(865.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40038":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40039},{"__isSmartRef__":true,"id":40040}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(3.0,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40039":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40040":{"isAbsolute":true,"x":0,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40041":{"morph":{"__isSmartRef__":true,"id":40037},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40042":{"morph":{"__isSmartRef__":true,"id":40037},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40043":{"morph":{"__isSmartRef__":true,"id":40037},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40044":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40045":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40046},"id":"50AA463D-50A8-4F6D-8AC7-F6B3ECBC0F59","eventHandler":{"__isSmartRef__":true,"id":40049},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40050},{"__isSmartRef__":true,"id":40051}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40052},"name":"edge204","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(865.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40046":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40047},{"__isSmartRef__":true,"id":40048}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(8.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40047":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40048":{"isAbsolute":true,"x":5.17834101382482,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40049":{"morph":{"__isSmartRef__":true,"id":40045},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40050":{"morph":{"__isSmartRef__":true,"id":40045},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40051":{"morph":{"__isSmartRef__":true,"id":40045},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40052":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40053":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40054},"id":"9A88B43B-93E8-4A20-827E-10F5D3BE6DC1","eventHandler":{"__isSmartRef__":true,"id":40057},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40058},{"__isSmartRef__":true,"id":40059}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40060},"name":"edge205","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(865.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40054":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40055},{"__isSmartRef__":true,"id":40056}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(13.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40055":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40056":{"isAbsolute":true,"x":10.356682027649754,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40057":{"morph":{"__isSmartRef__":true,"id":40053},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40058":{"morph":{"__isSmartRef__":true,"id":40053},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40059":{"morph":{"__isSmartRef__":true,"id":40053},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40060":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40061":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40062},"id":"4A577FFD-C5F6-4EBA-937B-3FB3A20B3798","eventHandler":{"__isSmartRef__":true,"id":40065},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40066},{"__isSmartRef__":true,"id":40067}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40068},"name":"edge206","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(865.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40062":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40063},{"__isSmartRef__":true,"id":40064}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(18.5,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40063":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40064":{"isAbsolute":true,"x":15.535023041474687,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40065":{"morph":{"__isSmartRef__":true,"id":40061},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40066":{"morph":{"__isSmartRef__":true,"id":40061},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40067":{"morph":{"__isSmartRef__":true,"id":40061},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40068":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40069":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40070},"id":"62F765ED-4BD1-4AFE-8807-60606A85F4D6","eventHandler":{"__isSmartRef__":true,"id":40073},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40074},{"__isSmartRef__":true,"id":40075}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40076},"name":"edge207","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(865.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40070":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40071},{"__isSmartRef__":true,"id":40072}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(23.7,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40071":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40072":{"isAbsolute":true,"x":20.713364055299508,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40073":{"morph":{"__isSmartRef__":true,"id":40069},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40074":{"morph":{"__isSmartRef__":true,"id":40069},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40075":{"morph":{"__isSmartRef__":true,"id":40069},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40076":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40077":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40078},"id":"646D050D-2F8D-4C18-AA0C-C7AD9F1D9054","eventHandler":{"__isSmartRef__":true,"id":40081},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40082},{"__isSmartRef__":true,"id":40083}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40084},"name":"edge208","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(865.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40078":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40079},{"__isSmartRef__":true,"id":40080}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(28.9,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40079":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40080":{"isAbsolute":true,"x":25.89170506912444,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40081":{"morph":{"__isSmartRef__":true,"id":40077},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40082":{"morph":{"__isSmartRef__":true,"id":40077},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40083":{"morph":{"__isSmartRef__":true,"id":40077},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40084":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40085":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40086},"id":"16F9A283-04F4-4AF4-8C0B-90063D5E4D78","eventHandler":{"__isSmartRef__":true,"id":40089},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40090},{"__isSmartRef__":true,"id":40091}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40092},"name":"edge209","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(865.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40086":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40087},{"__isSmartRef__":true,"id":40088}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(34.1,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40087":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40088":{"isAbsolute":true,"x":31.07004608294926,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40089":{"morph":{"__isSmartRef__":true,"id":40085},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40090":{"morph":{"__isSmartRef__":true,"id":40085},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40091":{"morph":{"__isSmartRef__":true,"id":40085},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40092":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40093":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40094},"id":"9DC66A47-8A62-4283-9A0D-E525AEA8A693","eventHandler":{"__isSmartRef__":true,"id":40097},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40098},{"__isSmartRef__":true,"id":40099}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40100},"name":"edge210","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(901.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40094":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40095},{"__isSmartRef__":true,"id":40096}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(3.0,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40095":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40096":{"isAbsolute":true,"x":0,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40097":{"morph":{"__isSmartRef__":true,"id":40093},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40098":{"morph":{"__isSmartRef__":true,"id":40093},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40099":{"morph":{"__isSmartRef__":true,"id":40093},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40100":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40101":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40102},"id":"8CD30AEF-2322-4B66-8F33-F854E3BC206B","eventHandler":{"__isSmartRef__":true,"id":40105},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40106},{"__isSmartRef__":true,"id":40107}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40108},"name":"edge211","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(901.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40102":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40103},{"__isSmartRef__":true,"id":40104}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(8.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40103":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40104":{"isAbsolute":true,"x":5.17834101382482,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40105":{"morph":{"__isSmartRef__":true,"id":40101},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40106":{"morph":{"__isSmartRef__":true,"id":40101},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40107":{"morph":{"__isSmartRef__":true,"id":40101},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40108":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40109":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40110},"id":"2F6B3089-55BF-41AF-9636-871C4105DAD9","eventHandler":{"__isSmartRef__":true,"id":40113},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40114},{"__isSmartRef__":true,"id":40115}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40116},"name":"edge212","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(901.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40110":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40111},{"__isSmartRef__":true,"id":40112}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(13.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40111":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40112":{"isAbsolute":true,"x":10.356682027649754,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40113":{"morph":{"__isSmartRef__":true,"id":40109},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40114":{"morph":{"__isSmartRef__":true,"id":40109},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40115":{"morph":{"__isSmartRef__":true,"id":40109},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40116":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40117":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40118},"id":"886DA20E-520F-462C-B102-92951B5ADFDF","eventHandler":{"__isSmartRef__":true,"id":40121},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40122},{"__isSmartRef__":true,"id":40123}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40124},"name":"edge213","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(901.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40118":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40119},{"__isSmartRef__":true,"id":40120}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(18.5,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40119":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40120":{"isAbsolute":true,"x":15.535023041474687,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40121":{"morph":{"__isSmartRef__":true,"id":40117},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40122":{"morph":{"__isSmartRef__":true,"id":40117},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40123":{"morph":{"__isSmartRef__":true,"id":40117},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40124":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40125":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40126},"id":"75A255F0-218D-4E41-BE43-BEB17A5D494D","eventHandler":{"__isSmartRef__":true,"id":40129},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40130},{"__isSmartRef__":true,"id":40131}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40132},"name":"edge214","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(901.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40126":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40127},{"__isSmartRef__":true,"id":40128}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(23.7,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40127":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40128":{"isAbsolute":true,"x":20.713364055299508,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40129":{"morph":{"__isSmartRef__":true,"id":40125},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40130":{"morph":{"__isSmartRef__":true,"id":40125},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40131":{"morph":{"__isSmartRef__":true,"id":40125},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40132":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40133":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40134},"id":"27D15931-B564-4C33-930E-9BB1A370DD5B","eventHandler":{"__isSmartRef__":true,"id":40137},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40138},{"__isSmartRef__":true,"id":40139}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40140},"name":"edge215","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(901.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40134":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40135},{"__isSmartRef__":true,"id":40136}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(28.9,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40135":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40136":{"isAbsolute":true,"x":25.89170506912444,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40137":{"morph":{"__isSmartRef__":true,"id":40133},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40138":{"morph":{"__isSmartRef__":true,"id":40133},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40139":{"morph":{"__isSmartRef__":true,"id":40133},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40140":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40141":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40142},"id":"14AE0C10-670F-49F1-8131-5C07B1C38DAF","eventHandler":{"__isSmartRef__":true,"id":40145},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40146},{"__isSmartRef__":true,"id":40147}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40148},"name":"edge216","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(901.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40142":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40143},{"__isSmartRef__":true,"id":40144}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(34.1,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40143":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40144":{"isAbsolute":true,"x":31.07004608294926,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40145":{"morph":{"__isSmartRef__":true,"id":40141},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40146":{"morph":{"__isSmartRef__":true,"id":40141},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40147":{"morph":{"__isSmartRef__":true,"id":40141},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40148":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40149":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40150},"id":"75615313-6875-45FE-A689-8D5D40199F15","eventHandler":{"__isSmartRef__":true,"id":40153},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40154},{"__isSmartRef__":true,"id":40155}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40156},"name":"edge217","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(901.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40150":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40151},{"__isSmartRef__":true,"id":40152}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(39.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40151":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40152":{"isAbsolute":true,"x":36.248387096774195,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40153":{"morph":{"__isSmartRef__":true,"id":40149},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40154":{"morph":{"__isSmartRef__":true,"id":40149},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40155":{"morph":{"__isSmartRef__":true,"id":40149},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40156":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40157":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40158},"id":"9EAE13C0-A0BD-47C1-A5D0-EA0BE8669A36","eventHandler":{"__isSmartRef__":true,"id":40161},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40162},{"__isSmartRef__":true,"id":40163}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40164},"name":"edge218","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(901.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40158":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40159},{"__isSmartRef__":true,"id":40160}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(44.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40159":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40160":{"isAbsolute":true,"x":41.426728110599015,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40161":{"morph":{"__isSmartRef__":true,"id":40157},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40162":{"morph":{"__isSmartRef__":true,"id":40157},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40163":{"morph":{"__isSmartRef__":true,"id":40157},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40164":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40165":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40166},"id":"8BFDB183-3A09-429E-A6F2-CC44225CBB13","eventHandler":{"__isSmartRef__":true,"id":40169},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40170},{"__isSmartRef__":true,"id":40171}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40172},"name":"edge219","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(937.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40166":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40167},{"__isSmartRef__":true,"id":40168}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(13.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40167":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40168":{"isAbsolute":true,"x":10.356682027649754,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40169":{"morph":{"__isSmartRef__":true,"id":40165},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40170":{"morph":{"__isSmartRef__":true,"id":40165},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40171":{"morph":{"__isSmartRef__":true,"id":40165},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40172":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40173":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40174},"id":"7580FAEA-9F84-4D9C-A0E0-4E962DF537DD","eventHandler":{"__isSmartRef__":true,"id":40177},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40178},{"__isSmartRef__":true,"id":40179}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40180},"name":"edge220","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(937.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40174":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40175},{"__isSmartRef__":true,"id":40176}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(18.5,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40175":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40176":{"isAbsolute":true,"x":15.535023041474687,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40177":{"morph":{"__isSmartRef__":true,"id":40173},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40178":{"morph":{"__isSmartRef__":true,"id":40173},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40179":{"morph":{"__isSmartRef__":true,"id":40173},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40180":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40181":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40182},"id":"E3BA9928-09D1-4C22-AD9B-07CC1A75B6BA","eventHandler":{"__isSmartRef__":true,"id":40185},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40186},{"__isSmartRef__":true,"id":40187}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40188},"name":"edge221","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(937.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40182":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40183},{"__isSmartRef__":true,"id":40184}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(23.7,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40183":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40184":{"isAbsolute":true,"x":20.713364055299508,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40185":{"morph":{"__isSmartRef__":true,"id":40181},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40186":{"morph":{"__isSmartRef__":true,"id":40181},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40187":{"morph":{"__isSmartRef__":true,"id":40181},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40188":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40189":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40190},"id":"173DA148-0D9E-466C-BF16-94A48A4C03EA","eventHandler":{"__isSmartRef__":true,"id":40193},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40194},{"__isSmartRef__":true,"id":40195}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40196},"name":"edge222","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(937.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40190":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40191},{"__isSmartRef__":true,"id":40192}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(28.9,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40191":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40192":{"isAbsolute":true,"x":25.89170506912444,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40193":{"morph":{"__isSmartRef__":true,"id":40189},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40194":{"morph":{"__isSmartRef__":true,"id":40189},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40195":{"morph":{"__isSmartRef__":true,"id":40189},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40196":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40197":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40198},"id":"8C17EE59-5E75-418C-9CF6-CC472BACE1DF","eventHandler":{"__isSmartRef__":true,"id":40201},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40202},{"__isSmartRef__":true,"id":40203}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40204},"name":"edge223","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(973.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40198":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40199},{"__isSmartRef__":true,"id":40200}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-7.2,12.0)","_Extent":"lively.pt(8.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40199":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40200":{"isAbsolute":true,"x":-5.178341013824934,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40201":{"morph":{"__isSmartRef__":true,"id":40197},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40202":{"morph":{"__isSmartRef__":true,"id":40197},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40203":{"morph":{"__isSmartRef__":true,"id":40197},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40204":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40205":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40206},"id":"24FCF72A-1ACE-4FF2-8199-745446BA2BAD","eventHandler":{"__isSmartRef__":true,"id":40209},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40210},{"__isSmartRef__":true,"id":40211}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40212},"name":"edge224","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(973.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40206":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40207},{"__isSmartRef__":true,"id":40208}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(3.0,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40207":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40208":{"isAbsolute":true,"x":0,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40209":{"morph":{"__isSmartRef__":true,"id":40205},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40210":{"morph":{"__isSmartRef__":true,"id":40205},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40211":{"morph":{"__isSmartRef__":true,"id":40205},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40212":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40213":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40214},"id":"879BEABC-3778-447C-927C-2BFEE03D9417","eventHandler":{"__isSmartRef__":true,"id":40217},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40218},{"__isSmartRef__":true,"id":40219}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40220},"name":"edge225","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(973.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40214":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40215},{"__isSmartRef__":true,"id":40216}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(8.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40215":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40216":{"isAbsolute":true,"x":5.17834101382482,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40217":{"morph":{"__isSmartRef__":true,"id":40213},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40218":{"morph":{"__isSmartRef__":true,"id":40213},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40219":{"morph":{"__isSmartRef__":true,"id":40213},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40220":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40221":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40222},"id":"26C23644-069F-42C2-943B-83CEA8AE9536","eventHandler":{"__isSmartRef__":true,"id":40225},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40226},{"__isSmartRef__":true,"id":40227}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40228},"name":"edge226","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(973.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40222":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40223},{"__isSmartRef__":true,"id":40224}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(13.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40223":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40224":{"isAbsolute":true,"x":10.356682027649867,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40225":{"morph":{"__isSmartRef__":true,"id":40221},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40226":{"morph":{"__isSmartRef__":true,"id":40221},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40227":{"morph":{"__isSmartRef__":true,"id":40221},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40228":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40229":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40230},"id":"33FC43A1-A57D-4393-980F-CB95BC071F89","eventHandler":{"__isSmartRef__":true,"id":40233},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40234},{"__isSmartRef__":true,"id":40235}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40236},"name":"edge227","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(973.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40230":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40231},{"__isSmartRef__":true,"id":40232}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(18.5,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40231":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40232":{"isAbsolute":true,"x":15.535023041474687,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40233":{"morph":{"__isSmartRef__":true,"id":40229},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40234":{"morph":{"__isSmartRef__":true,"id":40229},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40235":{"morph":{"__isSmartRef__":true,"id":40229},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40236":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40237":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40238},"id":"2514C117-88F6-4882-9C7C-8C8423DE367E","eventHandler":{"__isSmartRef__":true,"id":40241},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40242},{"__isSmartRef__":true,"id":40243}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40244},"name":"edge228","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(973.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40238":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40239},{"__isSmartRef__":true,"id":40240}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(23.7,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40239":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40240":{"isAbsolute":true,"x":20.713364055299508,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40241":{"morph":{"__isSmartRef__":true,"id":40237},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40242":{"morph":{"__isSmartRef__":true,"id":40237},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40243":{"morph":{"__isSmartRef__":true,"id":40237},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40244":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40245":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40246},"id":"A953BB99-F958-4C7C-A690-78FC2C3177CE","eventHandler":{"__isSmartRef__":true,"id":40249},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40250},{"__isSmartRef__":true,"id":40251}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40252},"name":"edge229","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(973.7,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40246":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40247},{"__isSmartRef__":true,"id":40248}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(28.9,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40247":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40248":{"isAbsolute":true,"x":25.891705069124555,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40249":{"morph":{"__isSmartRef__":true,"id":40245},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40250":{"morph":{"__isSmartRef__":true,"id":40245},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40251":{"morph":{"__isSmartRef__":true,"id":40245},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40252":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40253":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40254},"id":"E01F4E13-8A60-4755-8E5F-06812071DF0C","eventHandler":{"__isSmartRef__":true,"id":40257},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40258},{"__isSmartRef__":true,"id":40259}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40260},"name":"edge230","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(1010.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40254":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40255},{"__isSmartRef__":true,"id":40256}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-7.2,12.0)","_Extent":"lively.pt(8.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40255":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40256":{"isAbsolute":true,"x":-5.178341013825047,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40257":{"morph":{"__isSmartRef__":true,"id":40253},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40258":{"morph":{"__isSmartRef__":true,"id":40253},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40259":{"morph":{"__isSmartRef__":true,"id":40253},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40260":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40261":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40262},"id":"DDE49B5A-DB19-44BC-9B79-CDF3065EEA36","eventHandler":{"__isSmartRef__":true,"id":40265},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40266},{"__isSmartRef__":true,"id":40267}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40268},"name":"edge231","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(1010.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40262":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40263},{"__isSmartRef__":true,"id":40264}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(3.0,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40263":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40264":{"isAbsolute":true,"x":0,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40265":{"morph":{"__isSmartRef__":true,"id":40261},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40266":{"morph":{"__isSmartRef__":true,"id":40261},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40267":{"morph":{"__isSmartRef__":true,"id":40261},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40268":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40269":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40270},"id":"FFFA1EAF-D722-443B-9749-B332BC6FE030","eventHandler":{"__isSmartRef__":true,"id":40273},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40274},{"__isSmartRef__":true,"id":40275}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40276},"name":"edge232","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(1010.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40270":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40271},{"__isSmartRef__":true,"id":40272}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(8.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40271":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40272":{"isAbsolute":true,"x":5.17834101382482,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40273":{"morph":{"__isSmartRef__":true,"id":40269},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40274":{"morph":{"__isSmartRef__":true,"id":40269},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40275":{"morph":{"__isSmartRef__":true,"id":40269},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40276":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40277":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40278},"id":"326488D0-D437-4C83-9B98-0A3EDEE1A77C","eventHandler":{"__isSmartRef__":true,"id":40281},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40282},{"__isSmartRef__":true,"id":40283}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40284},"name":"edge233","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(1010.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40278":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40279},{"__isSmartRef__":true,"id":40280}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(13.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40279":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40280":{"isAbsolute":true,"x":10.35668202764964,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40281":{"morph":{"__isSmartRef__":true,"id":40277},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40282":{"morph":{"__isSmartRef__":true,"id":40277},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40283":{"morph":{"__isSmartRef__":true,"id":40277},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40284":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40285":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40286},"id":"94C80BC8-2043-4A43-9E3D-EACDBC0BF83A","eventHandler":{"__isSmartRef__":true,"id":40289},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40290},{"__isSmartRef__":true,"id":40291}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40292},"name":"edge234","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(1010.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40286":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40287},{"__isSmartRef__":true,"id":40288}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(18.5,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40287":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40288":{"isAbsolute":true,"x":15.535023041474687,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40289":{"morph":{"__isSmartRef__":true,"id":40285},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40290":{"morph":{"__isSmartRef__":true,"id":40285},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40291":{"morph":{"__isSmartRef__":true,"id":40285},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40292":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40293":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40294},"id":"F785E654-6A21-49B5-91AA-FBD642497D30","eventHandler":{"__isSmartRef__":true,"id":40297},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40298},{"__isSmartRef__":true,"id":40299}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40300},"name":"edge235","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(1010.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40294":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40295},{"__isSmartRef__":true,"id":40296}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(23.7,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40295":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40296":{"isAbsolute":true,"x":20.713364055299508,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40297":{"morph":{"__isSmartRef__":true,"id":40293},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40298":{"morph":{"__isSmartRef__":true,"id":40293},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40299":{"morph":{"__isSmartRef__":true,"id":40293},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40300":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40301":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40302},"id":"CA265A22-E181-4D9A-ADE4-49066B3948A7","eventHandler":{"__isSmartRef__":true,"id":40305},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40306},{"__isSmartRef__":true,"id":40307}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40308},"name":"edge236","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(1010.0,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40302":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40303},{"__isSmartRef__":true,"id":40304}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(28.9,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40303":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40304":{"isAbsolute":true,"x":25.891705069124328,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40305":{"morph":{"__isSmartRef__":true,"id":40301},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40306":{"morph":{"__isSmartRef__":true,"id":40301},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40307":{"morph":{"__isSmartRef__":true,"id":40301},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40308":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40309":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40310},"id":"357AE500-7E92-471F-B45C-A2AD126CA546","eventHandler":{"__isSmartRef__":true,"id":40313},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40314},{"__isSmartRef__":true,"id":40315}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40316},"name":"edge237","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(1046.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40310":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40311},{"__isSmartRef__":true,"id":40312}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-7.2,12.0)","_Extent":"lively.pt(8.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40311":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40312":{"isAbsolute":true,"x":-5.17834101382482,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40313":{"morph":{"__isSmartRef__":true,"id":40309},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40314":{"morph":{"__isSmartRef__":true,"id":40309},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40315":{"morph":{"__isSmartRef__":true,"id":40309},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40316":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40317":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40318},"id":"EF3C01FA-8BC0-45F6-9ADE-DD145ED740B5","eventHandler":{"__isSmartRef__":true,"id":40321},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40322},{"__isSmartRef__":true,"id":40323}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40324},"name":"edge238","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(1046.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40318":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40319},{"__isSmartRef__":true,"id":40320}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(3.0,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40319":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40320":{"isAbsolute":true,"x":0,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40321":{"morph":{"__isSmartRef__":true,"id":40317},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40322":{"morph":{"__isSmartRef__":true,"id":40317},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40323":{"morph":{"__isSmartRef__":true,"id":40317},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40324":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40325":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40326},"id":"0A7FF068-80B5-4DBE-849A-B9F1B66F949D","eventHandler":{"__isSmartRef__":true,"id":40329},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40330},{"__isSmartRef__":true,"id":40331}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40332},"name":"edge239","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(1046.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40326":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40327},{"__isSmartRef__":true,"id":40328}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(8.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40327":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40328":{"isAbsolute":true,"x":5.17834101382482,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40329":{"morph":{"__isSmartRef__":true,"id":40325},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40330":{"morph":{"__isSmartRef__":true,"id":40325},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40331":{"morph":{"__isSmartRef__":true,"id":40325},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40332":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40333":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40334},"id":"DDFAB586-5856-4028-A1BD-F19941AC14BE","eventHandler":{"__isSmartRef__":true,"id":40337},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40338},{"__isSmartRef__":true,"id":40339}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40340},"name":"edge240","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(1046.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40334":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40335},{"__isSmartRef__":true,"id":40336}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(13.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40335":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40336":{"isAbsolute":true,"x":10.35668202764964,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40337":{"morph":{"__isSmartRef__":true,"id":40333},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40338":{"morph":{"__isSmartRef__":true,"id":40333},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40339":{"morph":{"__isSmartRef__":true,"id":40333},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40340":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40341":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40342},"id":"24230924-0B1A-4337-90A9-5F7397D282A4","eventHandler":{"__isSmartRef__":true,"id":40345},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40346},{"__isSmartRef__":true,"id":40347}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40348},"name":"edge241","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(1046.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40342":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40343},{"__isSmartRef__":true,"id":40344}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(18.5,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40343":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40344":{"isAbsolute":true,"x":15.535023041474687,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40345":{"morph":{"__isSmartRef__":true,"id":40341},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40346":{"morph":{"__isSmartRef__":true,"id":40341},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40347":{"morph":{"__isSmartRef__":true,"id":40341},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40348":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40349":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40350},"id":"E6FBA39D-2394-4009-B101-389A2C846AE5","eventHandler":{"__isSmartRef__":true,"id":40353},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40354},{"__isSmartRef__":true,"id":40355}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40356},"name":"edge242","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(1046.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40350":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40351},{"__isSmartRef__":true,"id":40352}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(23.7,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40351":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40352":{"isAbsolute":true,"x":20.713364055299508,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40353":{"morph":{"__isSmartRef__":true,"id":40349},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40354":{"morph":{"__isSmartRef__":true,"id":40349},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40355":{"morph":{"__isSmartRef__":true,"id":40349},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40356":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40357":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40358},"id":"D64205A0-56A3-49B0-958A-4B1D77BB5011","eventHandler":{"__isSmartRef__":true,"id":40361},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40362},{"__isSmartRef__":true,"id":40363}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40364},"name":"edge243","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(1046.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40358":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40359},{"__isSmartRef__":true,"id":40360}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(28.9,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40359":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40360":{"isAbsolute":true,"x":25.891705069124328,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40361":{"morph":{"__isSmartRef__":true,"id":40357},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40362":{"morph":{"__isSmartRef__":true,"id":40357},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40363":{"morph":{"__isSmartRef__":true,"id":40357},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40364":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40365":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40366},"id":"9C2BC65E-808F-4D3D-8509-4BEABACDA20F","eventHandler":{"__isSmartRef__":true,"id":40369},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40370},{"__isSmartRef__":true,"id":40371}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40372},"name":"edge244","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(1046.2,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40366":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40367},{"__isSmartRef__":true,"id":40368}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(34.1,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40367":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40368":{"isAbsolute":true,"x":31.070046082949375,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40369":{"morph":{"__isSmartRef__":true,"id":40365},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40370":{"morph":{"__isSmartRef__":true,"id":40365},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40371":{"morph":{"__isSmartRef__":true,"id":40365},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40372":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40373":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40374},"id":"D68F4EFC-DD33-4DCB-9547-FBEACE3DEE40","eventHandler":{"__isSmartRef__":true,"id":40377},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40378},{"__isSmartRef__":true,"id":40379}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40380},"name":"edge245","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(1082.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40374":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40375},{"__isSmartRef__":true,"id":40376}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(3.0,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40375":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40376":{"isAbsolute":true,"x":0,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40377":{"morph":{"__isSmartRef__":true,"id":40373},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40378":{"morph":{"__isSmartRef__":true,"id":40373},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40379":{"morph":{"__isSmartRef__":true,"id":40373},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40380":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40381":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40382},"id":"29BBD076-3836-4DF9-A5E4-27EDB56F316E","eventHandler":{"__isSmartRef__":true,"id":40385},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40386},{"__isSmartRef__":true,"id":40387}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40388},"name":"edge246","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(1082.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40382":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40383},{"__isSmartRef__":true,"id":40384}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(8.2,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40383":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40384":{"isAbsolute":true,"x":5.17834101382482,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40385":{"morph":{"__isSmartRef__":true,"id":40381},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40386":{"morph":{"__isSmartRef__":true,"id":40381},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40387":{"morph":{"__isSmartRef__":true,"id":40381},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40388":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40389":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40390},"id":"A860072C-6EEE-48B1-9F03-356371BE4C71","eventHandler":{"__isSmartRef__":true,"id":40393},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40394},{"__isSmartRef__":true,"id":40395}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40396},"name":"edge247","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(1082.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40390":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40391},{"__isSmartRef__":true,"id":40392}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(13.4,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40391":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40392":{"isAbsolute":true,"x":10.35668202764964,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40393":{"morph":{"__isSmartRef__":true,"id":40389},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40394":{"morph":{"__isSmartRef__":true,"id":40389},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40395":{"morph":{"__isSmartRef__":true,"id":40389},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40396":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40397":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40398},"id":"7E33B77A-71C1-4614-9F37-891DFD04B1DE","eventHandler":{"__isSmartRef__":true,"id":40401},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40402},{"__isSmartRef__":true,"id":40403}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40404},"name":"edge248","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(1082.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40398":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40399},{"__isSmartRef__":true,"id":40400}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(18.5,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40399":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40400":{"isAbsolute":true,"x":15.535023041474687,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40401":{"morph":{"__isSmartRef__":true,"id":40397},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40402":{"morph":{"__isSmartRef__":true,"id":40397},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40403":{"morph":{"__isSmartRef__":true,"id":40397},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40404":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40405":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40406},"id":"44227D80-95EF-416C-B594-A9C0ED2AF34F","eventHandler":{"__isSmartRef__":true,"id":40409},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40410},{"__isSmartRef__":true,"id":40411}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40412},"name":"edge249","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(1082.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40406":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40407},{"__isSmartRef__":true,"id":40408}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(23.7,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40407":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40408":{"isAbsolute":true,"x":20.713364055299508,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40409":{"morph":{"__isSmartRef__":true,"id":40405},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40410":{"morph":{"__isSmartRef__":true,"id":40405},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40411":{"morph":{"__isSmartRef__":true,"id":40405},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40412":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40413":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40414},"id":"2CF46FC4-B46C-45D2-BDC5-6197979D81A5","eventHandler":{"__isSmartRef__":true,"id":40417},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40418},{"__isSmartRef__":true,"id":40419}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40420},"name":"edge250","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(1082.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40414":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40415},{"__isSmartRef__":true,"id":40416}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(28.9,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40415":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40416":{"isAbsolute":true,"x":25.891705069124328,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40417":{"morph":{"__isSmartRef__":true,"id":40413},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40418":{"morph":{"__isSmartRef__":true,"id":40413},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40419":{"morph":{"__isSmartRef__":true,"id":40413},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40420":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40421":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40422},"id":"5EE17A89-5228-4078-AA8F-4448AEC7BF90","eventHandler":{"__isSmartRef__":true,"id":40425},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40426},{"__isSmartRef__":true,"id":40427}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40428},"name":"edge251","derivationIds":[731,"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(1082.5,124.0)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40422":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40423},{"__isSmartRef__":true,"id":40424}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-2.0,12.0)","_Extent":"lively.pt(34.1,25.0)","_BorderColor":"Color.rgb(0,0,0)"},"40423":{"isAbsolute":true,"x":0,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40424":{"isAbsolute":true,"x":31.070046082949375,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40425":{"morph":{"__isSmartRef__":true,"id":40421},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40426":{"morph":{"__isSmartRef__":true,"id":40421},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40427":{"morph":{"__isSmartRef__":true,"id":40421},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40428":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40429":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(1123.7,434.6)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(204,204,204)","_Padding":"lively.rect(0,0,0,0)"},"40430":{"partsSpaceName":"PartsBin/Basic","comment":"A simple box morph. A really orange one. Its amazing what you can build out of simple boxes.... Who needs stars when you got orange rectangles!","migrationLevel":4,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":40431},{"__isSmartRef__":true,"id":40433},{"__isSmartRef__":true,"id":40435},{"__isSmartRef__":true,"id":40437},{"__isSmartRef__":true,"id":40439},{"__isSmartRef__":true,"id":40441},{"__isSmartRef__":true,"id":40443},{"__isSmartRef__":true,"id":40445}],"revisionOnLoad":184624,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40431":{"date":{"__isSmartRef__":true,"id":40432},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"40432":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (CEST)"},"40433":{"date":{"__isSmartRef__":true,"id":40434},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"40434":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (CEST)"},"40435":{"date":{"__isSmartRef__":true,"id":40436},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"40436":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"40437":{"date":{"__isSmartRef__":true,"id":40438},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"40438":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"40439":{"date":{"__isSmartRef__":true,"id":40440},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"40440":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"40441":{"date":{"__isSmartRef__":true,"id":40442},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"40442":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"40443":{"date":{"__isSmartRef__":true,"id":40444},"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8"},"40444":{"isSerializedDate":true,"string":"Mon Jun 18 2012 19:35:08 GMT+0200 (CEST)"},"40445":{"date":{"__isSmartRef__":true,"id":40446},"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205"},"40446":{"isSerializedDate":true,"string":"Thu Nov 22 2012 10:35:51 GMT+0100 (CET)"},"40447":{"morph":{"__isSmartRef__":true,"id":5408},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40448":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":40449}},"40449":{"test01IsMorph":{"__isSmartRef__":true,"id":40450}},"40450":{"varMapping":{"__isSmartRef__":true,"id":40451},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":40452},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40451":{"this":{"__isSmartRef__":true,"id":40448}},"40452":{},"40453":{"rootNode":{"__isSmartRef__":true,"id":5433},"__LivelyClassName__":"ABPGameTree","__SourceModuleName__":"Global.projects.SWD12.reversi"},"40454":{"isActive":true,"alpha":-10000000000000,"beta":10000000000000,"done":true},"40455":{"morph":{"__isSmartRef__":true,"id":5408},"connectedControlPoints":[],"__serializedExpressions__":["position"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)"},"40456":{"morph":{"__isSmartRef__":true,"id":5408},"connectedControlPoints":[],"__serializedExpressions__":["position"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)"},"40457":{"morph":{"__isSmartRef__":true,"id":5408},"connectedControlPoints":[],"__serializedExpressions__":["position"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)"},"40458":{"morph":{"__isSmartRef__":true,"id":5408},"connectedControlPoints":[],"__serializedExpressions__":["position"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)"},"40459":{"morph":{"__isSmartRef__":true,"id":5408},"connectedControlPoints":[],"__serializedExpressions__":["position"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)"},"40460":{"morph":{"__isSmartRef__":true,"id":5408},"connectedControlPoints":[],"__serializedExpressions__":["position"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)"},"40461":{"morph":{"__isSmartRef__":true,"id":5408},"connectedControlPoints":[],"__serializedExpressions__":["position"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)"},"40462":{"morph":{"__isSmartRef__":true,"id":5408},"connectedControlPoints":[],"__serializedExpressions__":["position"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)"},"40463":{"sourceObj":{"__isSmartRef__":true,"id":5408},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":40464},"targetMethodName":"realignConnection","varMapping":{"__isSmartRef__":true,"id":40554},"dependendConnections":[{"__isSmartRef__":true,"id":40555},{"__isSmartRef__":true,"id":40557},{"__isSmartRef__":true,"id":40559},{"__isSmartRef__":true,"id":40561},{"__isSmartRef__":true,"id":40563},{"__isSmartRef__":true,"id":40565},{"__isSmartRef__":true,"id":40567},{"__isSmartRef__":true,"id":40569}],"oldTransform":{"__isSmartRef__":true,"id":40571},"__LivelyClassName__":"lively.morphic.GeometryTransformConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"40464":{"submorphs":[{"__isSmartRef__":true,"id":40465}],"scripts":[],"shape":{"__isSmartRef__":true,"id":40472},"eventHandler":{"__isSmartRef__":true,"id":40475},"_ClipMode":"visible","derivationIds":[],"id":"2BEA15FB-5CA6-4925-8B4A-0AF0C9EAFC61","droppingEnabled":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":40476},{"__isSmartRef__":true,"id":40477}],"con":{"__isSmartRef__":true,"id":40478},"showsMorphMenu":true,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":40546},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40465":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40466},"eventHandler":{"__isSmartRef__":true,"id":40471},"_ClipMode":"visible","derivationIds":[],"id":"EBEC539D-CC77-4B0A-89D1-5A52FB7E8D91","droppingEnabled":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":40464},"_Rotation":0.2656148054194754,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(491.9,40.0)"},"40466":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40467},{"__isSmartRef__":true,"id":40468},{"__isSmartRef__":true,"id":40469},{"__isSmartRef__":true,"id":40470}],"_BorderWidth":0,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(-12.0,-6.0)","_Extent":"lively.pt(17.0,13.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)"},"40467":{"isAbsolute":true,"x":-11,"y":-5,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40468":{"isAbsolute":true,"x":-11,"y":7,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40469":{"isAbsolute":true,"x":5,"y":1,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40470":{"isAbsolute":true,"x":-11,"y":-5,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40471":{"morph":{"__isSmartRef__":true,"id":40465},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40472":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40473},{"__isSmartRef__":true,"id":40474}],"_BorderWidth":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(285.0,-17.0)","_Extent":"lively.pt(206.9,57.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"40473":{"isAbsolute":true,"x":286,"y":-16,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40474":{"isAbsolute":true,"x":491.85,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40475":{"morph":{"__isSmartRef__":true,"id":40464},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40476":{"morph":{"__isSmartRef__":true,"id":40464},"index":0,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40477":{"morph":{"__isSmartRef__":true,"id":40464},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":40465},"markerDirection":"prev","__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40478":{"sourceObj":{"__isSmartRef__":true,"id":40479},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":5408},"targetMethodName":"autorun","varMapping":{"__isSmartRef__":true,"id":40545},"visualConnector":{"__isSmartRef__":true,"id":40464},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"40479":{"submorphs":[{"__isSmartRef__":true,"id":40480}],"scripts":[],"id":"8D4FD94C-D603-411D-B19D-B20A70D4FD1F","shape":{"__isSmartRef__":true,"id":40485},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":40491},"lighterFill":{"__isSmartRef__":true,"id":40496},"label":{"__isSmartRef__":true,"id":40480},"name":"Button3","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40501},"attributeConnections":[{"__isSmartRef__":true,"id":40512},{"__isSmartRef__":true,"id":40478},{"__isSmartRef__":true,"id":40513},{"__isSmartRef__":true,"id":40515},{"__isSmartRef__":true,"id":40517},{"__isSmartRef__":true,"id":40519},{"__isSmartRef__":true,"id":40521}],"doNotSerialize":["$$fire","$$_Position","$$_Scale","$$_Rotation","$$owner"],"doNotCopyProperties":["$$fire","$$_Position","$$_Scale","$$_Rotation","$$owner"],"eventHandler":{"__isSmartRef__":true,"id":40531},"derivationIds":[7251,"3F26258D-0EE1-4A94-8419-5EE2BB6065A6","B624295D-42E3-4E0A-B370-844C2B43F4F0","F5D160C8-1C2F-47D9-9BE1-2FD26C53BFB3","7D4A1972-76E5-4369-9964-2F6ACB87C81F","C95CA3B7-340C-4EA5-BC6C-D0F013C7C7E1","B5EFC9DC-5E60-4C1B-B452-1BED6BE55E9E"],"_ClipMode":"visible","isPressed":false,"owner":{"__isSmartRef__":true,"id":5137},"_Rotation":0,"_Scale":1,"prevScroll":[0,0],"magnets":[{"__isSmartRef__":true,"id":40532},{"__isSmartRef__":true,"id":40533},{"__isSmartRef__":true,"id":40534},{"__isSmartRef__":true,"id":40535},{"__isSmartRef__":true,"id":40536},{"__isSmartRef__":true,"id":40537},{"__isSmartRef__":true,"id":40538},{"__isSmartRef__":true,"id":40539}],"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":40540},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(286.0,-16.0)","distanceToDragEvent":"lively.pt(45.4,-18.4)"},"40480":{"submorphs":[],"scripts":[],"id":"042ED58F-A124-4A81-B9B2-7DAEE5C3A0B7","shape":{"__isSmartRef__":true,"id":40481},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":100,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":40479},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":40482}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":40484},"_HandStyle":"default","_PointerEvents":"none","derivationIds":[7252,"4881773E-A824-4992-B814-33C8D37580C6","EE955AA4-D648-4DFC-8E2D-08881D605170","7EC413DD-D34D-449D-B448-2F3904B04FA5","7939AA82-2A96-4559-9090-DD58B7C8868A","7AD8E6A9-40EE-4DFD-B063-EAE2F7B01D73","053C7887-1403-4628-BE8B-266056E62D29"],"_MinTextWidth":100,"_MinTextHeight":null,"_FontSize":10,"_WordBreak":"break-all","__serializedExpressions__":["_Position","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"40481":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(59.0,21.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"40482":{"style":{"__isSmartRef__":true,"id":40483},"chunkOwner":{"__isSmartRef__":true,"id":40480},"_id":"_67859","storedString":"Play","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"40483":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"40484":{"morph":{"__isSmartRef__":true,"id":40480},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40485":{"_BorderWidth":1.1840000000000002,"_Fill":{"__isSmartRef__":true,"id":40486},"_BorderRadius":5.2,"_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(59.0,21.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"40486":{"stops":[{"__isSmartRef__":true,"id":40487},{"__isSmartRef__":true,"id":40488},{"__isSmartRef__":true,"id":40489},{"__isSmartRef__":true,"id":40490}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"40487":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"40488":{"offset":0.3,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"40489":{"offset":0.7,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"40490":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(204,204,204)"},"40491":{"stops":[{"__isSmartRef__":true,"id":40492},{"__isSmartRef__":true,"id":40493},{"__isSmartRef__":true,"id":40494},{"__isSmartRef__":true,"id":40495}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"40492":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"40493":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"40494":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"40495":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"40496":{"stops":[{"__isSmartRef__":true,"id":40497},{"__isSmartRef__":true,"id":40498},{"__isSmartRef__":true,"id":40499},{"__isSmartRef__":true,"id":40500}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"40497":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"40498":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"40499":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"40500":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"40501":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","changes":[{"__isSmartRef__":true,"id":40502},{"__isSmartRef__":true,"id":40504},{"__isSmartRef__":true,"id":40506},{"__isSmartRef__":true,"id":40508},{"__isSmartRef__":true,"id":40510}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40502":{"date":{"__isSmartRef__":true,"id":40503},"author":"undefined","message":"","id":"7074B413-6CF0-4892-9D18-52009A2A2E03"},"40503":{"isSerializedDate":true,"string":"Fri Apr 13 2012 21:04:01 GMT+0200 (CEST)"},"40504":{"date":{"__isSmartRef__":true,"id":40505},"author":"sstamm","message":"reverted button","id":"9B7AA90A-42FC-4DE8-A4DE-51AB903A740E"},"40505":{"isSerializedDate":true,"string":"Mon Apr 16 2012 10:36:21 GMT+0200 (CEST)"},"40506":{"date":{"__isSmartRef__":true,"id":40507},"author":"robertkrahn","message":"no comment","id":"97D17254-EAC6-4494-8330-A347909590D6"},"40507":{"isSerializedDate":true,"string":"Sat Apr 21 2012 14:08:58 GMT+0200 (CEST)"},"40508":{"date":{"__isSmartRef__":true,"id":40509},"author":"robertkrahn","message":"no comment","id":"DDE22D44-9A6D-4485-80F3-262D5DA0CC07"},"40509":{"isSerializedDate":true,"string":"Tue Jun 05 2012 14:03:19 GMT+0200 (CEST)"},"40510":{"date":{"__isSmartRef__":true,"id":40511},"author":"bgnauk","message":"no comment","id":"FA43C1A3-19A9-4ED6-A014-82C74689A5C3"},"40511":{"isSerializedDate":true,"string":"Tue Jun 19 2012 23:39:23 GMT+0200 (CEST)"},"40512":{"sourceObj":{"__isSmartRef__":true,"id":40479},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":40479},"targetMethodName":"doAction","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"40513":{"sourceObj":{"__isSmartRef__":true,"id":40479},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":40464},"targetMethodName":"realignConnection","varMapping":{"__isSmartRef__":true,"id":40514},"dependendConnections":[{"__isSmartRef__":true,"id":40515},{"__isSmartRef__":true,"id":40517},{"__isSmartRef__":true,"id":40519},{"__isSmartRef__":true,"id":40521},{"__isSmartRef__":true,"id":40523},{"__isSmartRef__":true,"id":40525},{"__isSmartRef__":true,"id":40527},{"__isSmartRef__":true,"id":40529}],"__LivelyClassName__":"lively.morphic.GeometryTransformConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"40514":{"source":{"__isSmartRef__":true,"id":40479},"target":{"__isSmartRef__":true,"id":40464}},"40515":{"sourceObj":{"__isSmartRef__":true,"id":40479},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":40513},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":40516},"dependedBy":{"__isSmartRef__":true,"id":40513},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"40516":{"source":{"__isSmartRef__":true,"id":40479},"target":{"__isSmartRef__":true,"id":40513}},"40517":{"sourceObj":{"__isSmartRef__":true,"id":40479},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":40513},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":40518},"dependedBy":{"__isSmartRef__":true,"id":40513},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"40518":{"source":{"__isSmartRef__":true,"id":40479},"target":{"__isSmartRef__":true,"id":40513}},"40519":{"sourceObj":{"__isSmartRef__":true,"id":40479},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":40513},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":40520},"dependedBy":{"__isSmartRef__":true,"id":40513},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"40520":{"source":{"__isSmartRef__":true,"id":40479},"target":{"__isSmartRef__":true,"id":40513}},"40521":{"sourceObj":{"__isSmartRef__":true,"id":40479},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":40513},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":40522},"dependedBy":{"__isSmartRef__":true,"id":40513},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"40522":{"source":{"__isSmartRef__":true,"id":40479},"target":{"__isSmartRef__":true,"id":40513}},"40523":{"sourceObj":{"__isSmartRef__":true,"id":5137},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":40513},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":40524},"dependedBy":{"__isSmartRef__":true,"id":40513},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"40524":{"source":{"__isSmartRef__":true,"id":5137},"target":{"__isSmartRef__":true,"id":40513}},"40525":{"sourceObj":{"__isSmartRef__":true,"id":5137},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":40513},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":40526},"dependedBy":{"__isSmartRef__":true,"id":40513},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"40526":{"source":{"__isSmartRef__":true,"id":5137},"target":{"__isSmartRef__":true,"id":40513}},"40527":{"sourceObj":{"__isSmartRef__":true,"id":5137},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":40513},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":40528},"dependedBy":{"__isSmartRef__":true,"id":40513},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"40528":{"source":{"__isSmartRef__":true,"id":5137},"target":{"__isSmartRef__":true,"id":40513}},"40529":{"sourceObj":{"__isSmartRef__":true,"id":5137},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":40513},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":40530},"dependedBy":{"__isSmartRef__":true,"id":40513},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"40530":{"source":{"__isSmartRef__":true,"id":5137},"target":{"__isSmartRef__":true,"id":40513}},"40531":{"morph":{"__isSmartRef__":true,"id":40479},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40532":{"morph":{"__isSmartRef__":true,"id":40479},"connectedControlPoints":[],"__serializedExpressions__":["position"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)"},"40533":{"morph":{"__isSmartRef__":true,"id":40479},"connectedControlPoints":[],"__serializedExpressions__":["position"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)"},"40534":{"morph":{"__isSmartRef__":true,"id":40479},"connectedControlPoints":[],"__serializedExpressions__":["position"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)"},"40535":{"morph":{"__isSmartRef__":true,"id":40479},"connectedControlPoints":[],"__serializedExpressions__":["position"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)"},"40536":{"morph":{"__isSmartRef__":true,"id":40479},"connectedControlPoints":[],"__serializedExpressions__":["position"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)"},"40537":{"morph":{"__isSmartRef__":true,"id":40479},"connectedControlPoints":[],"__serializedExpressions__":["position"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)"},"40538":{"morph":{"__isSmartRef__":true,"id":40479},"connectedControlPoints":[],"__serializedExpressions__":["position"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)"},"40539":{"morph":{"__isSmartRef__":true,"id":40479},"connectedControlPoints":[],"__serializedExpressions__":["position"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)"},"40540":{"doAction":{"__isSmartRef__":true,"id":40541}},"40541":{"varMapping":{"__isSmartRef__":true,"id":40542},"source":"function doAction() {\n \n}","funcProperties":{"__isSmartRef__":true,"id":40543},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40542":{"this":{"__isSmartRef__":true,"id":40479}},"40543":{"timestamp":{"__isSmartRef__":true,"id":40544},"user":"robertkrahn","tags":[]},"40544":{"isSerializedDate":true,"string":"Tue Jun 05 2012 14:02:40 GMT+0200 (CEST)"},"40545":{"source":{"__isSmartRef__":true,"id":40479},"target":{"__isSmartRef__":true,"id":5408}},"40546":{"morphMenuItems":{"__isSmartRef__":true,"id":40547}},"40547":{"varMapping":{"__isSmartRef__":true,"id":40548},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = $world;\n var items = [\n ['Edit converter', function() {\n var window = lively.bindings.editConnection(con);\n window.align(window.bounds().topCenter(),\n visualConnector.bounds().bottomCenter())\n }],\n ['Hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['Disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['Cancel', function() {}]\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":40553},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40548":{"this":{"__isSmartRef__":true,"id":40464},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":40549}},"40549":{"$super":{"__isSmartRef__":true,"id":40550}},"40550":{"varMapping":{"__isSmartRef__":true,"id":40551},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":40552},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40551":{"obj":{"__isSmartRef__":true,"id":40464},"name":"morphMenuItems"},"40552":{},"40553":{},"40554":{"source":{"__isSmartRef__":true,"id":5408},"target":{"__isSmartRef__":true,"id":40464}},"40555":{"sourceObj":{"__isSmartRef__":true,"id":5408},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":40463},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":40556},"dependedBy":{"__isSmartRef__":true,"id":40463},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"40556":{"source":{"__isSmartRef__":true,"id":5408},"target":{"__isSmartRef__":true,"id":40463}},"40557":{"sourceObj":{"__isSmartRef__":true,"id":5408},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":40463},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":40558},"dependedBy":{"__isSmartRef__":true,"id":40463},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"40558":{"source":{"__isSmartRef__":true,"id":5408},"target":{"__isSmartRef__":true,"id":40463}},"40559":{"sourceObj":{"__isSmartRef__":true,"id":5408},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":40463},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":40560},"dependedBy":{"__isSmartRef__":true,"id":40463},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"40560":{"source":{"__isSmartRef__":true,"id":5408},"target":{"__isSmartRef__":true,"id":40463}},"40561":{"sourceObj":{"__isSmartRef__":true,"id":5408},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":40463},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":40562},"dependedBy":{"__isSmartRef__":true,"id":40463},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"40562":{"source":{"__isSmartRef__":true,"id":5408},"target":{"__isSmartRef__":true,"id":40463}},"40563":{"sourceObj":{"__isSmartRef__":true,"id":5137},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":40463},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":40564},"dependedBy":{"__isSmartRef__":true,"id":40463},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"40564":{"source":{"__isSmartRef__":true,"id":5137},"target":{"__isSmartRef__":true,"id":40463}},"40565":{"sourceObj":{"__isSmartRef__":true,"id":5137},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":40463},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":40566},"dependedBy":{"__isSmartRef__":true,"id":40463},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"40566":{"source":{"__isSmartRef__":true,"id":5137},"target":{"__isSmartRef__":true,"id":40463}},"40567":{"sourceObj":{"__isSmartRef__":true,"id":5137},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":40463},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":40568},"dependedBy":{"__isSmartRef__":true,"id":40463},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"40568":{"source":{"__isSmartRef__":true,"id":5137},"target":{"__isSmartRef__":true,"id":40463}},"40569":{"sourceObj":{"__isSmartRef__":true,"id":5137},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":40463},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":40570},"dependedBy":{"__isSmartRef__":true,"id":40463},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"40570":{"source":{"__isSmartRef__":true,"id":5137},"target":{"__isSmartRef__":true,"id":40463}},"40571":{"d":1,"a":1,"f":468,"e":26,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":40572},"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"40572":{"a":1,"b":0,"c":0,"d":1,"e":26,"f":468,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"40573":{"init":{"__isSmartRef__":true,"id":40574},"setState":{"__isSmartRef__":true,"id":40578},"drawSkeleton":{"__isSmartRef__":true,"id":40582},"clean":{"__isSmartRef__":true,"id":40586},"getNewNode":{"__isSmartRef__":true,"id":40590},"buildSkeleton":{"__isSmartRef__":true,"id":40594},"getMovesCount":{"__isSmartRef__":true,"id":40598},"addNode":{"__isSmartRef__":true,"id":40602},"arrangeNode":{"__isSmartRef__":true,"id":40606},"connect":{"__isSmartRef__":true,"id":40610},"getNewEdge":{"__isSmartRef__":true,"id":40614},"finishStep":{"__isSmartRef__":true,"id":40618},"ABPreturn":{"__isSmartRef__":true,"id":40622},"ABPdone":{"__isSmartRef__":true,"id":40626},"ABPinit":{"__isSmartRef__":true,"id":40630},"showOriginalState":{"__isSmartRef__":true,"id":40634},"showStateOf":{"__isSmartRef__":true,"id":40638},"getGame":{"__isSmartRef__":true,"id":40642},"resize":{"__isSmartRef__":true,"id":40646},"NegaMaxInit":{"__isSmartRef__":true,"id":40650},"ABPstop":{"__isSmartRef__":true,"id":40654},"autorun":{"__isSmartRef__":true,"id":40658},"makeStep":{"__isSmartRef__":true,"id":40662},"initAlgorithm":{"__isSmartRef__":true,"id":40666}},"40574":{"varMapping":{"__isSmartRef__":true,"id":40575},"source":"function init() {\n this.levels = new Array();\n this.gameTree = new ABPGameTree();\n this.clean();\n delete this.nextStep;\n\n }","funcProperties":{"__isSmartRef__":true,"id":40576},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40575":{"this":{"__isSmartRef__":true,"id":5408}},"40576":{"timestamp":{"__isSmartRef__":true,"id":40577},"user":"sebastianwoinar","tags":[]},"40577":{"isSerializedDate":true,"string":"Tue Dec 11 2012 10:18:14 GMT+0100 (CET)"},"40578":{"varMapping":{"__isSmartRef__":true,"id":40579},"source":"function setState(state) {\n this.resize();\n this.init();\n this.gameTree.buildWithState(state);\n this.buildSkeleton();\n this.drawSkeleton();\n}","funcProperties":{"__isSmartRef__":true,"id":40580},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40579":{"this":{"__isSmartRef__":true,"id":5408}},"40580":{"timestamp":{"__isSmartRef__":true,"id":40581},"user":"sebastianwoinar","tags":[]},"40581":{"isSerializedDate":true,"string":"Tue Dec 04 2012 15:39:56 GMT+0100 (CET)"},"40582":{"varMapping":{"__isSmartRef__":true,"id":40583},"source":"function drawSkeleton() {\n debugger;\n var extent = this.getExtent();\n for (var i = 0; i < this.levels.length; i++) {\n var distance = extent.x/(this.levels[i].length + 1);\n for (var j = 0; j < this.levels[i].length; j++){\n var node = this.levels[i][j];\n this.arrangeNode(node, distance, i, j);\n this.connect(node, node.getParent());\n }\n };\n}","funcProperties":{"__isSmartRef__":true,"id":40584},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40583":{"this":{"__isSmartRef__":true,"id":5408}},"40584":{"timestamp":{"__isSmartRef__":true,"id":40585},"user":"sebastianwoinar","tags":[]},"40585":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:55:54 GMT+0100 (CET)"},"40586":{"varMapping":{"__isSmartRef__":true,"id":40587},"source":"function clean() {\n this.submorphs.each(function(morph){\n morph.remove();\n });\n}","funcProperties":{"__isSmartRef__":true,"id":40588},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40587":{"this":{"__isSmartRef__":true,"id":5408}},"40588":{"timestamp":{"__isSmartRef__":true,"id":40589},"user":"sebastianwoinar","tags":[]},"40589":{"isSerializedDate":true,"string":"Tue Nov 27 2012 16:17:34 GMT+0100 (CET)"},"40590":{"varMapping":{"__isSmartRef__":true,"id":40591},"source":"function getNewNode() {\n return $morph(\"node\").copy();\n}","funcProperties":{"__isSmartRef__":true,"id":40592},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40591":{"this":{"__isSmartRef__":true,"id":5408}},"40592":{"timestamp":{"__isSmartRef__":true,"id":40593},"user":"sebastianwoinar","tags":[]},"40593":{"isSerializedDate":true,"string":"Tue Nov 27 2012 16:19:32 GMT+0100 (CET)"},"40594":{"varMapping":{"__isSmartRef__":true,"id":40595},"source":"function buildSkeleton() {\n this.rootNode = this.getNewNode();\n this.rootNode.setNode(this.gameTree.rootNode);\n this.addMorph(this.rootNode);\n this.addNode(this.rootNode);\n this.rootNode.buildChildNodes();\n}","funcProperties":{"__isSmartRef__":true,"id":40596},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40595":{"this":{"__isSmartRef__":true,"id":5408}},"40596":{"timestamp":{"__isSmartRef__":true,"id":40597},"user":"sebastianwoinar","tags":[]},"40597":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:45:04 GMT+0100 (CET)"},"40598":{"varMapping":{"__isSmartRef__":true,"id":40599},"source":"function getMovesCount() {\n return parseInt($morph(\"movesCount\").getTextString());\n}","funcProperties":{"__isSmartRef__":true,"id":40600},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40599":{"this":{"__isSmartRef__":true,"id":5408}},"40600":{"timestamp":{"__isSmartRef__":true,"id":40601},"user":"sebastianwoinar","tags":[]},"40601":{"isSerializedDate":true,"string":"Sat Dec 01 2012 15:35:18 GMT+0100 (CET)"},"40602":{"varMapping":{"__isSmartRef__":true,"id":40603},"source":"function addNode(node) {\n var nodeLevel = node.getLevel();\n if (typeof this.levels[nodeLevel] == \"undefined\") {\n this.levels[nodeLevel] = new Array();\n }\n this.levels[nodeLevel].push(node);\n}","funcProperties":{"__isSmartRef__":true,"id":40604},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40603":{"this":{"__isSmartRef__":true,"id":5408}},"40604":{"timestamp":{"__isSmartRef__":true,"id":40605},"user":"sebastianwoinar","tags":[]},"40605":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:35:56 GMT+0100 (CET)"},"40606":{"varMapping":{"__isSmartRef__":true,"id":40607},"source":"function arrangeNode(node, distance, level, nr) {\n var magicPaddingTop = 60, magicPaddingLeft = 45;\n node.setPosition(pt(magicPaddingLeft + distance*(nr+1)-node.getExtent().x/2,magicPaddingTop + level*50));\n}","funcProperties":{"__isSmartRef__":true,"id":40608},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40607":{"this":{"__isSmartRef__":true,"id":5408}},"40608":{"timestamp":{"__isSmartRef__":true,"id":40609},"user":"sebastianwoinar","tags":[]},"40609":{"isSerializedDate":true,"string":"Sat Dec 01 2012 18:16:05 GMT+0100 (CET)"},"40610":{"varMapping":{"__isSmartRef__":true,"id":40611},"source":"function connect(child, father) {\n if (typeof father == \"undefined\") {\n return;\n }\n var nodeFatherCenter = father.getCenter();\n var nodeChildCenter = child.getCenter();\n var delta = nodeChildCenter.subPt(nodeFatherCenter).addPt(pt(0,-14));\n var edge = this.getNewEdge();\n this.addMorph(edge);\n edge.setPosition(nodeFatherCenter);\n edge.shape.setVertices([pt(0,14),delta]);\n}","funcProperties":{"__isSmartRef__":true,"id":40612},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40611":{"this":{"__isSmartRef__":true,"id":5408}},"40612":{"timestamp":{"__isSmartRef__":true,"id":40613},"user":"sebastianwoinar","tags":[]},"40613":{"isSerializedDate":true,"string":"Mon Dec 10 2012 17:11:05 GMT+0100 (CET)"},"40614":{"varMapping":{"__isSmartRef__":true,"id":40615},"source":"function getNewEdge() {\n return $morph(\"edge\").copy();\n}","funcProperties":{"__isSmartRef__":true,"id":40616},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40615":{"this":{"__isSmartRef__":true,"id":5408}},"40616":{"timestamp":{"__isSmartRef__":true,"id":40617},"user":"sebastianwoinar","tags":[]},"40617":{"isSerializedDate":true,"string":"Sat Dec 01 2012 17:59:40 GMT+0100 (CET)"},"40618":{"varMapping":{"__isSmartRef__":true,"id":40619},"source":"function finishStep(callback) {\n this.abp.nextStep = callback;\n}","funcProperties":{"__isSmartRef__":true,"id":40620},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40619":{"this":{"__isSmartRef__":true,"id":5408}},"40620":{"timestamp":{"__isSmartRef__":true,"id":40621},"user":"sebastianwoinar","tags":[]},"40621":{"isSerializedDate":true,"string":"Sun Dec 02 2012 14:02:11 GMT+0100 (CET)"},"40622":{"varMapping":{"__isSmartRef__":true,"id":40623},"source":"function ABPreturn(callback) {\n this.nextStep = callback;\n}","funcProperties":{"__isSmartRef__":true,"id":40624},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40623":{"this":{"__isSmartRef__":true,"id":5408}},"40624":{"timestamp":{"__isSmartRef__":true,"id":40625},"user":"sebastianwoinar","tags":[]},"40625":{"isSerializedDate":true,"string":"Sun Dec 09 2012 11:04:45 GMT+0100 (CET)"},"40626":{"varMapping":{"__isSmartRef__":true,"id":40627},"source":"function ABPdone() {\n this.abp.done = true;\n alert(\"Done\");\n this.rootNode.markFinalDrawWith(this.rootNode.abp.m);\n}","funcProperties":{"__isSmartRef__":true,"id":40628},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40627":{"this":{"__isSmartRef__":true,"id":5408}},"40628":{"timestamp":{"__isSmartRef__":true,"id":40629},"user":"sebastianwoinar","tags":[]},"40629":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:23:18 GMT+0100 (CET)"},"40630":{"varMapping":{"__isSmartRef__":true,"id":40631},"source":"function ABPinit() {\n var that = this;\n this.abp = {\n \"isActive\" : true,\n \"alpha\" : -10000000000000,\n \"beta\" : 10000000000000,\n \"done\" : false,\n };\n this.nextStep = function(){\n this.rootNode.ABPstart( this.abp.isActive, this.abp.alpha, this.abp.beta, function(){\n that.ABPdone();\n });\n }.bind(this);\n \n}","funcProperties":{"__isSmartRef__":true,"id":40632},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40631":{"this":{"__isSmartRef__":true,"id":5408}},"40632":{"timestamp":{"__isSmartRef__":true,"id":40633},"user":"sebastianwoinar","tags":[]},"40633":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:22:13 GMT+0100 (CET)"},"40634":{"varMapping":{"__isSmartRef__":true,"id":40635},"source":"function showOriginalState() {\n this.showStateOf(this.rootNode);\n}","funcProperties":{"__isSmartRef__":true,"id":40636},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40635":{"this":{"__isSmartRef__":true,"id":5408}},"40636":{"timestamp":{"__isSmartRef__":true,"id":40637},"user":"sebastianwoinar","tags":[]},"40637":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:51:44 GMT+0100 (CET)"},"40638":{"varMapping":{"__isSmartRef__":true,"id":40639},"source":"function showStateOf(node) {\n this.getGame().drawState(node.node.state);\n}","funcProperties":{"__isSmartRef__":true,"id":40640},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40639":{"this":{"__isSmartRef__":true,"id":5408}},"40640":{"timestamp":{"__isSmartRef__":true,"id":40641},"user":"sebastianwoinar","tags":[]},"40641":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:50:59 GMT+0100 (CET)"},"40642":{"varMapping":{"__isSmartRef__":true,"id":40643},"source":"function getGame() {\n return $morph(\"Reversi\");\n}","funcProperties":{"__isSmartRef__":true,"id":40644},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40643":{"this":{"__isSmartRef__":true,"id":5408}},"40644":{"timestamp":{"__isSmartRef__":true,"id":40645},"user":"sebastianwoinar","tags":[]},"40645":{"isSerializedDate":true,"string":"Sun Dec 02 2012 15:49:49 GMT+0100 (CET)"},"40646":{"varMapping":{"__isSmartRef__":true,"id":40647},"source":"function resize() {\n this.setPosition(pt(-70,40)); // sophisticated numbers\n var sizeOfOwner = this.owner.getExtent();\n var mySize = sizeOfOwner.addPt(pt(-20,-96));\n this.setExtent(mySize);\n\n}","funcProperties":{"__isSmartRef__":true,"id":40648},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40647":{"this":{"__isSmartRef__":true,"id":5408}},"40648":{"timestamp":{"__isSmartRef__":true,"id":40649},"user":"sebastianwoinar","tags":[]},"40649":{"isSerializedDate":true,"string":"Tue Dec 04 2012 15:44:49 GMT+0100 (CET)"},"40650":{"varMapping":{"__isSmartRef__":true,"id":40651},"source":"function NegaMaxInit() {\n var that = this;\n this.abp = {\n \"isActive\" : false,\n \"alpha\" : -10000000000000,\n \"beta\" : 10000000000000,\n \"nextStep\" : null,\n \"done\" : false\n };\n this.nextStep = function(){\n this.rootNode.ABPstart( this.abp.isActive, this.abp.alpha, this.abp.beta, function(){\n that.ABPdone();\n });\n }.bind(this);\n \n}","funcProperties":{"__isSmartRef__":true,"id":40652},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40651":{"this":{"__isSmartRef__":true,"id":5408}},"40652":{"timestamp":{"__isSmartRef__":true,"id":40653},"user":"sebastianwoinar","tags":[]},"40653":{"isSerializedDate":true,"string":"Mon Dec 10 2012 14:04:29 GMT+0100 (CET)"},"40654":{"varMapping":{"__isSmartRef__":true,"id":40655},"source":"function ABPstop() {\n if( typeof this.autoRunInterval != \"undefined\") {\n clearInterval(this.autoRunInterval);\n delete this.autoRunInterval;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":40656},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40655":{"this":{"__isSmartRef__":true,"id":5408}},"40656":{"timestamp":{"__isSmartRef__":true,"id":40657},"user":"sebastianwoinar","tags":[]},"40657":{"isSerializedDate":true,"string":"Tue Dec 11 2012 10:22:24 GMT+0100 (CET)"},"40658":{"varMapping":{"__isSmartRef__":true,"id":40659},"source":"function autorun() {\n if(typeof this.autoRunInterval == \"undefined\") {\n var that = this;\n \n if( typeof this.nextStep == \"undefined\") {\n this.initAlgorithm();\n }\n \n var interval = setInterval(function(){ if(that.abp.done){ clearInterval(interval);delete this.autoRunInterval;} else { that.makeStep(); } }.bind(this), 1000);\n this.autoRunInterval = interval;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":40660},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40659":{"this":{"__isSmartRef__":true,"id":5408}},"40660":{"timestamp":{"__isSmartRef__":true,"id":40661},"user":"sebastianwoinar","tags":[]},"40661":{"isSerializedDate":true,"string":"Mon Dec 10 2012 23:35:22 GMT+0100 (CET)"},"40662":{"varMapping":{"__isSmartRef__":true,"id":40663},"source":"function makeStep() {\n if( typeof this.nextStep == \"undefined\") {\n this.initAlgorithm();\n }\n if(this.abp.done == false) {\n this.nextStep();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":40664},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40663":{"this":{"__isSmartRef__":true,"id":5408}},"40664":{"timestamp":{"__isSmartRef__":true,"id":40665},"user":"sebastianwoinar","tags":[]},"40665":{"isSerializedDate":true,"string":"Sun Dec 09 2012 11:03:55 GMT+0100 (CET)"},"40666":{"varMapping":{"__isSmartRef__":true,"id":40667},"source":"function initAlgorithm() {\n if(typeof this.autoRunInterval != \"undefined\") {\n clearInterval(this.autoRunInterval);\n delete this.autoRunInterval;\n }\n \n if( $morph(\"chkbUseABP\").isChecked() ) {\n this.ABPinit();\n } else {\n this.NegaMaxInit();\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":40668},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40667":{"this":{"__isSmartRef__":true,"id":5408}},"40668":{"timestamp":{"__isSmartRef__":true,"id":40669},"user":"sebastianwoinar","tags":[]},"40669":{"isSerializedDate":true,"string":"Tue Dec 11 2012 10:20:32 GMT+0100 (CET)"},"40670":{"source":{"__isSmartRef__":true,"id":5373},"target":{"__isSmartRef__":true,"id":5408}},"40671":{"morph":{"__isSmartRef__":true,"id":5373},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40672":{"doAction":{"__isSmartRef__":true,"id":40673}},"40673":{"varMapping":{"__isSmartRef__":true,"id":40674},"source":"function doAction() {\n \n}","funcProperties":{"__isSmartRef__":true,"id":40675},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40674":{"this":{"__isSmartRef__":true,"id":5373}},"40675":{"timestamp":{"__isSmartRef__":true,"id":40676},"user":"robertkrahn","tags":[]},"40676":{"isSerializedDate":true,"string":"Tue Jun 05 2012 14:02:40 GMT+0200 (CEST)"},"40677":{"submorphs":[],"scripts":[],"id":"C8B16ACA-69BC-4C7F-B954-0DB44FA6F272","shape":{"__isSmartRef__":true,"id":40678},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"movesCount3","partsBinMetaInfo":{"__isSmartRef__":true,"id":40679},"textChunks":[{"__isSmartRef__":true,"id":40690}],"charsReplaced":"Select algorithm","lastFindLoc":16,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":40692},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","D211FB30-6129-4381-BEB8-26856DE96463","0CC6589E-629E-4971-A12A-BB9A7D5C5F66","5CC3357F-7B19-4567-AAFF-0F97EBF55F7C"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"#startLetters":"getTextSt","owner":{"__isSmartRef__":true,"id":5137},"_Rotation":0,"_Scale":1,"priorSelectionRange":[0,15],"__serializedExpressions__":["_Position","textColor","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-74.0,-12.8)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)"},"40678":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(160.5,26.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"40679":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":40680},{"__isSmartRef__":true,"id":40682},{"__isSmartRef__":true,"id":40684},{"__isSmartRef__":true,"id":40686},{"__isSmartRef__":true,"id":40688}],"revisionOnLoad":160159,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40680":{"date":{"__isSmartRef__":true,"id":40681},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"40681":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"40682":{"date":{"__isSmartRef__":true,"id":40683},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"40683":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"40684":{"date":{"__isSmartRef__":true,"id":40685},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"40685":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"40686":{"date":{"__isSmartRef__":true,"id":40687},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"40687":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"40688":{"date":{"__isSmartRef__":true,"id":40689},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"40689":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"40690":{"style":{"__isSmartRef__":true,"id":40691},"morph":{"__isSmartRef__":true,"id":40677},"chunkOwner":{"__isSmartRef__":true,"id":40677},"storedString":"Number of moves","_id":"_19524","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"40691":{"fontSize":11,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"40692":{"morph":{"__isSmartRef__":true,"id":40677},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40693":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40694},"id":"F8DE67DB-819B-4CFD-8F8B-7FC57BDC633F","eventHandler":{"__isSmartRef__":true,"id":40697},"droppingEnabled":true,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":40698},{"__isSmartRef__":true,"id":40699}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40700},"name":"edge","derivationIds":[731],"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":5137},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(259.4,245.4)","distanceToDragEvent":"lively.pt(95.1,-9.5)"},"40694":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":40695},{"__isSmartRef__":true,"id":40696}],"_ClipMode":"visible","_BorderWidth":2,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-108.6,8.0)","_Extent":"lively.pt(109.6,33.0)","_BorderColor":"Color.rgb(0,0,0)"},"40695":{"isAbsolute":true,"x":0,"y":10,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40696":{"isAbsolute":true,"x":-106.6110004440556,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"40697":{"morph":{"__isSmartRef__":true,"id":40693},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40698":{"morph":{"__isSmartRef__":true,"id":40693},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40699":{"morph":{"__isSmartRef__":true,"id":40693},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"40700":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic","comment":"a line","partName":"line","revisionOnLoad":148769,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40701":{"submorphs":[{"__isSmartRef__":true,"id":40702},{"__isSmartRef__":true,"id":40719},{"__isSmartRef__":true,"id":40736},{"__isSmartRef__":true,"id":40741}],"scripts":[],"id":"F6A654A2-EFE1-474E-B4E3-ED309363AE32","shape":{"__isSmartRef__":true,"id":40758},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"ABPstateMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":40759},"eventHandler":{"__isSmartRef__":true,"id":40777},"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","FE91EA31-D8AE-461B-8A49-95DA5FBAE5B4","F38439A3-2F4E-4AC2-BF73-2633C00B1393","6748F5B5-2284-4748-A6EE-F1A261CBAD0B","BBAFB862-93AE-4F89-BCFF-9F1C67B7FE4C","7EC17E78-593A-4CC8-B7E3-859BCBBFE785"],"partTests":{"__isSmartRef__":true,"id":40778},"_ClipMode":"visible","moved":true,"owner":{"__isSmartRef__":true,"id":5137},"prevScroll":[0,0],"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":40783},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(679.4,-41.3)","distanceToDragEvent":"lively.pt(171.0,-10.9)"},"40702":{"submorphs":[],"scripts":[],"id":"C569D035-5C3C-45BB-846D-9CA533E46167","shape":{"__isSmartRef__":true,"id":40703},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"Text","partsBinMetaInfo":{"__isSmartRef__":true,"id":40704},"textChunks":[{"__isSmartRef__":true,"id":40716}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":40718},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":40701},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(7.0,7.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(91.5,-11.9)"},"40703":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(128.7,26.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"40704":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":40705},{"__isSmartRef__":true,"id":40707},{"__isSmartRef__":true,"id":40709},{"__isSmartRef__":true,"id":40711},{"__isSmartRef__":true,"id":40713}],"lastModifiedDate":{"__isSmartRef__":true,"id":40715},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40705":{"date":{"__isSmartRef__":true,"id":40706},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"40706":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"40707":{"date":{"__isSmartRef__":true,"id":40708},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"40708":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"40709":{"date":{"__isSmartRef__":true,"id":40710},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"40710":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"40711":{"date":{"__isSmartRef__":true,"id":40712},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"40712":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"40713":{"date":{"__isSmartRef__":true,"id":40714},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"40714":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"40715":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"40716":{"style":{"__isSmartRef__":true,"id":40717},"morph":{"__isSmartRef__":true,"id":40702},"chunkOwner":{"__isSmartRef__":true,"id":40702},"storedString":"Alpha","_id":"_41336","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"40717":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"40718":{"morph":{"__isSmartRef__":true,"id":40702},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40719":{"submorphs":[],"scripts":[],"id":"E6886695-9840-450D-9D73-588E4CE1E492","shape":{"__isSmartRef__":true,"id":40720},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"Text1","partsBinMetaInfo":{"__isSmartRef__":true,"id":40721},"textChunks":[{"__isSmartRef__":true,"id":40733}],"charsReplaced":"Alpha","lastFindLoc":5,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":40735},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","C569D035-5C3C-45BB-846D-9CA533E46167"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[5,5],"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":40701},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(6.0,29.8)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)"},"40720":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(128.7,26.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"40721":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":40722},{"__isSmartRef__":true,"id":40724},{"__isSmartRef__":true,"id":40726},{"__isSmartRef__":true,"id":40728},{"__isSmartRef__":true,"id":40730}],"revisionOnLoad":160159,"lastModifiedDate":{"__isSmartRef__":true,"id":40732},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40722":{"date":{"__isSmartRef__":true,"id":40723},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"40723":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"40724":{"date":{"__isSmartRef__":true,"id":40725},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"40725":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"40726":{"date":{"__isSmartRef__":true,"id":40727},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"40727":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"40728":{"date":{"__isSmartRef__":true,"id":40729},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"40729":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"40730":{"date":{"__isSmartRef__":true,"id":40731},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"40731":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"40732":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"40733":{"style":{"__isSmartRef__":true,"id":40734},"morph":{"__isSmartRef__":true,"id":40719},"chunkOwner":{"__isSmartRef__":true,"id":40719},"storedString":"Beta","_id":"_41336","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"40734":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"40735":{"morph":{"__isSmartRef__":true,"id":40719},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40736":{"submorphs":[],"scripts":[],"id":"CFC3780D-7C56-4A35-B91E-2353A66C97E7","shape":{"__isSmartRef__":true,"id":40737},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"alpha","partsBinMetaInfo":{"__isSmartRef__":true,"id":40704},"textChunks":[{"__isSmartRef__":true,"id":40738}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":40740},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":40701},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(111.3,3.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)"},"40737":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(128.7,26.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"40738":{"style":{"__isSmartRef__":true,"id":40739},"chunkOwner":{"__isSmartRef__":true,"id":40736},"_id":"_6023","storedString":" 2","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"40739":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"40740":{"morph":{"__isSmartRef__":true,"id":40736},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40741":{"submorphs":[],"scripts":[],"id":"5FAA99FF-D360-466B-976A-5F3B7834F4D0","shape":{"__isSmartRef__":true,"id":40742},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"beta","partsBinMetaInfo":{"__isSmartRef__":true,"id":40743},"textChunks":[{"__isSmartRef__":true,"id":40755}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":40757},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","CFC3780D-7C56-4A35-B91E-2353A66C97E7"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":40701},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(112.3,28.8)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)"},"40742":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(128.7,26.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"40743":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":40744},{"__isSmartRef__":true,"id":40746},{"__isSmartRef__":true,"id":40748},{"__isSmartRef__":true,"id":40750},{"__isSmartRef__":true,"id":40752}],"lastModifiedDate":{"__isSmartRef__":true,"id":40754},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40744":{"date":{"__isSmartRef__":true,"id":40745},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"40745":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"40746":{"date":{"__isSmartRef__":true,"id":40747},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"40747":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"40748":{"date":{"__isSmartRef__":true,"id":40749},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"40749":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"40750":{"date":{"__isSmartRef__":true,"id":40751},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"40751":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"40752":{"date":{"__isSmartRef__":true,"id":40753},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"40753":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"40754":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"40755":{"style":{"__isSmartRef__":true,"id":40756},"chunkOwner":{"__isSmartRef__":true,"id":40741},"_id":"_6024","storedString":" oo","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"40756":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"40757":{"morph":{"__isSmartRef__":true,"id":40741},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40758":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(245.5,67.2)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"40759":{"partsSpaceName":"PartsBin/Basic","comment":"A simple box morph. A really orange one. Its amazing what you can build out of simple boxes.... Who needs stars when you got orange rectangles!","migrationLevel":4,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":40760},{"__isSmartRef__":true,"id":40762},{"__isSmartRef__":true,"id":40764},{"__isSmartRef__":true,"id":40766},{"__isSmartRef__":true,"id":40768},{"__isSmartRef__":true,"id":40770},{"__isSmartRef__":true,"id":40772},{"__isSmartRef__":true,"id":40774}],"lastModifiedDate":{"__isSmartRef__":true,"id":40776},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40760":{"date":{"__isSmartRef__":true,"id":40761},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"40761":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (CEST)"},"40762":{"date":{"__isSmartRef__":true,"id":40763},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"40763":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (CEST)"},"40764":{"date":{"__isSmartRef__":true,"id":40765},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"40765":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"40766":{"date":{"__isSmartRef__":true,"id":40767},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"40767":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"40768":{"date":{"__isSmartRef__":true,"id":40769},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"40769":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"40770":{"date":{"__isSmartRef__":true,"id":40771},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"40771":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"40772":{"date":{"__isSmartRef__":true,"id":40773},"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8"},"40773":{"isSerializedDate":true,"string":"Mon Jun 18 2012 19:35:08 GMT+0200 (CEST)"},"40774":{"date":{"__isSmartRef__":true,"id":40775},"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205"},"40775":{"isSerializedDate":true,"string":"Thu Nov 22 2012 10:35:51 GMT+0100 (CET)"},"40776":{"isSerializedDate":true,"string":"Thu Nov 22 2012 10:33:25 GMT+0100 (CET)"},"40777":{"morph":{"__isSmartRef__":true,"id":40701},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40778":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":40779}},"40779":{"test01IsMorph":{"__isSmartRef__":true,"id":40780}},"40780":{"varMapping":{"__isSmartRef__":true,"id":40781},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":40782},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40781":{"this":{"__isSmartRef__":true,"id":40778}},"40782":{},"40783":{"setAlpha":{"__isSmartRef__":true,"id":40784},"setBeta":{"__isSmartRef__":true,"id":40788}},"40784":{"varMapping":{"__isSmartRef__":true,"id":40785},"source":"function setAlpha(value) {\n if(value > 100000){\n $morph(\"alpha\").setTextString(\" oo\");\n }else if(value < -100000){\n $morph(\"alpha\").setTextString(\"- oo\");\n }else {\n $morph(\"alpha\").setTextString(\" \" + value);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":40786},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40785":{"this":{"__isSmartRef__":true,"id":40701}},"40786":{"timestamp":{"__isSmartRef__":true,"id":40787},"user":"sebastianwoinar","tags":[]},"40787":{"isSerializedDate":true,"string":"Fri Dec 07 2012 22:49:08 GMT+0100 (CET)"},"40788":{"varMapping":{"__isSmartRef__":true,"id":40789},"source":"function setBeta(value) {\n if(value > 100000){\n $morph(\"beta\").setTextString(\" oo\");\n }else if(value < -100000){\n $morph(\"beta\").setTextString(\"- oo\");\n }else {\n $morph(\"beta\").setTextString(\" \" + value);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":40790},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40789":{"this":{"__isSmartRef__":true,"id":40701}},"40790":{"timestamp":{"__isSmartRef__":true,"id":40791},"user":"sebastianwoinar","tags":[]},"40791":{"isSerializedDate":true,"string":"Fri Dec 07 2012 22:49:08 GMT+0100 (CET)"},"40792":{"submorphs":[],"scripts":[],"id":"031DF93A-8386-425C-A29A-1FDCF864792D","shape":{"__isSmartRef__":true,"id":40793},"droppingEnabled":true,"halosEnabled":true,"checked":true,"showsHalos":false,"name":"chkbUseABP","partsBinMetaInfo":{"__isSmartRef__":true,"id":40794},"eventHandler":{"__isSmartRef__":true,"id":40796},"derivationIds":[6345],"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":5137},"moved":true,"_Rotation":0,"_Scale":1,"#startLetters":"","__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.CheckBox","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(224.1,-41.3)"},"40793":{"stringifiedShapeNode":"","__serializedExpressions__":["extent","_Extent"],"__LivelyClassName__":"lively.morphic.Shapes.External","__SourceModuleName__":"Global.lively.morphic.Shapes","extent":"lively.pt(12.0,12.0)","_Extent":"lively.pt(12.0,12.0)"},"40794":{"requiredModules":[],"migrationLevel":2,"partsSpaceName":"PartsBin/Inputs/","partName":"CheckBox","lastModifiedDate":{"__isSmartRef__":true,"id":40795},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40795":{"isSerializedDate":true,"string":"Fri Sep 07 2012 04:04:46 GMT+0200 (CEST)"},"40796":{"morph":{"__isSmartRef__":true,"id":40792},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40797":{"submorphs":[{"__isSmartRef__":true,"id":40798}],"scripts":[],"id":"8A45E8F7-872B-42FD-A5F5-BC62C73C13BE","shape":{"__isSmartRef__":true,"id":40803},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":40809},"lighterFill":{"__isSmartRef__":true,"id":40814},"label":{"__isSmartRef__":true,"id":40798},"name":"Button4","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":40819},"attributeConnections":[{"__isSmartRef__":true,"id":40830},{"__isSmartRef__":true,"id":40831}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":40833},"derivationIds":[7251,"3F26258D-0EE1-4A94-8419-5EE2BB6065A6","B624295D-42E3-4E0A-B370-844C2B43F4F0","F5D160C8-1C2F-47D9-9BE1-2FD26C53BFB3","7D4A1972-76E5-4369-9964-2F6ACB87C81F","C95CA3B7-340C-4EA5-BC6C-D0F013C7C7E1","B5EFC9DC-5E60-4C1B-B452-1BED6BE55E9E","8D4FD94C-D603-411D-B19D-B20A70D4FD1F"],"_ClipMode":"visible","isPressed":false,"owner":{"__isSmartRef__":true,"id":5137},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":40834},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(350.6,-15.0)","distanceToDragEvent":"lively.pt(46.4,-15.4)"},"40798":{"submorphs":[],"scripts":[],"id":"EC467DE3-63D7-4F55-BA5B-601778B06390","shape":{"__isSmartRef__":true,"id":40799},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":100,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":40797},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":40800}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":40802},"_HandStyle":"default","_PointerEvents":"none","derivationIds":[7252,"4881773E-A824-4992-B814-33C8D37580C6","EE955AA4-D648-4DFC-8E2D-08881D605170","7EC413DD-D34D-449D-B448-2F3904B04FA5","7939AA82-2A96-4559-9090-DD58B7C8868A","7AD8E6A9-40EE-4DFD-B063-EAE2F7B01D73","053C7887-1403-4628-BE8B-266056E62D29","042ED58F-A124-4A81-B9B2-7DAEE5C3A0B7"],"_MinTextWidth":100,"_MinTextHeight":null,"_FontSize":10,"_WordBreak":"break-all","__serializedExpressions__":["_Position","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"40799":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(59.0,21.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"40800":{"style":{"__isSmartRef__":true,"id":40801},"chunkOwner":{"__isSmartRef__":true,"id":40798},"_id":"_14400","storedString":"Stop","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"40801":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"40802":{"morph":{"__isSmartRef__":true,"id":40798},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40803":{"_BorderWidth":1.1840000000000002,"_Fill":{"__isSmartRef__":true,"id":40804},"_BorderRadius":5.2,"_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(59.0,21.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"40804":{"stops":[{"__isSmartRef__":true,"id":40805},{"__isSmartRef__":true,"id":40806},{"__isSmartRef__":true,"id":40807},{"__isSmartRef__":true,"id":40808}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"40805":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"40806":{"offset":0.3,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"40807":{"offset":0.7,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"40808":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(204,204,204)"},"40809":{"stops":[{"__isSmartRef__":true,"id":40810},{"__isSmartRef__":true,"id":40811},{"__isSmartRef__":true,"id":40812},{"__isSmartRef__":true,"id":40813}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"40810":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"40811":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"40812":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"40813":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"40814":{"stops":[{"__isSmartRef__":true,"id":40815},{"__isSmartRef__":true,"id":40816},{"__isSmartRef__":true,"id":40817},{"__isSmartRef__":true,"id":40818}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"40815":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"40816":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"40817":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"40818":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"40819":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","changes":[{"__isSmartRef__":true,"id":40820},{"__isSmartRef__":true,"id":40822},{"__isSmartRef__":true,"id":40824},{"__isSmartRef__":true,"id":40826},{"__isSmartRef__":true,"id":40828}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40820":{"date":{"__isSmartRef__":true,"id":40821},"author":"undefined","message":"","id":"7074B413-6CF0-4892-9D18-52009A2A2E03"},"40821":{"isSerializedDate":true,"string":"Fri Apr 13 2012 21:04:01 GMT+0200 (CEST)"},"40822":{"date":{"__isSmartRef__":true,"id":40823},"author":"sstamm","message":"reverted button","id":"9B7AA90A-42FC-4DE8-A4DE-51AB903A740E"},"40823":{"isSerializedDate":true,"string":"Mon Apr 16 2012 10:36:21 GMT+0200 (CEST)"},"40824":{"date":{"__isSmartRef__":true,"id":40825},"author":"robertkrahn","message":"no comment","id":"97D17254-EAC6-4494-8330-A347909590D6"},"40825":{"isSerializedDate":true,"string":"Sat Apr 21 2012 14:08:58 GMT+0200 (CEST)"},"40826":{"date":{"__isSmartRef__":true,"id":40827},"author":"robertkrahn","message":"no comment","id":"DDE22D44-9A6D-4485-80F3-262D5DA0CC07"},"40827":{"isSerializedDate":true,"string":"Tue Jun 05 2012 14:03:19 GMT+0200 (CEST)"},"40828":{"date":{"__isSmartRef__":true,"id":40829},"author":"bgnauk","message":"no comment","id":"FA43C1A3-19A9-4ED6-A014-82C74689A5C3"},"40829":{"isSerializedDate":true,"string":"Tue Jun 19 2012 23:39:23 GMT+0200 (CEST)"},"40830":{"sourceObj":{"__isSmartRef__":true,"id":40797},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":40797},"targetMethodName":"doAction","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"40831":{"sourceObj":{"__isSmartRef__":true,"id":40797},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":5408},"targetMethodName":"ABPstop","varMapping":{"__isSmartRef__":true,"id":40832},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"40832":{"source":{"__isSmartRef__":true,"id":40797},"target":{"__isSmartRef__":true,"id":5408}},"40833":{"morph":{"__isSmartRef__":true,"id":40797},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40834":{"doAction":{"__isSmartRef__":true,"id":40835}},"40835":{"varMapping":{"__isSmartRef__":true,"id":40836},"source":"function doAction() {\n \n}","funcProperties":{"__isSmartRef__":true,"id":40837},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40836":{"this":{"__isSmartRef__":true,"id":40797}},"40837":{"timestamp":{"__isSmartRef__":true,"id":40838},"user":"robertkrahn","tags":[]},"40838":{"isSerializedDate":true,"string":"Tue Jun 05 2012 14:02:40 GMT+0200 (CEST)"},"40839":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(1143.7,530.6)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-81.0,-47.0)"},"40840":{"partsSpaceName":"PartsBin/sd1213/","comment":"Vsualization of the Alpha-Beta-Pruning algorithm","migrationLevel":4,"partName":"AlphaBetaPruning","changes":[{"__isSmartRef__":true,"id":40841},{"__isSmartRef__":true,"id":40843},{"__isSmartRef__":true,"id":40845},{"__isSmartRef__":true,"id":40847},{"__isSmartRef__":true,"id":40849},{"__isSmartRef__":true,"id":40851},{"__isSmartRef__":true,"id":40853},{"__isSmartRef__":true,"id":40855}],"revisionOnLoad":185895,"lastModifiedDate":{"__isSmartRef__":true,"id":40857},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"40841":{"date":{"__isSmartRef__":true,"id":40842},"author":"bgnauk","message":"no comment","id":"30E760F5-3ADF-4006-BBB0-64082A2BA1FD"},"40842":{"isSerializedDate":true,"string":"Thu Jun 07 2012 01:25:20 GMT+0200 (CEST)"},"40843":{"date":{"__isSmartRef__":true,"id":40844},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"40844":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"40845":{"date":{"__isSmartRef__":true,"id":40846},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"40846":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"40847":{"date":{"__isSmartRef__":true,"id":40848},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"40848":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"40849":{"date":{"__isSmartRef__":true,"id":40850},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"40850":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"40851":{"date":{"__isSmartRef__":true,"id":40852},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"40852":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (CEST)"},"40853":{"date":{"__isSmartRef__":true,"id":40854},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"40854":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (CEST)"},"40855":{"date":{"__isSmartRef__":true,"id":40856},"author":"sebastianwoinar","message":"first version","id":"2F234C09-A067-4F86-9918-A4D062196B9B"},"40856":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:54:05 GMT+0100 (CET)"},"40857":{"isSerializedDate":true,"string":"Tue Dec 04 2012 16:54:06 GMT+0100 (CET)"},"40858":{"morph":{"__isSmartRef__":true,"id":5137},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40859":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":40860}},"40860":{"test01IsMorph":{"__isSmartRef__":true,"id":40861}},"40861":{"varMapping":{"__isSmartRef__":true,"id":40862},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":40863},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40862":{"this":{"__isSmartRef__":true,"id":40859}},"40863":{},"40864":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","black","black","black","black"],[null,null,null,"black"],[],[]],"player":"white","nextPlayer":"black","valid":false,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"40865":{"gameboard":[[],[null,null,null,null,"white"],[null,null,null,null,"white"],[null,"black",null,"black","white"],[null,null,"black","black","black","black","black"],[null,null,null,"black"],[],[]],"player":"white","nextPlayer":"black","valid":false,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"40866":{"gameboard":[["black","black","black","black","black","black","black"],[null,"black","black","black","black","white","white","white"],["black","black","white","black","black","black","white","black"],["black","black","black","black","black","white","black","black"],["black","black","white","white","black","white","white","black"],["black","black","white","white","white","white","white","black"],["black","black","black","black","white","white","black","black"],[null,"black","black","black","black","black","black"]],"player":"white","nextPlayer":"black","valid":false,"__LivelyClassName__":"ABPReversiState","__SourceModuleName__":"Global.projects.SWD12.reversi"},"40867":{"getGame":{"__isSmartRef__":true,"id":40868},"setLastState":{"__isSmartRef__":true,"id":40872},"getLastState":{"__isSmartRef__":true,"id":40876},"updateGameTree":{"__isSmartRef__":true,"id":40880},"drawGameTree":{"__isSmartRef__":true,"id":40884}},"40868":{"varMapping":{"__isSmartRef__":true,"id":40869},"source":"function getGame() {\n return $morph(\"Reversi\");\n}","funcProperties":{"__isSmartRef__":true,"id":40870},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40869":{"this":{"__isSmartRef__":true,"id":5137}},"40870":{"timestamp":{"__isSmartRef__":true,"id":40871},"user":"sebastianwoinar","tags":[]},"40871":{"isSerializedDate":true,"string":"Tue Nov 27 2012 15:47:29 GMT+0100 (CET)"},"40872":{"varMapping":{"__isSmartRef__":true,"id":40873},"source":"function setLastState(state) {\n this.state = state;\n}","funcProperties":{"__isSmartRef__":true,"id":40874},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40873":{"this":{"__isSmartRef__":true,"id":5137}},"40874":{"timestamp":{"__isSmartRef__":true,"id":40875},"user":"sebastianwoinar","tags":[]},"40875":{"isSerializedDate":true,"string":"Tue Nov 27 2012 15:54:22 GMT+0100 (CET)"},"40876":{"varMapping":{"__isSmartRef__":true,"id":40877},"source":"function getLastState() {\n return this.state;\n}","funcProperties":{"__isSmartRef__":true,"id":40878},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40877":{"this":{"__isSmartRef__":true,"id":5137}},"40878":{"timestamp":{"__isSmartRef__":true,"id":40879},"user":"sebastianwoinar","tags":[]},"40879":{"isSerializedDate":true,"string":"Tue Nov 27 2012 15:54:33 GMT+0100 (CET)"},"40880":{"varMapping":{"__isSmartRef__":true,"id":40881},"source":"function updateGameTree() {\n if( this.getGame().getState().equalsTo(this.getLastState()) == false ) {\n this.drawGameTree(this.getGame().getState());\n }\n}","funcProperties":{"__isSmartRef__":true,"id":40882},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40881":{"this":{"__isSmartRef__":true,"id":5137}},"40882":{"timestamp":{"__isSmartRef__":true,"id":40883},"user":"sebastianwoinar","tags":[]},"40883":{"isSerializedDate":true,"string":"Tue Nov 27 2012 15:59:04 GMT+0100 (CET)"},"40884":{"varMapping":{"__isSmartRef__":true,"id":40885},"source":"function drawGameTree(state) {\n $morph(\"gameTree\").setState(state);\n}","funcProperties":{"__isSmartRef__":true,"id":40886},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40885":{"this":{"__isSmartRef__":true,"id":5137}},"40886":{"timestamp":{"__isSmartRef__":true,"id":40887},"user":"sebastianwoinar","tags":[]},"40887":{"isSerializedDate":true,"string":"Tue Nov 27 2012 16:30:48 GMT+0100 (CET)"},"40888":{"submorphs":[{"__isSmartRef__":true,"id":40889},{"__isSmartRef__":true,"id":40914},{"__isSmartRef__":true,"id":40939},{"__isSmartRef__":true,"id":40964},{"__isSmartRef__":true,"id":41012}],"scripts":[],"shape":{"__isSmartRef__":true,"id":41328},"eventHandler":{"__isSmartRef__":true,"id":41329},"_ClipMode":"visible","derivationIds":[],"id":"D5E8525D-71C7-47BD-B5A3-12B344B4686E","droppingEnabled":false,"halosEnabled":true,"draggingEnabled":true,"layout":{"__isSmartRef__":true,"id":41330},"LK2":true,"targetMorph":{"__isSmartRef__":true,"id":41012},"reframeHandle":{"__isSmartRef__":true,"id":40889},"bottomReframeHandle":{"__isSmartRef__":true,"id":40914},"rightReframeHandle":{"__isSmartRef__":true,"id":40939},"titleBar":{"__isSmartRef__":true,"id":40964},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"_PreviousBorderWidth":0,"owner":{"__isSmartRef__":true,"id":0},"highlighted":false,"isBeingDragged":false,"prevScroll":[0,0],"__serializedExpressions__":["_Position","contentOffset","prevDragPos"],"__LivelyClassName__":"lively.morphic.Window","__SourceModuleName__":"Global.lively.morphic.Widgets","withoutLayers":["Global.lively.morphic.GrabbingLayer"],"_Position":"lively.pt(1759.0,443.7)","contentOffset":"lively.pt(4.0,22.0)","prevDragPos":"lively.pt(2134.2,450.3)"},"40889":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40890},"eventHandler":{"__isSmartRef__":true,"id":40891},"_ClipMode":"visible","derivationIds":[],"id":"25CF342A-C3E2-47EC-8DE0-F2D8BABAFF0E","droppingEnabled":true,"halosEnabled":true,"_StyleClassNames":["reframe-handle corner"],"owner":{"__isSmartRef__":true,"id":40888},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":40892},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(814.0,562.0)"},"40890":{"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(14.0,14.0)","_Padding":"lively.rect(0,0,0,0)"},"40891":{"morph":{"__isSmartRef__":true,"id":40889},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40892":{"onDragStart":{"__isSmartRef__":true,"id":40893},"onDrag":{"__isSmartRef__":true,"id":40900},"onDragEnd":{"__isSmartRef__":true,"id":40907}},"40893":{"varMapping":{"__isSmartRef__":true,"id":40894},"source":"function onDragStart(evt) {\n this.dragStartPoint = evt.mousePoint;\n this.originalTargetExtent = this.owner.getExtent();\n }","funcProperties":{"__isSmartRef__":true,"id":40899},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40894":{"this":{"__isSmartRef__":true,"id":40889},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":40895}},"40895":{"$super":{"__isSmartRef__":true,"id":40896}},"40896":{"varMapping":{"__isSmartRef__":true,"id":40897},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":40898},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40897":{"obj":{"__isSmartRef__":true,"id":40889},"name":"onDragStart"},"40898":{},"40899":{},"40900":{"varMapping":{"__isSmartRef__":true,"id":40901},"source":"function onDrag(evt) {\n var moveDelta = evt.mousePoint.subPt(this.dragStartPoint)\n var newExtent = this.originalTargetExtent.addPt(moveDelta);\n if (newExtent.x < this.owner.minWidth) newExtent.x = this.owner.minWidth;\n if (newExtent.y < this.owner.minHeight) newExtent.y = this.owner.minHeight;\n this.owner.setExtent(newExtent);\n //console.log(\"WindowExtent: \"+this.owner.getExtent().x+\" , \"+this.owner.getExtent().y);\n this.align(this.bounds().bottomRight(), this.owner.getExtent());\n }","funcProperties":{"__isSmartRef__":true,"id":40906},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40901":{"this":{"__isSmartRef__":true,"id":40889},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":40902}},"40902":{"$super":{"__isSmartRef__":true,"id":40903}},"40903":{"varMapping":{"__isSmartRef__":true,"id":40904},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":40905},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40904":{"obj":{"__isSmartRef__":true,"id":40889},"name":"onDrag"},"40905":{},"40906":{},"40907":{"varMapping":{"__isSmartRef__":true,"id":40908},"source":"function onDragEnd(evt) {\n this.dragStartPoint = null;\n this.originalTargetExtent = null;\n this.owner.alignBottomReframeHandle();\n this.owner.alignRightReframeHandle();\n }","funcProperties":{"__isSmartRef__":true,"id":40913},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40908":{"this":{"__isSmartRef__":true,"id":40889},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":40909}},"40909":{"$super":{"__isSmartRef__":true,"id":40910}},"40910":{"varMapping":{"__isSmartRef__":true,"id":40911},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":40912},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40911":{"obj":{"__isSmartRef__":true,"id":40889},"name":"onDragEnd"},"40912":{},"40913":{},"40914":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40915},"eventHandler":{"__isSmartRef__":true,"id":40916},"_ClipMode":"visible","derivationIds":[],"id":"19CBDA63-259B-41EC-91B2-23AC403B3817","droppingEnabled":true,"halosEnabled":true,"_StyleClassNames":["reframe-handle bottom"],"owner":{"__isSmartRef__":true,"id":40888},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":40917},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,572.0)"},"40915":{"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(814.0,4.0)","_Padding":"lively.rect(0,0,0,0)"},"40916":{"morph":{"__isSmartRef__":true,"id":40914},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40917":{"onDragStart":{"__isSmartRef__":true,"id":40918},"onDrag":{"__isSmartRef__":true,"id":40925},"onDragEnd":{"__isSmartRef__":true,"id":40932}},"40918":{"varMapping":{"__isSmartRef__":true,"id":40919},"source":"function onDragStart(evt) {\n this.dragStartPoint = evt.mousePoint;\n this.originalTargetExtent = this.owner.getExtent();\n }","funcProperties":{"__isSmartRef__":true,"id":40924},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40919":{"this":{"__isSmartRef__":true,"id":40914},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":40920}},"40920":{"$super":{"__isSmartRef__":true,"id":40921}},"40921":{"varMapping":{"__isSmartRef__":true,"id":40922},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":40923},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40922":{"obj":{"__isSmartRef__":true,"id":40914},"name":"onDragStart"},"40923":{},"40924":{},"40925":{"varMapping":{"__isSmartRef__":true,"id":40926},"source":"function onDrag(evt) {\n var moveDelta = pt(0,evt.mousePoint.subPt(this.dragStartPoint).y);\n var newExtent = this.originalTargetExtent.addPt(moveDelta);\n if (newExtent.y < this.owner.minHeight) newExtent.y = this.owner.minHeight;\n this.owner.setExtent(newExtent);\n\n this.align(this.bounds().bottomLeft(), pt(0,this.owner.getExtent().y));\n }","funcProperties":{"__isSmartRef__":true,"id":40931},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40926":{"this":{"__isSmartRef__":true,"id":40914},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":40927}},"40927":{"$super":{"__isSmartRef__":true,"id":40928}},"40928":{"varMapping":{"__isSmartRef__":true,"id":40929},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":40930},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40929":{"obj":{"__isSmartRef__":true,"id":40914},"name":"onDrag"},"40930":{},"40931":{},"40932":{"varMapping":{"__isSmartRef__":true,"id":40933},"source":"function onDragEnd(evt) {\n this.dragStartPoint = null;\n this.originalTargetExtent = null;\n this.owner.alignReframeHandle();\n this.owner.alignRightReframeHandle();\n }","funcProperties":{"__isSmartRef__":true,"id":40938},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40933":{"this":{"__isSmartRef__":true,"id":40914},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":40934}},"40934":{"$super":{"__isSmartRef__":true,"id":40935}},"40935":{"varMapping":{"__isSmartRef__":true,"id":40936},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":40937},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40936":{"obj":{"__isSmartRef__":true,"id":40914},"name":"onDragEnd"},"40937":{},"40938":{},"40939":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40940},"eventHandler":{"__isSmartRef__":true,"id":40941},"_ClipMode":"visible","derivationIds":[],"id":"B6868D03-44AB-4375-B591-3AEB2B3F3048","droppingEnabled":true,"halosEnabled":true,"_StyleClassNames":["reframe-handle right"],"owner":{"__isSmartRef__":true,"id":40888},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":40942},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(824.0,0.0)"},"40940":{"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(4.0,562.0)","_Padding":"lively.rect(0,0,0,0)"},"40941":{"morph":{"__isSmartRef__":true,"id":40939},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40942":{"onDragStart":{"__isSmartRef__":true,"id":40943},"onDrag":{"__isSmartRef__":true,"id":40950},"onDragEnd":{"__isSmartRef__":true,"id":40957}},"40943":{"varMapping":{"__isSmartRef__":true,"id":40944},"source":"function onDragStart(evt) {\n this.dragStartPoint = evt.mousePoint;\n this.originalTargetExtent = this.owner.getExtent();\n }","funcProperties":{"__isSmartRef__":true,"id":40949},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40944":{"this":{"__isSmartRef__":true,"id":40939},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":40945}},"40945":{"$super":{"__isSmartRef__":true,"id":40946}},"40946":{"varMapping":{"__isSmartRef__":true,"id":40947},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":40948},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40947":{"obj":{"__isSmartRef__":true,"id":40939},"name":"onDragStart"},"40948":{},"40949":{},"40950":{"varMapping":{"__isSmartRef__":true,"id":40951},"source":"function onDrag(evt) {\n var moveDelta = pt(evt.mousePoint.subPt(this.dragStartPoint).x,0);\n var newExtent = this.originalTargetExtent.addPt(moveDelta);\n if (newExtent.x < this.owner.minWidth) newExtent.x = this.owner.minWidth;\n\n this.owner.setExtent(newExtent);\n this.align(this.bounds().topRight(), pt(this.owner.getExtent().x,0));\n }","funcProperties":{"__isSmartRef__":true,"id":40956},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40951":{"this":{"__isSmartRef__":true,"id":40939},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":40952}},"40952":{"$super":{"__isSmartRef__":true,"id":40953}},"40953":{"varMapping":{"__isSmartRef__":true,"id":40954},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":40955},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40954":{"obj":{"__isSmartRef__":true,"id":40939},"name":"onDrag"},"40955":{},"40956":{},"40957":{"varMapping":{"__isSmartRef__":true,"id":40958},"source":"function onDragEnd(evt) {\n this.dragStartPoint = null;\n this.originalTargetExtent = null;\n this.owner.alignReframeHandle();\n this.owner.alignBottomReframeHandle();\n }","funcProperties":{"__isSmartRef__":true,"id":40963},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40958":{"this":{"__isSmartRef__":true,"id":40939},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":40959}},"40959":{"$super":{"__isSmartRef__":true,"id":40960}},"40960":{"varMapping":{"__isSmartRef__":true,"id":40961},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":40962},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40961":{"obj":{"__isSmartRef__":true,"id":40939},"name":"onDragEnd"},"40962":{},"40963":{},"40964":{"submorphs":[{"__isSmartRef__":true,"id":40965},{"__isSmartRef__":true,"id":40971},{"__isSmartRef__":true,"id":40984},{"__isSmartRef__":true,"id":40996}],"scripts":[],"shape":{"__isSmartRef__":true,"id":41009},"eventHandler":{"__isSmartRef__":true,"id":41010},"_ClipMode":"visible","derivationIds":[],"id":"F83CE1A9-7AE6-41AC-805F-C00C4E47733A","droppingEnabled":false,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":41011},"windowMorph":{"__isSmartRef__":true,"id":40888},"label":{"__isSmartRef__":true,"id":40965},"closeButton":{"__isSmartRef__":true,"id":40971},"menuButton":{"__isSmartRef__":true,"id":40984},"collapseButton":{"__isSmartRef__":true,"id":40996},"_PreviousBorderWidth":0,"owner":{"__isSmartRef__":true,"id":40888},"prevScroll":[0,0],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.TitleBar","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"40965":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40966},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":40967}],"eventHandler":{"__isSmartRef__":true,"id":40969},"_ClipMode":"hidden","derivationIds":[],"id":"A2B6D2BB-5F01-495F-964F-2FF5A15DBA99","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"isLabel":true,"layout":{"__isSmartRef__":true,"id":40970},"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":40964},"_StyleClassNames":["window-title"],"_TextStylingMode":true,"prevScroll":[0,0],"__serializedExpressions__":["_TextColor","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(64,64,64)","_Position":"lively.pt(21.0,3.0)"},"40966":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(768.0,18.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"40967":{"style":{"__isSmartRef__":true,"id":40968},"chunkOwner":{"__isSmartRef__":true,"id":40965},"_id":"_7483","storedString":"reversi.js:ABPGameboardPosition:-- all --","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"40968":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"40969":{"morph":{"__isSmartRef__":true,"id":40965},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40970":{"resizeWidth":true},"40971":{"submorphs":[{"__isSmartRef__":true,"id":40972}],"scripts":[],"shape":{"__isSmartRef__":true,"id":40977},"eventHandler":{"__isSmartRef__":true,"id":40978},"_ClipMode":"visible","derivationIds":[],"id":"625CD45C-52B3-4119-8A5D-19F65F96A1B3","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":40972},"_PreviousBorderWidth":0,"owner":{"__isSmartRef__":true,"id":40964},"layout":{"__isSmartRef__":true,"id":40979},"_StyleClassNames":["close"],"attributeConnections":[{"__isSmartRef__":true,"id":40980},{"__isSmartRef__":true,"id":40982}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(808.0,3.0)"},"40972":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40973},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":40974}],"eventHandler":{"__isSmartRef__":true,"id":40976},"_ClipMode":"hidden","derivationIds":[],"id":"0C959F33-C2D0-4969-8B96-3ED318D68096","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":40971},"isLabel":true,"eventsAreIgnored":true,"_TextStylingMode":true,"__serializedExpressions__":["_TextColor","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(64,64,64)","_Position":"lively.pt(0.0,-1.0)"},"40973":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"40974":{"style":{"__isSmartRef__":true,"id":40975},"chunkOwner":{"__isSmartRef__":true,"id":40972},"_id":"_5837","storedString":"X","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"40975":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"40976":{"morph":{"__isSmartRef__":true,"id":40972},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40977":{"_BorderWidth":1,"_StrokeOpacity":0,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"40978":{"morph":{"__isSmartRef__":true,"id":40971},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40979":{"moveHorizontal":true},"40980":{"sourceObj":{"__isSmartRef__":true,"id":40971},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":40888},"targetMethodName":"getCloseHelp","varMapping":{"__isSmartRef__":true,"id":40981},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"40981":{"source":{"__isSmartRef__":true,"id":40971},"target":{"__isSmartRef__":true,"id":40888}},"40982":{"sourceObj":{"__isSmartRef__":true,"id":40971},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":40888},"targetMethodName":"initiateShutdown","varMapping":{"__isSmartRef__":true,"id":40983},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"40983":{"source":{"__isSmartRef__":true,"id":40971},"target":{"__isSmartRef__":true,"id":40888}},"40984":{"submorphs":[{"__isSmartRef__":true,"id":40985}],"scripts":[],"shape":{"__isSmartRef__":true,"id":40990},"eventHandler":{"__isSmartRef__":true,"id":40991},"_ClipMode":"visible","derivationIds":[],"id":"C6ABE570-36E8-408F-BB42-E5EA9C6C2577","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":40985},"_PreviousBorderWidth":0,"owner":{"__isSmartRef__":true,"id":40964},"attributeConnections":[{"__isSmartRef__":true,"id":40992},{"__isSmartRef__":true,"id":40994}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(3.0,3.0)"},"40985":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40986},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":40987}],"eventHandler":{"__isSmartRef__":true,"id":40989},"_ClipMode":"hidden","derivationIds":[],"id":"CC285D94-3B33-4DED-8C54-E9C4F1F9C588","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":40984},"isLabel":true,"eventsAreIgnored":true,"_TextStylingMode":true,"__serializedExpressions__":["_TextColor","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(64,64,64)","_Position":"lively.pt(0.0,0.0)"},"40986":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(18.0,17.0)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"40987":{"style":{"__isSmartRef__":true,"id":40988},"chunkOwner":{"__isSmartRef__":true,"id":40985},"_id":"_5839","storedString":"M","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"40988":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"40989":{"morph":{"__isSmartRef__":true,"id":40985},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40990":{"_BorderWidth":1,"_StrokeOpacity":0,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"40991":{"morph":{"__isSmartRef__":true,"id":40984},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40992":{"sourceObj":{"__isSmartRef__":true,"id":40984},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":40888},"targetMethodName":"getMenuHelp","varMapping":{"__isSmartRef__":true,"id":40993},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"40993":{"source":{"__isSmartRef__":true,"id":40984},"target":{"__isSmartRef__":true,"id":40888}},"40994":{"sourceObj":{"__isSmartRef__":true,"id":40984},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":40888},"targetMethodName":"showTargetMorphMenu","varMapping":{"__isSmartRef__":true,"id":40995},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"40995":{"source":{"__isSmartRef__":true,"id":40984},"target":{"__isSmartRef__":true,"id":40888}},"40996":{"submorphs":[{"__isSmartRef__":true,"id":40997}],"scripts":[],"shape":{"__isSmartRef__":true,"id":41002},"eventHandler":{"__isSmartRef__":true,"id":41003},"_ClipMode":"visible","derivationIds":[],"id":"69ECC8F7-1168-45BB-BC0C-6760BEC62C5A","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":40997},"_PreviousBorderWidth":0,"owner":{"__isSmartRef__":true,"id":40964},"layout":{"__isSmartRef__":true,"id":41004},"attributeConnections":[{"__isSmartRef__":true,"id":41005},{"__isSmartRef__":true,"id":41007}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(789.0,3.0)"},"40997":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":40998},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":40999}],"eventHandler":{"__isSmartRef__":true,"id":41001},"_ClipMode":"hidden","derivationIds":[],"id":"ACB9C150-2EE4-441E-931A-E7DCB104EB3A","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":40996},"isLabel":true,"eventsAreIgnored":true,"_TextStylingMode":true,"__serializedExpressions__":["_TextColor","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(64,64,64)","_Position":"lively.pt(0.0,1.0)"},"40998":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"40999":{"style":{"__isSmartRef__":true,"id":41000},"chunkOwner":{"__isSmartRef__":true,"id":40997},"_id":"_5841","storedString":"–","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41000":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41001":{"morph":{"__isSmartRef__":true,"id":40997},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41002":{"_BorderWidth":1,"_StrokeOpacity":0,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"41003":{"morph":{"__isSmartRef__":true,"id":40996},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41004":{"moveHorizontal":true},"41005":{"sourceObj":{"__isSmartRef__":true,"id":40996},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":40888},"targetMethodName":"getCollapseHelp","varMapping":{"__isSmartRef__":true,"id":41006},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41006":{"source":{"__isSmartRef__":true,"id":40996},"target":{"__isSmartRef__":true,"id":40888}},"41007":{"sourceObj":{"__isSmartRef__":true,"id":40996},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":40888},"targetMethodName":"toggleCollapse","varMapping":{"__isSmartRef__":true,"id":41008},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41008":{"source":{"__isSmartRef__":true,"id":40996},"target":{"__isSmartRef__":true,"id":40888}},"41009":{"_AppearanceStylingMode":true,"_BorderStylingMode":true,"_BorderWidth":0,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(828.0,22.0)","_Padding":"lively.rect(0,0,0,0)"},"41010":{"morph":{"__isSmartRef__":true,"id":40964},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41011":{"resizeWidth":true,"adjustForNewBounds":true},"41012":{"submorphs":[{"__isSmartRef__":true,"id":41013},{"__isSmartRef__":true,"id":41295},{"__isSmartRef__":true,"id":41306},{"__isSmartRef__":true,"id":41127},{"__isSmartRef__":true,"id":41194},{"__isSmartRef__":true,"id":41223},{"__isSmartRef__":true,"id":41252},{"__isSmartRef__":true,"id":41317},{"__isSmartRef__":true,"id":41281},{"__isSmartRef__":true,"id":41022},{"__isSmartRef__":true,"id":41036},{"__isSmartRef__":true,"id":41050},{"__isSmartRef__":true,"id":41064},{"__isSmartRef__":true,"id":41078},{"__isSmartRef__":true,"id":41092},{"__isSmartRef__":true,"id":41106}],"scripts":[],"shape":{"__isSmartRef__":true,"id":41325},"eventHandler":{"__isSmartRef__":true,"id":41326},"_ClipMode":"visible","derivationIds":[],"id":"5929EBB1-0803-46EC-A10B-9934F8F02F30","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":41327},"__serializedExpressions__":["_Position"],"locationPane":{"__isSmartRef__":true,"id":41013},"codeBaseDirBtn":{"__isSmartRef__":true,"id":41295},"localDirBtn":{"__isSmartRef__":true,"id":41306},"Pane1":{"__isSmartRef__":true,"id":41127},"Pane2":{"__isSmartRef__":true,"id":41194},"Pane3":{"__isSmartRef__":true,"id":41223},"Pane4":{"__isSmartRef__":true,"id":41252},"midResizer":{"__isSmartRef__":true,"id":41317},"sourcePane":{"__isSmartRef__":true,"id":41281},"ownerWidget":{"__isSmartRef__":true,"id":41020},"owner":{"__isSmartRef__":true,"id":40888},"__LivelyClassName__":"lively.ide.BrowserPanel","__SourceModuleName__":"Global.lively.ide.BrowserFramework","_Position":"lively.pt(4.0,22.0)"},"41013":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":41014},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":41015}],"eventHandler":{"__isSmartRef__":true,"id":41017},"_ClipMode":"hidden","derivationIds":[],"id":"64000BDB-AC3B-4E7A-BF47-415B77B9BEF7","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":true,"_HandStyle":null,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":8,"__serializedExpressions__":["_TextColor","_Position"],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":41012},"isInputLine":true,"layout":{"__isSmartRef__":true,"id":41018},"noEval":true,"styleClass":["Browser_locationInput"],"attributeConnections":[{"__isSmartRef__":true,"id":41019}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(102,102,102)","_Position":"lively.pt(0.0,0.0)"},"41014":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"_BorderWidth":0,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(656.0,16.5)","_Padding":"lively.rect(1,1,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"41015":{"style":{"__isSmartRef__":true,"id":41016},"chunkOwner":{"__isSmartRef__":true,"id":41013},"_id":"_47","storedString":"http://lively-kernel.org/repository/webwerkstatt/core/","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41016":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41017":{"morph":{"__isSmartRef__":true,"id":41013},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41018":{"scaleVertical":true,"scaleHorizontal":true},"41019":{"sourceObj":{"__isSmartRef__":true,"id":41013},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":41020},"targetMethodName":"setTargetURL","varMapping":{"__isSmartRef__":true,"id":41294},"converterString":"function (value) { return new URL(value) }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41020":{"buttonCommands":[{"__isSmartRef__":true,"id":41021},{"__isSmartRef__":true,"id":41035},{"__isSmartRef__":true,"id":41049},{"__isSmartRef__":true,"id":41063},{"__isSmartRef__":true,"id":41077},{"__isSmartRef__":true,"id":41091},{"__isSmartRef__":true,"id":41105}],"RootFilters":[{"__isSmartRef__":true,"id":41119}],"Pane1Filters":[{"__isSmartRef__":true,"id":41120},{"__isSmartRef__":true,"id":41121}],"Pane2Filters":[{"__isSmartRef__":true,"id":41122}],"Pane3Filters":[{"__isSmartRef__":true,"id":41123}],"Pane4Filters":[{"__isSmartRef__":true,"id":41124}],"evaluate":true,"targetURL":{"__isSmartRef__":true,"id":41125},"panel":{"__isSmartRef__":true,"id":41012},"attributeConnections":[{"__isSmartRef__":true,"id":41126},{"__isSmartRef__":true,"id":41193},{"__isSmartRef__":true,"id":41222},{"__isSmartRef__":true,"id":41251},{"__isSmartRef__":true,"id":41280},{"__isSmartRef__":true,"id":41292}],"SourceString":"-----","sourceString":"-----","doNotSerialize":["$$targetURL"],"doNotCopyProperties":["$$targetURL"],"_rootNode":{"__isSmartRef__":true,"id":41132},"Pane1Selection":null,"pane1Selection":null,"Pane2Selection":null,"pane2Selection":null,"Pane3Selection":null,"pane3Selection":null,"Pane4Selection":null,"pane4Selection":null,"Pane4Content":["-----"],"Pane3Content":["-----"],"Pane2Content":["-----"],"Pane1Content":[{"__isSmartRef__":true,"id":41129},{"__isSmartRef__":true,"id":41155},{"__isSmartRef__":true,"id":41156},{"__isSmartRef__":true,"id":41157},{"__isSmartRef__":true,"id":41158},{"__isSmartRef__":true,"id":41159},{"__isSmartRef__":true,"id":41160},{"__isSmartRef__":true,"id":41161},{"__isSmartRef__":true,"id":41162},{"__isSmartRef__":true,"id":41163},{"__isSmartRef__":true,"id":41164},{"__isSmartRef__":true,"id":41165},{"__isSmartRef__":true,"id":41166}],"__LivelyClassName__":"lively.ide.SystemBrowser","__SourceModuleName__":"Global.lively.ide.SystemCodeBrowser"},"41021":{"browser":{"__isSmartRef__":true,"id":41020},"button":{"__isSmartRef__":true,"id":41022},"__LivelyClassName__":"lively.ide.AddNewFileCommand","__SourceModuleName__":"Global.lively.ide.BrowserCommands"},"41022":{"submorphs":[{"__isSmartRef__":true,"id":41023}],"scripts":[],"shape":{"__isSmartRef__":true,"id":41028},"eventHandler":{"__isSmartRef__":true,"id":41029},"_ClipMode":"visible","derivationIds":[],"id":"38C95B89-2752-4580-A087-FB87D58300C7","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"__serializedExpressions__":["_Position"],"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":41023},"_PreviousBorderWidth":1,"command":{"__isSmartRef__":true,"id":41021},"attributeConnections":[{"__isSmartRef__":true,"id":41030},{"__isSmartRef__":true,"id":41032}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"owner":{"__isSmartRef__":true,"id":41012},"layout":{"__isSmartRef__":true,"id":41034},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,220.0)"},"41023":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":41024},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":41025}],"eventHandler":{"__isSmartRef__":true,"id":41027},"_ClipMode":"hidden","derivationIds":[],"id":"C697771C-DF56-408B-AD7A-5E0D38AE27CE","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":9,"__serializedExpressions__":["_TextColor"],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":41022},"isLabel":true,"_Align":"center","eventsAreIgnored":true,"_TextStylingMode":true,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(0,0,0)"},"41024":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":0,"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(117.1,22.0)","_Padding":"lively.rect(0,4,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"41025":{"style":{"__isSmartRef__":true,"id":41026},"chunkOwner":{"__isSmartRef__":true,"id":41023},"_id":"_28","storedString":"Add module","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41026":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41027":{"morph":{"__isSmartRef__":true,"id":41023},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41028":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(117.1,22.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"41029":{"morph":{"__isSmartRef__":true,"id":41022},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41030":{"sourceObj":{"__isSmartRef__":true,"id":41022},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":41021},"targetMethodName":"trigger","varMapping":{"__isSmartRef__":true,"id":41031},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41031":{"source":{"__isSmartRef__":true,"id":41022},"target":{"__isSmartRef__":true,"id":41021}},"41032":{"sourceObj":{"__isSmartRef__":true,"id":41022},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":41022},"targetMethodName":"setLabel","varMapping":{"__isSmartRef__":true,"id":41033},"converterString":"function () { return this.getSourceObj().command.asString() }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41033":{"source":{"__isSmartRef__":true,"id":41022},"target":{"__isSmartRef__":true,"id":41022}},"41034":{"scaleVertical":true,"scaleHorizontal":true},"41035":{"browser":{"__isSmartRef__":true,"id":41020},"button":{"__isSmartRef__":true,"id":41036},"__LivelyClassName__":"lively.ide.AllModulesLoadCommand","__SourceModuleName__":"Global.lively.ide.BrowserCommands"},"41036":{"submorphs":[{"__isSmartRef__":true,"id":41037}],"scripts":[],"shape":{"__isSmartRef__":true,"id":41042},"eventHandler":{"__isSmartRef__":true,"id":41043},"_ClipMode":"visible","derivationIds":[],"id":"00747198-C97E-4F5E-B77D-5426A6787EE0","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"__serializedExpressions__":["_Position"],"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":41037},"_PreviousBorderWidth":1,"command":{"__isSmartRef__":true,"id":41035},"attributeConnections":[{"__isSmartRef__":true,"id":41044},{"__isSmartRef__":true,"id":41046}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"owner":{"__isSmartRef__":true,"id":41012},"layout":{"__isSmartRef__":true,"id":41048},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(117.1,220.0)"},"41037":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":41038},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":41039}],"eventHandler":{"__isSmartRef__":true,"id":41041},"_ClipMode":"hidden","derivationIds":[],"id":"E4AA64C2-4827-4119-A731-C27D007A081A","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":9,"__serializedExpressions__":["_TextColor"],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":41036},"isLabel":true,"_Align":"center","eventsAreIgnored":true,"_TextStylingMode":true,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(0,0,0)"},"41038":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":0,"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(117.1,22.0)","_Padding":"lively.rect(0,4,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"41039":{"style":{"__isSmartRef__":true,"id":41040},"chunkOwner":{"__isSmartRef__":true,"id":41037},"_id":"_31","storedString":"Load all","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41040":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41041":{"morph":{"__isSmartRef__":true,"id":41037},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41042":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(117.1,22.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"41043":{"morph":{"__isSmartRef__":true,"id":41036},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41044":{"sourceObj":{"__isSmartRef__":true,"id":41036},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":41035},"targetMethodName":"trigger","varMapping":{"__isSmartRef__":true,"id":41045},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41045":{"source":{"__isSmartRef__":true,"id":41036},"target":{"__isSmartRef__":true,"id":41035}},"41046":{"sourceObj":{"__isSmartRef__":true,"id":41036},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":41036},"targetMethodName":"setLabel","varMapping":{"__isSmartRef__":true,"id":41047},"converterString":"function () { return this.getSourceObj().command.asString() }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41047":{"source":{"__isSmartRef__":true,"id":41036},"target":{"__isSmartRef__":true,"id":41036}},"41048":{"scaleVertical":true,"scaleHorizontal":true},"41049":{"browser":{"__isSmartRef__":true,"id":41020},"button":{"__isSmartRef__":true,"id":41050},"__LivelyClassName__":"lively.ide.ShowLineNumbersCommand","__SourceModuleName__":"Global.lively.ide.BrowserCommands"},"41050":{"submorphs":[{"__isSmartRef__":true,"id":41051}],"scripts":[],"shape":{"__isSmartRef__":true,"id":41056},"eventHandler":{"__isSmartRef__":true,"id":41057},"_ClipMode":"visible","derivationIds":[],"id":"3DDA1D6A-0447-4C13-B9B9-2DBE080B3563","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"__serializedExpressions__":["_Position"],"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":41051},"_PreviousBorderWidth":1,"command":{"__isSmartRef__":true,"id":41049},"attributeConnections":[{"__isSmartRef__":true,"id":41058},{"__isSmartRef__":true,"id":41060}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"owner":{"__isSmartRef__":true,"id":41012},"layout":{"__isSmartRef__":true,"id":41062},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(234.3,220.0)"},"41051":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":41052},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":41053}],"eventHandler":{"__isSmartRef__":true,"id":41055},"_ClipMode":"hidden","derivationIds":[],"id":"D49C7B9C-2AA5-4455-B9E6-236D03F0BF59","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":9,"__serializedExpressions__":["_TextColor"],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":41050},"isLabel":true,"_Align":"center","eventsAreIgnored":true,"_TextStylingMode":true,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(0,0,0)"},"41052":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":0,"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(117.1,22.0)","_Padding":"lively.rect(0,4,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"41053":{"style":{"__isSmartRef__":true,"id":41054},"chunkOwner":{"__isSmartRef__":true,"id":41051},"_id":"_34","storedString":"LineNo","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41054":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41055":{"morph":{"__isSmartRef__":true,"id":41051},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41056":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(117.1,22.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"41057":{"morph":{"__isSmartRef__":true,"id":41050},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41058":{"sourceObj":{"__isSmartRef__":true,"id":41050},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":41049},"targetMethodName":"trigger","varMapping":{"__isSmartRef__":true,"id":41059},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41059":{"source":{"__isSmartRef__":true,"id":41050},"target":{"__isSmartRef__":true,"id":41049}},"41060":{"sourceObj":{"__isSmartRef__":true,"id":41050},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":41050},"targetMethodName":"setLabel","varMapping":{"__isSmartRef__":true,"id":41061},"converterString":"function () { return this.getSourceObj().command.asString() }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41061":{"source":{"__isSmartRef__":true,"id":41050},"target":{"__isSmartRef__":true,"id":41050}},"41062":{"scaleVertical":true,"scaleHorizontal":true},"41063":{"browser":{"__isSmartRef__":true,"id":41020},"button":{"__isSmartRef__":true,"id":41064},"__LivelyClassName__":"lively.ide.ParserDebugCommand","__SourceModuleName__":"Global.lively.ide.BrowserCommands"},"41064":{"submorphs":[{"__isSmartRef__":true,"id":41065}],"scripts":[],"shape":{"__isSmartRef__":true,"id":41070},"eventHandler":{"__isSmartRef__":true,"id":41071},"_ClipMode":"visible","derivationIds":[],"id":"981C50DD-F893-4B29-8C1F-45436EDEED92","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"__serializedExpressions__":["_Position"],"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":41065},"_PreviousBorderWidth":1,"command":{"__isSmartRef__":true,"id":41063},"attributeConnections":[{"__isSmartRef__":true,"id":41072},{"__isSmartRef__":true,"id":41074}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"owner":{"__isSmartRef__":true,"id":41012},"layout":{"__isSmartRef__":true,"id":41076},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(351.4,220.0)"},"41065":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":41066},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":41067}],"eventHandler":{"__isSmartRef__":true,"id":41069},"_ClipMode":"hidden","derivationIds":[],"id":"DCEFED25-D7DF-422C-8CE4-69C198493364","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":9,"__serializedExpressions__":["_TextColor"],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":41064},"isLabel":true,"_Align":"center","eventsAreIgnored":true,"_TextStylingMode":true,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(0,0,0)"},"41066":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":0,"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(117.1,22.0)","_Padding":"lively.rect(0,4,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"41067":{"style":{"__isSmartRef__":true,"id":41068},"chunkOwner":{"__isSmartRef__":true,"id":41065},"_id":"_37","storedString":"Dbg errors is off","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41068":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41069":{"morph":{"__isSmartRef__":true,"id":41065},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41070":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(117.1,22.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"41071":{"morph":{"__isSmartRef__":true,"id":41064},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41072":{"sourceObj":{"__isSmartRef__":true,"id":41064},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":41063},"targetMethodName":"trigger","varMapping":{"__isSmartRef__":true,"id":41073},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41073":{"source":{"__isSmartRef__":true,"id":41064},"target":{"__isSmartRef__":true,"id":41063}},"41074":{"sourceObj":{"__isSmartRef__":true,"id":41064},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":41064},"targetMethodName":"setLabel","varMapping":{"__isSmartRef__":true,"id":41075},"converterString":"function () { return this.getSourceObj().command.asString() }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41075":{"source":{"__isSmartRef__":true,"id":41064},"target":{"__isSmartRef__":true,"id":41064}},"41076":{"scaleVertical":true,"scaleHorizontal":true},"41077":{"browser":{"__isSmartRef__":true,"id":41020},"button":{"__isSmartRef__":true,"id":41078},"__LivelyClassName__":"lively.ide.EvaluateCommand","__SourceModuleName__":"Global.lively.ide.BrowserCommands"},"41078":{"submorphs":[{"__isSmartRef__":true,"id":41079}],"scripts":[],"shape":{"__isSmartRef__":true,"id":41084},"eventHandler":{"__isSmartRef__":true,"id":41085},"_ClipMode":"visible","derivationIds":[],"id":"C465C1AA-2739-4422-A6B7-3C8B99585E94","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"__serializedExpressions__":["_Position"],"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":41079},"_PreviousBorderWidth":1,"command":{"__isSmartRef__":true,"id":41077},"attributeConnections":[{"__isSmartRef__":true,"id":41086},{"__isSmartRef__":true,"id":41088}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"owner":{"__isSmartRef__":true,"id":41012},"layout":{"__isSmartRef__":true,"id":41090},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(468.6,220.0)"},"41079":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":41080},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":41081}],"eventHandler":{"__isSmartRef__":true,"id":41083},"_ClipMode":"hidden","derivationIds":[],"id":"E8DEF136-5D9E-411A-8253-03BD2E293861","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":9,"__serializedExpressions__":["_TextColor"],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":41078},"isLabel":true,"_Align":"center","eventsAreIgnored":true,"_TextStylingMode":true,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(0,0,0)"},"41080":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":0,"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(117.1,22.0)","_Padding":"lively.rect(0,4,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"41081":{"style":{"__isSmartRef__":true,"id":41082},"chunkOwner":{"__isSmartRef__":true,"id":41079},"_id":"_40","storedString":"Eval on","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41082":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41083":{"morph":{"__isSmartRef__":true,"id":41079},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41084":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(117.1,22.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"41085":{"morph":{"__isSmartRef__":true,"id":41078},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41086":{"sourceObj":{"__isSmartRef__":true,"id":41078},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":41077},"targetMethodName":"trigger","varMapping":{"__isSmartRef__":true,"id":41087},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41087":{"source":{"__isSmartRef__":true,"id":41078},"target":{"__isSmartRef__":true,"id":41077}},"41088":{"sourceObj":{"__isSmartRef__":true,"id":41078},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":41078},"targetMethodName":"setLabel","varMapping":{"__isSmartRef__":true,"id":41089},"converterString":"function () { return this.getSourceObj().command.asString() }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41089":{"source":{"__isSmartRef__":true,"id":41078},"target":{"__isSmartRef__":true,"id":41078}},"41090":{"scaleVertical":true,"scaleHorizontal":true},"41091":{"browser":{"__isSmartRef__":true,"id":41020},"button":{"__isSmartRef__":true,"id":41092},"__LivelyClassName__":"lively.ide.SortCommand","__SourceModuleName__":"Global.lively.ide.BrowserCommands"},"41092":{"submorphs":[{"__isSmartRef__":true,"id":41093}],"scripts":[],"shape":{"__isSmartRef__":true,"id":41098},"eventHandler":{"__isSmartRef__":true,"id":41099},"_ClipMode":"visible","derivationIds":[],"id":"456B96AE-14E4-471F-A47B-7120B351307D","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"__serializedExpressions__":["_Position"],"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":41093},"_PreviousBorderWidth":1,"command":{"__isSmartRef__":true,"id":41091},"attributeConnections":[{"__isSmartRef__":true,"id":41100},{"__isSmartRef__":true,"id":41102}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"owner":{"__isSmartRef__":true,"id":41012},"layout":{"__isSmartRef__":true,"id":41104},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(585.7,220.0)"},"41093":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":41094},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":41095}],"eventHandler":{"__isSmartRef__":true,"id":41097},"_ClipMode":"hidden","derivationIds":[],"id":"0E220FDB-D901-4D57-8BE0-5520B98D63A1","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":9,"__serializedExpressions__":["_TextColor"],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":41092},"isLabel":true,"_Align":"center","eventsAreIgnored":true,"_TextStylingMode":true,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(0,0,0)"},"41094":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":0,"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(117.1,22.0)","_Padding":"lively.rect(0,4,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"41095":{"style":{"__isSmartRef__":true,"id":41096},"chunkOwner":{"__isSmartRef__":true,"id":41093},"_id":"_43","storedString":"Sort","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41096":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41097":{"morph":{"__isSmartRef__":true,"id":41093},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41098":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(117.1,22.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"41099":{"morph":{"__isSmartRef__":true,"id":41092},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41100":{"sourceObj":{"__isSmartRef__":true,"id":41092},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":41091},"targetMethodName":"trigger","varMapping":{"__isSmartRef__":true,"id":41101},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41101":{"source":{"__isSmartRef__":true,"id":41092},"target":{"__isSmartRef__":true,"id":41091}},"41102":{"sourceObj":{"__isSmartRef__":true,"id":41092},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":41092},"targetMethodName":"setLabel","varMapping":{"__isSmartRef__":true,"id":41103},"converterString":"function () { return this.getSourceObj().command.asString() }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41103":{"source":{"__isSmartRef__":true,"id":41092},"target":{"__isSmartRef__":true,"id":41092}},"41104":{"scaleVertical":true,"scaleHorizontal":true},"41105":{"browser":{"__isSmartRef__":true,"id":41020},"button":{"__isSmartRef__":true,"id":41106},"__LivelyClassName__":"lively.ide.ViewSourceCommand","__SourceModuleName__":"Global.lively.ide.BrowserCommands"},"41106":{"submorphs":[{"__isSmartRef__":true,"id":41107}],"scripts":[],"shape":{"__isSmartRef__":true,"id":41112},"eventHandler":{"__isSmartRef__":true,"id":41113},"_ClipMode":"visible","derivationIds":[],"id":"A78F2A79-FBF4-4A35-AC09-34C36D7D7ADD","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"__serializedExpressions__":["_Position"],"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":41107},"_PreviousBorderWidth":1,"command":{"__isSmartRef__":true,"id":41105},"attributeConnections":[{"__isSmartRef__":true,"id":41114},{"__isSmartRef__":true,"id":41116}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"owner":{"__isSmartRef__":true,"id":41012},"layout":{"__isSmartRef__":true,"id":41118},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(702.9,220.0)"},"41107":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":41108},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":41109}],"eventHandler":{"__isSmartRef__":true,"id":41111},"_ClipMode":"hidden","derivationIds":[],"id":"025E121A-9B8D-422B-ABD5-E0E1E8813ADD","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":9,"__serializedExpressions__":["_TextColor"],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":41106},"isLabel":true,"_Align":"center","eventsAreIgnored":true,"_TextStylingMode":true,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(0,0,0)"},"41108":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":0,"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(117.1,22.0)","_Padding":"lively.rect(0,4,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"41109":{"style":{"__isSmartRef__":true,"id":41110},"chunkOwner":{"__isSmartRef__":true,"id":41107},"_id":"_46","storedString":"View as...","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41110":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41111":{"morph":{"__isSmartRef__":true,"id":41107},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41112":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(117.1,22.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"41113":{"morph":{"__isSmartRef__":true,"id":41106},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41114":{"sourceObj":{"__isSmartRef__":true,"id":41106},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":41105},"targetMethodName":"trigger","varMapping":{"__isSmartRef__":true,"id":41115},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41115":{"source":{"__isSmartRef__":true,"id":41106},"target":{"__isSmartRef__":true,"id":41105}},"41116":{"sourceObj":{"__isSmartRef__":true,"id":41106},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":41106},"targetMethodName":"setLabel","varMapping":{"__isSmartRef__":true,"id":41117},"converterString":"function () { return this.getSourceObj().command.asString() }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41117":{"source":{"__isSmartRef__":true,"id":41106},"target":{"__isSmartRef__":true,"id":41106}},"41118":{"scaleVertical":true,"scaleHorizontal":true},"41119":{"__LivelyClassName__":"lively.ide.NodeFilter","__SourceModuleName__":"Global.lively.ide.BrowserFramework"},"41120":{"__LivelyClassName__":"lively.ide.NodeFilter","__SourceModuleName__":"Global.lively.ide.BrowserFramework"},"41121":{"attributes":["isClassNode","isGrammarNode","isChangeNode","isFunctionNode","isObjectNode"],"__LivelyClassName__":"lively.ide.NodeTypeFilter","__SourceModuleName__":"Global.lively.ide.BrowserFramework"},"41122":{"__LivelyClassName__":"lively.ide.NodeFilter","__SourceModuleName__":"Global.lively.ide.BrowserFramework"},"41123":{"__LivelyClassName__":"lively.ide.NodeFilter","__SourceModuleName__":"Global.lively.ide.BrowserFramework"},"41124":{"__LivelyClassName__":"lively.ide.NodeFilter","__SourceModuleName__":"Global.lively.ide.BrowserFramework"},"41125":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/core/","__LivelyClassName__":"URL","__SourceModuleName__":"Global.lively.Network"},"41126":{"sourceObj":{"__isSmartRef__":true,"id":41020},"sourceAttrName":"setPane1Content","targetObj":{"__isSmartRef__":true,"id":41127},"targetMethodName":"updateList","varMapping":{"__isSmartRef__":true,"id":41192},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41127":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":41128},"itemList":[{"__isSmartRef__":true,"id":41129},{"__isSmartRef__":true,"id":41155},{"__isSmartRef__":true,"id":41156},{"__isSmartRef__":true,"id":41157},{"__isSmartRef__":true,"id":41158},{"__isSmartRef__":true,"id":41159},{"__isSmartRef__":true,"id":41160},{"__isSmartRef__":true,"id":41161},{"__isSmartRef__":true,"id":41162},{"__isSmartRef__":true,"id":41163},{"__isSmartRef__":true,"id":41164},{"__isSmartRef__":true,"id":41165},{"__isSmartRef__":true,"id":41166}],"eventHandler":{"__isSmartRef__":true,"id":41167},"derivationIds":[],"id":"DF0A7EB4-BED2-4DCF-86AC-9BE593B0508C","_FontFamily":"Helvetica","_FontSize":10,"grabbingEnabled":false,"droppingEnabled":true,"halosEnabled":true,"_ClipMode":"auto","__serializedExpressions__":["_Position"],"selection":null,"selectedLineNo":-1,"owner":{"__isSmartRef__":true,"id":41012},"layout":{"__isSmartRef__":true,"id":41168},"attributeConnections":[{"__isSmartRef__":true,"id":41169},{"__isSmartRef__":true,"id":41171},{"__isSmartRef__":true,"id":41173},{"__isSmartRef__":true,"id":41175}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":41177},"__LivelyClassName__":"lively.morphic.List","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,16.5)"},"41128":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"_BorderWidth":0,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(205.0,203.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)"},"41129":{"isListItem":true,"string":"PartsBin/","value":{"__isSmartRef__":true,"id":41130}},"41130":{"target":{"__isSmartRef__":true,"id":41131},"browser":{"__isSmartRef__":true,"id":41020},"parent":{"__isSmartRef__":true,"id":41132},"localName":"PartsBin/","__LivelyClassName__":"lively.ide.NamespaceNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"41131":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/core/PartsBin/","__LivelyClassName__":"URL","__SourceModuleName__":"Global.lively.Network"},"41132":{"target":{"__isSmartRef__":true,"id":41133},"browser":{"__isSmartRef__":true,"id":41020},"parent":null,"allFiles":["flot.js","experimental.Set.js","mylib.js"],"subNamespacePaths":[{"__isSmartRef__":true,"id":41134},{"__isSmartRef__":true,"id":41135},{"__isSmartRef__":true,"id":41131},{"__isSmartRef__":true,"id":41136},{"__isSmartRef__":true,"id":41137},{"__isSmartRef__":true,"id":41138},{"__isSmartRef__":true,"id":41139},{"__isSmartRef__":true,"id":41140}],"parentNamespacePath":{"__isSmartRef__":true,"id":41141},"_childNodes":[{"__isSmartRef__":true,"id":41130},{"__isSmartRef__":true,"id":41142},{"__isSmartRef__":true,"id":41143},{"__isSmartRef__":true,"id":41144},{"__isSmartRef__":true,"id":41145},{"__isSmartRef__":true,"id":41146},{"__isSmartRef__":true,"id":41147},{"__isSmartRef__":true,"id":41148},{"__isSmartRef__":true,"id":41149},{"__isSmartRef__":true,"id":41150},{"__isSmartRef__":true,"id":41151},{"__isSmartRef__":true,"id":41152},{"__isSmartRef__":true,"id":41153}],"__LivelyClassName__":"lively.ide.SourceControlNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"41133":{"__LivelyClassName__":"AnotherSourceDatabase","__SourceModuleName__":"Global.lively.ide.SourceDatabase"},"41134":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/core/media/","__LivelyClassName__":"URL","__SourceModuleName__":"Global.lively.Network"},"41135":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/core/cop/","__LivelyClassName__":"URL","__SourceModuleName__":"Global.lively.Network"},"41136":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/core/apps/","__LivelyClassName__":"URL","__SourceModuleName__":"Global.lively.Network"},"41137":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/core/styles/","__LivelyClassName__":"URL","__SourceModuleName__":"Global.lively.Network"},"41138":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/core/lively/","__LivelyClassName__":"URL","__SourceModuleName__":"Global.lively.Network"},"41139":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/core/ometa/","__LivelyClassName__":"URL","__SourceModuleName__":"Global.lively.Network"},"41140":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/core/lib/","__LivelyClassName__":"URL","__SourceModuleName__":"Global.lively.Network"},"41141":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/core/../","__LivelyClassName__":"URL","__SourceModuleName__":"Global.lively.Network"},"41142":{"target":{"__isSmartRef__":true,"id":41136},"browser":{"__isSmartRef__":true,"id":41020},"parent":{"__isSmartRef__":true,"id":41132},"localName":"apps/","__LivelyClassName__":"lively.ide.NamespaceNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"41143":{"target":{"__isSmartRef__":true,"id":41135},"browser":{"__isSmartRef__":true,"id":41020},"parent":{"__isSmartRef__":true,"id":41132},"localName":"cop/","__LivelyClassName__":"lively.ide.NamespaceNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"41144":{"target":{"__isSmartRef__":true,"id":41140},"browser":{"__isSmartRef__":true,"id":41020},"parent":{"__isSmartRef__":true,"id":41132},"localName":"lib/","__LivelyClassName__":"lively.ide.NamespaceNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"41145":{"target":{"__isSmartRef__":true,"id":41138},"browser":{"__isSmartRef__":true,"id":41020},"parent":{"__isSmartRef__":true,"id":41132},"localName":"lively/","__LivelyClassName__":"lively.ide.NamespaceNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"41146":{"target":{"__isSmartRef__":true,"id":41134},"browser":{"__isSmartRef__":true,"id":41020},"parent":{"__isSmartRef__":true,"id":41132},"localName":"media/","__LivelyClassName__":"lively.ide.NamespaceNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"41147":{"target":{"__isSmartRef__":true,"id":41139},"browser":{"__isSmartRef__":true,"id":41020},"parent":{"__isSmartRef__":true,"id":41132},"localName":"ometa/","__LivelyClassName__":"lively.ide.NamespaceNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"41148":{"target":{"__isSmartRef__":true,"id":41137},"browser":{"__isSmartRef__":true,"id":41020},"parent":{"__isSmartRef__":true,"id":41132},"localName":"styles/","__LivelyClassName__":"lively.ide.NamespaceNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"41149":{"target":{"__isSmartRef__":true,"id":41141},"browser":{"__isSmartRef__":true,"id":41020},"parent":{"__isSmartRef__":true,"id":41132},"localName":"../","__LivelyClassName__":"lively.ide.NamespaceNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"41150":{"browser":{"__isSmartRef__":true,"id":41020},"parent":{"__isSmartRef__":true,"id":41132},"moduleName":"experimental.Set.js","showAll":false,"__LivelyClassName__":"lively.ide.CompleteFileFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"41151":{"browser":{"__isSmartRef__":true,"id":41020},"parent":{"__isSmartRef__":true,"id":41132},"moduleName":"flot.js","showAll":false,"__LivelyClassName__":"lively.ide.CompleteFileFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"41152":{"browser":{"__isSmartRef__":true,"id":41020},"parent":{"__isSmartRef__":true,"id":41132},"moduleName":"mylib.js","showAll":false,"__LivelyClassName__":"lively.ide.CompleteFileFragmentNode","__SourceModuleName__":"Global.lively.ide.SystemBrowserNodes"},"41153":{"target":{"__isSmartRef__":true,"id":41154},"browser":{"__isSmartRef__":true,"id":41020},"__LivelyClassName__":"lively.ide.ChangeSetNode","__SourceModuleName__":"Global.lively.ide.LocalBrowser"},"41154":{"name":"Local code","__LivelyClassName__":"ChangeSet","__SourceModuleName__":"Global.lively.ChangeSet"},"41155":{"isListItem":true,"string":"apps/","value":{"__isSmartRef__":true,"id":41142}},"41156":{"isListItem":true,"string":"cop/","value":{"__isSmartRef__":true,"id":41143}},"41157":{"isListItem":true,"string":"lib/","value":{"__isSmartRef__":true,"id":41144}},"41158":{"isListItem":true,"string":"lively/","value":{"__isSmartRef__":true,"id":41145}},"41159":{"isListItem":true,"string":"media/","value":{"__isSmartRef__":true,"id":41146}},"41160":{"isListItem":true,"string":"ometa/","value":{"__isSmartRef__":true,"id":41147}},"41161":{"isListItem":true,"string":"styles/","value":{"__isSmartRef__":true,"id":41148}},"41162":{"isListItem":true,"string":"../","value":{"__isSmartRef__":true,"id":41149}},"41163":{"isListItem":true,"string":"experimental.Set.js (not parsed)","value":{"__isSmartRef__":true,"id":41150}},"41164":{"isListItem":true,"string":"flot.js (not parsed)","value":{"__isSmartRef__":true,"id":41151}},"41165":{"isListItem":true,"string":"mylib.js (not parsed)","value":{"__isSmartRef__":true,"id":41152}},"41166":{"isListItem":true,"string":"Local code","value":{"__isSmartRef__":true,"id":41153}},"41167":{"morph":{"__isSmartRef__":true,"id":41127},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41168":{"scaleVertical":true,"scaleHorizontal":true},"41169":{"sourceObj":{"__isSmartRef__":true,"id":41127},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":41020},"targetMethodName":"setPane1Selection","varMapping":{"__isSmartRef__":true,"id":41170},"updaterString":"function ($upd, v) { $upd(v, this.sourceObj) }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41170":{"source":{"__isSmartRef__":true,"id":41127},"target":{"__isSmartRef__":true,"id":41020}},"41171":{"sourceObj":{"__isSmartRef__":true,"id":41127},"sourceAttrName":"getSelection","targetObj":{"__isSmartRef__":true,"id":41020},"targetMethodName":"getPane1Selection","varMapping":{"__isSmartRef__":true,"id":41172},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41172":{"source":{"__isSmartRef__":true,"id":41127},"target":{"__isSmartRef__":true,"id":41020}},"41173":{"sourceObj":{"__isSmartRef__":true,"id":41127},"sourceAttrName":"getList","targetObj":{"__isSmartRef__":true,"id":41020},"targetMethodName":"getPane1Content","varMapping":{"__isSmartRef__":true,"id":41174},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41174":{"source":{"__isSmartRef__":true,"id":41127},"target":{"__isSmartRef__":true,"id":41020}},"41175":{"sourceObj":{"__isSmartRef__":true,"id":41127},"sourceAttrName":"getMenu","targetObj":{"__isSmartRef__":true,"id":41020},"targetMethodName":"getPane1Menu","varMapping":{"__isSmartRef__":true,"id":41176},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41176":{"source":{"__isSmartRef__":true,"id":41127},"target":{"__isSmartRef__":true,"id":41020}},"41177":{"onDownPressed":{"__isSmartRef__":true,"id":41178},"onUpPressed":{"__isSmartRef__":true,"id":41185}},"41178":{"varMapping":{"__isSmartRef__":true,"id":41179},"source":"function onDownPressed(evt) {\n $super(evt);\n this.focus.bind(this).delay(0);\n return true;\n }","funcProperties":{"__isSmartRef__":true,"id":41184},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41179":{"this":{"__isSmartRef__":true,"id":41127},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":41180}},"41180":{"$super":{"__isSmartRef__":true,"id":41181}},"41181":{"varMapping":{"__isSmartRef__":true,"id":41182},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":41183},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41182":{"obj":{"__isSmartRef__":true,"id":41127},"name":"onDownPressed"},"41183":{},"41184":{},"41185":{"varMapping":{"__isSmartRef__":true,"id":41186},"source":"function onUpPressed(evt) {\n $super(evt);\n this.focus.bind(this).delay(0);\n return true;\n }","funcProperties":{"__isSmartRef__":true,"id":41191},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41186":{"this":{"__isSmartRef__":true,"id":41127},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":41187}},"41187":{"$super":{"__isSmartRef__":true,"id":41188}},"41188":{"varMapping":{"__isSmartRef__":true,"id":41189},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":41190},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41189":{"obj":{"__isSmartRef__":true,"id":41127},"name":"onUpPressed"},"41190":{},"41191":{},"41192":{"source":{"__isSmartRef__":true,"id":41020},"target":{"__isSmartRef__":true,"id":41127}},"41193":{"sourceObj":{"__isSmartRef__":true,"id":41020},"sourceAttrName":"setPane2Content","targetObj":{"__isSmartRef__":true,"id":41194},"targetMethodName":"updateList","varMapping":{"__isSmartRef__":true,"id":41221},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41194":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":41195},"itemList":["-----"],"eventHandler":{"__isSmartRef__":true,"id":41196},"derivationIds":[],"id":"F3E14AAB-C6E7-4353-8685-201B8A814CA0","_FontFamily":"Helvetica","_FontSize":10,"grabbingEnabled":false,"droppingEnabled":true,"halosEnabled":true,"_ClipMode":"auto","__serializedExpressions__":["_Position"],"selection":null,"selectedLineNo":-1,"owner":{"__isSmartRef__":true,"id":41012},"layout":{"__isSmartRef__":true,"id":41197},"attributeConnections":[{"__isSmartRef__":true,"id":41198},{"__isSmartRef__":true,"id":41200},{"__isSmartRef__":true,"id":41202},{"__isSmartRef__":true,"id":41204}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":41206},"__LivelyClassName__":"lively.morphic.List","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(205.0,16.5)"},"41195":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"_BorderWidth":0,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(205.0,203.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)"},"41196":{"morph":{"__isSmartRef__":true,"id":41194},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41197":{"scaleVertical":true,"scaleHorizontal":true},"41198":{"sourceObj":{"__isSmartRef__":true,"id":41194},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":41020},"targetMethodName":"setPane2Selection","varMapping":{"__isSmartRef__":true,"id":41199},"updaterString":"function ($upd, v) { $upd(v, this.sourceObj) }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41199":{"source":{"__isSmartRef__":true,"id":41194},"target":{"__isSmartRef__":true,"id":41020}},"41200":{"sourceObj":{"__isSmartRef__":true,"id":41194},"sourceAttrName":"getSelection","targetObj":{"__isSmartRef__":true,"id":41020},"targetMethodName":"getPane2Selection","varMapping":{"__isSmartRef__":true,"id":41201},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41201":{"source":{"__isSmartRef__":true,"id":41194},"target":{"__isSmartRef__":true,"id":41020}},"41202":{"sourceObj":{"__isSmartRef__":true,"id":41194},"sourceAttrName":"getList","targetObj":{"__isSmartRef__":true,"id":41020},"targetMethodName":"getPane2Content","varMapping":{"__isSmartRef__":true,"id":41203},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41203":{"source":{"__isSmartRef__":true,"id":41194},"target":{"__isSmartRef__":true,"id":41020}},"41204":{"sourceObj":{"__isSmartRef__":true,"id":41194},"sourceAttrName":"getMenu","targetObj":{"__isSmartRef__":true,"id":41020},"targetMethodName":"getPane2Menu","varMapping":{"__isSmartRef__":true,"id":41205},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41205":{"source":{"__isSmartRef__":true,"id":41194},"target":{"__isSmartRef__":true,"id":41020}},"41206":{"onDownPressed":{"__isSmartRef__":true,"id":41207},"onUpPressed":{"__isSmartRef__":true,"id":41214}},"41207":{"varMapping":{"__isSmartRef__":true,"id":41208},"source":"function onDownPressed(evt) {\n $super(evt);\n this.focus.bind(this).delay(0);\n return true;\n }","funcProperties":{"__isSmartRef__":true,"id":41213},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41208":{"this":{"__isSmartRef__":true,"id":41194},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":41209}},"41209":{"$super":{"__isSmartRef__":true,"id":41210}},"41210":{"varMapping":{"__isSmartRef__":true,"id":41211},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":41212},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41211":{"obj":{"__isSmartRef__":true,"id":41194},"name":"onDownPressed"},"41212":{},"41213":{},"41214":{"varMapping":{"__isSmartRef__":true,"id":41215},"source":"function onUpPressed(evt) {\n $super(evt);\n this.focus.bind(this).delay(0);\n return true;\n }","funcProperties":{"__isSmartRef__":true,"id":41220},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41215":{"this":{"__isSmartRef__":true,"id":41194},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":41216}},"41216":{"$super":{"__isSmartRef__":true,"id":41217}},"41217":{"varMapping":{"__isSmartRef__":true,"id":41218},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":41219},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41218":{"obj":{"__isSmartRef__":true,"id":41194},"name":"onUpPressed"},"41219":{},"41220":{},"41221":{"source":{"__isSmartRef__":true,"id":41020},"target":{"__isSmartRef__":true,"id":41194}},"41222":{"sourceObj":{"__isSmartRef__":true,"id":41020},"sourceAttrName":"setPane3Content","targetObj":{"__isSmartRef__":true,"id":41223},"targetMethodName":"updateList","varMapping":{"__isSmartRef__":true,"id":41250},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41223":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":41224},"itemList":["-----"],"eventHandler":{"__isSmartRef__":true,"id":41225},"derivationIds":[],"id":"41665F8F-EE60-4029-8B71-457EB85C72DA","_FontFamily":"Helvetica","_FontSize":10,"grabbingEnabled":false,"droppingEnabled":true,"halosEnabled":true,"_ClipMode":"auto","__serializedExpressions__":["_Position"],"selection":null,"selectedLineNo":-1,"owner":{"__isSmartRef__":true,"id":41012},"layout":{"__isSmartRef__":true,"id":41226},"attributeConnections":[{"__isSmartRef__":true,"id":41227},{"__isSmartRef__":true,"id":41229},{"__isSmartRef__":true,"id":41231},{"__isSmartRef__":true,"id":41233}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":41235},"__LivelyClassName__":"lively.morphic.List","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(410.0,16.5)"},"41224":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"_BorderWidth":0,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(205.0,203.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)"},"41225":{"morph":{"__isSmartRef__":true,"id":41223},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41226":{"scaleVertical":true,"scaleHorizontal":true},"41227":{"sourceObj":{"__isSmartRef__":true,"id":41223},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":41020},"targetMethodName":"setPane3Selection","varMapping":{"__isSmartRef__":true,"id":41228},"updaterString":"function ($upd, v) { $upd(v, this.sourceObj) }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41228":{"source":{"__isSmartRef__":true,"id":41223},"target":{"__isSmartRef__":true,"id":41020}},"41229":{"sourceObj":{"__isSmartRef__":true,"id":41223},"sourceAttrName":"getSelection","targetObj":{"__isSmartRef__":true,"id":41020},"targetMethodName":"getPane3Selection","varMapping":{"__isSmartRef__":true,"id":41230},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41230":{"source":{"__isSmartRef__":true,"id":41223},"target":{"__isSmartRef__":true,"id":41020}},"41231":{"sourceObj":{"__isSmartRef__":true,"id":41223},"sourceAttrName":"getList","targetObj":{"__isSmartRef__":true,"id":41020},"targetMethodName":"getPane3Content","varMapping":{"__isSmartRef__":true,"id":41232},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41232":{"source":{"__isSmartRef__":true,"id":41223},"target":{"__isSmartRef__":true,"id":41020}},"41233":{"sourceObj":{"__isSmartRef__":true,"id":41223},"sourceAttrName":"getMenu","targetObj":{"__isSmartRef__":true,"id":41020},"targetMethodName":"getPane3Menu","varMapping":{"__isSmartRef__":true,"id":41234},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41234":{"source":{"__isSmartRef__":true,"id":41223},"target":{"__isSmartRef__":true,"id":41020}},"41235":{"onDownPressed":{"__isSmartRef__":true,"id":41236},"onUpPressed":{"__isSmartRef__":true,"id":41243}},"41236":{"varMapping":{"__isSmartRef__":true,"id":41237},"source":"function onDownPressed(evt) {\n $super(evt);\n this.focus.bind(this).delay(0);\n return true;\n }","funcProperties":{"__isSmartRef__":true,"id":41242},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41237":{"this":{"__isSmartRef__":true,"id":41223},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":41238}},"41238":{"$super":{"__isSmartRef__":true,"id":41239}},"41239":{"varMapping":{"__isSmartRef__":true,"id":41240},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":41241},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41240":{"obj":{"__isSmartRef__":true,"id":41223},"name":"onDownPressed"},"41241":{},"41242":{},"41243":{"varMapping":{"__isSmartRef__":true,"id":41244},"source":"function onUpPressed(evt) {\n $super(evt);\n this.focus.bind(this).delay(0);\n return true;\n }","funcProperties":{"__isSmartRef__":true,"id":41249},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41244":{"this":{"__isSmartRef__":true,"id":41223},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":41245}},"41245":{"$super":{"__isSmartRef__":true,"id":41246}},"41246":{"varMapping":{"__isSmartRef__":true,"id":41247},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":41248},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41247":{"obj":{"__isSmartRef__":true,"id":41223},"name":"onUpPressed"},"41248":{},"41249":{},"41250":{"source":{"__isSmartRef__":true,"id":41020},"target":{"__isSmartRef__":true,"id":41223}},"41251":{"sourceObj":{"__isSmartRef__":true,"id":41020},"sourceAttrName":"setPane4Content","targetObj":{"__isSmartRef__":true,"id":41252},"targetMethodName":"updateList","varMapping":{"__isSmartRef__":true,"id":41279},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41252":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":41253},"itemList":["-----"],"eventHandler":{"__isSmartRef__":true,"id":41254},"derivationIds":[],"id":"3FF7FFB8-9DAC-4359-9A7D-0AED59EFFB95","_FontFamily":"Helvetica","_FontSize":10,"grabbingEnabled":false,"droppingEnabled":true,"halosEnabled":true,"_ClipMode":"auto","__serializedExpressions__":["_Position"],"selection":null,"selectedLineNo":-1,"owner":{"__isSmartRef__":true,"id":41012},"layout":{"__isSmartRef__":true,"id":41255},"attributeConnections":[{"__isSmartRef__":true,"id":41256},{"__isSmartRef__":true,"id":41258},{"__isSmartRef__":true,"id":41260},{"__isSmartRef__":true,"id":41262}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":41264},"__LivelyClassName__":"lively.morphic.List","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(615.0,16.5)"},"41253":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"_BorderWidth":0,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(205.0,203.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)"},"41254":{"morph":{"__isSmartRef__":true,"id":41252},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41255":{"scaleVertical":true,"scaleHorizontal":true},"41256":{"sourceObj":{"__isSmartRef__":true,"id":41252},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":41020},"targetMethodName":"setPane4Selection","varMapping":{"__isSmartRef__":true,"id":41257},"updaterString":"function ($upd, v) { $upd(v, this.sourceObj) }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41257":{"source":{"__isSmartRef__":true,"id":41252},"target":{"__isSmartRef__":true,"id":41020}},"41258":{"sourceObj":{"__isSmartRef__":true,"id":41252},"sourceAttrName":"getSelection","targetObj":{"__isSmartRef__":true,"id":41020},"targetMethodName":"getPane4Selection","varMapping":{"__isSmartRef__":true,"id":41259},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41259":{"source":{"__isSmartRef__":true,"id":41252},"target":{"__isSmartRef__":true,"id":41020}},"41260":{"sourceObj":{"__isSmartRef__":true,"id":41252},"sourceAttrName":"getList","targetObj":{"__isSmartRef__":true,"id":41020},"targetMethodName":"getPane4Content","varMapping":{"__isSmartRef__":true,"id":41261},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41261":{"source":{"__isSmartRef__":true,"id":41252},"target":{"__isSmartRef__":true,"id":41020}},"41262":{"sourceObj":{"__isSmartRef__":true,"id":41252},"sourceAttrName":"getMenu","targetObj":{"__isSmartRef__":true,"id":41020},"targetMethodName":"getPane4Menu","varMapping":{"__isSmartRef__":true,"id":41263},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41263":{"source":{"__isSmartRef__":true,"id":41252},"target":{"__isSmartRef__":true,"id":41020}},"41264":{"onDownPressed":{"__isSmartRef__":true,"id":41265},"onUpPressed":{"__isSmartRef__":true,"id":41272}},"41265":{"varMapping":{"__isSmartRef__":true,"id":41266},"source":"function onDownPressed(evt) {\n $super(evt);\n this.focus.bind(this).delay(0);\n return true;\n }","funcProperties":{"__isSmartRef__":true,"id":41271},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41266":{"this":{"__isSmartRef__":true,"id":41252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":41267}},"41267":{"$super":{"__isSmartRef__":true,"id":41268}},"41268":{"varMapping":{"__isSmartRef__":true,"id":41269},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":41270},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41269":{"obj":{"__isSmartRef__":true,"id":41252},"name":"onDownPressed"},"41270":{},"41271":{},"41272":{"varMapping":{"__isSmartRef__":true,"id":41273},"source":"function onUpPressed(evt) {\n $super(evt);\n this.focus.bind(this).delay(0);\n return true;\n }","funcProperties":{"__isSmartRef__":true,"id":41278},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41273":{"this":{"__isSmartRef__":true,"id":41252},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":41274}},"41274":{"$super":{"__isSmartRef__":true,"id":41275}},"41275":{"varMapping":{"__isSmartRef__":true,"id":41276},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":41277},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41276":{"obj":{"__isSmartRef__":true,"id":41252},"name":"onUpPressed"},"41277":{},"41278":{},"41279":{"source":{"__isSmartRef__":true,"id":41020},"target":{"__isSmartRef__":true,"id":41252}},"41280":{"sourceObj":{"__isSmartRef__":true,"id":41020},"sourceAttrName":"setSourceString","targetObj":{"__isSmartRef__":true,"id":41281},"targetMethodName":"setTextString","varMapping":{"__isSmartRef__":true,"id":41291},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41281":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":41282},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":41283}],"eventHandler":{"__isSmartRef__":true,"id":41285},"_ClipMode":"auto","derivationIds":[],"id":"AA25F5C0-59C1-4209-A87E-9F8F7730EE29","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":true,"_HandStyle":null,"allowInput":true,"_FontFamily":"Courier","_FontSize":10,"__serializedExpressions__":["_TextColor","_Position"],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":41012},"accessibleInInactiveWindow":true,"layout":{"__isSmartRef__":true,"id":41286},"noEval":true,"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":41287},{"__isSmartRef__":true,"id":41289}],"doNotSerialize":["$$textString","$$savedTextString"],"doNotCopyProperties":["$$textString","$$savedTextString"],"textString":"-----","specialHighlighting":"none","styleClass":["Browser_codePaneText"],"focusHaloBorderWidth":0.5,"_lastSyntaxHighlightTime":1,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(64,64,64)","_Position":"lively.pt(0.0,247.5)"},"41282":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"_BorderWidth":1,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(820.0,302.5)","_Padding":"lively.rect(5,5,0,0)","_BorderColor":"Color.rgb(102,102,102)","_Fill":"Color.rgb(255,255,255)"},"41283":{"style":{"__isSmartRef__":true,"id":41284},"chunkOwner":{"__isSmartRef__":true,"id":41281},"_id":"_23","storedString":"-----","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41284":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"41285":{"morph":{"__isSmartRef__":true,"id":41281},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41286":{"scaleVertical":true,"scaleHorizontal":true},"41287":{"sourceObj":{"__isSmartRef__":true,"id":41281},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":41281},"targetMethodName":"highlightSyntaxDebounced","varMapping":{"__isSmartRef__":true,"id":41288},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41288":{"source":{"__isSmartRef__":true,"id":41281},"target":{"__isSmartRef__":true,"id":41281}},"41289":{"sourceObj":{"__isSmartRef__":true,"id":41281},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":41020},"targetMethodName":"setSourceString","varMapping":{"__isSmartRef__":true,"id":41290},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41290":{"source":{"__isSmartRef__":true,"id":41281},"target":{"__isSmartRef__":true,"id":41020}},"41291":{"source":{"__isSmartRef__":true,"id":41020},"target":{"__isSmartRef__":true,"id":41281}},"41292":{"sourceObj":{"__isSmartRef__":true,"id":41020},"sourceAttrName":"targetURL","targetObj":{"__isSmartRef__":true,"id":41013},"targetMethodName":"setTextString","varMapping":{"__isSmartRef__":true,"id":41293},"updaterString":"function ($upd, value) { value && $upd(String(value)) }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41293":{"source":{"__isSmartRef__":true,"id":41020},"target":{"__isSmartRef__":true,"id":41013}},"41294":{"source":{"__isSmartRef__":true,"id":41013},"target":{"__isSmartRef__":true,"id":41020}},"41295":{"submorphs":[{"__isSmartRef__":true,"id":41296}],"scripts":[],"shape":{"__isSmartRef__":true,"id":41301},"eventHandler":{"__isSmartRef__":true,"id":41302},"_ClipMode":"visible","derivationIds":[],"id":"CCC59815-18E6-4C98-AB4C-65F68BFC257F","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"__serializedExpressions__":["_Position"],"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":41296},"_PreviousBorderWidth":1,"owner":{"__isSmartRef__":true,"id":41012},"attributeConnections":[{"__isSmartRef__":true,"id":41303}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"layout":{"__isSmartRef__":true,"id":41305},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(656.0,0.0)"},"41296":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":41297},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":41298}],"eventHandler":{"__isSmartRef__":true,"id":41300},"_ClipMode":"hidden","derivationIds":[],"id":"160ABB8E-FC92-43B9-9FB1-A8F57D29E000","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"__serializedExpressions__":["_TextColor"],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":41295},"isLabel":true,"_Align":"center","eventsAreIgnored":true,"_TextStylingMode":true,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(0,0,0)"},"41297":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":0,"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(98.4,16.5)","_Padding":"lively.rect(2,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"41298":{"style":{"__isSmartRef__":true,"id":41299},"chunkOwner":{"__isSmartRef__":true,"id":41296},"_id":"_24","storedString":"Codebase","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41299":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41300":{"morph":{"__isSmartRef__":true,"id":41296},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41301":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(98.4,16.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"41302":{"morph":{"__isSmartRef__":true,"id":41295},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41303":{"sourceObj":{"__isSmartRef__":true,"id":41295},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":41020},"targetMethodName":"setTargetURL","varMapping":{"__isSmartRef__":true,"id":41304},"converterString":"function () { return URL.codeBase.withFilename('lively/')}","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41304":{"source":{"__isSmartRef__":true,"id":41295},"target":{"__isSmartRef__":true,"id":41020}},"41305":{"scaleVertical":true,"scaleHorizontal":true},"41306":{"submorphs":[{"__isSmartRef__":true,"id":41307}],"scripts":[],"shape":{"__isSmartRef__":true,"id":41312},"eventHandler":{"__isSmartRef__":true,"id":41313},"_ClipMode":"visible","derivationIds":[],"id":"63B54CEF-2DD0-4135-BE67-83C4047694D9","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"__serializedExpressions__":["_Position"],"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":41307},"_PreviousBorderWidth":1,"owner":{"__isSmartRef__":true,"id":41012},"attributeConnections":[{"__isSmartRef__":true,"id":41314}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"layout":{"__isSmartRef__":true,"id":41316},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(754.4,0.0)"},"41307":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":41308},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":41309}],"eventHandler":{"__isSmartRef__":true,"id":41311},"_ClipMode":"hidden","derivationIds":[],"id":"CA105AB0-AF1A-4333-9665-3CD3C5EC8D4F","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"__serializedExpressions__":["_TextColor"],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":41306},"isLabel":true,"_Align":"center","eventsAreIgnored":true,"_TextStylingMode":true,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(0,0,0)"},"41308":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":0,"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(65.6,16.5)","_Padding":"lively.rect(2,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"41309":{"style":{"__isSmartRef__":true,"id":41310},"chunkOwner":{"__isSmartRef__":true,"id":41307},"_id":"_25","storedString":"Local","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41310":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41311":{"morph":{"__isSmartRef__":true,"id":41307},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41312":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(65.6,16.5)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"41313":{"morph":{"__isSmartRef__":true,"id":41306},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41314":{"sourceObj":{"__isSmartRef__":true,"id":41306},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":41020},"targetMethodName":"setTargetURL","varMapping":{"__isSmartRef__":true,"id":41315},"converterString":"function () {\n return $world.getUserName() ? $world.getUserDir() : URL.source.getDirectory() }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41315":{"source":{"__isSmartRef__":true,"id":41306},"target":{"__isSmartRef__":true,"id":41020}},"41316":{"scaleVertical":true,"scaleHorizontal":true},"41317":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":41318},"eventHandler":{"__isSmartRef__":true,"id":41323},"_ClipMode":"visible","derivationIds":[],"id":"3D7B2FC6-F40D-48B7-A3A3-93BDFCFF7587","droppingEnabled":true,"halosEnabled":true,"draggingEnabled":true,"__serializedExpressions__":["_Position"],"fixed":[{"__isSmartRef__":true,"id":41022},{"__isSmartRef__":true,"id":41036},{"__isSmartRef__":true,"id":41050},{"__isSmartRef__":true,"id":41064},{"__isSmartRef__":true,"id":41078},{"__isSmartRef__":true,"id":41092},{"__isSmartRef__":true,"id":41106}],"scalingBelow":[{"__isSmartRef__":true,"id":41281}],"scalingAbove":[{"__isSmartRef__":true,"id":41127},{"__isSmartRef__":true,"id":41194},{"__isSmartRef__":true,"id":41223},{"__isSmartRef__":true,"id":41252}],"minHeight":20,"pointerConnection":null,"owner":{"__isSmartRef__":true,"id":41012},"styleClass":["Browser_resizer"],"layout":{"__isSmartRef__":true,"id":41324},"__LivelyClassName__":"lively.morphic.HorizontalDivider","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,242.0)"},"41318":{"__serializedExpressions__":["_Position","_Extent","_Padding"],"_Fill":{"__isSmartRef__":true,"id":41319},"_BorderRadius":3,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(820.0,5.5)","_Padding":"lively.rect(0,0,0,0)"},"41319":{"stops":[{"__isSmartRef__":true,"id":41320},{"__isSmartRef__":true,"id":41321},{"__isSmartRef__":true,"id":41322}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"41320":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(235,235,235)"},"41321":{"offset":0.5,"__serializedExpressions__":["color"],"color":"Color.rgb(215,215,215)"},"41322":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(184,184,184)"},"41323":{"morph":{"__isSmartRef__":true,"id":41317},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41324":{"scaleVertical":true,"scaleHorizontal":true},"41325":{"__serializedExpressions__":["_Position","_Extent","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(820.0,550.0)","_Padding":"lively.rect(0,0,0,0)","_Fill":"Color.rgb(230,230,230)"},"41326":{"morph":{"__isSmartRef__":true,"id":41012},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41327":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true},"41328":{"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["_Padding","_Extent"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Padding":"lively.rect(0,0,0,0)","_Extent":"lively.pt(828.0,576.0)"},"41329":{"morph":{"__isSmartRef__":true,"id":40888},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41330":{"adjustForNewBounds":true},"41331":{"submorphs":[{"__isSmartRef__":true,"id":41332},{"__isSmartRef__":true,"id":42591},{"__isSmartRef__":true,"id":42667}],"scripts":[],"shape":{"__isSmartRef__":true,"id":42698},"id":"9AB1B13F-1CF6-4EBB-B470-87C5B1F8B86F","eventHandler":{"__isSmartRef__":true,"id":42699},"droppingEnabled":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":42700},"LK2":true,"targetMorph":{"__isSmartRef__":true,"id":41332},"titleBar":{"__isSmartRef__":true,"id":42591},"collapsedTransform":{"__isSmartRef__":true,"id":42701},"expandedTransform":{"__isSmartRef__":true,"id":42702},"ignoreEventsOnExpand":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":42703},"name":"ObjectEditor","highlighted":false,"cameForward":false,"showsHalos":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isBeingDragged":false,"prevScroll":[0,0],"isCopyMorphRef":true,"morphRefId":16,"derivationIds":[205,"2951753B-EB95-4093-A0DD-249E83AC2204","A32DE788-E06D-492C-B2E6-19C3710B5AE0","96D56291-98FB-42C4-A247-0A20B4183B14","1E6BCC46-3FE3-4950-AE50-9751458F7E18","22248328-5B04-4E39-ADDE-460C107C790F","2F4F6161-9F4C-469E-AF56-24765FF03B72","88EF08D5-C1E7-4B5B-B393-FFF5921009D7","FF731ED6-5217-4053-9B85-77F1BF344BF3","496332F8-A328-4625-A7D5-0DCE90C3D2AE","E57F1D4E-AE08-4CAA-A62D-4E69FC0BFF47","94783CDE-55B0-4198-8477-C0756F2C812F","F03206B8-2964-470C-A335-FF321C7743E5","C60ABA94-4D2A-4524-9239-9B7EA074A0B5","D3FBB0FA-2BFF-4D8C-9632-41EEEDB053AE","FDF9A68D-1149-4666-9946-600CCA238B76","118B9F76-0089-47CC-9C18-9F9FF646339B","B0FFB231-7805-4F89-B4B3-4ACD87687613","76631A8F-F752-4DB8-93ED-1496BC458DF0","04D3062E-744B-4E3D-8B25-5602772A307B","89687ECD-A53A-4C95-B6E8-235EBB9198E9","612A25B8-60DC-488D-AD81-1BFA6E48A0D4","08ED6CF8-0A8B-4DC5-AA4D-6499033DFCEC","9771786C-46ED-4C4F-A876-F8CF0B84E769","5DCB36B2-C2B7-49A2-AB12-014B2944C328","D05AAF5D-5660-4158-8BBA-3F564F04AF6F","885F1822-564C-4189-9B13-6D3D8D7CEFCF","8BEEB84F-C547-44B8-9A1E-4586D5236462","5F90A8DF-CB92-4CD6-803F-F082D3A5C1E1","75E80C8F-4DC1-4C89-8CA2-23A70FDEB44F"],"moved":true,"_ClipMode":"visible","_Rotation":0,"_Scale":1.0100552207170073,"owner":{"__isSmartRef__":true,"id":0},"__serializedExpressions__":["contentOffset","collapsedExtent","expandedExtent","prevDragPos","expandedPosition","collapsedPosition","minSize","minExtent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":42848},"__LivelyClassName__":"lively.morphic.Window","__SourceModuleName__":"Global.lively.morphic.Widgets","withoutLayers":["Global.lively.morphic.GrabbingLayer"],"contentOffset":"lively.pt(0.0,22.0)","collapsedExtent":"lively.pt(723.0,268.0)","expandedExtent":"lively.pt(729.0,365.0)","prevDragPos":"lively.pt(643.1,893.6)","expandedPosition":"lively.pt(26.0,125.0)","collapsedPosition":"lively.pt(21.0,92.9)","minSize":"lively.pt(500.0,300.0)","minExtent":"lively.pt(455.0,268.0)","_Position":"lively.pt(55.5,918.8)"},"41332":{"submorphs":[{"__isSmartRef__":true,"id":41333},{"__isSmartRef__":true,"id":41951},{"__isSmartRef__":true,"id":41786},{"__isSmartRef__":true,"id":41957},{"__isSmartRef__":true,"id":41964},{"__isSmartRef__":true,"id":41986},{"__isSmartRef__":true,"id":42007},{"__isSmartRef__":true,"id":42034},{"__isSmartRef__":true,"id":41567},{"__isSmartRef__":true,"id":41707},{"__isSmartRef__":true,"id":42065},{"__isSmartRef__":true,"id":42156},{"__isSmartRef__":true,"id":42162},{"__isSmartRef__":true,"id":42224},{"__isSmartRef__":true,"id":42267},{"__isSmartRef__":true,"id":42310},{"__isSmartRef__":true,"id":42331}],"scripts":[{"__isSmartRef__":true,"id":42478}],"id":"665B0030-FA03-40C8-B2DB-3CD93E892AC7","shape":{"__isSmartRef__":true,"id":42479},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"ObjectEditorPane","partsBinMetaInfo":{"__isSmartRef__":true,"id":42480},"eventHandler":{"__isSmartRef__":true,"id":42483},"layout":{"__isSmartRef__":true,"id":42484},"target":{"__isSmartRef__":true,"id":5212},"scriptPane":{"__isSmartRef__":true,"id":41567},"scriptList":{"__isSmartRef__":true,"id":41333},"connectionList":{"__isSmartRef__":true,"id":41786},"morphSelector":{"__isSmartRef__":true,"id":42065},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"changeIndicator":{"__isSmartRef__":true,"id":41707},"isBeingDragged":false,"prevScroll":[0,0],"grabbingEnabled":false,"draggingEnabled":false,"currentCategory":null,"tagChooser":{"__isSmartRef__":true,"id":42162},"currentTag":null,"derivationIds":[206,"3BDE080D-3D60-4BB9-A690-E6001350F596","00E28CBF-E803-4BC0-93CC-651AC21008A5","1B7E7936-0145-47E4-8433-DFE58134E74B","422B98E3-E52B-4057-9C28-865873682DE1","BCDE8D30-ECC2-4883-9587-2518B6822233","BA6D5198-5AC2-4A63-9597-D4CF98A99CA9","17E22972-5EBC-4511-9779-05E9E665D899","C6F34039-F423-4223-8D6A-85611A138372","7EC3BECE-1BDA-471D-B14C-C4FB822AA55C","88F702A6-6067-4160-8561-54FAD27ADB17","738F5E09-C109-4CD0-B5F5-418A6227ABA0","0DC59884-6397-4391-A9A7-FB6F9F97E5AD","14C76016-3134-4E27-8E8F-AF9EE6ACCF4E","FEB1641E-DEA0-449B-B5E5-D3946457A986","5A09E61D-0939-46DD-B099-6337F45EAD81","42A37CDC-8F21-49BA-A701-B98418EF4AEC","FCE84B47-1667-482B-B035-D2C3C7F53837","F49E6D79-2AEB-41FC-8057-A25A4C7D4F92","7B115C74-E409-42A1-9FCB-2DEB53C88CD6","1D3B45A6-5E60-4FD3-900A-288DB80F5262","5BC7B59B-3F80-49C6-BF71-F3777B7D4867","22651992-9C38-474F-B720-F2FC4B1D9A0E","80BF85C2-6727-4766-861C-09C225341FEA","ADC6838F-0BD6-456E-8BD7-A62A9A80285C","9BBAD88A-5DC6-4051-A7CA-4C3F918DD733","0C73D724-E7A5-4AAE-9449-D414B1F3E04E","B341D9BF-D6FF-4ED9-A0AE-A8BDA4C1C35F","19CCEF38-2A49-48DF-BEFD-D5096BA3A758","CB78359F-A158-4EA7-8E3D-8F2C1B6580E5"],"owner":{"__isSmartRef__":true,"id":41331},"partTests":{"__isSmartRef__":true,"id":42485},"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":42486},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(350.2,-3.2)","_Position":"lively.pt(1.0,21.5)"},"41333":{"submorphs":[],"scripts":[],"id":"5B82B117-CFA4-47A0-90B1-353D81596AFA","shape":{"__isSmartRef__":true,"id":41334},"droppingEnabled":true,"halosEnabled":true,"itemList":["-- ALL --","ABPcontinue","ABPfailHard","ABPgetValue","ABPhasChildNodes","ABPmarkAsActive","ABPmarkAsDone","ABPmarkAsSkipped","ABPmarkChildNodesAsSkippedAfter","ABPreturn","ABPshowValue","ABPstart","blink","buildChildNodes","deactivate","getGameTree","getLevel","getLevelWeight","getParent","getStateMorph","getWeight","markFinalDrawWith","onMouseDown","setNode","setParent","showState"],"selectedLineNo":21,"showsHalos":false,"name":"ObjectEditorScriptList","partsBinMetaInfo":{"__isSmartRef__":true,"id":41335},"_ClipMode":"auto","owner":{"__isSmartRef__":true,"id":41332},"prevScroll":[0,112],"attributeConnections":[{"__isSmartRef__":true,"id":41336}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"layout":{"__isSmartRef__":true,"id":41338},"doitContext":{"__isSmartRef__":true,"id":41339},"eventHandler":{"__isSmartRef__":true,"id":41942},"_FontSize":10,"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"isCopyMorphRef":true,"morphRefId":17,"currentCategory":null,"derivationIds":[207,"D87334B5-DFB8-438D-8038-D2C55A798E3B","4242A24B-D284-4130-BB19-C1AB8C7E96CB","1F2230C1-4745-4EED-8827-5D3FC0EA8D8A","1260A8AA-AD41-451A-A761-BE75A33282E8","11AABB24-1595-4EDC-95DF-8BC66785F47A","CA99FFE7-13DD-4721-8DE2-6A587B0C65D9","E01A3DAA-0001-4C7C-A6A7-449C3945A3E6","8C3C70BF-E1CE-4FB9-8407-24EA990D4E49","D70897C1-82FA-42AD-9D81-A0698E9072CC","69BB0838-2830-4831-A681-185E03308396","434D4493-4DD6-466F-A202-7364A5829C52","93D99F39-CC07-45EB-9459-5230A80A20D2","4756DE7D-3422-46FC-B24B-5565F597D490","7AF59BEC-20A9-4451-AD6E-39E86979D18D","07109F49-B19B-4C20-8632-697478AA1FFB","DD6C1E85-89E4-4619-A9B8-6CF6A5E7AD71","C9C566DA-2167-4866-B606-6D9467CC5763","43A75FC1-E0E6-4B7B-84B5-382D18881361","1EE4A800-07BC-4687-B972-0360A139A335","52766A7B-F1AC-4B5D-AFA9-3CBEC45A4175","500ABFF2-CC61-403C-B40B-C38B13EB829E","CCC6F1D7-B08E-4106-A54C-3CB27FAE885A","DD77BBCF-FA2D-4EEF-80E5-DFD0CFAC257E","FBF51FE1-3F15-48F1-9968-35CE0F17558A","0435127D-922E-4618-BBE2-72674C58772C","7A26603F-1566-41BE-B32D-6B17A7FAF107","236EA689-19AE-4C3D-BA95-EA5786184C70","331932E3-0E70-4FF1-8CD0-11921E2FF30E","B826CD75-9134-4A06-BC7D-791974BC6735"],"selection":"markFinalDrawWith","_Rotation":0,"_Scale":1,"changeTriggered":true,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":41943},"__LivelyClassName__":"lively.morphic.List","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(10.0,63.0)","distanceToDragEvent":"lively.pt(126.0,-14.4)"},"41334":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(180.0,242.8)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)","_Padding":"lively.rect(0,0,0,0)"},"41335":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"41336":{"sourceObj":{"__isSmartRef__":true,"id":41333},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":41332},"targetMethodName":"displaySourceForScript","converterString":"function (value) {\n return (value === '-- ALL --') ? null : value;\n}","updaterString":null,"varMapping":{"__isSmartRef__":true,"id":41337},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41337":{"source":{"__isSmartRef__":true,"id":41333},"target":{"__isSmartRef__":true,"id":41332}},"41338":{"resizeHeight":true},"41339":{"submorphs":[],"scripts":[],"id":836,"shape":{"__isSmartRef__":true,"id":41340},"droppingEnabled":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":41341},"titleBar":{"__isSmartRef__":true,"id":41342},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":{"__isSmartRef__":true,"id":41407},"highlighted":true,"_Rotation":0,"_Scale":1,"showsHalos":false,"name":"ObjectEditor","target":{"__isSmartRef__":true,"id":41408},"partsBinMetaInfo":{"__isSmartRef__":true,"id":41566},"scriptList":{"__isSmartRef__":true,"id":41333},"scriptPane":{"__isSmartRef__":true,"id":41567},"classButton":{"__isSmartRef__":true,"id":41766},"connectionList":{"__isSmartRef__":true,"id":41786},"targetButton":{"__isSmartRef__":true,"id":41798},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"morphSelector":{"__isSmartRef__":true,"id":41816},"eventHandler":{"__isSmartRef__":true,"id":41889},"cameForward":false,"isCopyMorphRef":true,"morphRefId":1,"__serializedExpressions__":["contentOffset","expandedExtent","prevDragPos","expandedPosition","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":41890},"__LivelyClassName__":"lively.morphic.Window","__SourceModuleName__":"Global.lively.morphic.Widgets","withoutLayers":["Global.lively.morphic.GrabbingLayer"],"contentOffset":"lively.pt(0.0,22.0)","expandedExtent":"lively.pt(861.5,575.2)","prevDragPos":"lively.pt(613.0,129.0)","expandedPosition":"lively.pt(377.7,419.5)","_Position":"lively.pt(715.5,73.9)"},"41340":{"_BorderWidth":1,"_StrokeOpacity":0,"_BorderRadius":9.25,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Fill","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Extent":"lively.pt(981.0,585.2)","_BorderColor":"Color.rgb(0,0,0)"},"41341":{"adjustForNewBounds":true},"41342":{"submorphs":[{"__isSmartRef__":true,"id":41343},{"__isSmartRef__":true,"id":41348},{"__isSmartRef__":true,"id":41369},{"__isSmartRef__":true,"id":41384}],"scripts":[],"id":837,"shape":{"__isSmartRef__":true,"id":41400},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":41405},"eventsAreIgnored":true,"windowMorph":{"__isSmartRef__":true,"id":41339},"label":{"__isSmartRef__":true,"id":41343},"closeButton":{"__isSmartRef__":true,"id":41348},"menuButton":{"__isSmartRef__":true,"id":41369},"collapseButton":{"__isSmartRef__":true,"id":41384},"owner":null,"name":"ObjectEditorTitleBar","_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":41406},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.TitleBar","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"41343":{"submorphs":[],"scripts":[],"id":838,"shape":{"__isSmartRef__":true,"id":41344},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":41345}],"evalEnabled":false,"isLabel":true,"eventsAreIgnored":true,"_FontSize":10,"_Align":"center","owner":{"__isSmartRef__":true,"id":41342},"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":41347},"_HandStyle":"default","_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(20.0,3.0)"},"41344":{"_BorderWidth":0,"_Fill":null,"_BorderRadius":0,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(922.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"41345":{"style":{"__isSmartRef__":true,"id":41346},"chunkOwner":{"__isSmartRef__":true,"id":41343},"storedString":"","_id":"_1341","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41346":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41347":{"morph":{"__isSmartRef__":true,"id":41343},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41348":{"submorphs":[{"__isSmartRef__":true,"id":41349}],"scripts":[],"id":839,"shape":{"__isSmartRef__":true,"id":41354},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":41355},"lighterFill":{"__isSmartRef__":true,"id":41360},"label":{"__isSmartRef__":true,"id":41349},"owner":{"__isSmartRef__":true,"id":41342},"layout":{"__isSmartRef__":true,"id":41365},"attributeConnections":[{"__isSmartRef__":true,"id":41366},{"__isSmartRef__":true,"id":41367}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":41368},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(961.0,3.0)"},"41349":{"submorphs":[],"scripts":[],"id":840,"shape":{"__isSmartRef__":true,"id":41350},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":41351}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":41348},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":41353},"_HandStyle":"default","_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(5,0,0,0)","_Position":"lively.pt(0.0,0.0)"},"41350":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"41351":{"style":{"__isSmartRef__":true,"id":41352},"chunkOwner":{"__isSmartRef__":true,"id":41349},"storedString":"","_id":"_1342","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41352":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41353":{"morph":{"__isSmartRef__":true,"id":41349},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41354":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":41355},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"41355":{"stops":[{"__isSmartRef__":true,"id":41356},{"__isSmartRef__":true,"id":41357},{"__isSmartRef__":true,"id":41358},{"__isSmartRef__":true,"id":41359}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"41356":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"41357":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"41358":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"41359":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"41360":{"stops":[{"__isSmartRef__":true,"id":41361},{"__isSmartRef__":true,"id":41362},{"__isSmartRef__":true,"id":41363},{"__isSmartRef__":true,"id":41364}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"41361":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"41362":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"41363":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"41364":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"41365":{"moveHorizontal":true},"41366":{"sourceObj":{"__isSmartRef__":true,"id":41348},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":41339},"targetMethodName":"getCloseHelp","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41367":{"sourceObj":{"__isSmartRef__":true,"id":41348},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":41339},"targetMethodName":"initiateShutdown","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41368":{"morph":{"__isSmartRef__":true,"id":41348},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41369":{"submorphs":[{"__isSmartRef__":true,"id":41370}],"scripts":[],"id":841,"shape":{"__isSmartRef__":true,"id":41375},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":41355},"lighterFill":{"__isSmartRef__":true,"id":41376},"label":{"__isSmartRef__":true,"id":41370},"owner":{"__isSmartRef__":true,"id":41342},"attributeConnections":[{"__isSmartRef__":true,"id":41381},{"__isSmartRef__":true,"id":41382}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"showsHalos":false,"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":41383},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(3.0,3.0)"},"41370":{"submorphs":[],"scripts":[],"id":842,"shape":{"__isSmartRef__":true,"id":41371},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":41372}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":41369},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":41374},"_HandStyle":"default","_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(5,0,0,0)","_Position":"lively.pt(0.0,0.0)"},"41371":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"41372":{"style":{"__isSmartRef__":true,"id":41373},"chunkOwner":{"__isSmartRef__":true,"id":41370},"storedString":"","_id":"_1343","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41373":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41374":{"morph":{"__isSmartRef__":true,"id":41370},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41375":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":41355},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"41376":{"stops":[{"__isSmartRef__":true,"id":41377},{"__isSmartRef__":true,"id":41378},{"__isSmartRef__":true,"id":41379},{"__isSmartRef__":true,"id":41380}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"41377":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"41378":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"41379":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"41380":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"41381":{"sourceObj":{"__isSmartRef__":true,"id":41369},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":41339},"targetMethodName":"getMenuHelp","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41382":{"sourceObj":{"__isSmartRef__":true,"id":41369},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":41339},"targetMethodName":"showTargetMorphMenu","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41383":{"morph":{"__isSmartRef__":true,"id":41369},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41384":{"submorphs":[{"__isSmartRef__":true,"id":41385}],"scripts":[],"id":843,"shape":{"__isSmartRef__":true,"id":41390},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":41355},"lighterFill":{"__isSmartRef__":true,"id":41391},"label":{"__isSmartRef__":true,"id":41385},"owner":{"__isSmartRef__":true,"id":41342},"layout":{"__isSmartRef__":true,"id":41396},"attributeConnections":[{"__isSmartRef__":true,"id":41397},{"__isSmartRef__":true,"id":41398}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":41399},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(942.0,3.0)"},"41385":{"submorphs":[],"scripts":[],"id":844,"shape":{"__isSmartRef__":true,"id":41386},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":41387}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":41384},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":41389},"_HandStyle":"default","_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(5,0,0,0)","_Position":"lively.pt(0.0,0.0)"},"41386":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"41387":{"style":{"__isSmartRef__":true,"id":41388},"chunkOwner":{"__isSmartRef__":true,"id":41385},"storedString":"","_id":"_1344","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41388":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41389":{"morph":{"__isSmartRef__":true,"id":41385},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41390":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":41355},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"41391":{"stops":[{"__isSmartRef__":true,"id":41392},{"__isSmartRef__":true,"id":41393},{"__isSmartRef__":true,"id":41394},{"__isSmartRef__":true,"id":41395}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"41392":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"41393":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"41394":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"41395":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"41396":{"moveHorizontal":true},"41397":{"sourceObj":{"__isSmartRef__":true,"id":41384},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":41339},"targetMethodName":"getCollapseHelp","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41398":{"sourceObj":{"__isSmartRef__":true,"id":41384},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":41339},"targetMethodName":"toggleCollapse","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41399":{"morph":{"__isSmartRef__":true,"id":41384},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41400":{"_BorderWidth":2,"_Fill":{"__isSmartRef__":true,"id":41401},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(981.0,22.0)","_BorderColor":"Color.rgb(102,102,102)"},"41401":{"stops":[{"__isSmartRef__":true,"id":41402},{"__isSmartRef__":true,"id":41403},{"__isSmartRef__":true,"id":41404}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,1,0,-1)"},"41402":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(184,184,184)"},"41403":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(230,230,230)"},"41404":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(184,184,184)"},"41405":{"resizeWidth":true,"adjustForNewBounds":true},"41406":{"morph":{"__isSmartRef__":true,"id":41342},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41407":{"a":1,"b":0,"c":0,"d":1,"e":377.6609726943286,"f":419.5142810783999,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"41408":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":41409},"id":394,"textChunks":[{"__isSmartRef__":true,"id":41410}],"eventHandler":{"__isSmartRef__":true,"id":41412},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_MaxTextWidth":500,"_MaxTextHeight":200,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":41413},"layout":{"__isSmartRef__":true,"id":41485},"doitContext":{"__isSmartRef__":true,"id":41486},"priorSelectionRange":[0,36],"charsReplaced":"","lastFindLoc":20,"showsHalos":false,"__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(2,1,0,0)","_Position":"lively.pt(0.0,22.0)"},"41409":{"_BorderWidth":2,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(500.0,200.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)"},"41410":{"style":{"__isSmartRef__":true,"id":41411},"chunkOwner":{"__isSmartRef__":true,"id":41408},"storedString":"","_id":"_1353","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41411":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41412":{"morph":{"__isSmartRef__":true,"id":41408},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41413":{"submorphs":[{"__isSmartRef__":true,"id":41408},{"__isSmartRef__":true,"id":41414}],"scripts":[],"shape":{"__isSmartRef__":true,"id":41482},"id":395,"eventHandler":{"__isSmartRef__":true,"id":41483},"droppingEnabled":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":41484},"LK2":true,"targetMorph":{"__isSmartRef__":true,"id":41408},"titleBar":{"__isSmartRef__":true,"id":41414},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"highlighted":true,"_Rotation":0,"_Scale":1,"cameForward":false,"showsHalos":false,"__serializedExpressions__":["_Position","contentOffset","prevDragPos"],"__LivelyClassName__":"lively.morphic.Window","__SourceModuleName__":"Global.lively.morphic.Widgets","withoutLayers":["Global.lively.morphic.GrabbingLayer"],"_Position":"lively.pt(1234.0,448.0)","contentOffset":"lively.pt(0.0,22.0)","prevDragPos":"lively.pt(1478.0,453.0)"},"41414":{"submorphs":[{"__isSmartRef__":true,"id":41415},{"__isSmartRef__":true,"id":41421},{"__isSmartRef__":true,"id":41444},{"__isSmartRef__":true,"id":41461}],"scripts":[],"shape":{"__isSmartRef__":true,"id":41479},"id":396,"eventHandler":{"__isSmartRef__":true,"id":41480},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":41481},"windowMorph":{"__isSmartRef__":true,"id":41413},"label":{"__isSmartRef__":true,"id":41415},"closeButton":{"__isSmartRef__":true,"id":41421},"menuButton":{"__isSmartRef__":true,"id":41444},"collapseButton":{"__isSmartRef__":true,"id":41461},"owner":{"__isSmartRef__":true,"id":41413},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.TitleBar","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"41415":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":41416},"id":397,"textChunks":[{"__isSmartRef__":true,"id":41417}],"eventHandler":{"__isSmartRef__":true,"id":41419},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","evalEnabled":false,"isLabel":true,"_HandStyle":"default","layout":{"__isSmartRef__":true,"id":41420},"_FontSize":10,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","owner":{"__isSmartRef__":true,"id":41414},"_MaxTextWidth":441,"_MaxTextHeight":17,"__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(20.0,3.0)"},"41416":{"_BorderWidth":0,"_Fill":null,"_BorderRadius":0,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(441.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"41417":{"style":{"__isSmartRef__":true,"id":41418},"chunkOwner":{"__isSmartRef__":true,"id":41415},"storedString":"","_id":"_1345","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41418":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41419":{"morph":{"__isSmartRef__":true,"id":41415},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41420":{"resizeWidth":true},"41421":{"submorphs":[{"__isSmartRef__":true,"id":41422}],"scripts":[],"shape":{"__isSmartRef__":true,"id":41427},"id":398,"eventHandler":{"__isSmartRef__":true,"id":41433},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":41428},"lighterFill":{"__isSmartRef__":true,"id":41434},"label":{"__isSmartRef__":true,"id":41422},"owner":{"__isSmartRef__":true,"id":41414},"layout":{"__isSmartRef__":true,"id":41439},"attributeConnections":[{"__isSmartRef__":true,"id":41440},{"__isSmartRef__":true,"id":41442}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(480.0,3.0)"},"41422":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":41423},"id":399,"textChunks":[{"__isSmartRef__":true,"id":41424}],"eventHandler":{"__isSmartRef__":true,"id":41426},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":41421},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,3,0,0)","_Position":"lively.pt(0.0,0.0)"},"41423":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"41424":{"style":{"__isSmartRef__":true,"id":41425},"chunkOwner":{"__isSmartRef__":true,"id":41422},"storedString":"","_id":"_1346","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41425":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41426":{"morph":{"__isSmartRef__":true,"id":41422},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41427":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":41428},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"41428":{"stops":[{"__isSmartRef__":true,"id":41429},{"__isSmartRef__":true,"id":41430},{"__isSmartRef__":true,"id":41431},{"__isSmartRef__":true,"id":41432}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"41429":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"41430":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"41431":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"41432":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"41433":{"morph":{"__isSmartRef__":true,"id":41421},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41434":{"stops":[{"__isSmartRef__":true,"id":41435},{"__isSmartRef__":true,"id":41436},{"__isSmartRef__":true,"id":41437},{"__isSmartRef__":true,"id":41438}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"41435":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"41436":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"41437":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"41438":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"41439":{"moveHorizontal":true},"41440":{"sourceObj":{"__isSmartRef__":true,"id":41421},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":41413},"targetMethodName":"getCloseHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":41441},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41441":{"source":{"__isSmartRef__":true,"id":41421},"target":{"__isSmartRef__":true,"id":41413}},"41442":{"sourceObj":{"__isSmartRef__":true,"id":41421},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":41413},"targetMethodName":"initiateShutdown","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":41443},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41443":{"source":{"__isSmartRef__":true,"id":41421},"target":{"__isSmartRef__":true,"id":41413}},"41444":{"submorphs":[{"__isSmartRef__":true,"id":41445}],"scripts":[],"shape":{"__isSmartRef__":true,"id":41450},"id":400,"eventHandler":{"__isSmartRef__":true,"id":41451},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":41428},"lighterFill":{"__isSmartRef__":true,"id":41452},"label":{"__isSmartRef__":true,"id":41445},"owner":{"__isSmartRef__":true,"id":41414},"attributeConnections":[{"__isSmartRef__":true,"id":41457},{"__isSmartRef__":true,"id":41459}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(3.0,3.0)"},"41445":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":41446},"id":401,"textChunks":[{"__isSmartRef__":true,"id":41447}],"eventHandler":{"__isSmartRef__":true,"id":41449},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":41444},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,3,0,0)","_Position":"lively.pt(0.0,0.0)"},"41446":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"41447":{"style":{"__isSmartRef__":true,"id":41448},"chunkOwner":{"__isSmartRef__":true,"id":41445},"storedString":"","_id":"_1347","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41448":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41449":{"morph":{"__isSmartRef__":true,"id":41445},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41450":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":41428},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"41451":{"morph":{"__isSmartRef__":true,"id":41444},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41452":{"stops":[{"__isSmartRef__":true,"id":41453},{"__isSmartRef__":true,"id":41454},{"__isSmartRef__":true,"id":41455},{"__isSmartRef__":true,"id":41456}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"41453":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"41454":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"41455":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"41456":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"41457":{"sourceObj":{"__isSmartRef__":true,"id":41444},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":41413},"targetMethodName":"getMenuHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":41458},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41458":{"source":{"__isSmartRef__":true,"id":41444},"target":{"__isSmartRef__":true,"id":41413}},"41459":{"sourceObj":{"__isSmartRef__":true,"id":41444},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":41413},"targetMethodName":"showTargetMorphMenu","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":41460},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41460":{"source":{"__isSmartRef__":true,"id":41444},"target":{"__isSmartRef__":true,"id":41413}},"41461":{"submorphs":[{"__isSmartRef__":true,"id":41462}],"scripts":[],"shape":{"__isSmartRef__":true,"id":41467},"id":402,"eventHandler":{"__isSmartRef__":true,"id":41468},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":41428},"lighterFill":{"__isSmartRef__":true,"id":41469},"label":{"__isSmartRef__":true,"id":41462},"owner":{"__isSmartRef__":true,"id":41414},"layout":{"__isSmartRef__":true,"id":41474},"attributeConnections":[{"__isSmartRef__":true,"id":41475},{"__isSmartRef__":true,"id":41477}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(461.0,3.0)"},"41462":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":41463},"id":403,"textChunks":[{"__isSmartRef__":true,"id":41464}],"eventHandler":{"__isSmartRef__":true,"id":41466},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":41461},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,3,0,0)","_Position":"lively.pt(0.0,0.0)"},"41463":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"41464":{"style":{"__isSmartRef__":true,"id":41465},"chunkOwner":{"__isSmartRef__":true,"id":41462},"storedString":"","_id":"_1348","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41465":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41466":{"morph":{"__isSmartRef__":true,"id":41462},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41467":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":41428},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"41468":{"morph":{"__isSmartRef__":true,"id":41461},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41469":{"stops":[{"__isSmartRef__":true,"id":41470},{"__isSmartRef__":true,"id":41471},{"__isSmartRef__":true,"id":41472},{"__isSmartRef__":true,"id":41473}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"41470":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"41471":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"41472":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"41473":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"41474":{"moveHorizontal":true},"41475":{"sourceObj":{"__isSmartRef__":true,"id":41461},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":41413},"targetMethodName":"getCollapseHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":41476},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41476":{"source":{"__isSmartRef__":true,"id":41461},"target":{"__isSmartRef__":true,"id":41413}},"41477":{"sourceObj":{"__isSmartRef__":true,"id":41461},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":41413},"targetMethodName":"toggleCollapse","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":41478},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41478":{"source":{"__isSmartRef__":true,"id":41461},"target":{"__isSmartRef__":true,"id":41413}},"41479":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":41401},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(500.0,22.0)","_BorderColor":"Color.rgb(102,102,102)"},"41480":{"morph":{"__isSmartRef__":true,"id":41414},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41481":{"resizeWidth":true,"adjustForNewBounds":true},"41482":{"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"__serializedExpressions__":["_Extent"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Extent":"lively.pt(500.0,222.0)"},"41483":{"morph":{"__isSmartRef__":true,"id":41413},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41484":{"adjustForNewBounds":true},"41485":{"resizeWidth":true,"resizeHeight":true},"41486":{"submorphs":[{"__isSmartRef__":true,"id":41487},{"__isSmartRef__":true,"id":41494}],"scripts":[],"shape":{"__isSmartRef__":true,"id":41561},"id":361,"eventHandler":{"__isSmartRef__":true,"id":41562},"droppingEnabled":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":41563},"LK2":true,"targetMorph":{"__isSmartRef__":true,"id":41487},"titleBar":{"__isSmartRef__":true,"id":41494},"collapsedTransform":{"__isSmartRef__":true,"id":41564},"expandedTransform":{"__isSmartRef__":true,"id":41565},"ignoreEventsOnExpand":false,"owner":null,"showsHalos":false,"highlighted":true,"_Rotation":0,"_Scale":1,"state":"shutdown","__serializedExpressions__":["_Position","contentOffset","collapsedExtent","expandedExtent","prevDragPos","expandedPosition","collapsedPosition"],"__LivelyClassName__":"lively.morphic.Window","__SourceModuleName__":"Global.lively.morphic.Widgets","withoutLayers":["Global.lively.morphic.GrabbingLayer"],"_Position":"lively.pt(1131.0,79.0)","contentOffset":"lively.pt(0.0,22.0)","collapsedExtent":"lively.pt(500.0,22.0)","expandedExtent":"lively.pt(500.0,222.0)","prevDragPos":"lively.pt(1507.0,76.0)","expandedPosition":"lively.pt(1131.0,79.0)","collapsedPosition":"lively.pt(1131.0,79.0)"},"41487":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":41488},"id":360,"textChunks":[{"__isSmartRef__":true,"id":41489}],"eventHandler":{"__isSmartRef__":true,"id":41491},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,monospace","_MaxTextWidth":500,"_MaxTextHeight":0,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":41486},"layout":{"__isSmartRef__":true,"id":41492},"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":41493}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"lastSyntaxHighlightTime":1307282796737,"accessibleInInactiveWindow":true,"eventsAreIgnored":false,"_HandStyle":"default","_PointerEvents":"auto","_Visible":true,"charsReplaced":"","lastFindLoc":15,"__serializedExpressions__":["_Padding","_Position"],"textString":"undefined","__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(2,1,0,0)","_Position":"lively.pt(0.0,22.0)"},"41488":{"_BorderWidth":2,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(500.0,0.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)"},"41489":{"style":{"__isSmartRef__":true,"id":41490},"chunkOwner":{"__isSmartRef__":true,"id":41487},"_id":"_3","storedString":"undefined","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41490":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41491":{"morph":{"__isSmartRef__":true,"id":41487},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41492":{"resizeWidth":true,"resizeHeight":true},"41493":{"sourceObj":{"__isSmartRef__":true,"id":41487},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":41487},"targetMethodName":"highlightJavaScriptSyntax","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41494":{"submorphs":[{"__isSmartRef__":true,"id":41495},{"__isSmartRef__":true,"id":41501},{"__isSmartRef__":true,"id":41519},{"__isSmartRef__":true,"id":41536}],"scripts":[],"shape":{"__isSmartRef__":true,"id":41554},"id":362,"eventHandler":{"__isSmartRef__":true,"id":41559},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":41560},"windowMorph":{"__isSmartRef__":true,"id":41486},"label":{"__isSmartRef__":true,"id":41495},"closeButton":{"__isSmartRef__":true,"id":41501},"menuButton":{"__isSmartRef__":true,"id":41519},"collapseButton":{"__isSmartRef__":true,"id":41536},"owner":{"__isSmartRef__":true,"id":41486},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.TitleBar","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"41495":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":41496},"id":363,"textChunks":[{"__isSmartRef__":true,"id":41497}],"eventHandler":{"__isSmartRef__":true,"id":41499},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","evalEnabled":false,"isLabel":true,"_HandStyle":"default","layout":{"__isSmartRef__":true,"id":41500},"_FontSize":10,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","owner":{"__isSmartRef__":true,"id":41494},"_MaxTextWidth":441,"_MaxTextHeight":17,"__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(20.0,3.0)"},"41496":{"_BorderWidth":0,"_Fill":null,"_BorderRadius":0,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(441.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"41497":{"style":{"__isSmartRef__":true,"id":41498},"chunkOwner":{"__isSmartRef__":true,"id":41495},"storedString":"","_id":"_1349","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41498":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41499":{"morph":{"__isSmartRef__":true,"id":41495},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41500":{"resizeWidth":true},"41501":{"submorphs":[{"__isSmartRef__":true,"id":41502}],"scripts":[],"shape":{"__isSmartRef__":true,"id":41507},"id":364,"eventHandler":{"__isSmartRef__":true,"id":41508},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":41428},"lighterFill":{"__isSmartRef__":true,"id":41509},"label":{"__isSmartRef__":true,"id":41502},"owner":{"__isSmartRef__":true,"id":41494},"layout":{"__isSmartRef__":true,"id":41514},"attributeConnections":[{"__isSmartRef__":true,"id":41515},{"__isSmartRef__":true,"id":41517}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(480.0,3.0)"},"41502":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":41503},"id":365,"textChunks":[{"__isSmartRef__":true,"id":41504}],"eventHandler":{"__isSmartRef__":true,"id":41506},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":41501},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,3,0,0)","_Position":"lively.pt(0.0,0.0)"},"41503":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"41504":{"style":{"__isSmartRef__":true,"id":41505},"chunkOwner":{"__isSmartRef__":true,"id":41502},"storedString":"","_id":"_1350","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41505":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41506":{"morph":{"__isSmartRef__":true,"id":41502},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41507":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":41428},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"41508":{"morph":{"__isSmartRef__":true,"id":41501},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41509":{"stops":[{"__isSmartRef__":true,"id":41510},{"__isSmartRef__":true,"id":41511},{"__isSmartRef__":true,"id":41512},{"__isSmartRef__":true,"id":41513}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"41510":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"41511":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"41512":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"41513":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"41514":{"moveHorizontal":true},"41515":{"sourceObj":{"__isSmartRef__":true,"id":41501},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":41486},"targetMethodName":"getCloseHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":41516},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41516":{"source":{"__isSmartRef__":true,"id":41501},"target":{"__isSmartRef__":true,"id":41486}},"41517":{"sourceObj":{"__isSmartRef__":true,"id":41501},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":41486},"targetMethodName":"initiateShutdown","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":41518},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41518":{"source":{"__isSmartRef__":true,"id":41501},"target":{"__isSmartRef__":true,"id":41486}},"41519":{"submorphs":[{"__isSmartRef__":true,"id":41520}],"scripts":[],"shape":{"__isSmartRef__":true,"id":41525},"id":366,"eventHandler":{"__isSmartRef__":true,"id":41526},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":41428},"lighterFill":{"__isSmartRef__":true,"id":41527},"label":{"__isSmartRef__":true,"id":41520},"owner":{"__isSmartRef__":true,"id":41494},"attributeConnections":[{"__isSmartRef__":true,"id":41532},{"__isSmartRef__":true,"id":41534}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(3.0,3.0)"},"41520":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":41521},"id":367,"textChunks":[{"__isSmartRef__":true,"id":41522}],"eventHandler":{"__isSmartRef__":true,"id":41524},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":41519},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,3,0,0)","_Position":"lively.pt(0.0,0.0)"},"41521":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"41522":{"style":{"__isSmartRef__":true,"id":41523},"chunkOwner":{"__isSmartRef__":true,"id":41520},"storedString":"","_id":"_1351","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41523":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41524":{"morph":{"__isSmartRef__":true,"id":41520},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41525":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":41428},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"41526":{"morph":{"__isSmartRef__":true,"id":41519},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41527":{"stops":[{"__isSmartRef__":true,"id":41528},{"__isSmartRef__":true,"id":41529},{"__isSmartRef__":true,"id":41530},{"__isSmartRef__":true,"id":41531}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"41528":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"41529":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"41530":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"41531":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"41532":{"sourceObj":{"__isSmartRef__":true,"id":41519},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":41486},"targetMethodName":"getMenuHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":41533},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41533":{"source":{"__isSmartRef__":true,"id":41519},"target":{"__isSmartRef__":true,"id":41486}},"41534":{"sourceObj":{"__isSmartRef__":true,"id":41519},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":41486},"targetMethodName":"showTargetMorphMenu","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":41535},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41535":{"source":{"__isSmartRef__":true,"id":41519},"target":{"__isSmartRef__":true,"id":41486}},"41536":{"submorphs":[{"__isSmartRef__":true,"id":41537}],"scripts":[],"shape":{"__isSmartRef__":true,"id":41542},"id":368,"eventHandler":{"__isSmartRef__":true,"id":41543},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":41428},"lighterFill":{"__isSmartRef__":true,"id":41544},"label":{"__isSmartRef__":true,"id":41537},"owner":{"__isSmartRef__":true,"id":41494},"layout":{"__isSmartRef__":true,"id":41549},"attributeConnections":[{"__isSmartRef__":true,"id":41550},{"__isSmartRef__":true,"id":41552}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(461.0,3.0)"},"41537":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":41538},"id":369,"textChunks":[{"__isSmartRef__":true,"id":41539}],"eventHandler":{"__isSmartRef__":true,"id":41541},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":41536},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__serializedExpressions__":["_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,3,0,0)","_Position":"lively.pt(0.0,0.0)"},"41538":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(0,0,0)"},"41539":{"style":{"__isSmartRef__":true,"id":41540},"chunkOwner":{"__isSmartRef__":true,"id":41537},"storedString":"","_id":"_1352","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41540":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41541":{"morph":{"__isSmartRef__":true,"id":41537},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41542":{"_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":41428},"_StrokeOpacity":0,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_BorderColor":"Color.rgb(189,190,192)"},"41543":{"morph":{"__isSmartRef__":true,"id":41536},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41544":{"stops":[{"__isSmartRef__":true,"id":41545},{"__isSmartRef__":true,"id":41546},{"__isSmartRef__":true,"id":41547},{"__isSmartRef__":true,"id":41548}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"41545":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"41546":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"41547":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"41548":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"41549":{"moveHorizontal":true},"41550":{"sourceObj":{"__isSmartRef__":true,"id":41536},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":41486},"targetMethodName":"getCollapseHelp","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":41551},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41551":{"source":{"__isSmartRef__":true,"id":41536},"target":{"__isSmartRef__":true,"id":41486}},"41552":{"sourceObj":{"__isSmartRef__":true,"id":41536},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":41486},"targetMethodName":"toggleCollapse","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":41553},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41553":{"source":{"__isSmartRef__":true,"id":41536},"target":{"__isSmartRef__":true,"id":41486}},"41554":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":41555},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(500.0,22.0)","_BorderColor":"Color.rgb(102,102,102)"},"41555":{"stops":[{"__isSmartRef__":true,"id":41556},{"__isSmartRef__":true,"id":41557},{"__isSmartRef__":true,"id":41558}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"41556":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(220,220,220)"},"41557":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(243,243,243)"},"41558":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(220,220,220)"},"41559":{"morph":{"__isSmartRef__":true,"id":41494},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41560":{"resizeWidth":true,"adjustForNewBounds":true},"41561":{"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"__serializedExpressions__":["_Extent","_Position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Extent":"lively.pt(500.0,222.0)","_Position":"lively.pt(0.0,0.0)"},"41562":{"morph":{"__isSmartRef__":true,"id":41486},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41563":{"adjustForNewBounds":true},"41564":{"a":1,"b":0,"c":0,"d":1,"e":1131,"f":79,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"41565":{"a":1,"b":0,"c":0,"d":1,"e":1131,"f":79,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"41566":{"requiredModules":[],"migrationLevel":2,"partsSpaceName":"PartsBin/Tools","comment":"Edit scripts and connections of a specific morph. Early version.","partName":"ObjectEditor","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"41567":{"submorphs":[],"scripts":[],"id":"482B5EF9-CE21-4F3A-887E-7C8CF9EB8DA2","shape":{"__isSmartRef__":true,"id":41568},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,courier","_MaxTextWidth":588.0166612695056,"_MaxTextHeight":null,"textChunks":[{"__isSmartRef__":true,"id":41569},{"__isSmartRef__":true,"id":41571},{"__isSmartRef__":true,"id":41573},{"__isSmartRef__":true,"id":41575},{"__isSmartRef__":true,"id":41577},{"__isSmartRef__":true,"id":41579},{"__isSmartRef__":true,"id":41581},{"__isSmartRef__":true,"id":41583},{"__isSmartRef__":true,"id":41585},{"__isSmartRef__":true,"id":41587},{"__isSmartRef__":true,"id":41589},{"__isSmartRef__":true,"id":41591},{"__isSmartRef__":true,"id":41593},{"__isSmartRef__":true,"id":41595},{"__isSmartRef__":true,"id":41597},{"__isSmartRef__":true,"id":41599},{"__isSmartRef__":true,"id":41601},{"__isSmartRef__":true,"id":41603},{"__isSmartRef__":true,"id":41605},{"__isSmartRef__":true,"id":41607},{"__isSmartRef__":true,"id":41609},{"__isSmartRef__":true,"id":41611},{"__isSmartRef__":true,"id":41613},{"__isSmartRef__":true,"id":41615},{"__isSmartRef__":true,"id":41617},{"__isSmartRef__":true,"id":41619},{"__isSmartRef__":true,"id":41621},{"__isSmartRef__":true,"id":41623},{"__isSmartRef__":true,"id":41625},{"__isSmartRef__":true,"id":41627},{"__isSmartRef__":true,"id":41629},{"__isSmartRef__":true,"id":41631},{"__isSmartRef__":true,"id":41633},{"__isSmartRef__":true,"id":41635},{"__isSmartRef__":true,"id":41637},{"__isSmartRef__":true,"id":41639},{"__isSmartRef__":true,"id":41641},{"__isSmartRef__":true,"id":41643},{"__isSmartRef__":true,"id":41645},{"__isSmartRef__":true,"id":41647},{"__isSmartRef__":true,"id":41649},{"__isSmartRef__":true,"id":41651},{"__isSmartRef__":true,"id":41653},{"__isSmartRef__":true,"id":41655},{"__isSmartRef__":true,"id":41657},{"__isSmartRef__":true,"id":41659},{"__isSmartRef__":true,"id":41661},{"__isSmartRef__":true,"id":41663},{"__isSmartRef__":true,"id":41665},{"__isSmartRef__":true,"id":41667},{"__isSmartRef__":true,"id":41669},{"__isSmartRef__":true,"id":41671},{"__isSmartRef__":true,"id":41673},{"__isSmartRef__":true,"id":41675},{"__isSmartRef__":true,"id":41677},{"__isSmartRef__":true,"id":41679},{"__isSmartRef__":true,"id":41681},{"__isSmartRef__":true,"id":41683},{"__isSmartRef__":true,"id":41685},{"__isSmartRef__":true,"id":41687},{"__isSmartRef__":true,"id":41689},{"__isSmartRef__":true,"id":41691},{"__isSmartRef__":true,"id":41693},{"__isSmartRef__":true,"id":41695},{"__isSmartRef__":true,"id":41697},{"__isSmartRef__":true,"id":41699},{"__isSmartRef__":true,"id":41701}],"layout":{"__isSmartRef__":true,"id":41703},"showsHalos":false,"prevScroll":[0,0],"name":"ObjectEditorScriptPane","charsReplaced":"","lastFindLoc":390,"partsBinMetaInfo":{"__isSmartRef__":true,"id":41704},"_ClipMode":"auto","_FontSize":10,"lastSyntaxHighlightTime":1,"doitContext":{"__isSmartRef__":true,"id":5212},"savedTextString":"// changed at Mon Dec 10 2012 23:23:58 GMT+0100 (CET) by sebastianwoinar \nthis.addScript(function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}).tag([]);","_Align":"left","lastSearchString":"migrate","eventHandler":{"__isSmartRef__":true,"id":41705},"attributeConnections":[{"__isSmartRef__":true,"id":41706},{"__isSmartRef__":true,"id":41721},{"__isSmartRef__":true,"id":41722}],"doNotSerialize":["$$textString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors"],"doNotCopyProperties":["$$textString"],"_MinTextWidth":588.0166612695056,"_MinTextHeight":null,"lastSaveSource":"// changed at Mon Dec 10 2012 23:30:30 GMT+0100 (CET) by sebastianwoinar \nthis.addScript(function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}).tag([]);","isBeingDragged":false,"draggingEnabled":false,"objectEditorPane":{"__isSmartRef__":true,"id":41332},"isCopyMorphRef":true,"morphRefId":1,"statusMorph":{"__isSmartRef__":true,"id":41724},"derivationIds":[219,"DD5046D0-C1D6-412A-83C9-CD7EE63D40E0","4D92BDFD-A599-4154-A197-A4B1292C1619","98551F68-B128-4262-9BC2-6B8AC7C8D7C0","47731662-FF8E-4C0F-A170-FD5C56A06021","3FC7FDE6-156F-4056-BB04-B76D8B6C5472","C1E8D5BB-56F9-47B3-A520-BEEFEF791823","115FC149-EEF9-415A-A5B7-AB0B9D0170A4","0D66FA39-01E7-4F16-840C-4FA0FA14DD10","B0A74693-DE3F-4867-8DC0-61B098A8F0D1","3547765B-E224-48EC-B58F-278C1DC7422E","8561ACCF-315A-46EC-9412-BC5D4C55D437","533D6602-9E1A-414A-9646-0FEF9ECCEBF7","5141CF81-6EA1-419B-97AC-62C22FEFC658","B9E83FD9-9781-4F00-8A07-0C96E0D29D3D","034F48B5-B4B1-4DF5-9FA5-9A9CFB99F43A","70FBC800-1914-4F9C-A8E4-2190F72E2902","64465644-E389-4AA2-BE05-93FB591B45D0","E80928FE-6AC8-4FE0-B0A2-7C7A0C7D5E85","E24E50AD-DCA6-4D01-A523-CC1E4FB09222","27E050B0-3192-426E-B01D-907ECF280A68","A241F064-0186-4F84-A037-84CBD9E0D24D","829776FC-15F2-466D-B5F4-88CC9444B1B8","22E56E25-3268-413C-B033-1DB2D96AFA9B","FD5B6693-EB83-4E16-BEA6-D5E23C7E3D48","0A2AD01B-8B4E-4779-9FDF-A504DBC86B5D","EBDFA302-80A1-48E9-B1B3-6143F685CCFF","AB62E3F9-D889-47F9-922A-C440E6382005","6675A7FB-925B-4D65-9CBE-77F2760A6040","122CA78C-89E9-45CE-ADE1-33219233E35A"],"owner":{"__isSmartRef__":true,"id":41332},"syntaxHighlightingWhileTyping":true,"#startLetters":"enable","_Rotation":0,"_Scale":1,"_syntaxHighlightTimeout":null,"lastSyntaxHighlightTimes":[1,5,7,3,4,5,5,11,10,10],"_lastSyntaxHighlightTime":47,"_WordBreak":"break-all","previousSelection":[0,0],"__serializedExpressions__":["_Padding","distanceToDragEvent","_Position"],"textString":"// changed at Mon Dec 10 2012 23:30:30 GMT+0100 (CET) by sebastianwoinar \nthis.addScript(function markFinalDrawWith(points) {\n if(this.ABPhasChildNodes()) {\n for(var i = 0 ; i < this.childNodes.length; i++) {\n var child = this.childNodes[i];\n child.markFinalDrawWith(-points);\n }\n } else{\n\n if(typeof this.abp != \"undefined\") {\n // skipped node\n debugger;\n if(this.abp.m == points) {\n this.setBorderColor(Color.green);\n }\n }\n }\n}).tag([]);","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":41729},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(2,1,0,0)","distanceToDragEvent":"lively.pt(341.2,-18.3)","_Position":"lively.pt(200.0,40.0)"},"41568":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"auto","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(589.0,380.8)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)","_Padding":"lively.rect(0,0,0,0)"},"41569":{"style":{"__isSmartRef__":true,"id":41570},"chunkOwner":{"__isSmartRef__":true,"id":41567},"_id":"_10","storedString":"//","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41570":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(128,0,0)"},"41571":{"_id":"_73","style":{"__isSmartRef__":true,"id":41572},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":" changed at Mon Dec 10 2012 23:30:30 GMT+0100 (CET) by sebastianwoinar ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41572":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"41573":{"_id":"_74","style":{"__isSmartRef__":true,"id":41574},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41574":{"__serializedExpressions__":["backgroundColor"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","backgroundColor":"Color.rgba(204,204,0,0.4)"},"41575":{"_id":"_75","style":{"__isSmartRef__":true,"id":41576},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41576":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,139)"},"41577":{"_id":"_76","style":{"__isSmartRef__":true,"id":41578},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":".addScript(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41578":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"41579":{"_id":"_77","style":{"__isSmartRef__":true,"id":41580},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"function","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41580":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,139)"},"41581":{"_id":"_78","style":{"__isSmartRef__":true,"id":41582},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":" markFinalDrawWith(points) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41582":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"41583":{"_id":"_79","style":{"__isSmartRef__":true,"id":41584},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41584":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"41585":{"_id":"_80","style":{"__isSmartRef__":true,"id":41586},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41586":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"41587":{"_id":"_81","style":{"__isSmartRef__":true,"id":41588},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41588":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"41589":{"_id":"_82","style":{"__isSmartRef__":true,"id":41590},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41590":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"41591":{"_id":"_83","style":{"__isSmartRef__":true,"id":41592},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41592":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,139)"},"41593":{"_id":"_84","style":{"__isSmartRef__":true,"id":41594},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":".ABPhasChildNodes()) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41594":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"41595":{"_id":"_85","style":{"__isSmartRef__":true,"id":41596},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41596":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"41597":{"_id":"_86","style":{"__isSmartRef__":true,"id":41598},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41598":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"41599":{"_id":"_87","style":{"__isSmartRef__":true,"id":41600},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"for","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41600":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"41601":{"_id":"_88","style":{"__isSmartRef__":true,"id":41602},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41602":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"41603":{"_id":"_89","style":{"__isSmartRef__":true,"id":41604},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"var","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41604":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"41605":{"_id":"_90","style":{"__isSmartRef__":true,"id":41606},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":" i = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41606":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"41607":{"_id":"_91","style":{"__isSmartRef__":true,"id":41608},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41608":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"41609":{"_id":"_92","style":{"__isSmartRef__":true,"id":41610},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":" ; i < ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41610":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"41611":{"_id":"_93","style":{"__isSmartRef__":true,"id":41612},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41612":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,139)"},"41613":{"_id":"_94","style":{"__isSmartRef__":true,"id":41614},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":".childNodes.length; i++) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41614":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"41615":{"_id":"_95","style":{"__isSmartRef__":true,"id":41616},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41616":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"41617":{"_id":"_96","style":{"__isSmartRef__":true,"id":41618},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41618":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"41619":{"_id":"_97","style":{"__isSmartRef__":true,"id":41620},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"var","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41620":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"41621":{"_id":"_98","style":{"__isSmartRef__":true,"id":41622},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":" child = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41622":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"41623":{"_id":"_99","style":{"__isSmartRef__":true,"id":41624},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41624":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,139)"},"41625":{"_id":"_100","style":{"__isSmartRef__":true,"id":41626},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":".childNodes[i];\n child.markFinalDrawWith(-points);\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41626":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"41627":{"_id":"_101","style":{"__isSmartRef__":true,"id":41628},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41628":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"41629":{"_id":"_102","style":{"__isSmartRef__":true,"id":41630},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41630":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"41631":{"_id":"_103","style":{"__isSmartRef__":true,"id":41632},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41632":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"41633":{"_id":"_104","style":{"__isSmartRef__":true,"id":41634},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41634":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"41635":{"_id":"_105","style":{"__isSmartRef__":true,"id":41636},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"else","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41636":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"41637":{"_id":"_106","style":{"__isSmartRef__":true,"id":41638},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41638":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"41639":{"_id":"_107","style":{"__isSmartRef__":true,"id":41640},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"\n\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41640":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"41641":{"_id":"_108","style":{"__isSmartRef__":true,"id":41642},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41642":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"41643":{"_id":"_109","style":{"__isSmartRef__":true,"id":41644},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41644":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"41645":{"_id":"_110","style":{"__isSmartRef__":true,"id":41646},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"typeof","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41646":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,139)"},"41647":{"_id":"_111","style":{"__isSmartRef__":true,"id":41648},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41648":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"41649":{"_id":"_112","style":{"__isSmartRef__":true,"id":41650},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41650":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,139)"},"41651":{"_id":"_113","style":{"__isSmartRef__":true,"id":41652},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":".abp != ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41652":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"41653":{"_id":"_114","style":{"__isSmartRef__":true,"id":41654},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"\"undefined\"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41654":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,128)"},"41655":{"_id":"_115","style":{"__isSmartRef__":true,"id":41656},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":") ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41656":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"41657":{"_id":"_116","style":{"__isSmartRef__":true,"id":41658},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41658":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"41659":{"_id":"_117","style":{"__isSmartRef__":true,"id":41660},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41660":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"41661":{"_id":"_118","style":{"__isSmartRef__":true,"id":41662},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"//","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41662":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(128,0,0)"},"41663":{"_id":"_119","style":{"__isSmartRef__":true,"id":41664},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":" skipped node","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41664":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"41665":{"_id":"_120","style":{"__isSmartRef__":true,"id":41666},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"\n debugger;\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41666":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"41667":{"_id":"_121","style":{"__isSmartRef__":true,"id":41668},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41668":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"41669":{"_id":"_122","style":{"__isSmartRef__":true,"id":41670},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41670":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"41671":{"_id":"_123","style":{"__isSmartRef__":true,"id":41672},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41672":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,139)"},"41673":{"_id":"_124","style":{"__isSmartRef__":true,"id":41674},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":".abp.m == points) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41674":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"41675":{"_id":"_125","style":{"__isSmartRef__":true,"id":41676},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41676":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"41677":{"_id":"_126","style":{"__isSmartRef__":true,"id":41678},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41678":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"41679":{"_id":"_127","style":{"__isSmartRef__":true,"id":41680},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41680":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,139)"},"41681":{"_id":"_128","style":{"__isSmartRef__":true,"id":41682},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":".setBorderColor(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41682":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"41683":{"_id":"_137","style":{"__isSmartRef__":true,"id":41684},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"Color","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41684":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,0,0)"},"41685":{"_id":"_138","style":{"__isSmartRef__":true,"id":41686},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":".green);\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41686":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"41687":{"_id":"_129","style":{"__isSmartRef__":true,"id":41688},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41688":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"41689":{"_id":"_130","style":{"__isSmartRef__":true,"id":41690},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41690":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"41691":{"_id":"_131","style":{"__isSmartRef__":true,"id":41692},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41692":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"41693":{"_id":"_132","style":{"__isSmartRef__":true,"id":41694},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41694":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"41695":{"_id":"_133","style":{"__isSmartRef__":true,"id":41696},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41696":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"41697":{"_id":"_134","style":{"__isSmartRef__":true,"id":41698},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41698":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"41699":{"_id":"_135","style":{"__isSmartRef__":true,"id":41700},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41700":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"41701":{"_id":"_136","style":{"__isSmartRef__":true,"id":41702},"chunkOwner":{"__isSmartRef__":true,"id":41567},"storedString":").tag([]);","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41702":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"41703":{"resizeWidth":true,"resizeHeight":true},"41704":{"requiredModules":[],"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"41705":{"morph":{"__isSmartRef__":true,"id":41567},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41706":{"sourceObj":{"__isSmartRef__":true,"id":41567},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":41707},"targetMethodName":"indicateUnsavedChanges","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41707":{"submorphs":[],"scripts":[],"id":"6FC9B875-859B-4F49-8035-436A514E4806","shape":{"__isSmartRef__":true,"id":41708},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"ChangeIndicator","partsBinMetaInfo":{"__isSmartRef__":true,"id":41709},"eventHandler":{"__isSmartRef__":true,"id":41710},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":41332},"layout":{"__isSmartRef__":true,"id":41711},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"isCopyMorphRef":true,"morphRefId":26,"derivationIds":[220,"EE491D24-F056-4AFE-A669-7B7048C6C3D1","3FA4A8C3-0FC0-43A0-8C00-00A96F9022E2","62DAD3C6-A81D-450F-B32F-601EA7E619D8","EEDB0C58-5990-481A-A7FF-ACB1A2DF08DD","16F708CB-1259-4A75-BAEF-1A5216C6CB19","97CA61D3-E09B-43CD-9880-D8B36FA303F3","0AF6BEEC-8A57-44FF-9D8D-40BA6CC6A0CD","AF2BEE76-C34F-457E-8699-9896327A4C07","5EC39FF0-602F-44A2-BE3A-04FCA127E5D1","44CEBF61-9A92-4E36-9576-425D5054B471","E9ACF86B-B775-4125-83BC-7E4500597D40","FE62294A-F891-45E4-AAE7-6F386B5A8CB5","8771140D-0D57-4CAF-A57B-857F858CCC73","BE774795-5889-4DB8-A366-1C774555761B","89DA16ED-5636-4C0D-B52F-A327A5526DD6","94DAC0EC-79E9-48E5-90D5-2BB59495BD0B","048AE915-30CF-4DE4-819B-F7D41CE99585","0417EEDD-6B12-4AF1-B7BC-875E32521980","5DFAFB2A-C915-429E-A58C-030C229C9AB8","BD996DFA-D248-4D9C-AF33-C5BA2511A09E","9F92F095-A6B5-46E8-ADA1-051904ABE386","214CA9C7-6225-49ED-A484-C2D8D92B35ED","7258922C-C991-4EF3-A09B-318D8B6A1306","1F8069E8-E7D5-4153-AE2C-96F1782F041F","74FBBDBC-44BA-4111-B3DB-58142522023F","91D6D585-64D8-491A-AAAB-AF0A99533DEC","1761630D-17E9-4E04-A73C-9D15C26E19E3","B8E628C4-20D6-4B26-B820-A8D07194CE6F","6511B508-3FE2-4BDC-906A-D4E827163B0D"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","savedColor","alarmColor","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":41712},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(782.0,40.0)","savedColor":"Color.rgb(0,0,0)","alarmColor":"Color.rgb(240,0,0)","distanceToDragEvent":"lively.pt(37.3,-17.5)"},"41708":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(8.6,9.7)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"41709":{"partsSpaceName":"PartsBin/Basic","comment":"A simple box morph. A really blue one. Its amazing what you can build out of simple boxes.... Who needs stars when you got blue rectangles!","migrationLevel":2,"partName":"Rectangle","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"41710":{"morph":{"__isSmartRef__":true,"id":41707},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41711":{"moveHorizontal":true,"adjustForNewBounds":true},"41712":{"indicateUnsavedChanges":{"__isSmartRef__":true,"id":41713},"setColors":{"__isSmartRef__":true,"id":41717}},"41713":{"varMapping":{"__isSmartRef__":true,"id":41714},"source":"function indicateUnsavedChanges() {\n if (this.owner.scriptPane.hasChanged()) {\n this.setColors(this.alarmColor);\n } else {\n this.setColors(this.savedColor);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":41715},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41714":{"this":{"__isSmartRef__":true,"id":41707}},"41715":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":41716}},"41716":{"isSerializedDate":true,"string":"Tue Sep 27 2011 20:09:19 GMT+0200 (CEST)"},"41717":{"varMapping":{"__isSmartRef__":true,"id":41718},"source":"function setColors(color) {\n this.setFill(color);\n this.setBorderColor(color);\n}","funcProperties":{"__isSmartRef__":true,"id":41719},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41718":{"this":{"__isSmartRef__":true,"id":41707}},"41719":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":41720}},"41720":{"isSerializedDate":true,"string":"Tue Sep 27 2011 19:06:09 GMT+0200 (CEST)"},"41721":{"sourceObj":{"__isSmartRef__":true,"id":41567},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":41567},"targetMethodName":"highlightJavaScriptSyntax","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41722":{"sourceObj":{"__isSmartRef__":true,"id":41567},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":41567},"targetMethodName":"highlightSyntaxDebounced","varMapping":{"__isSmartRef__":true,"id":41723},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41723":{"source":{"__isSmartRef__":true,"id":41567},"target":{"__isSmartRef__":true,"id":41567}},"41724":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":41725},"id":553,"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":41726}],"eventHandler":{"__isSmartRef__":true,"id":41728},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":11,"_MaxTextWidth":90,"_MinTextWidth":90,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"_Align":"center","_VerticalAlign":"center","owner":null,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(244.5,177.9)","_TextColor":"Color.rgb(0,204,0)"},"41725":{"_ClipMode":"visible","_BorderWidth":1,"_StrokeOpacity":0,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(100.0,25.0)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(204,204,204)","_Fill":"Color.rgb(255,255,255)"},"41726":{"style":{"__isSmartRef__":true,"id":41727},"chunkOwner":{"__isSmartRef__":true,"id":41724},"_id":"_13974","storedString":"saved source","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41727":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41728":{"morph":{"__isSmartRef__":true,"id":41724},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41729":{"doSave":{"__isSmartRef__":true,"id":41730},"boundEval":{"__isSmartRef__":true,"id":41738},"reset":{"__isSmartRef__":true,"id":41746},"display":{"__isSmartRef__":true,"id":41750},"hasChanged":{"__isSmartRef__":true,"id":41754},"displayStatus":{"__isSmartRef__":true,"id":41758},"updateTarget":{"__isSmartRef__":true,"id":41762}},"41730":{"varMapping":{"__isSmartRef__":true,"id":41731},"source":"function doSave() {\n $super();\n var saved = this.boundEval(this.getTextString());\n if (saved) {\n this.lastSaveSource = this.textString;\n this.owner.changeIndicator.indicateUnsavedChanges();\n this.owner.updateLists();\n this.owner.selectChangedContent(this.getTextString());\n this.displayStatus(\"saved source\", Color.green);\n } else {\n this.displayStatus(\"not saved\", Color.red);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":41736},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41731":{"this":{"__isSmartRef__":true,"id":41567},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":41732}},"41732":{"$super":{"__isSmartRef__":true,"id":41733}},"41733":{"varMapping":{"__isSmartRef__":true,"id":41734},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":41735},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41734":{"obj":{"__isSmartRef__":true,"id":41567},"name":"doSave"},"41735":{},"41736":{"timestamp":{"__isSmartRef__":true,"id":41737},"user":"lauritz"},"41737":{"isSerializedDate":true,"string":"Thu Nov 17 2011 23:15:19 GMT+0100 (CET)"},"41738":{"varMapping":{"__isSmartRef__":true,"id":41739},"source":"function boundEval(str) {\n var result;\n\n this.objectEditorPane.ensureAnnotationLayer();\n withLayers([ScriptAnnotationLayer], function() {\n result = $super(str);\n })\n \n return result\n}","funcProperties":{"__isSmartRef__":true,"id":41744},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41739":{"this":{"__isSmartRef__":true,"id":41567},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":41740}},"41740":{"$super":{"__isSmartRef__":true,"id":41741}},"41741":{"varMapping":{"__isSmartRef__":true,"id":41742},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":41743},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41742":{"obj":{"__isSmartRef__":true,"id":41567},"name":"boundEval"},"41743":{},"41744":{"timestamp":{"__isSmartRef__":true,"id":41745},"user":"lauritz","categories":[]},"41745":{"isSerializedDate":true,"string":"Wed Nov 16 2011 05:41:53 GMT+0100 (CET)"},"41746":{"varMapping":{"__isSmartRef__":true,"id":41747},"source":"function reset() {\n this.doitContext = null;\n this.lastSaveSource = \"\";\n this.textString = \"\";\n this.lastSaveSource = this.textString;\n this.enableSyntaxHighlighting();\n}","funcProperties":{"__isSmartRef__":true,"id":41748},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41747":{"this":{"__isSmartRef__":true,"id":41567}},"41748":{"timestamp":{"__isSmartRef__":true,"id":41749},"user":"cschuster","tags":[]},"41749":{"isSerializedDate":true,"string":"Wed May 16 2012 20:52:57 GMT+0200 (CEST)"},"41750":{"varMapping":{"__isSmartRef__":true,"id":41751},"source":"function display(jsCode) {\n this.lastSaveSource = jsCode;\n this.setTextString(jsCode);\n this.enableSyntaxHighlighting();\n this.highlightJavaScriptSyntax();\n this.applyStyle({align: 'left'});\n}","funcProperties":{"__isSmartRef__":true,"id":41752},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41751":{"this":{"__isSmartRef__":true,"id":41567}},"41752":{"timestamp":{"__isSmartRef__":true,"id":41753},"user":"lauritz","tags":[]},"41753":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:02:26 GMT+0200 (CEST)"},"41754":{"varMapping":{"__isSmartRef__":true,"id":41755},"source":"function hasChanged() {\n var cleanText = function (string) {\n var source = string.trim();\n if (source.substring(0,2) === \"//\") {\n // removes annotation line\n source = source.substring(source.indexOf(\"\\n\"), source.length);\n source = source.trim();\n }\n if (source === 'undefined' || source === 'null') source = '';\n return source;\n }\n var cleanedTextString = cleanText(this.textString);\n var cleanedLastSource = cleanText(this.lastSaveSource);\n return cleanedTextString !== cleanedLastSource;\n}","funcProperties":{"__isSmartRef__":true,"id":41756},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41755":{"this":{"__isSmartRef__":true,"id":41567}},"41756":{"timestamp":{"__isSmartRef__":true,"id":41757},"user":"lauritz","categories":[]},"41757":{"isSerializedDate":true,"string":"Mon Oct 03 2011 18:29:45 GMT+0200 (CEST)"},"41758":{"varMapping":{"__isSmartRef__":true,"id":41759},"source":"function displayStatus(msg, color, delay) {\n if (!this.statusMorph) {\n this.statusMorph = new TextMorph(pt(100,25).extentAsRectangle());\n this.statusMorph.applyStyle({borderWidth: 1, strokeOpacity: 0, borderColor: Color.gray});\n this.statusMorph.setFill(this.owner.getFill());\n this.statusMorph.setFontSize(11);\n this.statusMorph.setAlign('center');\n this.statusMorph.setVerticalAlign('center');\n }\n this.statusMorph.setTextString(msg);\n this.statusMorph.centerAt(this.innerBounds().center());\n this.statusMorph.setTextColor(color || Color.black);\n this.addMorph(this.statusMorph);\n (function() { this.statusMorph.remove() }).bind(this).delay(delay || 2); \n}","funcProperties":{"__isSmartRef__":true,"id":41760},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41759":{"this":{"__isSmartRef__":true,"id":41567}},"41760":{"timestamp":{"__isSmartRef__":true,"id":41761},"user":"lauritz","categories":[]},"41761":{"isSerializedDate":true,"string":"Wed Nov 23 2011 18:23:05 GMT+0100 (CET)"},"41762":{"varMapping":{"__isSmartRef__":true,"id":41763},"source":"function updateTarget(target) {\n module('lively.ide.SyntaxHighlighting').load(true);\n this.doitContext = this.owner.target;\n}","funcProperties":{"__isSmartRef__":true,"id":41764},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41763":{"this":{"__isSmartRef__":true,"id":41567}},"41764":{"timestamp":{"__isSmartRef__":true,"id":41765},"user":"lauritz","tags":[]},"41765":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:07:42 GMT+0200 (CEST)"},"41766":{"submorphs":[{"__isSmartRef__":true,"id":41767}],"scripts":[],"id":847,"shape":{"__isSmartRef__":true,"id":41772},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":41773},"lighterFill":{"__isSmartRef__":true,"id":41778},"label":{"__isSmartRef__":true,"id":41767},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"_Rotation":0,"name":"ObjectEditorClassButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":41783},"_Scale":1,"owner":null,"layout":{"__isSmartRef__":true,"id":41784},"eventHandler":{"__isSmartRef__":true,"id":41785},"__serializedExpressions__":["_Position","padding"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(820.0,9.0)","padding":"lively.rect(5,0,0,0)"},"41767":{"submorphs":[],"scripts":[],"id":848,"shape":{"__isSmartRef__":true,"id":41768},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":116,"_MaxTextHeight":18,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"owner":{"__isSmartRef__":true,"id":41766},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":41769}],"prevScroll":[0,0],"_FontFamily":"Helvetica, Sans-Serif","_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_Align":"center","_Scale":1,"eventHandler":{"__isSmartRef__":true,"id":41771},"_HandStyle":"default","_PointerEvents":"none","__serializedExpressions__":["_Position","textColor","padding","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"41768":{"borderWidth":0,"fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(116.0,18.0)","_BorderColor":"Color.rgb(0,0,0)"},"41769":{"style":{"__isSmartRef__":true,"id":41770},"chunkOwner":{"__isSmartRef__":true,"id":41767},"storedString":"","_id":"_1355","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41770":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41771":{"morph":{"__isSmartRef__":true,"id":41767},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41772":{"_Fill":{"__isSmartRef__":true,"id":41773},"_BorderWidth":1,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(116.0,20.0)","_BorderColor":"Color.rgb(214,214,214)"},"41773":{"stops":[{"__isSmartRef__":true,"id":41774},{"__isSmartRef__":true,"id":41775},{"__isSmartRef__":true,"id":41776},{"__isSmartRef__":true,"id":41777}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"41774":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"41775":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"41776":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"41777":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"41778":{"stops":[{"__isSmartRef__":true,"id":41779},{"__isSmartRef__":true,"id":41780},{"__isSmartRef__":true,"id":41781},{"__isSmartRef__":true,"id":41782}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"41779":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"41780":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"41781":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"41782":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"41783":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"41784":{"moveHorizontal":true},"41785":{"morph":{"__isSmartRef__":true,"id":41766},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41786":{"submorphs":[],"scripts":[],"id":"5DD9F73D-CFC6-43DE-ABBB-1382D3B03485","shape":{"__isSmartRef__":true,"id":41787},"droppingEnabled":true,"halosEnabled":true,"itemList":["-- ALL --"],"selectedLineNo":1,"showsHalos":false,"name":"ObjectEditorConnectionList","partsBinMetaInfo":{"__isSmartRef__":true,"id":41788},"_ClipMode":"auto","owner":{"__isSmartRef__":true,"id":41332},"attributeConnections":[{"__isSmartRef__":true,"id":41789}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"prevScroll":[0,0],"layout":{"__isSmartRef__":true,"id":41791},"eventHandler":{"__isSmartRef__":true,"id":41792},"_FontSize":10,"grabbingEnabled":false,"draggingEnabled":false,"isCopyMorphRef":true,"morphRefId":19,"derivationIds":[209,"3900F5DF-0FF7-4C94-8BDB-44AAE12B4A3E","35301083-B60D-4A43-8566-23860EEB4C04","9CC401CC-5A35-4643-935B-FD049C284E16","C9879D40-5E79-4C56-AA79-562ED82BF052","9F6F9261-EB76-4B58-B77D-7D70813A1ED7","8B59E237-F372-4F70-9768-7E9C1A7A021D","FC85F1B9-1978-42D2-850C-BD249981E8B4","D2B607C6-A89B-4B3F-91BB-720451EAB98D","CC361093-FF73-479B-9431-C645CB48F518","307D3B7C-C0E1-484F-8D7E-39FBA9D8EDA5","038AF132-861E-4A77-8756-E6B476413639","65B6CA87-98DE-4473-B4DD-F8763BC3B06A","0AA0E45B-6DCC-4AE0-938C-E53794A511DF","806ACC1C-1353-436B-B1FE-568846777C17","C74AE022-1184-4FDF-A53D-A17627FF61EA","686AF565-EEB0-4AB7-A12E-26727DAD9291","1102A5B3-9973-4471-9EDD-FD7AB802DEA6","BEB06225-53D0-4ACC-9154-DC2DEB5728B7","E32FE34B-7520-4612-B927-C8F9EDFC69BB","D21F598A-4E44-4752-B205-9595DF0E9AE3","FD6670F8-44F6-436A-960F-8BE8890F8B75","C5522110-E6CA-4F96-B33E-BEBF6978088A","BC9AC080-8315-49F1-B6CB-42F3B802F7D9","242A0967-D906-4396-9326-3CC0C9C3EA60","39C09174-63A5-421F-AB88-7A98755661E5","40C2C766-248F-451F-9D85-D1E4DCCB559D","C89F1632-FADA-4B3E-B2D9-1C1020ACB29A","F78E083D-993E-4963-8A7F-CB7182DE3931","CA8FBD0F-D14E-42E6-A6D4-803B9EE12264"],"selection":null,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":41793},"__LivelyClassName__":"lively.morphic.List","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(10.0,346.7)","distanceToDragEvent":"lively.pt(125.0,-17.1)"},"41787":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(180.0,74.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)","_Padding":"lively.rect(0,0,0,0)"},"41788":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"41789":{"sourceObj":{"__isSmartRef__":true,"id":41786},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":41332},"targetMethodName":"displaySourceForConnection","converterString":"function (value) {\n if (!value) return;\n return (value === '-- ALL --') ? null : value[1];\n}","updaterString":null,"varMapping":{"__isSmartRef__":true,"id":41790},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41790":{"source":{"__isSmartRef__":true,"id":41786},"target":{"__isSmartRef__":true,"id":41332}},"41791":{"resizeHeight":false,"moveVertical":true},"41792":{"morph":{"__isSmartRef__":true,"id":41786},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41793":{"preselectItem":{"__isSmartRef__":true,"id":41794}},"41794":{"varMapping":{"__isSmartRef__":true,"id":41795},"source":"function preselectItem() {\n if (this.getList().size() === 2) {\n this.selectAt(1);\n } else {\n this.selectAt(0);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":41796},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41795":{"this":{"__isSmartRef__":true,"id":41786}},"41796":{"timestamp":{"__isSmartRef__":true,"id":41797},"user":"lauritz"},"41797":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:12:58 GMT+0100 (CET)"},"41798":{"submorphs":[{"__isSmartRef__":true,"id":41799}],"scripts":[],"id":47,"shape":{"__isSmartRef__":true,"id":41803},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":41804},"lighterFill":{"__isSmartRef__":true,"id":41809},"label":{"__isSmartRef__":true,"id":41799},"attributeConnections":[{"__isSmartRef__":true,"id":41814}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"_Rotation":0,"name":"ObjectEditorTargetButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":41815},"_Scale":1,"owner":null,"isCopyMorphRef":true,"morphRefId":1,"__serializedExpressions__":["_Position","padding"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(215.0,35.0)","padding":"lively.rect(5,0,0,0)"},"41799":{"submorphs":[],"scripts":[],"id":48,"shape":{"__isSmartRef__":true,"id":41800},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":116,"_MaxTextHeight":20,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"owner":{"__isSmartRef__":true,"id":41798},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":41801}],"prevScroll":[0,0],"_FontFamily":"Helvetica, Sans-Serif","_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_Align":"center","_Scale":1,"__serializedExpressions__":["_Position","textColor","padding","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"41800":{"borderWidth":0,"fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(116.0,20.0)","_BorderColor":"Color.rgb(0,0,0)"},"41801":{"style":{"__isSmartRef__":true,"id":41802},"chunkOwner":{"__isSmartRef__":true,"id":41799},"storedString":"","_id":"_1356","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41802":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41803":{"_Fill":{"__isSmartRef__":true,"id":41804},"_BorderWidth":1,"_BorderRadius":5,"__serializedExpressions__":["_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(116.0,20.0)","_BorderColor":"Color.rgb(214,214,214)"},"41804":{"stops":[{"__isSmartRef__":true,"id":41805},{"__isSmartRef__":true,"id":41806},{"__isSmartRef__":true,"id":41807},{"__isSmartRef__":true,"id":41808}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"41805":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"41806":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"41807":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"41808":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"41809":{"stops":[{"__isSmartRef__":true,"id":41810},{"__isSmartRef__":true,"id":41811},{"__isSmartRef__":true,"id":41812},{"__isSmartRef__":true,"id":41813}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"41810":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"41811":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"41812":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"41813":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"41814":{"sourceObj":{"__isSmartRef__":true,"id":41798},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":41339},"targetMethodName":"chooseTargetMorphMenu","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41815":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"41816":{"submorphs":[],"scripts":[],"id":435,"shape":{"__isSmartRef__":true,"id":41817},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":218,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"ObjectEditorMorphSelector","partsBinMetaInfo":{"__isSmartRef__":true,"id":41818},"textChunks":[{"__isSmartRef__":true,"id":41819}],"charsReplaced":"","lastFindLoc":5,"priorSelectionRange":[15,15],"prevScroll":[0,0],"_ClipMode":"visible","list":[],"attributeConnections":[{"__isSmartRef__":true,"id":41821}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"listMorph":null,"_WhiteSpaceHandling":"pre-wrap","owner":null,"_Align":"left","eventHandler":{"__isSmartRef__":true,"id":41823},"_MinTextWidth":218,"_MinTextHeight":null,"scriptAnnotations":{"__isSmartRef__":true,"id":41824},"selection":{"__isSmartRef__":true,"id":41331},"previousSelection":[0,13],"isCopyMorphRef":true,"morphRefId":1,"isBeingDragged":false,"draggingEnabled":false,"layout":{"__isSmartRef__":true,"id":41843},"_Rotation":0,"_Scale":1,"savedTextString":"100","__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":41844},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(200.0,10.0)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(153.9,-23.7)"},"41817":{"fill":null,"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":3.7000000000000006,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(220.0,20.0)","_BorderColor":"Color.rgb(192,192,192)","_Padding":"lively.rect(0,0,0,0)","_Fill":"Color.rgb(244,244,244)"},"41818":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"41819":{"style":{"__isSmartRef__":true,"id":41820},"chunkOwner":{"__isSmartRef__":true,"id":41816},"storedString":"","_id":"_1357","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41820":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"41821":{"sourceObj":{"__isSmartRef__":true,"id":41816},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":41332},"targetMethodName":"setTarget","converterString":"function (name) { return $world.get(name)}","updaterString":null,"varMapping":{"__isSmartRef__":true,"id":41822},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41822":{"source":{"__isSmartRef__":true,"id":41816},"target":{"__isSmartRef__":true,"id":41332}},"41823":{"morph":{"__isSmartRef__":true,"id":41816},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41824":{"createListMorph":{"__isSmartRef__":true,"id":41825},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":41827},"onMouseUp":{"__isSmartRef__":true,"id":41829},"resetConnections":{"__isSmartRef__":true,"id":41831},"setTargetToListSelection":{"__isSmartRef__":true,"id":41833},"setTargetOfPane":{"__isSmartRef__":true,"id":41835},"onBlur":{"__isSmartRef__":true,"id":41837},"reset":{"__isSmartRef__":true,"id":41839},"onMouseDown":{"__isSmartRef__":true,"id":41841}},"41825":{"time":{"__isSmartRef__":true,"id":41826},"user":"lauritz"},"41826":{"isSerializedDate":true,"string":"Fri Oct 28 2011 05:27:29 GMT+0200 (CEST)"},"41827":{"time":{"__isSmartRef__":true,"id":41828},"user":"lauritz"},"41828":{"isSerializedDate":true,"string":"Fri Oct 14 2011 23:48:37 GMT+0200 (CEST)"},"41829":{"time":{"__isSmartRef__":true,"id":41830},"user":"lauritz"},"41830":{"isSerializedDate":true,"string":"Mon Oct 03 2011 18:51:14 GMT+0200 (CEST)"},"41831":{"time":{"__isSmartRef__":true,"id":41832},"user":"lauritz"},"41832":{"isSerializedDate":true,"string":"Wed Sep 28 2011 01:03:17 GMT+0200 (CEST)"},"41833":{"time":{"__isSmartRef__":true,"id":41834},"user":"lauritz"},"41834":{"isSerializedDate":true,"string":"Sat Oct 15 2011 00:00:58 GMT+0200 (CEST)"},"41835":{"time":{"__isSmartRef__":true,"id":41836},"user":"lauritz"},"41836":{"isSerializedDate":true,"string":"Mon Oct 03 2011 18:34:37 GMT+0200 (CEST)"},"41837":{"time":{"__isSmartRef__":true,"id":41838},"user":"lauritz"},"41838":{"isSerializedDate":true,"string":"Fri Oct 07 2011 19:24:18 GMT+0200 (CEST)"},"41839":{"time":{"__isSmartRef__":true,"id":41840},"user":"lauritz"},"41840":{"isSerializedDate":true,"string":"Fri Oct 07 2011 19:26:15 GMT+0200 (CEST)"},"41841":{"time":{"__isSmartRef__":true,"id":41842},"user":"lauritz"},"41842":{"isSerializedDate":true,"string":"Mon Oct 17 2011 19:49:00 GMT+0200 (CEST)"},"41843":{},"41844":{"getList":{"__isSmartRef__":true,"id":41845},"setList":{"__isSmartRef__":true,"id":41848},"reset":{"__isSmartRef__":true,"id":41851},"example":{"__isSmartRef__":true,"id":41854},"removeList":{"__isSmartRef__":true,"id":41857},"onBlur":{"__isSmartRef__":true,"id":41860},"createListMorph":{"__isSmartRef__":true,"id":41867},"resetConnections":{"__isSmartRef__":true,"id":41870},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":41873},"setTargetToListSelection":{"__isSmartRef__":true,"id":41876},"setTargetOfPane":{"__isSmartRef__":true,"id":41879},"onMouseDown":{"__isSmartRef__":true,"id":41882}},"41845":{"varMapping":{"__isSmartRef__":true,"id":41846},"source":"function getList() {\n return this.world().indentedListItemsOfMorphNames();\n}","funcProperties":{"__isSmartRef__":true,"id":41847},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41846":{"this":{"__isSmartRef__":true,"id":41816}},"41847":{},"41848":{"varMapping":{"__isSmartRef__":true,"id":41849},"source":"function setList(list) {\n return this.list = list;\n}","funcProperties":{"__isSmartRef__":true,"id":41850},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41849":{"this":{"__isSmartRef__":true,"id":41816}},"41850":{},"41851":{"varMapping":{"__isSmartRef__":true,"id":41852},"source":"function reset() {\n this.list = [];\n this.textString = 'empty';\n this.removeList();\n this.resetConnections();\n this.applyStyle({fixedWidth: true, fixedHeight: true, borderWidth: 1, overflow: 'visible'})\n}","funcProperties":{"__isSmartRef__":true,"id":41853},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41852":{"this":{"__isSmartRef__":true,"id":41816}},"41853":{},"41854":{"varMapping":{"__isSmartRef__":true,"id":41855},"source":"function example() {\n/*\nthis.example()\nthis.getList()\n*/\n this.setList(Array.range(0,100));\n this.textString = 'empty';\n}","funcProperties":{"__isSmartRef__":true,"id":41856},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41855":{"this":{"__isSmartRef__":true,"id":41816}},"41856":{},"41857":{"varMapping":{"__isSmartRef__":true,"id":41858},"source":"function removeList() {\n this.listMorph && this.listMorph.remove()\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":41859},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41858":{"this":{"__isSmartRef__":true,"id":41816}},"41859":{},"41860":{"varMapping":{"__isSmartRef__":true,"id":41861},"source":"function onBlur() {\n $super();\n this.removeList();\n}","funcProperties":{"__isSmartRef__":true,"id":41866},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41861":{"this":{"__isSmartRef__":true,"id":41816},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":41862}},"41862":{"$super":{"__isSmartRef__":true,"id":41863}},"41863":{"varMapping":{"__isSmartRef__":true,"id":41864},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":41865},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41864":{"obj":{"__isSmartRef__":true,"id":41816},"name":"onBlur"},"41865":{},"41866":{},"41867":{"varMapping":{"__isSmartRef__":true,"id":41868},"source":"function createListMorph() {\n var list = new lively.morphic.List(new Rectangle(0,0, this.getExtent().x, 520));\n list.setList(this.getList());\n list.setFontSize(12);\n\n list.disableGrabbing();\n list.disableDragging();\n \n this.addMorph(list);\n list.setPosition(pt(0,0));\n\n connect(list, 'selection', this, 'setTargetToListSelection');\n \n return list;\n}","funcProperties":{"__isSmartRef__":true,"id":41869},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41868":{"this":{"__isSmartRef__":true,"id":41816}},"41869":{},"41870":{"varMapping":{"__isSmartRef__":true,"id":41871},"source":"function resetConnections() {\n disconnectAll(this);\n connect(this, 'savedTextString', this.owner, 'setTarget', {converter: \n\tfunction (name) { return $world.get(name)}});\n}","funcProperties":{"__isSmartRef__":true,"id":41872},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41871":{"this":{"__isSmartRef__":true,"id":41816}},"41872":{},"41873":{"varMapping":{"__isSmartRef__":true,"id":41874},"source":"function displayTopLevelMorphs() {\n if (this.listMorph) { this.removeList(); return true }\n var list = this.createListMorph(); \n this.addMorph(list);\n this.listMorph = list;\n}","funcProperties":{"__isSmartRef__":true,"id":41875},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41874":{"this":{"__isSmartRef__":true,"id":41816}},"41875":{},"41876":{"varMapping":{"__isSmartRef__":true,"id":41877},"source":"function setTargetToListSelection(selection) { \n this.removeList();\n if (!selection) return;\n if (this.owner.scriptPane.hasChanged()) {\n var that = this;\n var callback = function (confirmed) {\n if (confirmed) that.setTargetOfPane(selection);\n }\n this.owner.confirmUnsavedChanges(callback);\n } else {\n this.setTargetOfPane(selection);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":41878},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41877":{"this":{"__isSmartRef__":true,"id":41816}},"41878":{},"41879":{"varMapping":{"__isSmartRef__":true,"id":41880},"source":"function setTargetOfPane(selection) {\n this.owner.setTarget(selection);\n this.setTextString(selection.getName());\n this.removeList();\n}","funcProperties":{"__isSmartRef__":true,"id":41881},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41880":{"this":{"__isSmartRef__":true,"id":41816}},"41881":{},"41882":{"varMapping":{"__isSmartRef__":true,"id":41883},"source":"function onMouseDown(evt) {\n if (evt.isCommandKey() || evt.isRightMouseButtonDown()) return $super(evt);\n if (this.listMorph) {\n return false;\n } else {\n this.displayTopLevelMorphs();\n return true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":41888},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41883":{"this":{"__isSmartRef__":true,"id":41816},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":41884}},"41884":{"$super":{"__isSmartRef__":true,"id":41885}},"41885":{"varMapping":{"__isSmartRef__":true,"id":41886},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":41887},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41886":{"obj":{"__isSmartRef__":true,"id":41816},"name":"onMouseDown"},"41887":{},"41888":{},"41889":{"morph":{"__isSmartRef__":true,"id":41339},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"41890":{"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":41891},"setTarget":{"__isSmartRef__":true,"id":41894},"generateSourceForScript":{"__isSmartRef__":true,"id":41897},"generateSourceForConnection":{"__isSmartRef__":true,"id":41900},"generateTargetCode":{"__isSmartRef__":true,"id":41903},"sortedConnectionNamesOfObj":{"__isSmartRef__":true,"id":41906},"displayJavaScriptSource":{"__isSmartRef__":true,"id":41909},"displaySourceForScript":{"__isSmartRef__":true,"id":41912},"displaySourceForConnection":{"__isSmartRef__":true,"id":41915},"newScript":{"__isSmartRef__":true,"id":41918},"newConnection":{"__isSmartRef__":true,"id":41921},"deleteSelectedScript":{"__isSmartRef__":true,"id":41924},"disconnectConnection":{"__isSmartRef__":true,"id":41927},"updateLists":{"__isSmartRef__":true,"id":41930},"displayInitialScript":{"__isSmartRef__":true,"id":41933},"reset":{"__isSmartRef__":true,"id":41936},"selectChangedContent":{"__isSmartRef__":true,"id":41939}},"41891":{"varMapping":{"__isSmartRef__":true,"id":41892},"source":"function sortedScriptNamesOfObj(obj) {\n if (!Functions.own(obj) || Functions.own(obj).size() == 0) return [];\n return Functions.own(obj)\n\t.select(function(name) { return obj[name].hasLivelyClosure })\n\t.sortBy(function(name) { return name.toLowerCase() });\n}","funcProperties":{"__isSmartRef__":true,"id":41893},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41892":{"this":{"__isSmartRef__":true,"id":41339}},"41893":{},"41894":{"varMapping":{"__isSmartRef__":true,"id":41895},"source":"function setTarget(morph) {\n this.reset();\n module('lively.ide.SyntaxHighlighting').load(true);\n this.target = morph;\n this.morphSelector.textString = (this.target.getName() || this.target.toString());\n this.scriptPane.doitContext = this.target;\n this.updateLists();\n this.displayInitialScript();\n}","funcProperties":{"__isSmartRef__":true,"id":41896},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41895":{"this":{"__isSmartRef__":true,"id":41339}},"41896":{},"41897":{"varMapping":{"__isSmartRef__":true,"id":41898},"source":"function generateSourceForScript(scriptName) {\n var script = this.target[scriptName].getOriginal();\n return Strings.format('this.addScript(%s);' ,script)\n}","funcProperties":{"__isSmartRef__":true,"id":41899},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41898":{"this":{"__isSmartRef__":true,"id":41339}},"41899":{},"41900":{"varMapping":{"__isSmartRef__":true,"id":41901},"source":"function generateSourceForConnection(connection) {\n var c = connection, targetObject = this.target;\n\tif (!c.getTargetObj() || !c.getTargetObj().name || \n\t\t!c.getSourceObj() || !c.getSourceObj().name) return String(c);\n\n\tvar optConfig = []\n\tif (c.converterString)\n\t\toptConfig.push(\"converter: \\n\\t\" + c.converterString)\n\tif (c.updaterString)\n\t\toptConfig.push(\"updater: \\n\\t\" + c.updaterString)\n\treturn Strings.format('connect(%s, \"%s\", %s, \"%s\", {%s});', \n\t\t\tthis.generateTargetCode(targetObject, c.getSourceObj()),\n\t\t\tc.getSourceAttrName(),\n\t\t\tthis.generateTargetCode(targetObject, c.getTargetObj()),\n\t\t\tc.getTargetMethodName(),\n\t\t\toptConfig.join(','));\n\n}","funcProperties":{"__isSmartRef__":true,"id":41902},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41901":{"this":{"__isSmartRef__":true,"id":41339}},"41902":{},"41903":{"varMapping":{"__isSmartRef__":true,"id":41904},"source":"function generateTargetCode(baseObject, targetObject) {\n\tvar name = targetObject.name;\n\tif (baseObject === targetObject) \n\t\treturn \"this\";\n\telse if (baseObject[name] === targetObject) \n\t\treturn \"this.\" + name;\n\telse if (baseObject.testObject === targetObject) \n\t\treturn \"this.testObject\";\n\telse if (baseObject.get(name) === targetObject) \n\t\treturn 'this.get(\"' + name + '\")';\n\telse if (targetObject instanceof Morph) \n\t\treturn '$morph(\"' + name + '\")';\n\telse \n\t\treturn \"????\";\n}","funcProperties":{"__isSmartRef__":true,"id":41905},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41904":{"this":{"__isSmartRef__":true,"id":41339}},"41905":{},"41906":{"varMapping":{"__isSmartRef__":true,"id":41907},"source":"function sortedConnectionNamesOfObj(obj) {\n if (\"attributeConnections\" in obj) {\n return obj.attributeConnections\n .sortBy(function(each) {return name.toLowerCase() })\n .collect(function(each) {return [each.getSourceAttrName(), each]});\n } else {\n return [];\n }\n}","funcProperties":{"__isSmartRef__":true,"id":41908},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41907":{"this":{"__isSmartRef__":true,"id":41339}},"41908":{},"41909":{"varMapping":{"__isSmartRef__":true,"id":41910},"source":"function displayJavaScriptSource(jsCode) {\n this.scriptPane.setTextString(jsCode);\n this.scriptPane.highlightJavaScriptSyntax();\n}","funcProperties":{"__isSmartRef__":true,"id":41911},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41910":{"this":{"__isSmartRef__":true,"id":41339}},"41911":{},"41912":{"varMapping":{"__isSmartRef__":true,"id":41913},"source":"function displaySourceForScript(scriptName) {\n if (!scriptName) return;\n var code = \"\", that = this;\n if (scriptName === \"-- ALL --\") {\n this.sortedScriptNamesOfObj(this.target).forEach(function(each) {\n code = code.concat(that.generateSourceForScript(each)).concat(\"\\n\\n\");\n });\n } else {\n code = this.generateSourceForScript(scriptName); \n }\n this.displayJavaScriptSource(code);\n}","funcProperties":{"__isSmartRef__":true,"id":41914},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41913":{"this":{"__isSmartRef__":true,"id":41339}},"41914":{},"41915":{"varMapping":{"__isSmartRef__":true,"id":41916},"source":"function displaySourceForConnection(connection) {\n if (!connection) return;\n var code = \"\", that = this;\n if ((typeof connection === \"string\") && connection === \"-- ALL --\") {\n this.sortedConnectionNamesOfObj(this.target).forEach(function(each) {\n code = code.concat(that.generateSourceForConnection(each[1])).concat(\"\\n\\n\");\n })\n } else {\n code = this.generateSourceForConnection(connection);\n }\n this.displayJavaScriptSource(code);\n}","funcProperties":{"__isSmartRef__":true,"id":41917},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41916":{"this":{"__isSmartRef__":true,"id":41339}},"41917":{},"41918":{"varMapping":{"__isSmartRef__":true,"id":41919},"source":"function newScript() {\n if (this.target) {\n var code = \"this.addScript(function SCRIPTNAME() {\\n\\t\\n});\";\n this.displayJavaScriptSource(code);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":41920},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41919":{"this":{"__isSmartRef__":true,"id":41339}},"41920":{},"41921":{"varMapping":{"__isSmartRef__":true,"id":41922},"source":"function newConnection() {\n if (this.target) {\n var code = \"connect(SOURCE, SOURCE_PROPERTY, TARGET, TARGET_PROPERTY);\";\n this.displayJavaScriptSource(code);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":41923},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41922":{"this":{"__isSmartRef__":true,"id":41339}},"41923":{},"41924":{"varMapping":{"__isSmartRef__":true,"id":41925},"source":"function deleteSelectedScript() {\n if (this.scriptList.selection && this.target) {\n if (!this.target.hasOwnProperty(this.scriptList.selection)) return;\n delete this.target[this.scriptList.selection];\n this.updateLists();\n this.displayInitialScript();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":41926},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41925":{"this":{"__isSmartRef__":true,"id":41339}},"41926":{},"41927":{"varMapping":{"__isSmartRef__":true,"id":41928},"source":"function disconnectConnection() {\n var selection = this.connectionList.selection;\n if (selection && \n (typeof selection !== \"string\") &&\n this.target.attributeConnections.indexOf(selection[1]) > -1) {\n var c = this.connectionList.selection[1];\n disconnect(c.sourceObj, c.sourceAttrName, c.targetObj, c.targetMethodName);\n this.updateLists();\n this.displayInitialScript();\n } \n}","funcProperties":{"__isSmartRef__":true,"id":41929},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41928":{"this":{"__isSmartRef__":true,"id":41339}},"41929":{},"41930":{"varMapping":{"__isSmartRef__":true,"id":41931},"source":"function updateLists() {\n this.scriptList.setList(this.sortedScriptNamesOfObj(this.target));\n var scriptListItems = this.scriptList.getList();\n scriptListItems.unshift(\"-- ALL --\");\n this.scriptList.setList(scriptListItems);\n\n this.connectionList.setList(this.sortedConnectionNamesOfObj(this.target));\n var connectionListItems = this.connectionList.getList();\n connectionListItems.unshift(\"-- ALL --\");\n this.connectionList.setList(connectionListItems);\n}","funcProperties":{"__isSmartRef__":true,"id":41932},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41931":{"this":{"__isSmartRef__":true,"id":41339}},"41932":{},"41933":{"varMapping":{"__isSmartRef__":true,"id":41934},"source":"function displayInitialScript() {\n if (this.scriptList.getList().size() > 1) {\n this.scriptList.selectAt(0);\n } else if (this.connectionList.getList().size() > 1) {\n this.connectionList.selectAt(0);\n } else {\n this.scriptList.selectAt(0);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":41935},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41934":{"this":{"__isSmartRef__":true,"id":41339}},"41935":{},"41936":{"varMapping":{"__isSmartRef__":true,"id":41937},"source":"function reset() {\n this.target = null;\n this.scriptPane.doitContext = null;\n this.scriptList.setList();\n this.connectionList.setList();\n this.scriptPane.setTextString(\"\");\n this.morphSelector.reset();\n}","funcProperties":{"__isSmartRef__":true,"id":41938},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41937":{"this":{"__isSmartRef__":true,"id":41339}},"41938":{},"41939":{"varMapping":{"__isSmartRef__":true,"id":41940},"source":"function selectChangedContent(source) {\n\n var addScriptRegex = /this\\.addScript\\s*\\(\\s*function\\s*([^\\(]*)/g;\n var addScriptMatches = [];\n var addScriptMatch = addScriptRegex.exec(source);\n while (addScriptMatch) {\n addScriptMatches.push(addScriptMatch[1]);\n addScriptMatch = addScriptRegex.exec(source);\n }\n \n // if scripts were added, select either a specific one or all\n if (addScriptMatches.length > 0) { \n if (addScriptMatches.length === 1) {\n var index = this.scriptList.getList().indexOf(addScriptMatches[0]);\n if (index > -1) { \n return this.scriptList.selectAt(index);\n }\n }\n return this.scriptList.selectAt(0);\n }\n\n var connectionRegex = \n /connect\\(\\s*([^,]*)\\s*,\\s*\"([^,]*)\"\\s*,\\s*([^,]*)\\s*,\\s*\"([^,]*)\"/g;\n var connectionMatches = [];\n var connectionMatch = connectionRegex.exec(source);\n while (connectionMatch) {\n connectionMatches.push(connectionMatch);\n connectionMatch = connectionRegex.exec(source);\n }\n\n // if connections were made, select either a specific one or all\n if (connectionMatches.length > 0) {\n if (connectionMatches.length === 1) {\n var match = connectionMatches[0];\n for (var i=0; i -1) {\n var c = selection[1];\n disconnect(c.sourceObj, c.sourceAttrName, c.targetObj, c.targetMethodName);\n editor.updateLists();\n editor.displayInitialScript();\n } \n }\n\n var message = 'Disconnect \"' + selection[0] +'\" connection?';\n var callback = disconnectConnection;\n\n var dialog = new lively.morphic.ConfirmDialog(message, callback);\n\n return this.world().openDialog(dialog);\n}","funcProperties":{"__isSmartRef__":true,"id":42032},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42031":{"this":{"__isSmartRef__":true,"id":42007}},"42032":{"timestamp":{"__isSmartRef__":true,"id":42033},"user":"lauritz","categories":[]},"42033":{"isSerializedDate":true,"string":"Fri Nov 11 2011 01:46:54 GMT+0100 (CET)"},"42034":{"submorphs":[{"__isSmartRef__":true,"id":42035}],"scripts":[],"id":"8E0FA978-7C5E-4BE8-8F12-1C60E25DA0C3","shape":{"__isSmartRef__":true,"id":42040},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":42046},"lighterFill":{"__isSmartRef__":true,"id":42051},"label":{"__isSmartRef__":true,"id":42035},"attributeConnections":[{"__isSmartRef__":true,"id":42056}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"name":"ObjectEditorRemoveScriptButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":42058},"owner":{"__isSmartRef__":true,"id":41332},"eventHandler":{"__isSmartRef__":true,"id":42059},"isCopyMorphRef":true,"morphRefId":24,"draggingEnabled":false,"objectEditorPane":{"__isSmartRef__":true,"id":41332},"derivationIds":[217,"FDC10087-12CF-4570-9211-8309CB6A9AA3","E18FC530-4B1F-4F08-8DA6-3866A3519E56","04A2AAC3-6A9E-40BB-9408-EBB2567EE63B","8C1A42CE-840C-4AAE-BD79-C93A445B9EBF","61FC11FA-B87E-4EFE-BD15-564D3178B68B","ED34F9B5-9E00-41B3-8313-D9C3D6B3B231","A7481F4B-D444-4B4F-BDA2-4F9F03AEC24D","7DDF7175-34FC-4521-A7C3-580A8BE63351","DEA39C05-FAD7-4882-AB3D-0EE12C3408F9","99186A50-1411-4B6F-B1CB-FF0742C20D7D","10F3E467-6BB8-4D07-BD17-8C50593FD6B8","7260818C-6472-4288-8BDD-1E7798A543F3","DEBB5BDB-018D-4BA1-9FB9-73DC84C51D89","D75BCAED-3029-46EB-B944-4A102BB1BC0F","9A977DA2-B325-4DFA-9683-3DC9ECEFAAC0","48A5078F-B4A5-4F4E-884D-84CCDFFBE6F0","33905494-AA01-4311-8398-1F6C3D4F1BAC","5D7201A7-1374-49AD-851F-E3167EFED99E","9B69B6C6-71F2-402E-89D1-E97FC2D3AE13","DA1B3A74-F4A6-427B-8FBD-3D2E9D8CD866","DBFC4A4F-8601-4C32-9460-53902C3B0F37","ED51CA7C-CE32-4CF5-9398-0BA9B791FF5E","4F7A7C1A-3788-478C-AFF5-BA62C7FCB01D","FCEFF15E-E5B8-4C7E-A139-302649441119","3674B8DC-F4E5-4A5C-ACEC-96D743BB6050","33E0336F-FD6A-4AAB-AECB-B7D6C7C80631","761015EE-47CF-40F6-A403-8A959B2DB0A6","361B531D-7A1C-441A-BE8B-0B503543FF6C","E283DDFD-1D8F-4E3D-A0BC-40C30221FFDC"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"isPressed":false,"__serializedExpressions__":["_Position","padding","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":42060},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(160.0,40.0)","padding":"lively.rect(5,0,0,0)","distanceToDragEvent":"lively.pt(33.4,-21.3)"},"42035":{"submorphs":[],"scripts":[],"id":"D728473B-82D1-409B-8B0F-5AE6E9603B67","shape":{"__isSmartRef__":true,"id":42036},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":25,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"owner":{"__isSmartRef__":true,"id":42034},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":42037}],"prevScroll":[0,0],"_FontFamily":"Helvetica, Sans-Serif","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_Align":"center","eventHandler":{"__isSmartRef__":true,"id":42039},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":25,"_MinTextHeight":null,"draggingEnabled":false,"derivationIds":[218,"852A7BD9-52EE-4708-A2D5-1BDECF33C958","7B4F173E-9726-472A-9B30-530D4AA92AD9","CBA217F6-2832-4213-9ABE-47753C1A4180","E6B97D1D-95D5-4644-9359-1D08D42A51F4","4391A57E-70C2-4628-9828-DD668CCE546E","F0C6C298-3B8B-42B2-B5E9-E5B82F607B01","DF0CAF75-4247-4797-B1A0-AD7444391E2A","B4C4F09B-F663-47A1-B85F-461D5452F5F8","FD966AB1-4685-4151-9A38-B1B21B0237EF","CA91FC2C-D7CC-4123-AFD2-108F8F0C2E97","88F1581A-7AEF-4646-B7F9-3890CDDB8494","DC577877-7F00-4238-9246-08C2A10C0CC9","818C9467-71A2-44D6-B01F-1523A0CD5476","C0CF3DDB-AA12-49E0-B12A-6B620552BB47","853E19A1-E97D-463D-A24F-0148671EB696","0203CA4C-E523-4F7D-824B-F09BA3914BDD","18B98A59-6C8E-4386-B3EF-A17259C51C0F","24D84E0A-FA16-47DE-934D-E60729EEB227","7035F1EB-4B8C-4F20-B3AC-966403F55C0A","69831817-0662-4848-8481-44558987D21D","BA13E4C6-DF2A-4059-9174-7725FA3FE514","3E989A29-2A8F-4AFE-B312-A0852B746605","7B675033-945D-4AE1-B85F-DBD35C7B02AA","E0D76A08-70F9-4710-907E-B2D83D60D29A","495F5D43-B450-45B7-B238-FC12AA8F6488","B551041D-4E6E-44F3-8405-1DCE5344BCCD","0A287650-EC32-45AA-8504-0513B196727F","717B0EFA-1422-4224-9A53-5A494F6191A4","C86C167E-8A7D-43BE-AFED-AAEDA70B95EE"],"_Scale":1,"_WordBreak":"break-all","__serializedExpressions__":["_Position","textColor","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,0,0,0)","_Padding":"lively.rect(0,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"42036":{"borderWidth":0,"fill":null,"_ClipMode":"hidden","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,20.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"42037":{"style":{"__isSmartRef__":true,"id":42038},"chunkOwner":{"__isSmartRef__":true,"id":42035},"storedString":"-","_id":"_1363","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"42038":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"42039":{"morph":{"__isSmartRef__":true,"id":42035},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"42040":{"_Fill":{"__isSmartRef__":true,"id":42041},"_BorderWidth":1,"_BorderRadius":5,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,20.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"42041":{"stops":[{"__isSmartRef__":true,"id":42042},{"__isSmartRef__":true,"id":42043},{"__isSmartRef__":true,"id":42044},{"__isSmartRef__":true,"id":42045}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"42042":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"42043":{"offset":0.3,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"42044":{"offset":0.7,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"42045":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(204,204,204)"},"42046":{"stops":[{"__isSmartRef__":true,"id":42047},{"__isSmartRef__":true,"id":42048},{"__isSmartRef__":true,"id":42049},{"__isSmartRef__":true,"id":42050}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"42047":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"42048":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"42049":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"42050":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"42051":{"stops":[{"__isSmartRef__":true,"id":42052},{"__isSmartRef__":true,"id":42053},{"__isSmartRef__":true,"id":42054},{"__isSmartRef__":true,"id":42055}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"42052":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"42053":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"42054":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"42055":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"42056":{"sourceObj":{"__isSmartRef__":true,"id":42034},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":42034},"targetMethodName":"deleteSelectedScript","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":42057},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"42057":{"source":{"__isSmartRef__":true,"id":42034},"target":{"__isSmartRef__":true,"id":42034}},"42058":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"42059":{"morph":{"__isSmartRef__":true,"id":42034},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"42060":{"deleteSelectedScript":{"__isSmartRef__":true,"id":42061}},"42061":{"varMapping":{"__isSmartRef__":true,"id":42062},"source":"function deleteSelectedScript() {\n\n var editor = this.objectEditorPane;\n var selection = editor.scriptList.selection;\n\n if (!editor.target || editor.scriptList.getList().size() < 2) \n return; \n\n var deleteScript = function (confirmed) {\n if (!confirmed) return;\n \n if (selection && editor.target) {\n if (!editor.target.hasOwnProperty(selection)) \n return;\n delete editor.target[selection];\n editor.updateLists();\n editor.displayInitialScript();\n }\n }\n\n var message = 'Delete \"' + selection + '\" script?';\n var callback = deleteScript;\n\n var dialog = new lively.morphic.ConfirmDialog(message, callback);\n\n return this.world().openDialog(dialog);\n}","funcProperties":{"__isSmartRef__":true,"id":42063},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42062":{"this":{"__isSmartRef__":true,"id":42034}},"42063":{"timestamp":{"__isSmartRef__":true,"id":42064},"user":"lauritz"},"42064":{"isSerializedDate":true,"string":"Thu Nov 17 2011 18:12:21 GMT+0100 (CET)"},"42065":{"submorphs":[{"__isSmartRef__":true,"id":42066}],"scripts":[],"id":"7792BC9B-1544-43C0-9FA2-6F3FF1BD7633","shape":{"__isSmartRef__":true,"id":42072},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":42073},"lighterFill":{"__isSmartRef__":true,"id":42078},"label":{"__isSmartRef__":true,"id":42066},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"name":"ObjectEditorMorphSelector","partsBinMetaInfo":{"__isSmartRef__":true,"id":42083},"list":[],"eventHandler":{"__isSmartRef__":true,"id":42084},"owner":{"__isSmartRef__":true,"id":41332},"textString":"","selection":{"__isSmartRef__":true,"id":42085},"_ClipMode":"visible","prevScroll":[0,0],"derivationIds":[221,"4AC64FBA-95AC-42B2-A078-B6DA97889093","E26ED0E6-C4CE-4C82-94D5-175270E8459E","D292F2FC-C2B6-48AE-B779-8CC5868FFA49","53A862EB-032C-4BF0-9B21-58C7E0C0A9B2","CC4D188B-510F-48DE-A0E1-EC8D2CD63F9F","0CD057F2-3517-4849-A69E-1EF79B05ACE8","66EBBB7D-8FA7-4D43-AE78-A18DA3B970BA","A50C1893-4138-4E29-865B-92F53F76D08A","1EC5D2B9-3539-419A-8DD6-CE82DEABB02C","95DC06D5-F4C7-49E2-8A01-110D1B0AFBD0","672DEFAB-2BE5-4C60-9779-3B44694FBEB1","E3476213-5872-492C-BE29-0C6A5A150ED8","AA2F6ABE-1CCB-403D-94DD-8FB371F3DDCE","54B67D51-AB19-40A0-A2A6-EC51F3171CAC","1CF44342-896F-4ACB-847F-7CB3CD10ED5A","279A9257-1667-4E0C-844B-A4E0D02462F0","DDCBD835-4B3F-4B8F-9623-696DA76C3A2C","D2CB17F3-5DD0-4E97-BF99-40A95ABF976B","FA519665-2394-43D3-8DCF-802A158F3291","90519BB5-7419-46E0-B7E3-4C26304F3414","0B7FC23C-C63C-4F20-8BAF-1BD1B7205762","B54FAD70-E598-4B06-8F41-00843A06D4B0","5A8ECBD6-ADDE-43FA-8D9E-BC483898DF8A","69DD3160-FAD3-4AD8-9B1C-CB9229AD8034","2C8AD368-8815-41D5-8C8D-CD36ECCF4A96","80C5655D-B03D-413B-A84C-D59A60D8EEEC","BA8066E4-5B8E-4048-97C5-332953805999","E27E2CB2-789E-4269-B5E8-2631B5D2840B","0EDAA37B-E8BA-4DE7-820A-17A44E299F5C"],"_Rotation":0,"_Scale":1,"isPressed":false,"__serializedExpressions__":["_Position","padding","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":42091},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(200.1,10.0)","padding":"lively.rect(5,0,0,0)","distanceToDragEvent":"lively.pt(122.9,-11.6)"},"42066":{"submorphs":[],"scripts":[],"id":"3AAF5896-79F8-49BF-9442-8952862FD071","shape":{"__isSmartRef__":true,"id":42067},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":220,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"owner":{"__isSmartRef__":true,"id":42065},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":42068}],"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":42070}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"eventHandler":{"__isSmartRef__":true,"id":42071},"_HandStyle":"default","_PointerEvents":"none","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":220,"_MinTextHeight":null,"_Align":"left","_FontFamily":"Arial","_FontSize":10,"derivationIds":[222,"30F054A3-7658-405B-8098-B7D87AA8A9ED","556D6E07-45B7-42EC-A486-DE275EF0B034","06B0B080-467A-46CC-8B0D-9C0A9B9A71F1","5E2D96C9-BB9B-4735-8673-A79847435197","B48AA022-2022-4A2A-9090-4D884FB3DFD3","8B2F743A-98C5-45E1-B03C-5019114EAC47","D09C56C3-A2DC-4BDF-B8A1-6365138ECD01","74158C3D-B79E-43E7-B111-48701B10ACE2","B19E117B-E40F-4B9F-86AC-BFB2AAFD5336","4E3B3D72-E52C-44ED-AE32-78939BA1ECFD","2459D1F0-E49C-4882-AB4C-D78C1A496962","3D8D3B02-0459-45C1-A606-D0DB4B07958C","78AAE288-D261-4BEA-9436-C8C31B890B44","2E10F795-9892-4BF7-9A46-BCB90FD6112E","DE32EFA9-C920-42F6-9F2E-7EDABEC006AF","23FBFC79-1927-48FD-8C1C-09FFD7539784","3409506C-9BAE-43DA-BCAF-94392F9646DF","ED94289E-98FC-4126-9EED-25FDC98D5BFC","63C2F1D8-3A1B-464B-9945-1F661D4CFE26","782AAB82-32E9-4A37-9DC0-3118636C2CCE","D564B3C8-D9B5-4D7D-80DD-16715ED878F6","D9344242-9F26-4A5D-B86D-6FAEA43B439C","E7E3A5EE-8F82-4F04-9E65-771E2E4AC9D1","55BF0D1C-FCDF-4D8B-9E42-8EF0F36074A3","B3BE05E0-5704-45B4-8B1D-E7FDA5CE6235","9A503124-0F1D-4390-B668-E4457CBC1376","26D1AD85-C129-4C24-A16A-B6863FC35F41","7425ED3B-1418-47C8-A2EE-52CDF3C4D860","C4B9C269-4F6E-4EA2-A6EA-38C21A011591"],"_Scale":1,"_WordBreak":"break-all","__serializedExpressions__":["_Position","textColor","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(2.0,1.0)","textColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,0,0,0)","_Padding":"lively.rect(5,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"42067":{"borderWidth":0,"fill":null,"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(220.0,20.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"42068":{"style":{"__isSmartRef__":true,"id":42069},"chunkOwner":{"__isSmartRef__":true,"id":42066},"_id":"_43618","storedString":"node","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"42069":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"42070":{"sourceObj":{"__isSmartRef__":true,"id":42066},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":42065},"targetMethodName":"selection","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"42071":{"morph":{"__isSmartRef__":true,"id":42066},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"42072":{"_Fill":{"__isSmartRef__":true,"id":42073},"_BorderWidth":1,"_BorderRadius":5,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(220.0,20.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"42073":{"stops":[{"__isSmartRef__":true,"id":42074},{"__isSmartRef__":true,"id":42075},{"__isSmartRef__":true,"id":42076},{"__isSmartRef__":true,"id":42077}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"42074":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"42075":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"42076":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"42077":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"42078":{"stops":[{"__isSmartRef__":true,"id":42079},{"__isSmartRef__":true,"id":42080},{"__isSmartRef__":true,"id":42081},{"__isSmartRef__":true,"id":42082}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"42079":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"42080":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"42081":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"42082":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"42083":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"partName":"ChoiceButton","comment":"Click on it and you get a list of things to choose from.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"42084":{"morph":{"__isSmartRef__":true,"id":42065},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"42085":{"submorphs":[],"scripts":[],"id":181,"shape":{"__isSmartRef__":true,"id":42086},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":580,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":28,"name":"Title","partsBinMetaInfo":{"__isSmartRef__":true,"id":42087},"textChunks":[{"__isSmartRef__":true,"id":42088}],"eventHandler":{"__isSmartRef__":true,"id":42090},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":580,"_MinTextHeight":null,"_Rotation":0,"_Scale":1.002003004005006,"previousSelection":[35,35],"priorSelectionRange":[23,23],"charsReplaced":"WIP / Proof of Concept","lastFindLoc":22,"_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","isCopyMorphRef":true,"morphRefId":2,"prevScroll":[0,0],"__serializedExpressions__":["_Position","textColor","_TextColor","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(37.0,23.0)","textColor":"Color.rgb(0,0,0)","_TextColor":"Color.rgb(0,79,152)","distanceToDragEvent":"lively.pt(221.0,-12.0)"},"42086":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(580.0,43.0)","_BorderColor":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"42087":{"partsSpaceName":"PartsBin/Worlds/","comment":"For example a world title.","partName":"Title","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"42088":{"style":{"__isSmartRef__":true,"id":42089},"chunkOwner":{"__isSmartRef__":true,"id":42085},"storedString":"","_id":"_1365","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"42089":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"42090":{"morph":{"__isSmartRef__":true,"id":42085},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"42091":{"reset":{"__isSmartRef__":true,"id":42092},"onMouseDown":{"__isSmartRef__":true,"id":42096},"onBlur":{"__isSmartRef__":true,"id":42104},"createScenePresentation":{"__isSmartRef__":true,"id":42112},"presentTargetChooser":{"__isSmartRef__":true,"id":42116},"removeTargetChooser":{"__isSmartRef__":true,"id":42120},"removeHighlight":{"__isSmartRef__":true,"id":42124},"highlightCurrentTarget":{"__isSmartRef__":true,"id":42128},"updateTargetFromSelection":{"__isSmartRef__":true,"id":42132},"currentMorphicScene":{"__isSmartRef__":true,"id":42136},"highlightTarget":{"__isSmartRef__":true,"id":42140},"setLabel":{"__isSmartRef__":true,"id":42144},"updateTargetFromOwner":{"__isSmartRef__":true,"id":42152}},"42092":{"varMapping":{"__isSmartRef__":true,"id":42093},"source":"function reset() {\n this.removeTargetChooser();\n this.setLabel('empty');\n this.applyStyle({fixedWidth: true, fixedHeight: true, borderWidth: 1, overflow: 'visible'});\n}","funcProperties":{"__isSmartRef__":true,"id":42094},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42093":{"this":{"__isSmartRef__":true,"id":42065}},"42094":{"timestamp":{"__isSmartRef__":true,"id":42095},"user":"lauritz","tags":[]},"42095":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:04:57 GMT+0200 (CEST)"},"42096":{"varMapping":{"__isSmartRef__":true,"id":42097},"source":"function onMouseDown(evt) {\n if (evt.isCommandKey() || evt.isRightMouseButtonDown()) {\n return $super(evt);\n }\n \n if (this.listMorph) {\n // clicked on morph, not the list, not the list's scrollbar\n if (evt.target === this.renderContext().shapeNode)\n this.removeTargetChooser();\n } else {\n this.presentTargetChooser();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":42102},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42097":{"this":{"__isSmartRef__":true,"id":42065},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":42098}},"42098":{"$super":{"__isSmartRef__":true,"id":42099}},"42099":{"varMapping":{"__isSmartRef__":true,"id":42100},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":42101},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42100":{"obj":{"__isSmartRef__":true,"id":42065},"name":"onMouseDown"},"42101":{},"42102":{"timestamp":{"__isSmartRef__":true,"id":42103},"user":"lauritz","tags":[]},"42103":{"isSerializedDate":true,"string":"Fri Aug 03 2012 12:44:10 GMT+0200 (CEST)"},"42104":{"varMapping":{"__isSmartRef__":true,"id":42105},"source":"function onBlur(evt) {\n $super(evt);\n \n // remove the scene presentation when clicked elsewhere\n var target = evt.world.clickedOnMorph;\n if (!this.listMorph || !this.listMorph.isAncestorOf(target)) {\n this.removeTargetChooser();\n } else {\n this.focus();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":42110},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42105":{"this":{"__isSmartRef__":true,"id":42065},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":42106}},"42106":{"$super":{"__isSmartRef__":true,"id":42107}},"42107":{"varMapping":{"__isSmartRef__":true,"id":42108},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":42109},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42108":{"obj":{"__isSmartRef__":true,"id":42065},"name":"onBlur"},"42109":{},"42110":{"timestamp":{"__isSmartRef__":true,"id":42111},"user":"lauritz","tags":[]},"42111":{"isSerializedDate":true,"string":"Fri Aug 03 2012 13:29:05 GMT+0200 (CEST)"},"42112":{"varMapping":{"__isSmartRef__":true,"id":42113},"source":"function createScenePresentation() {\n var that = this,\n items = this.currentMorphicScene(),\n height = this.owner.getExtent().y,\n bounds = new Rectangle(0, this.getExtent().y, this.getExtent().x * 2, height),\n treeMorph = new lively.morphic.Tree(),\n rect = lively.morphic.Morph.makeRectangle(bounds),\n currentTarget = null;\n \n treeMorph.childrenPerPage = 10000;\n treeMorph.setName(\"MorphSelectorTree\");\n treeMorph.getLayouter().defer();\n treeMorph.setItem(items);\n treeMorph.childNodes.each(function (n) {\n n.expand();\n })\n \n currentTarget = this.highlightCurrentTarget(treeMorph);\n \n rect.setFill(Color.white);\n rect.beClip(true);\n rect.disableGrabbing();\n rect.disableDragging();\n rect.setBorderWidth(1);\n rect.setBorderColor(Color.rgb(150,150,150));\n rect.addMorph(treeMorph);\n rect.treeMorph = treeMorph;\n rect.currentTarget = currentTarget;\n\n return rect;\n}","funcProperties":{"__isSmartRef__":true,"id":42114},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42113":{"this":{"__isSmartRef__":true,"id":42065}},"42114":{"timestamp":{"__isSmartRef__":true,"id":42115},"user":"lauritz","tags":[]},"42115":{"isSerializedDate":true,"string":"Fri Aug 03 2012 13:29:56 GMT+0200 (CEST)"},"42116":{"varMapping":{"__isSmartRef__":true,"id":42117},"source":"function presentTargetChooser() {\n var list = this.createScenePresentation(),\n tree = list.treeMorph,\n target = list.currentTarget\n \n list.setVisible(false)\n this.addMorph(list)\n this.listMorph = list\n list.focus()\n\n // need temp here, doesn't work otherwise, strange errors... Javascript WAT\n var layouting = function() {\n list.setVisible(true)\n \n if (target) {\n var globalTransform = new lively.morphic.Similitude()\n for (var morph = target; (morph != list) && \n (morph != undefined); morph = morph.owner) {\n globalTransform.preConcatenate(morph.getTransform());\n } \n \n list.scrollRectIntoView(target.getBounds().\n translatedBy(globalTransform.getTranslation()));\n tree.getLayouter().resume();\n }\n }\n layouting.morphicDelay(1);\n}","funcProperties":{"__isSmartRef__":true,"id":42118},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42117":{"this":{"__isSmartRef__":true,"id":42065}},"42118":{"timestamp":{"__isSmartRef__":true,"id":42119},"user":"lauritz","tags":[]},"42119":{"isSerializedDate":true,"string":"Fri Aug 03 2012 13:13:22 GMT+0200 (CEST)"},"42120":{"varMapping":{"__isSmartRef__":true,"id":42121},"source":"function removeTargetChooser() {\n if (this.listMorph) {\n this.listMorph.remove();\n delete this.listMorph; \n }\n}","funcProperties":{"__isSmartRef__":true,"id":42122},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42121":{"this":{"__isSmartRef__":true,"id":42065}},"42122":{"timestamp":{"__isSmartRef__":true,"id":42123},"user":"lauritz","tags":[]},"42123":{"isSerializedDate":true,"string":"Fri Aug 03 2012 12:43:38 GMT+0200 (CEST)"},"42124":{"varMapping":{"__isSmartRef__":true,"id":42125},"source":"function removeHighlight(node) {\n node.submorphs[0].setFill(Color.rgb(255,255,255))\n}","funcProperties":{"__isSmartRef__":true,"id":42126},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42125":{"this":{"__isSmartRef__":true,"id":42065}},"42126":{"timestamp":{"__isSmartRef__":true,"id":42127},"user":"lauritz","tags":[]},"42127":{"isSerializedDate":true,"string":"Fri Aug 03 2012 13:32:15 GMT+0200 (CEST)"},"42128":{"varMapping":{"__isSmartRef__":true,"id":42129},"source":"function highlightCurrentTarget(tree) {\n var target = this.owner.target,\n nodes = tree.childNodes,\n highlightNode;\n\n if (!target) {\n return\n } else if (target.isMorph) {\n var expandables = [target],\n nextOwner = target,\n currentNode\n while (nextOwner.owner) {\n expandables.push(nextOwner.owner)\n nextOwner = nextOwner.owner\n }\n expandables.reverse().each(function (m) {\n currentNode = nodes.detect(function (n) {\n return n.item.value === m;\n })\n if (currentNode) {\n nodes = currentNode.childNodes\n if (!nodes && currentNode.item.children) {\n currentNode.expand();\n nodes = currentNode.childNodes;\n }\n } else {\n return;\n }\n })\n if (currentNode && currentNode.item.value === target) {\n highlightNode = currentNode;\n }\n } else {\n var groupNodes = nodes.detect(function (n) {\n return n.item.value === 'groups';\n }).childNodes\n highlightNode = groupNodes.detect(function (n) {\n // group names are unique\n return n.item.value.name === target.name;\n })\n }\n\n if (highlightNode) {\n this.highlightTarget(highlightNode);\n }\n return highlightNode;\n}","funcProperties":{"__isSmartRef__":true,"id":42130},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42129":{"this":{"__isSmartRef__":true,"id":42065}},"42130":{"timestamp":{"__isSmartRef__":true,"id":42131},"user":"lauritz","tags":[]},"42131":{"isSerializedDate":true,"string":"Fri Aug 03 2012 13:31:39 GMT+0200 (CEST)"},"42132":{"varMapping":{"__isSmartRef__":true,"id":42133},"source":"function updateTargetFromSelection(selection) { \n var that = this;\n var update = function(confirmed) {\n if (confirmed) {\n that.owner.setTarget(selection);\n that.setLabel(selection.getName() || selection.toString());\n }\n }\n \n this.removeTargetChooser();\n if (this.owner.hasUnsavedChanges && this.owner.hasUnsavedChanges()) {\n this.owner.confirmUnsavedChanges(update);\n } else {\n update(true);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":42134},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42133":{"this":{"__isSmartRef__":true,"id":42065}},"42134":{"timestamp":{"__isSmartRef__":true,"id":42135},"user":"lauritz","tags":[]},"42135":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:04:57 GMT+0200 (CEST)"},"42136":{"varMapping":{"__isSmartRef__":true,"id":42137},"source":"function currentMorphicScene() {\n var onSelect = function onSelect(tree) {\n this.selector.updateTargetFromSelection(this.value);\n }\n var properties = {\n editorPane: this.owner,\n selector: this\n }\n \n return {children: [{ \n name: 'World',\n value: this.world(),\n selector: this,\n onSelect: onSelect,\n children: this.world().submorphs.invoke('treeItemsOfMorphNames',\n {scripts: [onSelect],\n properties: properties,\n showUnnamed: true}).compact()\n }]};\n}","funcProperties":{"__isSmartRef__":true,"id":42138},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42137":{"this":{"__isSmartRef__":true,"id":42065}},"42138":{"timestamp":{"__isSmartRef__":true,"id":42139},"user":"lauritz","tags":[]},"42139":{"isSerializedDate":true,"string":"Fri Aug 03 2012 13:29:43 GMT+0200 (CEST)"},"42140":{"varMapping":{"__isSmartRef__":true,"id":42141},"source":"function highlightTarget(node) {\n node.submorphs[0].setFill(Color.rgb(218,218,218))\n}","funcProperties":{"__isSmartRef__":true,"id":42142},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42141":{"this":{"__isSmartRef__":true,"id":42065}},"42142":{"timestamp":{"__isSmartRef__":true,"id":42143},"user":"lauritz","tags":[]},"42143":{"isSerializedDate":true,"string":"Fri Aug 03 2012 13:32:12 GMT+0200 (CEST)"},"42144":{"varMapping":{"__isSmartRef__":true,"id":42145},"source":"function setLabel(label) {\n this.label.setTextString(label);\n this.label.setAlign('left');\n}","funcProperties":{"__isSmartRef__":true,"id":42150},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42145":{"this":{"__isSmartRef__":true,"id":42065},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":42146}},"42146":{"$super":{"__isSmartRef__":true,"id":42147}},"42147":{"varMapping":{"__isSmartRef__":true,"id":42148},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":42149},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42148":{"obj":{"__isSmartRef__":true,"id":42065},"name":"setLabel"},"42149":{},"42150":{"timestamp":{"__isSmartRef__":true,"id":42151},"user":"lauritz","tags":[]},"42151":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:04:31 GMT+0200 (CEST)"},"42152":{"varMapping":{"__isSmartRef__":true,"id":42153},"source":"function updateTargetFromOwner() {\n this.setLabel(this.owner.target);\n}","funcProperties":{"__isSmartRef__":true,"id":42154},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42153":{"this":{"__isSmartRef__":true,"id":42065}},"42154":{"timestamp":{"__isSmartRef__":true,"id":42155},"user":"lauritz","tags":[]},"42155":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:24:24 GMT+0200 (CEST)"},"42156":{"submorphs":[],"scripts":[],"id":"E444909D-989A-4CA9-83F6-9F36B272FB45","shape":{"__isSmartRef__":true,"id":42157},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":64.8979476392384,"showsHalos":false,"_FontSize":9,"name":"ObjectEditorScriptsText2","partsBinMetaInfo":{"__isSmartRef__":true,"id":42158},"textChunks":[{"__isSmartRef__":true,"id":42159}],"charsReplaced":"Scripts","lastFindLoc":-7,"priorSelectionRange":[0,7],"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":42161},"_WhiteSpaceHandling":"pre-wrap","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":64.8979476392384,"_ClipMode":"visible","draggingEnabled":false,"eventsAreIgnored":true,"isCopyMorphRef":true,"morphRefId":27,"owner":{"__isSmartRef__":true,"id":41332},"derivationIds":[224,"35EF8FE5-067D-45B6-AF21-77040F11D340","80DC09DD-22D4-4089-B5C3-857B32C9BE9B","EF080074-E6B9-47F3-A87F-26313B40C430","F6977801-C1A7-445C-9BF1-8A1019E202FB","8C9157AE-0343-4CFB-8186-1D5E05D2ECBE","DD3C23F8-6463-4EAE-959B-C486E27D9BDA","1E8D3752-D212-41F8-BC63-B094E0C80707","75C07D11-AE5D-4A36-B2D0-F2A6EA414E72","494AB1C0-2C09-49DE-B4AA-1F24DC7495FF","25199967-E3BA-4763-A704-37BD3152A5F7","8E4A5937-D1FA-4AF7-BD8D-B542C636CEF9","DDB23EF0-540C-4046-AD4D-C001E8A5F20C","FF45AAB3-E5C7-42A0-A704-F068DB2E2AF9","52850E3E-BE46-467C-A381-902F5E4859FD","147F9160-7168-44A4-9EA4-A36466EE1F52","8E4FB238-FC20-4DA7-AC9F-6921EBBD5609","3D09A998-5E60-4E94-9C6A-B08E7D98F02A","B8986B95-68A4-4212-8560-C86C8F7B3B3C","81BAFCDC-090F-4A92-8AD6-C3127620CCF4","3663625F-2BB0-494C-A467-04148A441F42","8F0EE2A4-3C90-4F71-A04E-2B285D2543CD","B5F10B61-9C89-4903-BD4C-DF3B9D283432","7005184B-8CE8-4DB8-82D8-D75E16ADE428","B8106E33-B470-45C3-916E-6E92CAFDD854","3013F6C8-9D86-49F3-9EB0-AA42B27F1DC6","A49BA117-B9D4-43F4-82EA-458B9D16FDBA","9FB9DF10-FCEC-44FE-9614-6DFC4B814576","54F9AFFD-B235-48AC-85E0-57921251546E","7A472A4B-7292-49B5-9F03-DE2E3A096714"],"_Rotation":0,"_Scale":1,"_MaxTextHeight":null,"_MinTextHeight":null,"__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(10.0,12.9)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(45.8,-27.8)"},"42157":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(64.9,14.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"42158":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"42159":{"style":{"__isSmartRef__":true,"id":42160},"chunkOwner":{"__isSmartRef__":true,"id":42156},"storedString":"Tag:","_id":"_1367","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"42160":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"42161":{"morph":{"__isSmartRef__":true,"id":42156},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"42162":{"submorphs":[{"__isSmartRef__":true,"id":42163}],"scripts":[],"id":"0479EB3A-4572-48F6-8FF5-83B7C428D760","shape":{"__isSmartRef__":true,"id":42169},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"value":true,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":42175},"lighterFill":{"__isSmartRef__":true,"id":42180},"label":{"__isSmartRef__":true,"id":42163},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"name":"ObjectEditorTagChooser","partsBinMetaInfo":{"__isSmartRef__":true,"id":42185},"listMorph":null,"list":[],"eventHandler":{"__isSmartRef__":true,"id":42186},"textString":"PartsBinBrowser","selection":"","_ClipMode":"visible","prevScroll":[0,0],"owner":{"__isSmartRef__":true,"id":41332},"setTargetToListSelection":"all","savedTextString":"all","derivationIds":[225,"7F83847B-D0B1-4A31-8601-43424B97C858","E08FC110-71D7-4FFD-B4A8-08F8147B95BA","5534107D-C5C9-48DD-A1ED-B87E9D9B672C","0B89FA7A-768C-4062-98AE-C455E8DAFF19","799320C6-CFBA-40E7-B03D-64BFE9B78248","9B650AA3-271B-4E72-B230-51C6F64B7462","C95D3672-724C-4C2C-9CDD-EF308062F627","C66EBEEC-B7CE-4DD9-8BDF-905F071F965D","D68B143A-A712-4FD0-8803-62CCB4C7F763","ED802271-AE5C-4BE9-AC4E-7CED44BC864B","1BD989CB-146C-431F-8B15-9199C4CD5D32","42172AA4-1B06-4C5B-9BB7-FAED1206CF34","32DFAF99-E6F8-426B-829D-FD6C2BCB8FAA","9B4BF2BE-49D5-4B9D-8F38-1692443069A9","FCAB3690-731A-45E7-984F-843DFE705AF1","94B10A66-8219-43AD-B902-DA999A66222D","BB0E2EB7-ABCE-44C7-96E7-6679FB2981D1","2FCEE551-302B-46C9-B646-3B9BE9187182","B4267F52-1ACC-42A1-904D-E9F7D485D8AB","14770110-045A-4BE4-BCF2-7C886DF70F7D","5387EA76-6B03-426A-B385-9C4231B66352","23545203-A969-439B-8761-E83A810696D0","C5467F6E-CBD7-4AF4-94BE-D0D62E4F7DDD","2FC5F9D1-B611-4273-BD5B-107350364579","318398B6-6689-4DE7-88FD-636BD968773D","3241459F-2019-4BD2-A0CF-BD2A174DDA76","69022916-A511-4A6C-8220-5B4CCD34FCEF","E772C128-C42D-4B13-A3DB-3EC0DFDC9FC5","4DD223AA-79FC-4FB3-9301-F197D9D6B358"],"_Rotation":0,"_Scale":1,"isPressed":false,"__serializedExpressions__":["_Position","padding","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":42187},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(39.1,10.0)","padding":"lively.rect(5,0,0,0)","distanceToDragEvent":"lively.pt(85.7,-11.6)"},"42163":{"submorphs":[],"scripts":[],"id":"A4537689-332C-4D80-B51E-27541AF5B04C","shape":{"__isSmartRef__":true,"id":42164},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":130,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"owner":{"__isSmartRef__":true,"id":42162},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":42165}],"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":42167}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"eventHandler":{"__isSmartRef__":true,"id":42168},"_HandStyle":"default","_PointerEvents":"none","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":130,"_MinTextHeight":null,"_Align":"left","_FontFamily":"Arial","_FontSize":10,"derivationIds":[226,"03DBF3F8-8EA2-4426-BA64-C4297DDAB015","B8F87302-BEC3-48CD-9BBA-6C7DBB6287E1","4AA6AE51-338B-4E3E-814B-9F99C693A2D5","08F6CE56-AD91-4C27-9429-C3DEA313696C","D39C963C-FD24-4498-A6D8-71E5102CE58A","132C2A9E-3466-4051-AAEA-6E485A91F408","DB8BC4A1-ED41-446B-AB6C-7E73DD857B5D","567FC668-A57C-41CB-8252-8912826B3144","D0B0775F-C8E7-49EB-BBB2-C7BB7DD464BF","AABED87D-D7C0-494A-8803-26F4601E35FF","696C3A2A-C695-4D17-A044-41A73436AB8D","206A0BFD-6997-4E0E-9193-089D1F66B22A","F2F1F966-6C41-4EBA-AFCE-FAE8C79AA696","64A754E9-7083-4CAE-B5C2-7B436EFFE4BA","64737503-A352-42CC-A249-667DA2B42746","9218F1CA-E23F-4E1A-89C3-DB19DE720861","CF7EAC38-1041-4B83-B087-359885B8528B","84469C7C-C93D-4F16-ACAA-0045A4A37FCA","9D3DD447-66A0-4B4A-B378-FB864D8C1468","163D1C2B-EDE9-4F8F-B466-EF9F4CB14384","50DCF8C9-23AA-4241-AC5B-724CC11950DA","CCACCC51-0109-4F73-B122-AA60E40EC54B","285D1797-A21F-4439-81AD-932B45F54879","7354C28D-A54E-48B6-913E-4949B5F4625E","68EAB78C-AAA8-4EC3-8493-CFD23672B5B3","2AD9DBC6-BDBD-4022-AFE1-B6D94D6860BF","5D634617-10A2-45FE-A453-D3452456AB07","EE3AF0A1-F42E-4AE8-A115-3458AA56DAF3","D8A87F07-FBE8-4C1E-ADE9-3AF6EE15FCD3"],"_Scale":1,"_WordBreak":"break-all","__serializedExpressions__":["_Position","textColor","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(2.0,1.0)","textColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,0,0,0)","_Padding":"lively.rect(5,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"42164":{"borderWidth":0,"fill":null,"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(130.0,20.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"42165":{"style":{"__isSmartRef__":true,"id":42166},"chunkOwner":{"__isSmartRef__":true,"id":42163},"_id":"_11398","storedString":"all","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"42166":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"42167":{"sourceObj":{"__isSmartRef__":true,"id":42163},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":42162},"targetMethodName":"selection","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"42168":{"morph":{"__isSmartRef__":true,"id":42163},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"42169":{"_Fill":{"__isSmartRef__":true,"id":42170},"_BorderWidth":1,"_BorderRadius":5,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(130.0,20.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"42170":{"stops":[{"__isSmartRef__":true,"id":42171},{"__isSmartRef__":true,"id":42172},{"__isSmartRef__":true,"id":42173},{"__isSmartRef__":true,"id":42174}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"42171":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(230,243,253)"},"42172":{"offset":0.3,"__serializedExpressions__":["color"],"color":"Color.rgb(171,215,248)"},"42173":{"offset":0.7,"__serializedExpressions__":["color"],"color":"Color.rgb(171,215,248)"},"42174":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(157,198,229)"},"42175":{"stops":[{"__isSmartRef__":true,"id":42176},{"__isSmartRef__":true,"id":42177},{"__isSmartRef__":true,"id":42178},{"__isSmartRef__":true,"id":42179}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"42176":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"42177":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"42178":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"42179":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"42180":{"stops":[{"__isSmartRef__":true,"id":42181},{"__isSmartRef__":true,"id":42182},{"__isSmartRef__":true,"id":42183},{"__isSmartRef__":true,"id":42184}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"42181":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"42182":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"42183":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"42184":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"42185":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"partName":"ChoiceButton","comment":"Click on it and you get a list of things to choose from.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"42186":{"morph":{"__isSmartRef__":true,"id":42162},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"42187":{"createListMorph":{"__isSmartRef__":true,"id":42188},"getList":{"__isSmartRef__":true,"id":42192},"removeList":{"__isSmartRef__":true,"id":42196},"reset":{"__isSmartRef__":true,"id":42200},"onMouseUp":{"__isSmartRef__":true,"id":42204},"onBlur":{"__isSmartRef__":true,"id":42212},"setTag":{"__isSmartRef__":true,"id":42220}},"42188":{"varMapping":{"__isSmartRef__":true,"id":42189},"source":"function createListMorph() {\n var items = this.getList();\n\n var height = Math.min(this.owner.getExtent().y, items.length * 17);\n var extent = new Rectangle(0, this.getExtent().y, this.getExtent().x, height);\n\n var listMorph = new lively.morphic.List(extent);\n listMorph.setList(items);\n listMorph.setFontSize(10);\n\n listMorph.disableGrabbing();\n listMorph.disableDragging();\n \n connect(listMorph, 'selection', this, 'setTag');\n \n return listMorph;\n}","funcProperties":{"__isSmartRef__":true,"id":42190},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42189":{"this":{"__isSmartRef__":true,"id":42162}},"42190":{"timestamp":{"__isSmartRef__":true,"id":42191},"user":"lauritz","categories":[]},"42191":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:35:59 GMT+0100 (CET)"},"42192":{"varMapping":{"__isSmartRef__":true,"id":42193},"source":"function getList() {\n if (!this.owner.target) return [''];\n\n var target = this.owner.target;\n\n var tags = Functions.own(target).collect(function (each) {\n return target[each].tags || [];\n }).flatten().uniq();\n\n var sortedTags = tags.sortBy(function(name) { \n return name.toLowerCase() \n });\n \n sortedTags.unshift('all'); \n return sortedTags;\n}","funcProperties":{"__isSmartRef__":true,"id":42194},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42193":{"this":{"__isSmartRef__":true,"id":42162}},"42194":{"timestamp":{"__isSmartRef__":true,"id":42195},"user":"lauritz","tags":[]},"42195":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:27:25 GMT+0100 (CET)"},"42196":{"varMapping":{"__isSmartRef__":true,"id":42197},"source":"function removeList() {\n this.listMorph && this.listMorph.remove()\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":42198},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42197":{"this":{"__isSmartRef__":true,"id":42162}},"42198":{"timestamp":{"__isSmartRef__":true,"id":42199},"user":"lauritz","categories":[]},"42199":{"isSerializedDate":true,"string":"Thu Nov 17 2011 19:06:51 GMT+0100 (CET)"},"42200":{"varMapping":{"__isSmartRef__":true,"id":42201},"source":"function reset() {\n this.list = [];\n this.setLabel('all');\n this.label.setAlign('left');\n this.removeList();\n this.applyStyle({fixedWidth: true, fixedHeight: true, borderWidth: 1, overflow: 'visible'})\n}","funcProperties":{"__isSmartRef__":true,"id":42202},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42201":{"this":{"__isSmartRef__":true,"id":42162}},"42202":{"timestamp":{"__isSmartRef__":true,"id":42203},"user":"lauritz","tags":[]},"42203":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:27:53 GMT+0100 (CET)"},"42204":{"varMapping":{"__isSmartRef__":true,"id":42205},"source":"function onMouseUp(evt) {\n if (evt.isCommandKey() || evt.isRightMouseButtonDown()) return $super(evt);\n if (this.listMorph) {\n this.removeList();\n return true;\n } \n if (this.getList().size() < 2) return;\n var list = this.createListMorph();\n this.addMorph(list);\n this.listMorph = list;\n return true;\n}","funcProperties":{"__isSmartRef__":true,"id":42210},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42205":{"this":{"__isSmartRef__":true,"id":42162},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":42206}},"42206":{"$super":{"__isSmartRef__":true,"id":42207}},"42207":{"varMapping":{"__isSmartRef__":true,"id":42208},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":42209},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42208":{"obj":{"__isSmartRef__":true,"id":42162},"name":"onMouseUp"},"42209":{},"42210":{"timestamp":{"__isSmartRef__":true,"id":42211},"user":"lauritz","categories":[]},"42211":{"isSerializedDate":true,"string":"Thu Nov 17 2011 18:59:16 GMT+0100 (CET)"},"42212":{"varMapping":{"__isSmartRef__":true,"id":42213},"source":"function onBlur(evt) {\n $super(evt);\n \n // workaround - otherwise other morphs get this event\n var clickedMorph = evt && evt.world && evt.world.clickedOnMorph;\n if (clickedMorph && (clickedMorph !== this && clickedMorph !== this.listMorph)) {\n this.removeList();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":42218},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42213":{"this":{"__isSmartRef__":true,"id":42162},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":42214}},"42214":{"$super":{"__isSmartRef__":true,"id":42215}},"42215":{"varMapping":{"__isSmartRef__":true,"id":42216},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":42217},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42216":{"obj":{"__isSmartRef__":true,"id":42162},"name":"onBlur"},"42217":{},"42218":{"timestamp":{"__isSmartRef__":true,"id":42219},"user":"lauritz","categories":[]},"42219":{"isSerializedDate":true,"string":"Mon Nov 21 2011 23:10:03 GMT+0100 (CET)"},"42220":{"varMapping":{"__isSmartRef__":true,"id":42221},"source":"function setTag(tag) {\n this.setLabel(tag || '');\n this.label.setAlign('left');\n this.owner.setTag(tag);\n}","funcProperties":{"__isSmartRef__":true,"id":42222},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42221":{"this":{"__isSmartRef__":true,"id":42162}},"42222":{"timestamp":{"__isSmartRef__":true,"id":42223},"user":"lauritz","categories":[]},"42223":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:36:12 GMT+0100 (CET)"},"42224":{"submorphs":[{"__isSmartRef__":true,"id":42225}],"scripts":[],"id":"53E8A476-6797-4B59-B17C-AEE3860F4BB3","shape":{"__isSmartRef__":true,"id":42230},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":42231},"lighterFill":{"__isSmartRef__":true,"id":42236},"label":{"__isSmartRef__":true,"id":42225},"name":"Button","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":42241},"attributeConnections":[{"__isSmartRef__":true,"id":42242}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":42265},"derivationIds":[7251,"BE69DA70-C9C3-4495-A6B5-413BD2FFA0D1","79FE3D3F-77C4-4B39-8243-D672185B416D","A4D2FEDF-2654-4381-AB43-8F89B9CA2E86","87E42FF6-3862-481D-97D6-643676E15F32","4F370A81-5A80-4821-8ECC-D52B56F31E15","1C6D1DC9-2F9B-4DC4-B453-1CA45B17C516","0E8EC0BF-934B-410B-AEC2-0ECA8C8F774D","97086CE7-CD46-4035-A371-02A41D555A66","E342B91D-F54B-4DA8-8AE7-10C59CE22B41","A838C48E-4033-4688-8DCF-20659BD824FF","E9BBC453-FFF6-4EE8-BDB0-605D5D4557AE","B6FB81D1-145B-40F9-ACF1-17276DA45EBA","09C79781-5461-4815-88DE-22FB67558136","85A5FA10-01D9-4051-8D56-29DB02CF8817","6E2F44D0-D69A-4DD7-91AD-0B0E1E871633","66FB4A47-82E6-417D-8248-4038D0CBBF5A","3CDC67E7-CAC7-4636-B7FF-50D008C6EB0D","4475CB12-8CFB-41DB-9399-EC6B68E18BA3","6175C505-1BCA-42E9-9C4C-07A4A309A245","B4FEE8FD-E680-459F-A82E-7606A48170D5","AC0B6630-E189-474B-A5E2-13726C1E0E6A","B5559DA4-1483-446C-8332-23DC886B44A5","955AF1F4-5BF5-4129-BA11-0DC54E21E510","6646015F-BD0A-4FEB-85F0-557FB8EC655A","A5682378-2307-447E-AD50-1DEC1AAC9FCB","1A04209F-A70E-4385-A6E2-D508EABC2DFC","EDA53C4F-765D-4424-9DBF-C62388440C46"],"owner":{"__isSmartRef__":true,"id":41332},"layout":{"__isSmartRef__":true,"id":42266},"_ClipMode":"visible","_Rotation":0,"_Scale":0.994014980014994,"isPressed":false,"prevScroll":[0,0],"__serializedExpressions__":["distanceToDragEvent","_Position"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","distanceToDragEvent":"lively.pt(72.0,-13.0)","_Position":"lively.pt(687.7,9.5)"},"42225":{"submorphs":[],"scripts":[],"id":"2B293DBE-0452-4191-9F62-874B29B474FA","shape":{"__isSmartRef__":true,"id":42226},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":97,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":42224},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":42227}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":42229},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[7252,"E0EF3EFE-3ADF-4E46-8705-7BF444E4BCED","307A3596-1175-4EA6-AA27-5BA4C9D95AB7","0EF99131-C569-4C2C-B613-E0D8423C1334","BA4EC8D2-AB29-4F9F-B5A0-715A4746A4C4","56735895-BA99-4D98-9866-AA5DBD86237E","81041CF7-31DB-4F65-BB39-FE438A4F266F","D03829B3-268E-40A0-A440-3E4BAC344F30","714637F0-714A-4833-909B-BA4AF1B4628B","DC956E73-7398-4CAF-B6F2-9A226E344396","C1F72D31-1F49-4C0C-ACF3-C3AD7E698D2F","39386C7E-9099-4159-BFE9-80AD37319211","2764FB6E-70D1-4BC5-B3CB-9979A48B8205","C55C8A7C-412C-453E-A99F-CE78C2AADB94","4BD9A8D4-2EC1-40AC-A1CE-5F1347B0152D","3450EAEB-E3D2-4FAF-98DF-354B3B8715D6","C906736E-48DF-4054-BA5A-A089610456D7","DE5C59FB-90A6-4DD4-AC39-5CC8B3912969","5830FB93-49A1-4A31-A687-69C4579D5FA7","AE9038D5-0EBD-40A0-8043-9689D163D108","13E47AE3-8FA4-4D33-B6D0-DC9AB9E63590","330AAB8C-6D17-4763-AACC-669FC5DD3A91","CA04BB7A-205C-412D-9900-C2DE7C5FAD36","37AADE55-77DE-4E93-9A3E-241BB5002F88","60EB450E-29D4-42B9-8FF7-CA138515052E","7D5C0196-98BF-4CCD-9142-3D29E68EE180","0F70CA1F-07A9-4EFA-872A-3255F9C850DC","7A2FAFFA-9A09-40FB-B04A-80B0B34C696B"],"_MinTextWidth":97,"_MinTextHeight":null,"_WordBreak":"break-all","__serializedExpressions__":["_Position","padding","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)"},"42226":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(101.0,21.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(2,2,0,0)"},"42227":{"style":{"__isSmartRef__":true,"id":42228},"chunkOwner":{"__isSmartRef__":true,"id":42225},"storedString":"run","_id":"_1369","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"42228":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"42229":{"morph":{"__isSmartRef__":true,"id":42225},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"42230":{"_BorderWidth":1.1840000000000002,"_Fill":{"__isSmartRef__":true,"id":42231},"_BorderRadius":5.2,"_ClipMode":"visible","_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(101.0,21.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"42231":{"stops":[{"__isSmartRef__":true,"id":42232},{"__isSmartRef__":true,"id":42233},{"__isSmartRef__":true,"id":42234},{"__isSmartRef__":true,"id":42235}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"42232":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"42233":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"42234":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"42235":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"42236":{"stops":[{"__isSmartRef__":true,"id":42237},{"__isSmartRef__":true,"id":42238},{"__isSmartRef__":true,"id":42239},{"__isSmartRef__":true,"id":42240}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"42237":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"42238":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"42239":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"42240":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"42241":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"42242":{"sourceObj":{"__isSmartRef__":true,"id":42224},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":41332},"targetMethodName":"runScript","visualConnector":{"__isSmartRef__":true,"id":42243},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"42243":{"submorphs":[{"__isSmartRef__":true,"id":42244}],"scripts":[],"shape":{"__isSmartRef__":true,"id":42251},"derivationIds":[null],"id":"C89B50A0-17E7-4D22-AE1D-5112520DAEE7","eventHandler":{"__isSmartRef__":true,"id":42254},"droppingEnabled":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":42255},{"__isSmartRef__":true,"id":42256}],"con":{"__isSmartRef__":true,"id":42242},"showsMorphMenu":true,"showsHalos":false,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":42257},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"42244":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":42245},"derivationIds":[null],"id":"2A71BE9E-6820-46AF-ACED-3C9BDCC918AF","eventHandler":{"__isSmartRef__":true,"id":42250},"droppingEnabled":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":42243},"_Rotation":-3.130064002485303,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(0.0,0.0)"},"42245":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":42246},{"__isSmartRef__":true,"id":42247},{"__isSmartRef__":true,"id":42248},{"__isSmartRef__":true,"id":42249}],"_ClipMode":"visible","_BorderWidth":0,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(-12.0,-6.0)","_Extent":"lively.pt(16.0,12.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)"},"42246":{"isAbsolute":true,"x":-12,"y":-6,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"42247":{"isAbsolute":true,"x":-12,"y":6,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"42248":{"isAbsolute":true,"x":4,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"42249":{"isAbsolute":true,"x":-12,"y":-6,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"42250":{"morph":{"__isSmartRef__":true,"id":42244},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"42251":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":42252},{"__isSmartRef__":true,"id":42253}],"_ClipMode":"visible","_BorderWidth":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(-1.0,-1.0)","_Extent":"lively.pt(831.0,11.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"42252":{"isAbsolute":true,"x":829.7085000406639,"y":9.565843617262885,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"42253":{"isAbsolute":true,"x":0,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"42254":{"morph":{"__isSmartRef__":true,"id":42243},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"42255":{"morph":{"__isSmartRef__":true,"id":42243},"index":0,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"42256":{"morph":{"__isSmartRef__":true,"id":42243},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":42244},"markerDirection":"prev","__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"42257":{"morphMenuItems":{"__isSmartRef__":true,"id":42258}},"42258":{"varMapping":{"__isSmartRef__":true,"id":42259},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = this.world();\n var items = [\n ['edit converter', function() {\n var source = con.converterString ||\n 'function converter(value) {\\n return value\\n}',\n editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n editor.doitContext = con;\n connect(editor, 'savedTextString', con, 'converterString', {updater:\n function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n connect(editor, 'savedTextString', world, 'alertOK', {converter:\n function() { return 'setting new converter' }})\n editor.applyStyle({syntaxHighlighting: true,\n fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n var title = con.targetObj.name && con.sourceObj.name ?\n 'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(),\n visualConnector.bounds().bottomCenter())\n }],\n ['hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['cancel', function() {}],\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":42264},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42259":{"this":{"__isSmartRef__":true,"id":42243},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":42260}},"42260":{"$super":{"__isSmartRef__":true,"id":42261}},"42261":{"varMapping":{"__isSmartRef__":true,"id":42262},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":42263},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42262":{"obj":{"__isSmartRef__":true,"id":42243},"name":"morphMenuItems"},"42263":{},"42264":{},"42265":{"morph":{"__isSmartRef__":true,"id":42224},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"42266":{"centeredHorizontal":false,"moveHorizontal":true},"42267":{"submorphs":[{"__isSmartRef__":true,"id":42268}],"scripts":[],"id":"45C8063C-38C1-4D10-97BF-B1310D2DFA54","shape":{"__isSmartRef__":true,"id":42273},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":42274},"lighterFill":{"__isSmartRef__":true,"id":42279},"label":{"__isSmartRef__":true,"id":42268},"name":"saveButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":42284},"attributeConnections":[{"__isSmartRef__":true,"id":42285}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":42308},"derivationIds":[7251,"BE69DA70-C9C3-4495-A6B5-413BD2FFA0D1","79FE3D3F-77C4-4B39-8243-D672185B416D","A4D2FEDF-2654-4381-AB43-8F89B9CA2E86","D686F0CB-027B-4CA9-8B8D-9306389B219D","F51327CB-803E-4234-BFB3-6F5252D1C936","A79280E8-6AE3-4016-AF47-CE78F71924C6","B05829EB-D452-4D81-983B-E2CE425C8260","32B117E5-52D8-4843-B80E-090B9817E099","49AC923E-5272-4E3C-8F02-4F2AED2BC4E9","85AAEA9C-5E12-4DEC-8994-9A5FE655A740","2A7FF9BF-85D3-4962-8EB4-0F7016C672EB","3BB17748-B91B-43F5-84BE-2537402A6382","8BA10BD3-43C5-4A41-B9D9-DCD8C74EA208","8BADA640-EDC1-41B2-BEF3-0F2520EA25DD","CAFB5342-EFD3-483E-AE4A-343D211653EF","C3DC8C6F-A36C-4456-AF34-B0A318C1AAD8","88093937-29BB-43FC-AD82-4A0A4BDC349F","27E1FA12-CE4A-4C1F-891F-EEEF92BD672F","A12311D6-23C1-4711-9271-5B582F89F15B","F615015A-8BAE-4FC4-B9A4-D1D1122AC0A2","77333AB0-F43F-45D7-BAEE-8B9FF7865CAF","6A0E622E-4C99-42C1-8EEE-E659BFC2996E","D0264D42-222E-4900-908B-4EA13729B6AA","CC6A8A07-5A2D-407A-B540-6BA0C73356C5","FA68B30F-8583-41B2-898D-8DAFE1A75F15","D5C01E0F-F7DF-4896-8CEF-099C9F3E6CB8","B521A25F-FA55-4F6B-BAC1-0B2544DF98C1","C567F039-E57C-4C5E-AFAA-D05B2C481A69"],"layout":{"__isSmartRef__":true,"id":42309},"owner":{"__isSmartRef__":true,"id":41332},"_ClipMode":"visible","_Rotation":0,"_Scale":0.9880657804942089,"isPressed":false,"prevScroll":[0,0],"__serializedExpressions__":["distanceToDragEvent","_Position"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","distanceToDragEvent":"lively.pt(68.8,-14.5)","_Position":"lively.pt(574.4,9.5)"},"42268":{"submorphs":[],"scripts":[],"id":"1D04552E-BAA7-4BB5-B0AB-DE180B27870F","shape":{"__isSmartRef__":true,"id":42269},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":97,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":42267},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":42270}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":42272},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[7252,"E0EF3EFE-3ADF-4E46-8705-7BF444E4BCED","307A3596-1175-4EA6-AA27-5BA4C9D95AB7","0EF99131-C569-4C2C-B613-E0D8423C1334","9AECBFB8-25A5-483F-86AD-D7CF9ABC9A25","918C6CC4-3540-4341-BAFD-B195F7807FEE","5AABB138-5EE8-40A5-AB3C-5A9625D0A353","4529D79B-4CC5-467E-91F8-661C3A5F49F8","1E5E570C-FD42-45E3-A7F6-768BB14ACD14","A13FB4E0-72F2-4E7C-A861-EDCBA1393860","B8E4C964-4FFF-4A9F-B0A9-612546B1DC8C","002A2173-D26D-4EED-8906-A489C1E158C0","63362D04-B829-41E6-9E68-5B8DB03D382F","996B60A4-8698-448F-A35F-79C768B4976B","F0727398-A1F0-47F5-92CF-BB9677FA05FA","38707063-D664-49A0-B2FB-F0666EC532D5","0402FB51-915F-4491-8FA1-553F0D8F7F35","5A35285D-C6A5-4830-97D9-0890A3F33F39","53121F0B-7DA5-4622-AC08-DD4805D53374","6C84E15D-112D-4C04-87C1-937691E296A7","4ECBD7E4-8B18-4331-8A37-07F4D8DCDCA0","3D4B43A2-AD74-4131-A939-D680216EDA6B","B22327BB-C876-4084-BEFA-4D06AE2B2849","2D34C2E9-76B8-49DC-9FCC-39B523CD0EF4","F098174A-AABC-4F95-8193-C29CA85D6188","714713CE-F5E8-4817-835F-99EA27075558","532DCEDE-C300-48C9-9DBA-58A1E02E1632","2F1C117F-2507-446D-8B43-9BD30AC726FB","74DABF7B-1E90-4D21-93D1-802BC208E9C7"],"_MinTextWidth":97,"_MinTextHeight":null,"_WordBreak":"break-all","__serializedExpressions__":["_Position","padding","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)"},"42269":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(101.0,21.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"42270":{"style":{"__isSmartRef__":true,"id":42271},"chunkOwner":{"__isSmartRef__":true,"id":42268},"storedString":"save","_id":"_1370","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"42271":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"42272":{"morph":{"__isSmartRef__":true,"id":42268},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"42273":{"_BorderWidth":1.1840000000000002,"_Fill":{"__isSmartRef__":true,"id":42274},"_BorderRadius":5.2,"_ClipMode":"visible","_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(101.0,21.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"42274":{"stops":[{"__isSmartRef__":true,"id":42275},{"__isSmartRef__":true,"id":42276},{"__isSmartRef__":true,"id":42277},{"__isSmartRef__":true,"id":42278}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"42275":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"42276":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"42277":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"42278":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"42279":{"stops":[{"__isSmartRef__":true,"id":42280},{"__isSmartRef__":true,"id":42281},{"__isSmartRef__":true,"id":42282},{"__isSmartRef__":true,"id":42283}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"42280":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"42281":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"42282":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"42283":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"42284":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"42285":{"sourceObj":{"__isSmartRef__":true,"id":42267},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":41567},"targetMethodName":"doSave","visualConnector":{"__isSmartRef__":true,"id":42286},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"42286":{"submorphs":[{"__isSmartRef__":true,"id":42287}],"scripts":[],"shape":{"__isSmartRef__":true,"id":42294},"derivationIds":[null],"id":"F46012D5-C8BE-4E52-BF98-D052FDAAE17A","eventHandler":{"__isSmartRef__":true,"id":42297},"droppingEnabled":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":42298},{"__isSmartRef__":true,"id":42299}],"con":{"__isSmartRef__":true,"id":42285},"showsMorphMenu":true,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":42300},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"42287":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":42288},"derivationIds":[null],"id":"A2A83C78-09B8-473C-829B-198206D7A9E4","eventHandler":{"__isSmartRef__":true,"id":42293},"droppingEnabled":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":42286},"_Rotation":3.077607197692381,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(201.2,40.2)"},"42288":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":42289},{"__isSmartRef__":true,"id":42290},{"__isSmartRef__":true,"id":42291},{"__isSmartRef__":true,"id":42292}],"_ClipMode":"visible","_BorderWidth":0,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(-12.0,-6.0)","_Extent":"lively.pt(16.0,12.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)"},"42289":{"isAbsolute":true,"x":-12,"y":-6,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"42290":{"isAbsolute":true,"x":-12,"y":6,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"42291":{"isAbsolute":true,"x":4,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"42292":{"isAbsolute":true,"x":-12,"y":-6,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"42293":{"morph":{"__isSmartRef__":true,"id":42287},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"42294":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":42295},{"__isSmartRef__":true,"id":42296}],"_ClipMode":"visible","_BorderWidth":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(200.0,9.0)","_Extent":"lively.pt(480.0,32.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"42295":{"isAbsolute":true,"x":679.4857209639925,"y":9.595948897894004,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"42296":{"isAbsolute":true,"x":201.20421122525056,"y":40.24084224505009,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"42297":{"morph":{"__isSmartRef__":true,"id":42286},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"42298":{"morph":{"__isSmartRef__":true,"id":42286},"index":0,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"42299":{"morph":{"__isSmartRef__":true,"id":42286},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":42287},"markerDirection":"prev","__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"42300":{"morphMenuItems":{"__isSmartRef__":true,"id":42301}},"42301":{"varMapping":{"__isSmartRef__":true,"id":42302},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = this.world();\n var items = [\n ['edit converter', function() {\n var source = con.converterString ||\n 'function converter(value) {\\n return value\\n}',\n editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n editor.doitContext = con;\n connect(editor, 'savedTextString', con, 'converterString', {updater:\n function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n connect(editor, 'savedTextString', world, 'alertOK', {converter:\n function() { return 'setting new converter' }})\n editor.applyStyle({syntaxHighlighting: true,\n fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n var title = con.targetObj.name && con.sourceObj.name ?\n 'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(),\n visualConnector.bounds().bottomCenter())\n }],\n ['hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['cancel', function() {}],\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":42307},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42302":{"this":{"__isSmartRef__":true,"id":42286},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":42303}},"42303":{"$super":{"__isSmartRef__":true,"id":42304}},"42304":{"varMapping":{"__isSmartRef__":true,"id":42305},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":42306},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42305":{"obj":{"__isSmartRef__":true,"id":42286},"name":"morphMenuItems"},"42306":{},"42307":{},"42308":{"morph":{"__isSmartRef__":true,"id":42267},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"42309":{"centeredHorizontal":false,"moveHorizontal":true},"42310":{"submorphs":[{"__isSmartRef__":true,"id":42311}],"scripts":[],"id":"1BA64EF8-4760-4D0C-93D6-045BB4939B21","shape":{"__isSmartRef__":true,"id":42316},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":42317},"lighterFill":{"__isSmartRef__":true,"id":42322},"label":{"__isSmartRef__":true,"id":42311},"name":"openTestsButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":42327},"attributeConnections":[{"__isSmartRef__":true,"id":42328}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":42329},"derivationIds":[7251,"84054D2E-8176-440D-B413-279956A34FC2","79434046-F834-490E-B705-0CE871D9E8B3","FF38CA79-C0DF-4F2F-8FC3-407571EF6A54","B1D50332-9F4F-4F7C-AC3F-95DC6C73EAA4","5B8D7C39-987A-4849-BFFD-3F316CE03852","F7C30F5C-7270-44B1-ADFF-7473F2012DB0","5142302E-3E9A-476B-AB24-B2448DA6D3E4","FEA3C508-593D-4BC7-B645-8B5630CF2EDE","34DBC442-E1DE-42D7-8C63-BA9A1890C994","4F9067A3-5A5C-4637-A76F-7E590CEE2BDA","ADF74818-537A-4669-A455-9509BA7BD7E5","AFCD7FA7-5429-4B1A-B8B8-AB03C18ABA08","604C352D-0347-4329-A299-EAA3FF90B543","46C5ED11-DE03-428F-A758-5308B3D323B5","7C978B2A-9109-42E1-95C5-A59CC74BD31B","2D34E370-3EA6-48DD-B3A7-FE7EB1CCD78D","A0B7F880-0D72-475C-A002-2EAA7D20C004","1146967F-5295-4931-9637-CF72A6A6D724","775F3066-BB4B-4673-B529-500522EF5165","F01F4895-6DEF-4C26-9CEC-A569AEDD22E6","DDD1C856-9C9F-4CB1-A795-E083B7214E82","51E21302-B2D2-49D0-82D9-D964A6B3C54F","BC9DA8C7-933D-4140-96D3-1E7ADEEC8D69","26FA6101-FD83-4A6D-BA08-839ADCA2E33A"],"owner":{"__isSmartRef__":true,"id":41332},"_ClipMode":"visible","_Rotation":0,"_Scale":0.9940149800149939,"isPressed":false,"layout":{"__isSmartRef__":true,"id":42330},"prevScroll":[0,0],"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(468.5,9.0)","distanceToDragEvent":"lively.pt(72.1,-12.5)"},"42311":{"submorphs":[],"scripts":[],"id":"AA1DE6CC-5386-44BA-BBD4-EEC82E52AEBC","shape":{"__isSmartRef__":true,"id":42312},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":97,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":42310},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":42313}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":42315},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[7252,"0A0A6CB1-BD92-4F39-A425-2EB3D2D4CBA2","CB475566-05CE-43E2-B04D-EE32BC4CB718","6BB077CE-92E6-47BE-BE88-9A48488562D1","9E359973-2FDB-417B-BB06-AB34D52BD310","58F098ED-A190-44F2-B73E-80802B2CF2F6","AEA84B35-B349-4307-92C6-8F229705DFC2","A677CADF-24FF-4177-9A3A-FE9AAE7D60FE","0F875AD9-E54C-4735-9BA9-7B89574233A1","840EBE92-3BC2-42EC-819E-3CD002576490","78C4969D-2C33-4B17-9027-89B411B9F496","C9A3D112-C2BC-43A3-A3CA-A68F41A0E4CF","78CF2F1A-6697-4D03-AB2B-CAF862B4EDD6","8B416918-CA4B-46D1-8A3C-40F8A754E44D","01510710-A85B-4054-B0ED-7F2F02434806","8ABD23FB-E90C-4EEB-BF53-DF3C6ACF2BD4","87607080-4A72-484D-A5BD-5F67D468505F","F0E39FE9-F71C-4587-B25A-C4D2C29FE579","BA2AB73A-3967-4F9E-8828-8A638E521B31","5ECC4D2F-4996-403F-AF14-BD1F4BB720F6","54B08934-6893-4B80-8625-B60ABCE9CBC6","4808CF23-17EA-43D8-AE10-DAB21C642FA8","0813DF8A-CC9E-435B-B5A1-DF68BF226F37","047C4EE2-26A1-4AA7-9CE9-E8FF9A9D863B","728334BD-34B0-44FA-A778-2696AA82FEFA"],"_MinTextWidth":97,"_MinTextHeight":null,"_WordBreak":"break-all","__serializedExpressions__":["_Position","padding","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)"},"42312":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(101.0,21.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(2,2,0,0)"},"42313":{"style":{"__isSmartRef__":true,"id":42314},"chunkOwner":{"__isSmartRef__":true,"id":42311},"storedString":"Tests","_id":"_1371","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"42314":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"42315":{"morph":{"__isSmartRef__":true,"id":42311},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"42316":{"_BorderWidth":1.1840000000000002,"_Fill":{"__isSmartRef__":true,"id":42317},"_BorderRadius":5.2,"_ClipMode":"visible","_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(101.0,21.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"42317":{"stops":[{"__isSmartRef__":true,"id":42318},{"__isSmartRef__":true,"id":42319},{"__isSmartRef__":true,"id":42320},{"__isSmartRef__":true,"id":42321}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"42318":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"42319":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"42320":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"42321":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"42322":{"stops":[{"__isSmartRef__":true,"id":42323},{"__isSmartRef__":true,"id":42324},{"__isSmartRef__":true,"id":42325},{"__isSmartRef__":true,"id":42326}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"42323":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"42324":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"42325":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"42326":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"42327":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"42328":{"sourceObj":{"__isSmartRef__":true,"id":42310},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":41332},"targetMethodName":"openPartTestRunner","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"42329":{"morph":{"__isSmartRef__":true,"id":42310},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"42330":{"moveHorizontal":true},"42331":{"submorphs":[{"__isSmartRef__":true,"id":42332},{"__isSmartRef__":true,"id":42339}],"scripts":[],"id":"5B64832A-15FF-4FD1-AFAC-21FB9C65F872","shape":{"__isSmartRef__":true,"id":42342},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":42348},"lighterFill":{"__isSmartRef__":true,"id":42353},"label":{"__isSmartRef__":true,"id":42332},"name":"MagnifierButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":42358},"attributeConnections":[{"__isSmartRef__":true,"id":42361}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":42362},"derivationIds":[2588,"22797D34-67DE-4A06-81F0-4DF0A87ADBBC","81CB4C12-BCF0-4097-8B6D-D9419046367A","0767A57D-9BB2-48C6-9654-753D2B9D00A6","42871246-6725-4E41-A2C1-5A5BCF041097","BCE6E775-B5DF-4D6B-9F06-CDC02C1B1D0F","797EC165-A639-42D9-A059-669F6BEB92A7","FA498EFD-E50E-4CE0-9FA8-9AE2E8AE9580","4B68C371-CB37-45B4-910A-611E5FFC23DD","94E374B9-7ED4-4E39-96F1-6FD4E7AC3428","34D63515-7CC7-43FB-B7BB-87AFCA377D63","7E0B172C-0AF5-4C6E-B184-25A8FAE4FAB8","12239D52-D3D3-4713-BC3E-F0B95C488CB7","72559D92-4616-45A9-A0F2-72BA4147C0FB","E86C7328-AF24-4881-84AF-B7C7CEFEAE14","22D731CF-38F0-41CC-B125-74D2842ED847","B58A1A30-782E-4675-A276-2C01D35BEC70","ACEABA6D-071C-46C2-A325-BE30189AA45F","686443AE-DCDC-4998-8A39-48BC57D64FDC","8D660766-7C93-404C-9D92-B12CBF59A3CE"],"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":41332},"_Rotation":0,"_Scale":0.9920279440699439,"highlightRectangle":{"__isSmartRef__":true,"id":42363},"isPressed":false,"prevScroll":[0,0],"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":42437},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(424.5,8.5)","distanceToDragEvent":"lively.pt(37.9,-7.9)"},"42332":{"submorphs":[],"scripts":[],"id":"73359D4B-3817-492B-9D6A-7433797D825C","shape":{"__isSmartRef__":true,"id":42333},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":24,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":42331},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":42334},{"__isSmartRef__":true,"id":42336}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":42338},"_HandStyle":"default","_PointerEvents":"none","derivationIds":[2589,"024C5ADE-C4CF-4E8E-BEC5-F93AD4839702","A2CC4D56-B9D8-4A48-B6FF-DDDD85ACDC2E","5AC5C4DE-00B0-43DB-B7F1-765674CE818B","750A11C6-766E-4B48-AE32-D71DE811EB4A","66A7B56E-A94E-44AE-8AED-C0C1B07554D4","CA8596D3-2D4F-453B-BE1B-DCEC8F85389B","4D7DC32F-79CB-4AF8-8B21-AB4F1809D4A8","439DE430-7651-470E-97D8-00E7F96B04DA","DAC920E6-217B-4515-AC09-2F9DCBA7375C","BD48C003-0502-451D-B6AA-7369FF3D1030","C3B8F4EA-3F44-47F4-B569-A0D5AB263BA0","BF7F0FA3-3F2A-4EEF-9687-BE2B0635DF13","3D7AEAC1-C9DD-4941-BA46-16F6783F5699","E04A78F9-3D6E-403F-BA8D-2583FCFFCE53","47E1F29B-6896-467D-8654-CA18929AE57A","509D86FF-5400-4374-BE79-90F0A7E3E90C","C7E53EE0-065A-4C59-8D13-311566722BB7","BA078BAC-7263-4B10-AFD3-3C4EA0DD8707","BCFE28D1-A115-453E-9116-EECC8FE1D50F"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":24,"_MinTextHeight":null,"_FontSize":10,"_WordBreak":"break-all","__serializedExpressions__":["_Position","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"42333":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(24.0,24.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"42334":{"style":{"__isSmartRef__":true,"id":42335},"chunkOwner":{"__isSmartRef__":true,"id":42332},"storedString":"","_id":"_1372","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"42335":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"42336":{"style":{"__isSmartRef__":true,"id":42337},"chunkOwner":{"__isSmartRef__":true,"id":42332},"storedString":"","_id":"_1373","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"42337":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"42338":{"morph":{"__isSmartRef__":true,"id":42332},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"42339":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":42340},"derivationIds":[null,"29E543E0-AE93-493A-A694-FC1C330D0544","F0366E4C-E97F-4C77-BEE4-340A0668ADD5","347F6028-5092-4F54-9A34-3EFF3FF0B815","BF7387E7-BCD7-4A5B-B9D2-C14ECF59EFCA","85BA370B-966E-41F7-8C2F-F3A926EC2AA2","1652172B-339A-43A1-9589-70E68B35A28E","705524F7-129B-4102-834E-2A1A45985BB5","5707DF70-CD77-4D53-96ED-5A0AEB227FB7","257E62CE-C668-4317-B5B7-8D394BDC3F6C","2DD4BEA5-E85A-4CD0-953E-9EB2E0735654","BB96B696-7BD4-44C4-9D60-B1551B89D6FA","FCAABC48-FBAF-4E12-8BC9-AC4ACB5A167B","EB81C4D7-5BD8-4DAC-BD70-8675E2338AAC","1DBAE3FF-B2F6-4348-8E06-81139C138D6E","49E7D450-EF74-4E94-B33B-B888D952F3BD","F0B267C4-54BA-4E6F-BFDD-4B047F4FF41A","36B8611D-B449-4F6E-8D0F-B5FD6406D45D","779DB518-01BD-4D32-AD65-BFED801E5D06"],"id":"A59EB22E-1B7D-4227-8FB2-68044BCC2FB2","eventHandler":{"__isSmartRef__":true,"id":42341},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":42331},"name":"leftpointing_magnifying_glass.png","isBeingDragged":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(-3.0,0.0)","distanceToDragEvent":"lively.pt(39.9,-9.0)"},"42340":{"_ImageURL":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAAAABAAAAAQBPJcTWAAAALnRFWHRUaXRsZQBMRUZULVBPSU5USU5HIE1BR05JRllJTkcgR0xBU1MgKFUrMUY1MEQpw88haQAAABV0RVh0QXV0aG9yAEFuZHJldyBNYXJjdXNl5zc3gwAAAC90RVh0U29mdHdhcmUAaW5mby5maWxlZm9ybWF0LmRhdGEuVW5pY29kZVBuZ1NlcnZsZXRoAX8wAAAAQ3RFWHREZXNjcmlwdGlvbgBodHRwOi8vd3d3LmZpbGVmb3JtYXQuaW5mby9pbmZvL3VuaWNvZGUvMWY1MGQvaW5kZXguaHRtk2hNQgAAADt0RVh0Q29weXJpZ2h0AGh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL2xpY2Vuc2VzL2J5LW5jLXNhLzIuMC9siJKDAAAIDklEQVR42u1daWxVRRQeCi0tIqCAQCTIUtEIGlk0ilqEkEbiQhSKGAyCooIIggsiQuMWZNGwVMUFNIhKZBMobZClgK1FwAU3wIpSREDcUFZFEM/JOzf3vPHet9ze1/eYe77k+zNzl5nz3ZlzZntPKYFAcHojDXimmKH6cQbwZuBM4HLgx8A9wBPAU8BjwJ3ADcDFwMnArsCaYjr/0BB4DwlwjAwfL38DzgX2AdYWk3pDJnAM8E/NuN8BpwEHAq8DXgpsCswANgN2APak/BeBu7T7sQX1A9YQE8fuDwYAf2BG/JrEaefxmSjaeOAO9syNwBwxd2Q0o/7fMhr6h8Fx+oBIX346cATwF/aON6Qbc0ZH4G4y0lHgOGAdD8/Be/KAs4AFwKsdrqkHnAA8Tu8rAzYWCWz0Bh5hraKTT11fL+AH1FXlA8/SrsEu61fmW9qLFEqNAv5LRsEw9twEvKMzcAvwJ3LoHG2AW+n9B4HdgixGHhNjiccuKlbUp9aC7yoGnqflraa8A8C2QRTjMvIVaITyKI61BjnkqiILWEjvPAwcxvLqAj+nvAqH7s1oNAfupcpjeNskhnvQOQ/xYfxQCziHRVl3sjxsNfspvYSuNR4Ywn5ClT5CA7lYkUPRU0YVy4CivkVlOE7TKxa6AP+ivKlBEORe9nUO8XD/QhWay6oqmlK3dYoirTYs70FK/wd4ocli1KVIByu7XXmb9BsOPEmj76riSfZxbAM2oPQMmqLB9GUmC/I0M8AtHp9xCd3/rM8fCHISy+vH0ruaOi3Coyqv6ETPKPSpXEOZ4X9XoSl+y89sovTNJgoyklW8rw8+aKFP5apFo3SrbMNcWsnFpgmylkU19R3yY4mc0mk0j88Z62PZ5jHDV7DQugE5dkx/3CQxzlb2qt6aCF1HtJH6BHoGju4v97F8+Sp8zeRGlldCaZtMEmQAq+zICL5hpUvrwfXy19gzZvhcvj6aILNZ3ij2ETQzRZA3WWU7RrgOfQsu05YCnyLxcFS9h91fTlMgfqKdJsg6lteBpQ8wRZASVqmmUa7txvwEJ/qe8SoxGxYymK+wpnMsNGHpxviRbVShkzEatAb5iEHUSrqzQVuiUMkMf5IFGWnM/71giiAHqEL7U7iMf2gtkk/B7/M51E4qMlklvzwNymgxl+VvobQPTRCkMavkDpaelkJlbOkgyDUsv0LZu19Oe/A++BBLvyIB0ZJX9HIQhHdZBymt1BQfso9V1Jorag28PUXKN8tBkHqUV4elLTJFkM9YpVqzllOcAmXDiG6vJsZhlt+Kpc80RZBiF2eJK4fZSS5bd4fWUcTyc1n6Y6YIMpVVii+LTgFOTHLZNjoIMpTlT2fpXUwRpIcKn021gHuwcDN0ss525Cnn3fIt2DXfK3vPljGbHtK1gdcFmkNdkYTK4gz0Tgcxytg1fI6rUBkGvubA54Ta0lTFK9VYFhS/xKV18PEHX3MfYpogfPUND9DwuamFlP5oNZXlZRcxlmsDWutsCl/aNQYZWhfBnTlOceNsLq459E1wyyhwEeNvFb7ZusClrEbhNlbJoyp8Y3UejehxPWS08v/MBrbIlcr92BvfwZit7KMKOC3f3FRBcBC2mRlBnz0dpOzN17gvqrdP7+2p7PkoJz7Hrq2pCfeqMhzXasbI1/KHa/m4Y93reRFcU1mrIh8IXaLCJzpnsLyfKRozHrNZpbFF9NHyx2pGw2tWAZ8H3gW8UjmvvWdSlIQb3raq6Kdzp6vwBbOhWn5/FRCggy9lFcdN1521ax5Q0Y9B41o7nkn8Rv1/gSkS0T/crb0vV4Uv465UAUNjLerCkfAN2jUXKef19apwnYP4AynK4tfNU6m1ZlMtaK/stQZrLXu0Q6g6OIpTjoVfAK/Xnp1GDp1fhy0th1rwHLqmEbXYHkEQJYcGitwouG2onoPx0Ne8q+yDmtGIs8lPUFCgH/Q5R4XPQlt8nfKzKB9/ouNHLT/ddFEw7t+uGQbPko90GY+gOHgcoRc5+YeBj1DY3JPyGrq8qy6JdMhBDAyz8azhZLq2JRuP4HE3a6f8KhNH7k4Dt9UORqoE3qGqfiAUo7L7lX1kjfMd4H0UHGTTFMpLzH8VUAS3iN2znsQ1GugvprCvkvMYdSFouBYxPu98FdoKusblmZXUoiz0J1FuYgPUfCrXAof7S4MgimXIRVH8wwHq5vBLna9Cs8ULyEgVWrCg8zAJ79TtjGDXjSMx5kd4Fk7XB+a3uq5Sob1QfoW86JzxR2zcjjyj3/mKTafUpCAi2nPLVcB+QA379YdoGuWEBxEwars1hujIOpZQQS1jWhzvKXeIDAOBRhT+YgQ2kcYK71NLwgOauAKJ50jwpFW8J2jHKHvLKwYBuENmVxyibAiqKIlCOkVY1g8HZHkQ5SOXeTaBR9RW9vT7agp34xVlo4jiL7KoG0TjriCR4hVlk0r8EYrAtZQiZa+14wx1qzhF2Syi+C+K5VOWko8RUVJIlPc8irIhKCP6ZItSqeJbh8kSU/qHDCbKMuZT4hFlrpgxcaIUUcuJR5TdYsLEiFLIQuLMOESZJOZLnCjLyMhrabqkZRRR1qsArDQmW5SlZOxPVWhJ2E2UNRJlVQ/wi19CRv9WhXbJoCh8zb+IujVBNYqymIyPP55ZxsQoVvK78kkBrp28rXVThSJGcoE7YZ5RoTMlc8SBpw7kj2IEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgSAZ+A+0ucC4BysctgAAAABJRU5ErkJggg==","_NodeClass":["image"],"_NodeId":"29E543E0-AE93-493A-A694-FC1C330D0544","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(29.0,29.0)","_Padding":"lively.rect(0,0,0,0)"},"42341":{"morph":{"__isSmartRef__":true,"id":42339},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"42342":{"_BorderWidth":1.1840000000000002,"_Fill":{"__isSmartRef__":true,"id":42343},"_BorderRadius":5.2,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(24.0,24.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"42343":{"stops":[{"__isSmartRef__":true,"id":42344},{"__isSmartRef__":true,"id":42345},{"__isSmartRef__":true,"id":42346},{"__isSmartRef__":true,"id":42347}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"42344":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"42345":{"offset":0.3,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"42346":{"offset":0.7,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"42347":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(204,204,204)"},"42348":{"stops":[{"__isSmartRef__":true,"id":42349},{"__isSmartRef__":true,"id":42350},{"__isSmartRef__":true,"id":42351},{"__isSmartRef__":true,"id":42352}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"42349":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"42350":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"42351":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"42352":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"42353":{"stops":[{"__isSmartRef__":true,"id":42354},{"__isSmartRef__":true,"id":42355},{"__isSmartRef__":true,"id":42356},{"__isSmartRef__":true,"id":42357}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"42354":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"42355":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"42356":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"42357":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"42358":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"ScriptableButton","comment":"Has a script that is called on button press","changes":[{"__isSmartRef__":true,"id":42359}],"revisionOnLoad":154251,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"42359":{"date":{"__isSmartRef__":true,"id":42360},"author":"robertkrahn","message":"no comment","id":"0366C0A2-0C8E-4AEB-AAC3-120434134545"},"42360":{"isSerializedDate":true,"string":"Sat Apr 21 2012 14:10:10 GMT+0200 (CEST)"},"42361":{"sourceObj":{"__isSmartRef__":true,"id":42331},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":42331},"targetMethodName":"onFire","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"42362":{"morph":{"__isSmartRef__":true,"id":42331},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"42363":{"submorphs":[],"scripts":[],"id":"364FF344-E489-461B-BC8C-ED45E4823ED4","shape":{"__isSmartRef__":true,"id":42364},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"HighlightRectangle","partsBinMetaInfo":{"__isSmartRef__":true,"id":42365},"eventHandler":{"__isSmartRef__":true,"id":42406},"attributeConnections":[{"__isSmartRef__":true,"id":42407},{"__isSmartRef__":true,"id":42408},{"__isSmartRef__":true,"id":42409}],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","FE91EA31-D8AE-461B-8A49-95DA5FBAE5B4","F38439A3-2F4E-4AC2-BF73-2633C00B1393","6748F5B5-2284-4748-A6EE-F1A261CBAD0B","6FECB598-D130-4242-BF1B-E18767608129","0B23F218-078F-4912-A262-31B957885F41","C56BA290-B836-4946-B4EF-DBB6FBA2368C","61176BAF-CFE6-4F2C-9F0A-971AAD6595A1","CB4127B2-0AA5-4B50-9978-F1FF39924A82","113050BB-CF0E-4193-91C6-9C25FC857EE8","EFF939E4-317B-4662-943F-77A6E6F65BD0","AA288E7F-3972-4F0D-87DD-61E4BD9C9C97","903E8C60-1158-42D5-85D2-DF134DA6CEC1","28FD6210-A549-4A11-9178-04E77FF556C0","B3312E29-D786-469F-865E-91FD69475A52","D947A1C1-DCBE-4485-A33D-DF549F6978E0","56CE0E60-45BE-43FF-9C6C-296D8AC326B6","CC61E3F8-8C8D-4F24-A591-023D3C88DEC8"],"partTests":{"__isSmartRef__":true,"id":42411},"_ClipMode":"visible","moved":true,"isBeingDragged":false,"prevScroll":[0,0],"#startLetters":"","eventsAreDisabled":false,"_HandStyle":"default","_PointerEvents":"auto","_Rotation":0,"_Scale":1.0060210561262526,"owner":null,"magnifierButton":{"__isSmartRef__":true,"id":42331},"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":42416},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(43.0,606.0)","distanceToDragEvent":"lively.pt(44.0,-14.0)"},"42364":{"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":0.2597,"_BorderStyle":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(27.0,28.0)","_BorderColor":"Color.rgb(204,0,0)","_Fill":"Color.rgb(58,0,255)","_Padding":"lively.rect(0,0,0,0)"},"42365":{"partsSpaceName":"PartsBin/Tools","comment":"A rectangle which highlights the object under the first hand of the world","migrationLevel":4,"partName":"HighlightRectangle","changes":[{"__isSmartRef__":true,"id":42366},{"__isSmartRef__":true,"id":42368},{"__isSmartRef__":true,"id":42370},{"__isSmartRef__":true,"id":42372},{"__isSmartRef__":true,"id":42374},{"__isSmartRef__":true,"id":42376},{"__isSmartRef__":true,"id":42378},{"__isSmartRef__":true,"id":42380},{"__isSmartRef__":true,"id":42382},{"__isSmartRef__":true,"id":42384},{"__isSmartRef__":true,"id":42386},{"__isSmartRef__":true,"id":42388},{"__isSmartRef__":true,"id":42390},{"__isSmartRef__":true,"id":42392},{"__isSmartRef__":true,"id":42394},{"__isSmartRef__":true,"id":42396},{"__isSmartRef__":true,"id":42398},{"__isSmartRef__":true,"id":42400},{"__isSmartRef__":true,"id":42402},{"__isSmartRef__":true,"id":42404}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"42366":{"date":{"__isSmartRef__":true,"id":42367},"author":"timfelgentreff","message":"no comment","id":"3DB7DB40-210A-4BED-91FD-9287005703EC"},"42367":{"isSerializedDate":true,"string":"Thu May 24 2012 17:04:54 GMT+0200 (CEST)"},"42368":{"date":{"__isSmartRef__":true,"id":42369},"author":"tessi","message":"no comment","id":"23D7AA12-66A9-4C3B-B494-131256C291AC"},"42369":{"isSerializedDate":true,"string":"Thu May 24 2012 16:57:13 GMT+0200 (CEST)"},"42370":{"date":{"__isSmartRef__":true,"id":42371},"author":"tessi","message":"no comment","id":"2C30B7CA-388F-4F51-B4CF-A2E50E381148"},"42371":{"isSerializedDate":true,"string":"Thu May 24 2012 16:23:11 GMT+0200 (CEST)"},"42372":{"date":{"__isSmartRef__":true,"id":42373},"author":"tessi","message":"diable events","id":"7C1F71A3-FDAC-470A-B9A9-E1F2C9FEF18E"},"42373":{"isSerializedDate":true,"string":"Thu May 24 2012 14:46:08 GMT+0200 (CEST)"},"42374":{"date":{"__isSmartRef__":true,"id":42375},"author":"tessi","message":"no comment","id":"01996A33-11BC-4C15-96D7-B7D219E2E961"},"42375":{"isSerializedDate":true,"string":"Thu May 24 2012 14:39:50 GMT+0200 (CEST)"},"42376":{"date":{"__isSmartRef__":true,"id":42377},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"42377":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (CEST)"},"42378":{"date":{"__isSmartRef__":true,"id":42379},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"42379":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (CEST)"},"42380":{"date":{"__isSmartRef__":true,"id":42381},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"42381":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"42382":{"date":{"__isSmartRef__":true,"id":42383},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"42383":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"42384":{"date":{"__isSmartRef__":true,"id":42385},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"42385":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"42386":{"date":{"__isSmartRef__":true,"id":42387},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"42387":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"42388":{"date":{"__isSmartRef__":true,"id":42389},"author":"tessi","message":"no comment","id":"4B982A01-25B3-455A-848D-89C2C3C471D7"},"42389":{"isSerializedDate":true,"string":"Thu May 24 2012 13:58:01 GMT+0200 (CEST)"},"42390":{"date":{"__isSmartRef__":true,"id":42391},"author":"tessi","message":"no comment","id":"2FD6CB7B-3BC7-4666-98B4-AACF1001954D"},"42391":{"isSerializedDate":true,"string":"Thu May 24 2012 14:07:32 GMT+0200 (CEST)"},"42392":{"date":{"__isSmartRef__":true,"id":42393},"author":"tessi","message":"no comment","id":"09CF5ECF-2C87-4B66-A164-39848628596F"},"42393":{"isSerializedDate":true,"string":"Thu May 24 2012 15:34:59 GMT+0200 (CEST)"},"42394":{"date":{"__isSmartRef__":true,"id":42395},"author":"tessi","message":"no comment","id":"252A3EB5-DB00-4CF9-BF38-2927DD1C5229"},"42395":{"isSerializedDate":true,"string":"Thu May 24 2012 16:34:29 GMT+0200 (CEST)"},"42396":{"date":{"__isSmartRef__":true,"id":42397},"author":"tessi","message":"no comment","id":"81534551-62C1-4FC9-96CB-A5AC6642CA1E"},"42397":{"isSerializedDate":true,"string":"Thu May 24 2012 16:45:49 GMT+0200 (CEST)"},"42398":{"date":{"__isSmartRef__":true,"id":42399},"author":"tessi","message":"no comment","id":"5125DE3A-D50E-4621-8490-F3A9D99C2C4C"},"42399":{"isSerializedDate":true,"string":"Thu May 24 2012 16:47:20 GMT+0200 (CEST)"},"42400":{"date":{"__isSmartRef__":true,"id":42401},"author":"tessi","message":"no comment","id":"C81A2FBF-CB0B-4A0B-9D63-F9AEDFCB5DA6"},"42401":{"isSerializedDate":true,"string":"Thu May 24 2012 16:51:06 GMT+0200 (CEST)"},"42402":{"date":{"__isSmartRef__":true,"id":42403},"author":"tessi","message":"no comment","id":"DC8EF5EC-7563-45B6-816D-20E2DC218525"},"42403":{"isSerializedDate":true,"string":"Thu May 24 2012 16:52:10 GMT+0200 (CEST)"},"42404":{"date":{"__isSmartRef__":true,"id":42405},"author":"timfelgentreff","message":"no comment","id":"E7515DFB-DE7D-4E1F-A2C3-85166DCE4942"},"42405":{"isSerializedDate":true,"string":"Thu May 24 2012 16:59:39 GMT+0200 (CEST)"},"42406":{"morph":{"__isSmartRef__":true,"id":42363},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"42407":{"sourceObj":{"__isSmartRef__":true,"id":42363},"sourceAttrName":"onMouseMove","targetObj":{"__isSmartRef__":true,"id":42363},"targetMethodName":"updateOnMove","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"42408":{"sourceObj":{"__isSmartRef__":true,"id":42363},"sourceAttrName":"onMouseUp","targetObj":{"__isSmartRef__":true,"id":42331},"targetMethodName":"removeHighlighting","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"42409":{"sourceObj":{"__isSmartRef__":true,"id":42363},"sourceAttrName":"onMouseUp","targetObj":{"__isSmartRef__":true,"id":41332},"targetMethodName":"setTarget","converterString":"function () {\n return this.sourceObj.morphUnderCursor();\n }","updaterString":null,"varMapping":{"__isSmartRef__":true,"id":42410},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"42410":{"source":{"__isSmartRef__":true,"id":42363},"target":{"__isSmartRef__":true,"id":41332}},"42411":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":42412}},"42412":{"test01IsMorph":{"__isSmartRef__":true,"id":42413}},"42413":{"varMapping":{"__isSmartRef__":true,"id":42414},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":42415},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42414":{"this":{"__isSmartRef__":true,"id":42411}},"42415":{},"42416":{"update":{"__isSmartRef__":true,"id":42417},"updateOnMove":{"__isSmartRef__":true,"id":42421},"bringToFront":{"__isSmartRef__":true,"id":42425},"morphUnderCursor":{"__isSmartRef__":true,"id":42433}},"42417":{"varMapping":{"__isSmartRef__":true,"id":42418},"source":"function update(morphUnderCursor) {\n if (morphUnderCursor === this.magnifierButton ||\n this.magnifierButton.submorphs.include(morphUnderCursor)) {\n morphToHighlight = this.magnifierButton.currentTarget();\n } else {\n morphToHighlight = morphUnderCursor;\n }\n\n if (morphToHighlight && morphToHighlight.world()) {\n this.setPosition(morphToHighlight.getPositionInWorld());\n this.setExtent(morphToHighlight.getExtent());\n }\n}","funcProperties":{"__isSmartRef__":true,"id":42419},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42418":{"this":{"__isSmartRef__":true,"id":42363}},"42419":{"timestamp":{"__isSmartRef__":true,"id":42420},"user":"lauritz","tags":[]},"42420":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:29:58 GMT+0200 (CEST)"},"42421":{"varMapping":{"__isSmartRef__":true,"id":42422},"source":"function updateOnMove() {\n this.update(this.morphUnderCursor());\n this.bringToFront();\n}","funcProperties":{"__isSmartRef__":true,"id":42423},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42422":{"this":{"__isSmartRef__":true,"id":42363}},"42423":{"timestamp":{"__isSmartRef__":true,"id":42424},"user":"lauritz","tags":[]},"42424":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:18:33 GMT+0200 (CEST)"},"42425":{"varMapping":{"__isSmartRef__":true,"id":42426},"source":"function bringToFront() {\n this.renderContext().morphNode.style.zIndex= 1000;\n}","funcProperties":{"__isSmartRef__":true,"id":42431},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42426":{"this":{"__isSmartRef__":true,"id":42363},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":42427}},"42427":{"$super":{"__isSmartRef__":true,"id":42428}},"42428":{"varMapping":{"__isSmartRef__":true,"id":42429},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":42430},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42429":{"obj":{"__isSmartRef__":true,"id":42363},"name":"bringToFront"},"42430":{},"42431":{"timestamp":{"__isSmartRef__":true,"id":42432},"user":"lauritz","tags":[]},"42432":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:12:09 GMT+0200 (CEST)"},"42433":{"varMapping":{"__isSmartRef__":true,"id":42434},"source":"function morphUnderCursor() {\n var that = this,\n world = lively.morphic.World.current(); \n \n return world.morphsContainingPoint(world.firstHand().getPosition()).detect(\n function(ea) {\n return !ea.isPlaceholder &&\n !ea.isHalo &&\n (!ea.owner || !ea.owner.isHalo) &&\n !(ea === that);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":42435},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42434":{"this":{"__isSmartRef__":true,"id":42363}},"42435":{"timestamp":{"__isSmartRef__":true,"id":42436},"user":"lauritz","tags":[]},"42436":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:18:36 GMT+0200 (CEST)"},"42437":{"onFire":{"__isSmartRef__":true,"id":42438},"removeHighlighting":{"__isSmartRef__":true,"id":42442},"onMouseMove":{"__isSmartRef__":true,"id":42446},"onMouseOut":{"__isSmartRef__":true,"id":42454},"reset":{"__isSmartRef__":true,"id":42462},"isTracking":{"__isSmartRef__":true,"id":42466},"isHighlighting":{"__isSmartRef__":true,"id":42470},"currentTarget":{"__isSmartRef__":true,"id":42474}},"42438":{"varMapping":{"__isSmartRef__":true,"id":42439},"source":"function onFire() {\n var hand = lively.morphic.World.current().firstHand(),\n highlight = this.highlightRectangle,\n that = this;\n\n if (this.isTracking()) {\n this.removeHighlighting();\n } else {\n this.world().addMorph(highlight);\n hand.highlightConnection = connect(hand, \"scrollFocusMorph\", highlight, \"update\");\n highlight.bringToFront();\n if (!this.currentTarget() || !this.currentTarget().world()) {\n highlight.setExtent(pt(0,0));\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":42440},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42439":{"this":{"__isSmartRef__":true,"id":42331}},"42440":{"timestamp":{"__isSmartRef__":true,"id":42441},"user":"lauritz","tags":[]},"42441":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:40:51 GMT+0200 (CEST)"},"42442":{"varMapping":{"__isSmartRef__":true,"id":42443},"source":"function removeHighlighting() {\n var hand = this.world().firstHand();\n \n if (this.highlightRectangle) {\n this.highlightRectangle.remove();\n }\n \n hand.attributeConnections.removeAt(\n hand.attributeConnections.indexOf(hand.highlightConnection));\n hand.highlightConnection = null;\n}","funcProperties":{"__isSmartRef__":true,"id":42444},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42443":{"this":{"__isSmartRef__":true,"id":42331}},"42444":{"timestamp":{"__isSmartRef__":true,"id":42445},"user":"lauritz","tags":[]},"42445":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:20:30 GMT+0200 (CEST)"},"42446":{"varMapping":{"__isSmartRef__":true,"id":42447},"source":"function onMouseMove(evt) {\n var target = this.currentTarget();\n if (target && target.world() && !this.isHighlighting()) {\n this.highlightRectangle.update(target);\n this.world().addMorph(this.highlightRectangle);\n this.highlightRectangle.bringToFront();\n this.targetHighlight = this.highlightRectangle;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":42452},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42447":{"this":{"__isSmartRef__":true,"id":42331},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":42448}},"42448":{"$super":{"__isSmartRef__":true,"id":42449}},"42449":{"varMapping":{"__isSmartRef__":true,"id":42450},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":42451},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42450":{"obj":{"__isSmartRef__":true,"id":42331},"name":"onMouseMove"},"42451":{},"42452":{"timestamp":{"__isSmartRef__":true,"id":42453},"user":"lauritz","tags":[]},"42453":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:25:52 GMT+0200 (CEST)"},"42454":{"varMapping":{"__isSmartRef__":true,"id":42455},"source":"function onMouseOut() {\n if (this.isHighlighting()) {\n if (!this.isTracking()) {\n this.targetHighlight.remove();\n }\n delete this.targetHighlight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":42460},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42455":{"this":{"__isSmartRef__":true,"id":42331},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":42456}},"42456":{"$super":{"__isSmartRef__":true,"id":42457}},"42457":{"varMapping":{"__isSmartRef__":true,"id":42458},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":42459},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42458":{"obj":{"__isSmartRef__":true,"id":42331},"name":"onMouseOut"},"42459":{},"42460":{"timestamp":{"__isSmartRef__":true,"id":42461},"user":"lauritz","tags":[]},"42461":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:21:57 GMT+0200 (CEST)"},"42462":{"varMapping":{"__isSmartRef__":true,"id":42463},"source":"function reset() {\n this.highlightRectangle.attributeConnections = [];\n \n connect(rect, \"onMouseMove\", this.highlightRectangle, \"updateOnMove\")\n connect(rect, \"onMouseUp\", this, \"removeHighlighting\")\n connect(rect, \"onMouseUp\", this.owner, \"setTarget\",\n {converter: function () {\n return this.sourceObj.morphUnderCursor();\n }\n })\n}","funcProperties":{"__isSmartRef__":true,"id":42464},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42463":{"this":{"__isSmartRef__":true,"id":42331}},"42464":{"timestamp":{"__isSmartRef__":true,"id":42465},"user":"lauritz","tags":[]},"42465":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:20:55 GMT+0200 (CEST)"},"42466":{"varMapping":{"__isSmartRef__":true,"id":42467},"source":"function isTracking() {\n return !!this.world().firstHand().highlightConnection;\n}","funcProperties":{"__isSmartRef__":true,"id":42468},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42467":{"this":{"__isSmartRef__":true,"id":42331}},"42468":{"timestamp":{"__isSmartRef__":true,"id":42469},"user":"lauritz","tags":[]},"42469":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:11:25 GMT+0200 (CEST)"},"42470":{"varMapping":{"__isSmartRef__":true,"id":42471},"source":"function isHighlighting() {\n return !!this.targetHighlight;\n}","funcProperties":{"__isSmartRef__":true,"id":42472},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42471":{"this":{"__isSmartRef__":true,"id":42331}},"42472":{"timestamp":{"__isSmartRef__":true,"id":42473},"user":"lauritz","tags":[]},"42473":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:11:22 GMT+0200 (CEST)"},"42474":{"varMapping":{"__isSmartRef__":true,"id":42475},"source":"function currentTarget() {\n return this.owner.target;\n}","funcProperties":{"__isSmartRef__":true,"id":42476},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42475":{"this":{"__isSmartRef__":true,"id":42331}},"42476":{"timestamp":{"__isSmartRef__":true,"id":42477},"user":"lauritz","tags":[]},"42477":{"isSerializedDate":true,"string":"Wed Jun 06 2012 18:26:02 GMT+0200 (CEST)"},"42478":{"target":{"__isSmartRef__":true,"id":41332},"selector":"update","args":[],"stopped":false,"tickTime":500,"suspended":false,"__LivelyClassName__":"lively.morphic.TargetScript","__SourceModuleName__":"Global.lively.morphic.Core"},"42479":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(808.0,431.8)","_BorderColor":"Color.rgb(95,94,95)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"42480":{"partsSpaceName":"PartsBin/Basic","comment":"Edit scripts and connections of a specific morph.","migrationLevel":4,"partName":"ObjectEditorPane","changes":[{"__isSmartRef__":true,"id":42481}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"42481":{"date":{"__isSmartRef__":true,"id":42482},"author":"lauritz","message":"Adapted the update behavior on ticks. Reduces the impact of HTML's autoscroll to selected list items."},"42482":{"isSerializedDate":true,"string":"Fri Oct 21 2011 00:39:30 GMT+0200 (CEST)"},"42483":{"morph":{"__isSmartRef__":true,"id":41332},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"42484":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true},"42485":{},"42486":{"displayInitialScript":{"__isSmartRef__":true,"id":42487},"displayJavaScriptSource":{"__isSmartRef__":true,"id":42491},"displaySourceForConnection":{"__isSmartRef__":true,"id":42495},"displaySourceForScript":{"__isSmartRef__":true,"id":42499},"generateSourceForConnection":{"__isSmartRef__":true,"id":42503},"generateSourceForScript":{"__isSmartRef__":true,"id":42507},"generateTargetCode":{"__isSmartRef__":true,"id":42511},"newConnection":{"__isSmartRef__":true,"id":42515},"newScript":{"__isSmartRef__":true,"id":42519},"reset":{"__isSmartRef__":true,"id":42523},"selectChangedContent":{"__isSmartRef__":true,"id":42527},"setTarget":{"__isSmartRef__":true,"id":42531},"sortedConnectionNamesOfObj":{"__isSmartRef__":true,"id":42535},"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":42539},"updateLists":{"__isSmartRef__":true,"id":42543},"onShutdown":{"__isSmartRef__":true,"id":42547},"confirmUnsavedChanges":{"__isSmartRef__":true,"id":42551},"update":{"__isSmartRef__":true,"id":42555},"ensureAnnotationLayer":{"__isSmartRef__":true,"id":42559},"copyToPartsBinWithUserRequest":{"__isSmartRef__":true,"id":42563},"printTags":{"__isSmartRef__":true,"id":42571},"setTag":{"__isSmartRef__":true,"id":42575},"runScript":{"__isSmartRef__":true,"id":42579},"openPartTestRunner":{"__isSmartRef__":true,"id":42583},"hasUnsavedChanges":{"__isSmartRef__":true,"id":42587}},"42487":{"varMapping":{"__isSmartRef__":true,"id":42488},"source":"function displayInitialScript() {\n if (this.scriptList.getList().size() > 1) {\n this.scriptList.preselectItem();\n } else if (this.connectionList.getList().size() > 1) {\n this.connectionList.preselectItem();\n } else {\n this.scriptList.selectAt(0);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":42489},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42488":{"this":{"__isSmartRef__":true,"id":41332}},"42489":{"timestamp":{"__isSmartRef__":true,"id":42490},"user":"lauritz","tags":[]},"42490":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:13:43 GMT+0100 (CET)"},"42491":{"varMapping":{"__isSmartRef__":true,"id":42492},"source":"function displayJavaScriptSource(jsCode) {\n if (this.scriptPane.hasChanged()) {\n var that = this;\n var callback = function(confirmed) {\n if (confirmed) that.scriptPane.display(jsCode)\n };\n this.confirmUnsavedChanges(callback);\n } else {\n this.scriptPane.display(jsCode);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":42493},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42492":{"this":{"__isSmartRef__":true,"id":41332}},"42493":{"timestamp":{"__isSmartRef__":true,"id":42494},"user":"lauritz","tags":[]},"42494":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"42495":{"varMapping":{"__isSmartRef__":true,"id":42496},"source":"function displaySourceForConnection(connection) {\n var code = \"\", that = this;\n if (connection === undefined) return;\n if (connection === null) {\n this.sortedConnectionNamesOfObj(this.target).forEach(function(each) {\n code = code.concat(that.generateSourceForConnection(each[1])).concat(\"\\n\\n\");\n });\n code = code.substring(0, code.length - \"\\n\\n\".length - 1);\n } else {\n code = this.generateSourceForConnection(connection);\n }\n this.displayJavaScriptSource(code);\n}","funcProperties":{"__isSmartRef__":true,"id":42497},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42496":{"this":{"__isSmartRef__":true,"id":41332}},"42497":{"timestamp":{"__isSmartRef__":true,"id":42498},"user":"conradcalmez","tags":[]},"42498":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:59:30 GMT+0100 (CET)"},"42499":{"varMapping":{"__isSmartRef__":true,"id":42500},"source":"function displaySourceForScript(scriptName) {\n var code = \"\",\n that = this;\n if (scriptName === null) {\n this.sortedScriptNamesOfObj(this.target).forEach(function(each) {\n code = code.concat(that.generateSourceForScript(each)).concat(\"\\n\\n\\n\");\n });\n code = code.substring(0, code.length - \"\\n\\n\\n\".length - 1);\n } else {\n code = this.generateSourceForScript(scriptName);\n }\n if (code) this.displayJavaScriptSource(code);\n}","funcProperties":{"__isSmartRef__":true,"id":42501},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42500":{"this":{"__isSmartRef__":true,"id":41332}},"42501":{"timestamp":{"__isSmartRef__":true,"id":42502},"user":"cschuster","tags":[]},"42502":{"isSerializedDate":true,"string":"Thu Aug 30 2012 08:14:26 GMT+0200 (CEST)"},"42503":{"varMapping":{"__isSmartRef__":true,"id":42504},"source":"function generateSourceForConnection(connection) {\n var c = connection, targetObject = this.target;\n\tif (!c.getTargetObj() || !c.getTargetObj().name || \n\t\t!c.getSourceObj() || !c.getSourceObj().name) return String(c);\n\n\tvar optConfig = []\n\tif (c.converterString)\n\t\toptConfig.push(\"converter: \\n\\t\" + c.converterString)\n\tif (c.updaterString)\n\t\toptConfig.push(\"updater: \\n\\t\" + c.updaterString)\n\treturn Strings.format('connect(%s, \"%s\", %s, \"%s\", {%s});', \n\t\t\tthis.generateTargetCode(targetObject, c.getSourceObj()),\n\t\t\tc.getSourceAttrName(),\n\t\t\tthis.generateTargetCode(targetObject, c.getTargetObj()),\n\t\t\tc.getTargetMethodName(),\n\t\t\toptConfig.join(','));\n\n}","funcProperties":{"__isSmartRef__":true,"id":42505},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42504":{"this":{"__isSmartRef__":true,"id":41332}},"42505":{"timestamp":{"__isSmartRef__":true,"id":42506},"user":"lauritz","tags":[]},"42506":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"42507":{"varMapping":{"__isSmartRef__":true,"id":42508},"source":"function generateSourceForScript(scriptName) {\n var script = this.target[scriptName],\n annotation = '',\n scriptSource = '',\n tagScript = '';\n\n if (!script) return;\n\n if (script.timestamp && script.user) \n annotation = Strings.format('// changed at %s by %s \\n', script.timestamp, script.user);\n scriptSource = Strings.format('this.addScript(%s)', script.getOriginal());\n tagScript = Strings.format('.tag(%s);', this.printTags(script));\n\n return annotation + scriptSource + tagScript;\n}","funcProperties":{"__isSmartRef__":true,"id":42509},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42508":{"this":{"__isSmartRef__":true,"id":41332}},"42509":{"timestamp":{"__isSmartRef__":true,"id":42510},"user":"cschuster","tags":[]},"42510":{"isSerializedDate":true,"string":"Thu Aug 30 2012 08:14:45 GMT+0200 (CEST)"},"42511":{"varMapping":{"__isSmartRef__":true,"id":42512},"source":"function generateTargetCode(baseObject, targetObject) {\n\tvar name = targetObject.name;\n\tif (baseObject === targetObject) \n\t\treturn \"this\";\n\telse if (baseObject[name] === targetObject) \n\t\treturn \"this.\" + name;\n\telse if (baseObject.testObject === targetObject) \n\t\treturn \"this.testObject\";\n\telse if (baseObject.get(name) === targetObject) \n\t\treturn 'this.get(\"' + name + '\")';\n\telse if (targetObject instanceof Morph) \n\t\treturn '$morph(\"' + name + '\")';\n\telse \n\t\treturn \"????\";\n}","funcProperties":{"__isSmartRef__":true,"id":42513},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42512":{"this":{"__isSmartRef__":true,"id":41332}},"42513":{"timestamp":{"__isSmartRef__":true,"id":42514},"user":"lauritz","tags":[]},"42514":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"42515":{"varMapping":{"__isSmartRef__":true,"id":42516},"source":"function newConnection() {\n if (this.target) {\n var code = \"connect(SOURCE, SOURCE_PROPERTY, TARGET, TARGET_PROPERTY);\";\n this.displayJavaScriptSource(code);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":42517},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42516":{"this":{"__isSmartRef__":true,"id":41332}},"42517":{"timestamp":{"__isSmartRef__":true,"id":42518},"user":"lauritz","tags":[]},"42518":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"42519":{"varMapping":{"__isSmartRef__":true,"id":42520},"source":"function newScript() {\n if (this.target) {\n var code = \"this.addScript(function SCRIPTNAME() {\\n \\n}).tag([]);\";\n this.displayJavaScriptSource(code);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":42521},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42520":{"this":{"__isSmartRef__":true,"id":41332}},"42521":{"timestamp":{"__isSmartRef__":true,"id":42522},"user":"lauritz","tags":[]},"42522":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:24:25 GMT+0100 (CET)"},"42523":{"varMapping":{"__isSmartRef__":true,"id":42524},"source":"function reset() {\n this.scriptPane = this.get('ObjectEditorScriptPane')\n this.scriptList = this.get('ObjectEditorScriptList')\n this.connectionList = this.get('ObjectEditorConnectionList')\n this.morphSelector = this.get('ObjectEditorMorphSelector')\n \n this.target = null;\n this.currentTag = null;\n \n this.scriptPane.reset();\n this.scriptList.setList();\n this.scriptList.selection = null;\n this.connectionList.setList();\n this.connectionList.selection = null;\n this.morphSelector.reset();\n this.tagChooser.reset();\n \n this.stopStepping();\n}","funcProperties":{"__isSmartRef__":true,"id":42525},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42524":{"this":{"__isSmartRef__":true,"id":41332}},"42525":{"timestamp":{"__isSmartRef__":true,"id":42526},"user":"lauritz","tags":[]},"42526":{"isSerializedDate":true,"string":"Fri Aug 03 2012 11:45:36 GMT+0200 (CEST)"},"42527":{"varMapping":{"__isSmartRef__":true,"id":42528},"source":"function selectChangedContent(source) {\n\n var addScriptRegex = /this\\.addScript\\s*\\(\\s*function\\s*([^\\(]*)/g;\n var addScriptMatches = [];\n var addScriptMatch = addScriptRegex.exec(source);\n while (addScriptMatch) {\n addScriptMatches.push(addScriptMatch[1]);\n addScriptMatch = addScriptRegex.exec(source);\n }\n \n // if scripts were added, select either a specific one or all\n if (addScriptMatches.length > 0) { \n if (addScriptMatches.length === 1) {\n return this.scriptList.selectAddedScript(addScriptMatches[0]);\n }\n return this.scriptList.selectAt(0);\n }\n\n var connectionRegex = \n /connect\\(\\s*([^,]*)\\s*,\\s*\"([^,]*)\"\\s*,\\s*([^,]*)\\s*,\\s*\"([^,]*)\"/g;\n var connectionMatches = [];\n var connectionMatch = connectionRegex.exec(source);\n while (connectionMatch) {\n connectionMatches.push(connectionMatch);\n connectionMatch = connectionRegex.exec(source);\n }\n\n // if connections were made, select either a specific one or all\n if (connectionMatches.length > 0) {\n if (connectionMatches.length === 1) {\n var match = connectionMatches[0];\n for (var i=0; i -1) {\n var c = this.connectionList.selection[1];\n disconnect(c.sourceObj, c.sourceAttrName, c.targetObj, c.targetMethodName);\n this.updateLists();\n this.displayInitialScript();\n } \n}","funcProperties":{"__isSmartRef__":true,"id":43586},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"43585":{"this":{"__isSmartRef__":true,"id":43068}},"43586":{},"43587":{"varMapping":{"__isSmartRef__":true,"id":43588},"source":"function updateLists() {\n this.scriptList.setList(this.sortedScriptNamesOfObj(this.target));\n var scriptListItems = this.scriptList.getList();\n scriptListItems.unshift(\"-- ALL --\");\n this.scriptList.setList(scriptListItems);\n\n this.connectionList.setList(this.sortedConnectionNamesOfObj(this.target));\n var connectionListItems = this.connectionList.getList();\n connectionListItems.unshift(\"-- ALL --\");\n this.connectionList.setList(connectionListItems);\n}","funcProperties":{"__isSmartRef__":true,"id":43589},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"43588":{"this":{"__isSmartRef__":true,"id":43068}},"43589":{},"43590":{"varMapping":{"__isSmartRef__":true,"id":43591},"source":"function displayInitialScript() {\n if (this.scriptList.getList().size() > 1) {\n this.scriptList.selectAt(0);\n } else if (this.connectionList.getList().size() > 1) {\n this.connectionList.selectAt(0);\n } else {\n this.scriptList.selectAt(0);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":43592},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"43591":{"this":{"__isSmartRef__":true,"id":43068}},"43592":{},"43593":{"varMapping":{"__isSmartRef__":true,"id":43594},"source":"function reset() {\n this.target = null;\n this.scriptPane.doitContext = null;\n this.scriptList.setList();\n this.connectionList.setList();\n this.scriptPane.setTextString(\"\");\n this.morphSelector.reset();\n}","funcProperties":{"__isSmartRef__":true,"id":43595},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"43594":{"this":{"__isSmartRef__":true,"id":43068}},"43595":{},"43596":{"varMapping":{"__isSmartRef__":true,"id":43597},"source":"function selectChangedContent(source) {\n\n var addScriptRegex = /this\\.addScript\\s*\\(\\s*function\\s*([^\\(]*)/g;\n var addScriptMatches = [];\n var addScriptMatch = addScriptRegex.exec(source);\n while (addScriptMatch) {\n addScriptMatches.push(addScriptMatch[1]);\n addScriptMatch = addScriptRegex.exec(source);\n }\n \n // if scripts were added, select either a specific one or all\n if (addScriptMatches.length > 0) { \n if (addScriptMatches.length === 1) {\n var index = this.scriptList.getList().indexOf(addScriptMatches[0]);\n if (index > -1) { \n return this.scriptList.selectAt(index);\n }\n }\n return this.scriptList.selectAt(0);\n }\n\n var connectionRegex = \n /connect\\(\\s*([^,]*)\\s*,\\s*\"([^,]*)\"\\s*,\\s*([^,]*)\\s*,\\s*\"([^,]*)\"/g;\n var connectionMatches = [];\n var connectionMatch = connectionRegex.exec(source);\n while (connectionMatch) {\n connectionMatches.push(connectionMatch);\n connectionMatch = connectionRegex.exec(source);\n }\n\n // if connections were made, select either a specific one or all\n if (connectionMatches.length > 0) {\n if (connectionMatches.length === 1) {\n var match = connectionMatches[0];\n for (var i=0; i -1) {\n var c = selection[1];\n disconnect(c.sourceObj, c.sourceAttrName, c.targetObj, c.targetMethodName);\n editor.updateLists();\n editor.displayInitialScript();\n } \n }\n\n var message = 'Disconnect \"' + selection[0] +'\" connection?';\n var callback = disconnectConnection;\n\n var dialog = new lively.morphic.ConfirmDialog(message, callback);\n\n return this.world().openDialog(dialog);\n}","funcProperties":{"__isSmartRef__":true,"id":43694},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"43693":{"this":{"__isSmartRef__":true,"id":43669}},"43694":{"timestamp":{"__isSmartRef__":true,"id":43695},"user":"lauritz","categories":[]},"43695":{"isSerializedDate":true,"string":"Fri Nov 11 2011 01:46:54 GMT+0100 (CET)"},"43696":{"submorphs":[{"__isSmartRef__":true,"id":43697}],"scripts":[],"id":"AC89BE11-C47C-4DC7-A39A-E1997C2BDA28","shape":{"__isSmartRef__":true,"id":43702},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":43708},"lighterFill":{"__isSmartRef__":true,"id":43713},"label":{"__isSmartRef__":true,"id":43697},"attributeConnections":[{"__isSmartRef__":true,"id":43718}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"name":"ObjectEditorRemoveScriptButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":43720},"owner":{"__isSmartRef__":true,"id":43061},"eventHandler":{"__isSmartRef__":true,"id":43721},"isCopyMorphRef":true,"morphRefId":24,"draggingEnabled":false,"objectEditorPane":{"__isSmartRef__":true,"id":43061},"derivationIds":[217,"FDC10087-12CF-4570-9211-8309CB6A9AA3","E18FC530-4B1F-4F08-8DA6-3866A3519E56","04A2AAC3-6A9E-40BB-9408-EBB2567EE63B","8C1A42CE-840C-4AAE-BD79-C93A445B9EBF","61FC11FA-B87E-4EFE-BD15-564D3178B68B","ED34F9B5-9E00-41B3-8313-D9C3D6B3B231","A7481F4B-D444-4B4F-BDA2-4F9F03AEC24D","7DDF7175-34FC-4521-A7C3-580A8BE63351","DEA39C05-FAD7-4882-AB3D-0EE12C3408F9","99186A50-1411-4B6F-B1CB-FF0742C20D7D","10F3E467-6BB8-4D07-BD17-8C50593FD6B8","7260818C-6472-4288-8BDD-1E7798A543F3","DEBB5BDB-018D-4BA1-9FB9-73DC84C51D89","D75BCAED-3029-46EB-B944-4A102BB1BC0F","9A977DA2-B325-4DFA-9683-3DC9ECEFAAC0","48A5078F-B4A5-4F4E-884D-84CCDFFBE6F0","33905494-AA01-4311-8398-1F6C3D4F1BAC","5D7201A7-1374-49AD-851F-E3167EFED99E","9B69B6C6-71F2-402E-89D1-E97FC2D3AE13","DA1B3A74-F4A6-427B-8FBD-3D2E9D8CD866","DBFC4A4F-8601-4C32-9460-53902C3B0F37","ED51CA7C-CE32-4CF5-9398-0BA9B791FF5E","4F7A7C1A-3788-478C-AFF5-BA62C7FCB01D","FCEFF15E-E5B8-4C7E-A139-302649441119","3674B8DC-F4E5-4A5C-ACEC-96D743BB6050","33E0336F-FD6A-4AAB-AECB-B7D6C7C80631","761015EE-47CF-40F6-A403-8A959B2DB0A6","361B531D-7A1C-441A-BE8B-0B503543FF6C","E283DDFD-1D8F-4E3D-A0BC-40C30221FFDC"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"isPressed":false,"prevScroll":[0,0],"__serializedExpressions__":["_Position","padding","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":43722},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(160.0,40.0)","padding":"lively.rect(5,0,0,0)","distanceToDragEvent":"lively.pt(33.4,-21.3)"},"43697":{"submorphs":[],"scripts":[],"id":"FEBFE5FA-34CE-4BA5-9B3D-7FC9DC9E9DEF","shape":{"__isSmartRef__":true,"id":43698},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":25,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"owner":{"__isSmartRef__":true,"id":43696},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":43699}],"prevScroll":[0,0],"_FontFamily":"Helvetica, Sans-Serif","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_Align":"center","eventHandler":{"__isSmartRef__":true,"id":43701},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":25,"_MinTextHeight":null,"draggingEnabled":false,"derivationIds":[218,"852A7BD9-52EE-4708-A2D5-1BDECF33C958","7B4F173E-9726-472A-9B30-530D4AA92AD9","CBA217F6-2832-4213-9ABE-47753C1A4180","E6B97D1D-95D5-4644-9359-1D08D42A51F4","4391A57E-70C2-4628-9828-DD668CCE546E","F0C6C298-3B8B-42B2-B5E9-E5B82F607B01","DF0CAF75-4247-4797-B1A0-AD7444391E2A","B4C4F09B-F663-47A1-B85F-461D5452F5F8","FD966AB1-4685-4151-9A38-B1B21B0237EF","CA91FC2C-D7CC-4123-AFD2-108F8F0C2E97","88F1581A-7AEF-4646-B7F9-3890CDDB8494","DC577877-7F00-4238-9246-08C2A10C0CC9","818C9467-71A2-44D6-B01F-1523A0CD5476","C0CF3DDB-AA12-49E0-B12A-6B620552BB47","853E19A1-E97D-463D-A24F-0148671EB696","0203CA4C-E523-4F7D-824B-F09BA3914BDD","18B98A59-6C8E-4386-B3EF-A17259C51C0F","24D84E0A-FA16-47DE-934D-E60729EEB227","7035F1EB-4B8C-4F20-B3AC-966403F55C0A","69831817-0662-4848-8481-44558987D21D","BA13E4C6-DF2A-4059-9174-7725FA3FE514","3E989A29-2A8F-4AFE-B312-A0852B746605","7B675033-945D-4AE1-B85F-DBD35C7B02AA","E0D76A08-70F9-4710-907E-B2D83D60D29A","495F5D43-B450-45B7-B238-FC12AA8F6488","B551041D-4E6E-44F3-8405-1DCE5344BCCD","0A287650-EC32-45AA-8504-0513B196727F","717B0EFA-1422-4224-9A53-5A494F6191A4","C86C167E-8A7D-43BE-AFED-AAEDA70B95EE"],"_Scale":1,"_WordBreak":"break-all","__serializedExpressions__":["_Position","textColor","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,0,0,0)","_Padding":"lively.rect(0,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"43698":{"borderWidth":0,"fill":null,"_ClipMode":"hidden","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,20.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"43699":{"style":{"__isSmartRef__":true,"id":43700},"chunkOwner":{"__isSmartRef__":true,"id":43697},"storedString":"-","_id":"_1363","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"43700":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"43701":{"morph":{"__isSmartRef__":true,"id":43697},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"43702":{"_Fill":{"__isSmartRef__":true,"id":43703},"_BorderWidth":1,"_BorderRadius":5,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,20.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"43703":{"stops":[{"__isSmartRef__":true,"id":43704},{"__isSmartRef__":true,"id":43705},{"__isSmartRef__":true,"id":43706},{"__isSmartRef__":true,"id":43707}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"43704":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"43705":{"offset":0.3,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"43706":{"offset":0.7,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"43707":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(204,204,204)"},"43708":{"stops":[{"__isSmartRef__":true,"id":43709},{"__isSmartRef__":true,"id":43710},{"__isSmartRef__":true,"id":43711},{"__isSmartRef__":true,"id":43712}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"43709":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"43710":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"43711":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"43712":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"43713":{"stops":[{"__isSmartRef__":true,"id":43714},{"__isSmartRef__":true,"id":43715},{"__isSmartRef__":true,"id":43716},{"__isSmartRef__":true,"id":43717}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"43714":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"43715":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"43716":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"43717":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"43718":{"sourceObj":{"__isSmartRef__":true,"id":43696},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":43696},"targetMethodName":"deleteSelectedScript","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":43719},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"43719":{"source":{"__isSmartRef__":true,"id":43696},"target":{"__isSmartRef__":true,"id":43696}},"43720":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"43721":{"morph":{"__isSmartRef__":true,"id":43696},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"43722":{"deleteSelectedScript":{"__isSmartRef__":true,"id":43723}},"43723":{"varMapping":{"__isSmartRef__":true,"id":43724},"source":"function deleteSelectedScript() {\n\n var editor = this.objectEditorPane;\n var selection = editor.scriptList.selection;\n\n if (!editor.target || editor.scriptList.getList().size() < 2) \n return; \n\n var deleteScript = function (confirmed) {\n if (!confirmed) return;\n \n if (selection && editor.target) {\n if (!editor.target.hasOwnProperty(selection)) \n return;\n delete editor.target[selection];\n editor.updateLists();\n editor.displayInitialScript();\n }\n }\n\n var message = 'Delete \"' + selection + '\" script?';\n var callback = deleteScript;\n\n var dialog = new lively.morphic.ConfirmDialog(message, callback);\n\n return this.world().openDialog(dialog);\n}","funcProperties":{"__isSmartRef__":true,"id":43725},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"43724":{"this":{"__isSmartRef__":true,"id":43696}},"43725":{"timestamp":{"__isSmartRef__":true,"id":43726},"user":"lauritz"},"43726":{"isSerializedDate":true,"string":"Thu Nov 17 2011 18:12:21 GMT+0100 (CET)"},"43727":{"submorphs":[{"__isSmartRef__":true,"id":43728}],"scripts":[],"id":"230A94D5-56B0-473A-98DF-EE346827EBFE","shape":{"__isSmartRef__":true,"id":43734},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":43735},"lighterFill":{"__isSmartRef__":true,"id":43740},"label":{"__isSmartRef__":true,"id":43728},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"name":"ObjectEditorMorphSelector","partsBinMetaInfo":{"__isSmartRef__":true,"id":43745},"list":[],"eventHandler":{"__isSmartRef__":true,"id":43746},"owner":{"__isSmartRef__":true,"id":43061},"textString":"","selection":{"__isSmartRef__":true,"id":43747},"_ClipMode":"visible","prevScroll":[0,0],"derivationIds":[221,"4AC64FBA-95AC-42B2-A078-B6DA97889093","E26ED0E6-C4CE-4C82-94D5-175270E8459E","D292F2FC-C2B6-48AE-B779-8CC5868FFA49","53A862EB-032C-4BF0-9B21-58C7E0C0A9B2","CC4D188B-510F-48DE-A0E1-EC8D2CD63F9F","0CD057F2-3517-4849-A69E-1EF79B05ACE8","66EBBB7D-8FA7-4D43-AE78-A18DA3B970BA","A50C1893-4138-4E29-865B-92F53F76D08A","1EC5D2B9-3539-419A-8DD6-CE82DEABB02C","95DC06D5-F4C7-49E2-8A01-110D1B0AFBD0","672DEFAB-2BE5-4C60-9779-3B44694FBEB1","E3476213-5872-492C-BE29-0C6A5A150ED8","AA2F6ABE-1CCB-403D-94DD-8FB371F3DDCE","54B67D51-AB19-40A0-A2A6-EC51F3171CAC","1CF44342-896F-4ACB-847F-7CB3CD10ED5A","279A9257-1667-4E0C-844B-A4E0D02462F0","DDCBD835-4B3F-4B8F-9623-696DA76C3A2C","D2CB17F3-5DD0-4E97-BF99-40A95ABF976B","FA519665-2394-43D3-8DCF-802A158F3291","90519BB5-7419-46E0-B7E3-4C26304F3414","0B7FC23C-C63C-4F20-8BAF-1BD1B7205762","B54FAD70-E598-4B06-8F41-00843A06D4B0","5A8ECBD6-ADDE-43FA-8D9E-BC483898DF8A","69DD3160-FAD3-4AD8-9B1C-CB9229AD8034","2C8AD368-8815-41D5-8C8D-CD36ECCF4A96","80C5655D-B03D-413B-A84C-D59A60D8EEEC","BA8066E4-5B8E-4048-97C5-332953805999","E27E2CB2-789E-4269-B5E8-2631B5D2840B","0EDAA37B-E8BA-4DE7-820A-17A44E299F5C"],"_Rotation":0,"_Scale":1,"isPressed":false,"__serializedExpressions__":["_Position","padding","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":43753},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(200.1,10.0)","padding":"lively.rect(5,0,0,0)","distanceToDragEvent":"lively.pt(122.9,-11.6)"},"43728":{"submorphs":[],"scripts":[],"id":"BF14489F-A03D-4AE0-B488-6FBF65C523B7","shape":{"__isSmartRef__":true,"id":43729},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":220,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"owner":{"__isSmartRef__":true,"id":43727},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":43730}],"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":43732}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"eventHandler":{"__isSmartRef__":true,"id":43733},"_HandStyle":"default","_PointerEvents":"none","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":220,"_MinTextHeight":null,"_Align":"left","_FontFamily":"Arial","_FontSize":10,"derivationIds":[222,"30F054A3-7658-405B-8098-B7D87AA8A9ED","556D6E07-45B7-42EC-A486-DE275EF0B034","06B0B080-467A-46CC-8B0D-9C0A9B9A71F1","5E2D96C9-BB9B-4735-8673-A79847435197","B48AA022-2022-4A2A-9090-4D884FB3DFD3","8B2F743A-98C5-45E1-B03C-5019114EAC47","D09C56C3-A2DC-4BDF-B8A1-6365138ECD01","74158C3D-B79E-43E7-B111-48701B10ACE2","B19E117B-E40F-4B9F-86AC-BFB2AAFD5336","4E3B3D72-E52C-44ED-AE32-78939BA1ECFD","2459D1F0-E49C-4882-AB4C-D78C1A496962","3D8D3B02-0459-45C1-A606-D0DB4B07958C","78AAE288-D261-4BEA-9436-C8C31B890B44","2E10F795-9892-4BF7-9A46-BCB90FD6112E","DE32EFA9-C920-42F6-9F2E-7EDABEC006AF","23FBFC79-1927-48FD-8C1C-09FFD7539784","3409506C-9BAE-43DA-BCAF-94392F9646DF","ED94289E-98FC-4126-9EED-25FDC98D5BFC","63C2F1D8-3A1B-464B-9945-1F661D4CFE26","782AAB82-32E9-4A37-9DC0-3118636C2CCE","D564B3C8-D9B5-4D7D-80DD-16715ED878F6","D9344242-9F26-4A5D-B86D-6FAEA43B439C","E7E3A5EE-8F82-4F04-9E65-771E2E4AC9D1","55BF0D1C-FCDF-4D8B-9E42-8EF0F36074A3","B3BE05E0-5704-45B4-8B1D-E7FDA5CE6235","9A503124-0F1D-4390-B668-E4457CBC1376","26D1AD85-C129-4C24-A16A-B6863FC35F41","7425ED3B-1418-47C8-A2EE-52CDF3C4D860","C4B9C269-4F6E-4EA2-A6EA-38C21A011591"],"_Scale":1,"_WordBreak":"break-all","__serializedExpressions__":["_Position","textColor","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(2.0,1.0)","textColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,0,0,0)","_Padding":"lively.rect(5,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"43729":{"borderWidth":0,"fill":null,"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(220.0,20.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"43730":{"style":{"__isSmartRef__":true,"id":43731},"chunkOwner":{"__isSmartRef__":true,"id":43728},"_id":"_21112","storedString":"gameTree","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"43731":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"43732":{"sourceObj":{"__isSmartRef__":true,"id":43728},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":43727},"targetMethodName":"selection","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"43733":{"morph":{"__isSmartRef__":true,"id":43728},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"43734":{"_Fill":{"__isSmartRef__":true,"id":43735},"_BorderWidth":1,"_BorderRadius":5,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(220.0,20.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"43735":{"stops":[{"__isSmartRef__":true,"id":43736},{"__isSmartRef__":true,"id":43737},{"__isSmartRef__":true,"id":43738},{"__isSmartRef__":true,"id":43739}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"43736":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"43737":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"43738":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"43739":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"43740":{"stops":[{"__isSmartRef__":true,"id":43741},{"__isSmartRef__":true,"id":43742},{"__isSmartRef__":true,"id":43743},{"__isSmartRef__":true,"id":43744}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"43741":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"43742":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"43743":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"43744":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"43745":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"partName":"ChoiceButton","comment":"Click on it and you get a list of things to choose from.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"43746":{"morph":{"__isSmartRef__":true,"id":43727},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"43747":{"submorphs":[],"scripts":[],"id":181,"shape":{"__isSmartRef__":true,"id":43748},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":580,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":28,"name":"Title","partsBinMetaInfo":{"__isSmartRef__":true,"id":43749},"textChunks":[{"__isSmartRef__":true,"id":43750}],"eventHandler":{"__isSmartRef__":true,"id":43752},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":580,"_MinTextHeight":null,"_Rotation":0,"_Scale":1.002003004005006,"previousSelection":[35,35],"priorSelectionRange":[23,23],"charsReplaced":"WIP / Proof of Concept","lastFindLoc":22,"_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","isCopyMorphRef":true,"morphRefId":2,"prevScroll":[0,0],"__serializedExpressions__":["_Position","textColor","_TextColor","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(37.0,23.0)","textColor":"Color.rgb(0,0,0)","_TextColor":"Color.rgb(0,79,152)","distanceToDragEvent":"lively.pt(221.0,-12.0)"},"43748":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(580.0,43.0)","_BorderColor":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"43749":{"partsSpaceName":"PartsBin/Worlds/","comment":"For example a world title.","partName":"Title","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"43750":{"style":{"__isSmartRef__":true,"id":43751},"chunkOwner":{"__isSmartRef__":true,"id":43747},"storedString":"","_id":"_1365","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"43751":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"43752":{"morph":{"__isSmartRef__":true,"id":43747},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"43753":{"reset":{"__isSmartRef__":true,"id":43754},"onMouseDown":{"__isSmartRef__":true,"id":43758},"onBlur":{"__isSmartRef__":true,"id":43766},"createScenePresentation":{"__isSmartRef__":true,"id":43774},"presentTargetChooser":{"__isSmartRef__":true,"id":43778},"removeTargetChooser":{"__isSmartRef__":true,"id":43782},"removeHighlight":{"__isSmartRef__":true,"id":43786},"highlightCurrentTarget":{"__isSmartRef__":true,"id":43790},"updateTargetFromSelection":{"__isSmartRef__":true,"id":43794},"currentMorphicScene":{"__isSmartRef__":true,"id":43798},"highlightTarget":{"__isSmartRef__":true,"id":43802},"setLabel":{"__isSmartRef__":true,"id":43806},"updateTargetFromOwner":{"__isSmartRef__":true,"id":43814}},"43754":{"varMapping":{"__isSmartRef__":true,"id":43755},"source":"function reset() {\n this.removeTargetChooser();\n this.setLabel('empty');\n this.applyStyle({fixedWidth: true, fixedHeight: true, borderWidth: 1, overflow: 'visible'});\n}","funcProperties":{"__isSmartRef__":true,"id":43756},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"43755":{"this":{"__isSmartRef__":true,"id":43727}},"43756":{"timestamp":{"__isSmartRef__":true,"id":43757},"user":"lauritz","tags":[]},"43757":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:04:57 GMT+0200 (CEST)"},"43758":{"varMapping":{"__isSmartRef__":true,"id":43759},"source":"function onMouseDown(evt) {\n if (evt.isCommandKey() || evt.isRightMouseButtonDown()) {\n return $super(evt);\n }\n \n if (this.listMorph) {\n // clicked on morph, not the list, not the list's scrollbar\n if (evt.target === this.renderContext().shapeNode)\n this.removeTargetChooser();\n } else {\n this.presentTargetChooser();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":43764},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"43759":{"this":{"__isSmartRef__":true,"id":43727},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":43760}},"43760":{"$super":{"__isSmartRef__":true,"id":43761}},"43761":{"varMapping":{"__isSmartRef__":true,"id":43762},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":43763},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"43762":{"obj":{"__isSmartRef__":true,"id":43727},"name":"onMouseDown"},"43763":{},"43764":{"timestamp":{"__isSmartRef__":true,"id":43765},"user":"lauritz","tags":[]},"43765":{"isSerializedDate":true,"string":"Fri Aug 03 2012 12:44:10 GMT+0200 (CEST)"},"43766":{"varMapping":{"__isSmartRef__":true,"id":43767},"source":"function onBlur(evt) {\n $super(evt);\n \n // remove the scene presentation when clicked elsewhere\n var target = evt.world.clickedOnMorph;\n if (!this.listMorph || !this.listMorph.isAncestorOf(target)) {\n this.removeTargetChooser();\n } else {\n this.focus();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":43772},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"43767":{"this":{"__isSmartRef__":true,"id":43727},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":43768}},"43768":{"$super":{"__isSmartRef__":true,"id":43769}},"43769":{"varMapping":{"__isSmartRef__":true,"id":43770},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":43771},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"43770":{"obj":{"__isSmartRef__":true,"id":43727},"name":"onBlur"},"43771":{},"43772":{"timestamp":{"__isSmartRef__":true,"id":43773},"user":"lauritz","tags":[]},"43773":{"isSerializedDate":true,"string":"Fri Aug 03 2012 13:29:05 GMT+0200 (CEST)"},"43774":{"varMapping":{"__isSmartRef__":true,"id":43775},"source":"function createScenePresentation() {\n var that = this,\n items = this.currentMorphicScene(),\n height = this.owner.getExtent().y,\n bounds = new Rectangle(0, this.getExtent().y, this.getExtent().x * 2, height),\n treeMorph = new lively.morphic.Tree(),\n rect = lively.morphic.Morph.makeRectangle(bounds),\n currentTarget = null;\n \n treeMorph.childrenPerPage = 10000;\n treeMorph.setName(\"MorphSelectorTree\");\n treeMorph.getLayouter().defer();\n treeMorph.setItem(items);\n treeMorph.childNodes.each(function (n) {\n n.expand();\n })\n \n currentTarget = this.highlightCurrentTarget(treeMorph);\n \n rect.setFill(Color.white);\n rect.beClip(true);\n rect.disableGrabbing();\n rect.disableDragging();\n rect.setBorderWidth(1);\n rect.setBorderColor(Color.rgb(150,150,150));\n rect.addMorph(treeMorph);\n rect.treeMorph = treeMorph;\n rect.currentTarget = currentTarget;\n\n return rect;\n}","funcProperties":{"__isSmartRef__":true,"id":43776},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"43775":{"this":{"__isSmartRef__":true,"id":43727}},"43776":{"timestamp":{"__isSmartRef__":true,"id":43777},"user":"lauritz","tags":[]},"43777":{"isSerializedDate":true,"string":"Fri Aug 03 2012 13:29:56 GMT+0200 (CEST)"},"43778":{"varMapping":{"__isSmartRef__":true,"id":43779},"source":"function presentTargetChooser() {\n var list = this.createScenePresentation(),\n tree = list.treeMorph,\n target = list.currentTarget\n \n list.setVisible(false)\n this.addMorph(list)\n this.listMorph = list\n list.focus()\n\n // need temp here, doesn't work otherwise, strange errors... Javascript WAT\n var layouting = function() {\n list.setVisible(true)\n \n if (target) {\n var globalTransform = new lively.morphic.Similitude()\n for (var morph = target; (morph != list) && \n (morph != undefined); morph = morph.owner) {\n globalTransform.preConcatenate(morph.getTransform());\n } \n \n list.scrollRectIntoView(target.getBounds().\n translatedBy(globalTransform.getTranslation()));\n tree.getLayouter().resume();\n }\n }\n layouting.morphicDelay(1);\n}","funcProperties":{"__isSmartRef__":true,"id":43780},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"43779":{"this":{"__isSmartRef__":true,"id":43727}},"43780":{"timestamp":{"__isSmartRef__":true,"id":43781},"user":"lauritz","tags":[]},"43781":{"isSerializedDate":true,"string":"Fri Aug 03 2012 13:13:22 GMT+0200 (CEST)"},"43782":{"varMapping":{"__isSmartRef__":true,"id":43783},"source":"function removeTargetChooser() {\n if (this.listMorph) {\n this.listMorph.remove();\n delete this.listMorph; \n }\n}","funcProperties":{"__isSmartRef__":true,"id":43784},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"43783":{"this":{"__isSmartRef__":true,"id":43727}},"43784":{"timestamp":{"__isSmartRef__":true,"id":43785},"user":"lauritz","tags":[]},"43785":{"isSerializedDate":true,"string":"Fri Aug 03 2012 12:43:38 GMT+0200 (CEST)"},"43786":{"varMapping":{"__isSmartRef__":true,"id":43787},"source":"function removeHighlight(node) {\n node.submorphs[0].setFill(Color.rgb(255,255,255))\n}","funcProperties":{"__isSmartRef__":true,"id":43788},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"43787":{"this":{"__isSmartRef__":true,"id":43727}},"43788":{"timestamp":{"__isSmartRef__":true,"id":43789},"user":"lauritz","tags":[]},"43789":{"isSerializedDate":true,"string":"Fri Aug 03 2012 13:32:15 GMT+0200 (CEST)"},"43790":{"varMapping":{"__isSmartRef__":true,"id":43791},"source":"function highlightCurrentTarget(tree) {\n var target = this.owner.target,\n nodes = tree.childNodes,\n highlightNode;\n\n if (!target) {\n return\n } else if (target.isMorph) {\n var expandables = [target],\n nextOwner = target,\n currentNode\n while (nextOwner.owner) {\n expandables.push(nextOwner.owner)\n nextOwner = nextOwner.owner\n }\n expandables.reverse().each(function (m) {\n currentNode = nodes.detect(function (n) {\n return n.item.value === m;\n })\n if (currentNode) {\n nodes = currentNode.childNodes\n if (!nodes && currentNode.item.children) {\n currentNode.expand();\n nodes = currentNode.childNodes;\n }\n } else {\n return;\n }\n })\n if (currentNode && currentNode.item.value === target) {\n highlightNode = currentNode;\n }\n } else {\n var groupNodes = nodes.detect(function (n) {\n return n.item.value === 'groups';\n }).childNodes\n highlightNode = groupNodes.detect(function (n) {\n // group names are unique\n return n.item.value.name === target.name;\n })\n }\n\n if (highlightNode) {\n this.highlightTarget(highlightNode);\n }\n return highlightNode;\n}","funcProperties":{"__isSmartRef__":true,"id":43792},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"43791":{"this":{"__isSmartRef__":true,"id":43727}},"43792":{"timestamp":{"__isSmartRef__":true,"id":43793},"user":"lauritz","tags":[]},"43793":{"isSerializedDate":true,"string":"Fri Aug 03 2012 13:31:39 GMT+0200 (CEST)"},"43794":{"varMapping":{"__isSmartRef__":true,"id":43795},"source":"function updateTargetFromSelection(selection) { \n var that = this;\n var update = function(confirmed) {\n if (confirmed) {\n that.owner.setTarget(selection);\n that.setLabel(selection.getName() || selection.toString());\n }\n }\n \n this.removeTargetChooser();\n if (this.owner.hasUnsavedChanges && this.owner.hasUnsavedChanges()) {\n this.owner.confirmUnsavedChanges(update);\n } else {\n update(true);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":43796},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"43795":{"this":{"__isSmartRef__":true,"id":43727}},"43796":{"timestamp":{"__isSmartRef__":true,"id":43797},"user":"lauritz","tags":[]},"43797":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:04:57 GMT+0200 (CEST)"},"43798":{"varMapping":{"__isSmartRef__":true,"id":43799},"source":"function currentMorphicScene() {\n var onSelect = function onSelect(tree) {\n this.selector.updateTargetFromSelection(this.value);\n }\n var properties = {\n editorPane: this.owner,\n selector: this\n }\n \n return {children: [{ \n name: 'World',\n value: this.world(),\n selector: this,\n onSelect: onSelect,\n children: this.world().submorphs.invoke('treeItemsOfMorphNames',\n {scripts: [onSelect],\n properties: properties,\n showUnnamed: true}).compact()\n }]};\n}","funcProperties":{"__isSmartRef__":true,"id":43800},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"43799":{"this":{"__isSmartRef__":true,"id":43727}},"43800":{"timestamp":{"__isSmartRef__":true,"id":43801},"user":"lauritz","tags":[]},"43801":{"isSerializedDate":true,"string":"Fri Aug 03 2012 13:29:43 GMT+0200 (CEST)"},"43802":{"varMapping":{"__isSmartRef__":true,"id":43803},"source":"function highlightTarget(node) {\n node.submorphs[0].setFill(Color.rgb(218,218,218))\n}","funcProperties":{"__isSmartRef__":true,"id":43804},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"43803":{"this":{"__isSmartRef__":true,"id":43727}},"43804":{"timestamp":{"__isSmartRef__":true,"id":43805},"user":"lauritz","tags":[]},"43805":{"isSerializedDate":true,"string":"Fri Aug 03 2012 13:32:12 GMT+0200 (CEST)"},"43806":{"varMapping":{"__isSmartRef__":true,"id":43807},"source":"function setLabel(label) {\n this.label.setTextString(label);\n this.label.setAlign('left');\n}","funcProperties":{"__isSmartRef__":true,"id":43812},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"43807":{"this":{"__isSmartRef__":true,"id":43727},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":43808}},"43808":{"$super":{"__isSmartRef__":true,"id":43809}},"43809":{"varMapping":{"__isSmartRef__":true,"id":43810},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":43811},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"43810":{"obj":{"__isSmartRef__":true,"id":43727},"name":"setLabel"},"43811":{},"43812":{"timestamp":{"__isSmartRef__":true,"id":43813},"user":"lauritz","tags":[]},"43813":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:04:31 GMT+0200 (CEST)"},"43814":{"varMapping":{"__isSmartRef__":true,"id":43815},"source":"function updateTargetFromOwner() {\n this.setLabel(this.owner.target);\n}","funcProperties":{"__isSmartRef__":true,"id":43816},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"43815":{"this":{"__isSmartRef__":true,"id":43727}},"43816":{"timestamp":{"__isSmartRef__":true,"id":43817},"user":"lauritz","tags":[]},"43817":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:24:24 GMT+0200 (CEST)"},"43818":{"submorphs":[],"scripts":[],"id":"678EFD6C-A954-42E3-93A1-6283457BE4D2","shape":{"__isSmartRef__":true,"id":43819},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":64.8979476392384,"showsHalos":false,"_FontSize":9,"name":"ObjectEditorScriptsText2","partsBinMetaInfo":{"__isSmartRef__":true,"id":43820},"textChunks":[{"__isSmartRef__":true,"id":43821}],"charsReplaced":"Scripts","lastFindLoc":-7,"priorSelectionRange":[0,7],"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":43823},"_WhiteSpaceHandling":"pre-wrap","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":64.8979476392384,"_ClipMode":"visible","draggingEnabled":false,"eventsAreIgnored":true,"isCopyMorphRef":true,"morphRefId":27,"owner":{"__isSmartRef__":true,"id":43061},"derivationIds":[224,"35EF8FE5-067D-45B6-AF21-77040F11D340","80DC09DD-22D4-4089-B5C3-857B32C9BE9B","EF080074-E6B9-47F3-A87F-26313B40C430","F6977801-C1A7-445C-9BF1-8A1019E202FB","8C9157AE-0343-4CFB-8186-1D5E05D2ECBE","DD3C23F8-6463-4EAE-959B-C486E27D9BDA","1E8D3752-D212-41F8-BC63-B094E0C80707","75C07D11-AE5D-4A36-B2D0-F2A6EA414E72","494AB1C0-2C09-49DE-B4AA-1F24DC7495FF","25199967-E3BA-4763-A704-37BD3152A5F7","8E4A5937-D1FA-4AF7-BD8D-B542C636CEF9","DDB23EF0-540C-4046-AD4D-C001E8A5F20C","FF45AAB3-E5C7-42A0-A704-F068DB2E2AF9","52850E3E-BE46-467C-A381-902F5E4859FD","147F9160-7168-44A4-9EA4-A36466EE1F52","8E4FB238-FC20-4DA7-AC9F-6921EBBD5609","3D09A998-5E60-4E94-9C6A-B08E7D98F02A","B8986B95-68A4-4212-8560-C86C8F7B3B3C","81BAFCDC-090F-4A92-8AD6-C3127620CCF4","3663625F-2BB0-494C-A467-04148A441F42","8F0EE2A4-3C90-4F71-A04E-2B285D2543CD","B5F10B61-9C89-4903-BD4C-DF3B9D283432","7005184B-8CE8-4DB8-82D8-D75E16ADE428","B8106E33-B470-45C3-916E-6E92CAFDD854","3013F6C8-9D86-49F3-9EB0-AA42B27F1DC6","A49BA117-B9D4-43F4-82EA-458B9D16FDBA","9FB9DF10-FCEC-44FE-9614-6DFC4B814576","54F9AFFD-B235-48AC-85E0-57921251546E","7A472A4B-7292-49B5-9F03-DE2E3A096714"],"_Rotation":0,"_Scale":1,"_MaxTextHeight":null,"_MinTextHeight":null,"__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(10.0,12.9)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(45.8,-27.8)"},"43819":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(64.9,14.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"43820":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"43821":{"style":{"__isSmartRef__":true,"id":43822},"chunkOwner":{"__isSmartRef__":true,"id":43818},"storedString":"Tag:","_id":"_1367","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"43822":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"43823":{"morph":{"__isSmartRef__":true,"id":43818},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"43824":{"submorphs":[{"__isSmartRef__":true,"id":43825}],"scripts":[],"id":"282822F8-B88C-4F9D-AE8E-A60B6CB08041","shape":{"__isSmartRef__":true,"id":43831},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"value":true,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":43837},"lighterFill":{"__isSmartRef__":true,"id":43842},"label":{"__isSmartRef__":true,"id":43825},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"name":"ObjectEditorTagChooser","partsBinMetaInfo":{"__isSmartRef__":true,"id":43847},"listMorph":null,"list":[],"eventHandler":{"__isSmartRef__":true,"id":43848},"textString":"PartsBinBrowser","selection":"","_ClipMode":"visible","prevScroll":[0,0],"owner":{"__isSmartRef__":true,"id":43061},"setTargetToListSelection":"all","savedTextString":"all","derivationIds":[225,"7F83847B-D0B1-4A31-8601-43424B97C858","E08FC110-71D7-4FFD-B4A8-08F8147B95BA","5534107D-C5C9-48DD-A1ED-B87E9D9B672C","0B89FA7A-768C-4062-98AE-C455E8DAFF19","799320C6-CFBA-40E7-B03D-64BFE9B78248","9B650AA3-271B-4E72-B230-51C6F64B7462","C95D3672-724C-4C2C-9CDD-EF308062F627","C66EBEEC-B7CE-4DD9-8BDF-905F071F965D","D68B143A-A712-4FD0-8803-62CCB4C7F763","ED802271-AE5C-4BE9-AC4E-7CED44BC864B","1BD989CB-146C-431F-8B15-9199C4CD5D32","42172AA4-1B06-4C5B-9BB7-FAED1206CF34","32DFAF99-E6F8-426B-829D-FD6C2BCB8FAA","9B4BF2BE-49D5-4B9D-8F38-1692443069A9","FCAB3690-731A-45E7-984F-843DFE705AF1","94B10A66-8219-43AD-B902-DA999A66222D","BB0E2EB7-ABCE-44C7-96E7-6679FB2981D1","2FCEE551-302B-46C9-B646-3B9BE9187182","B4267F52-1ACC-42A1-904D-E9F7D485D8AB","14770110-045A-4BE4-BCF2-7C886DF70F7D","5387EA76-6B03-426A-B385-9C4231B66352","23545203-A969-439B-8761-E83A810696D0","C5467F6E-CBD7-4AF4-94BE-D0D62E4F7DDD","2FC5F9D1-B611-4273-BD5B-107350364579","318398B6-6689-4DE7-88FD-636BD968773D","3241459F-2019-4BD2-A0CF-BD2A174DDA76","69022916-A511-4A6C-8220-5B4CCD34FCEF","E772C128-C42D-4B13-A3DB-3EC0DFDC9FC5","4DD223AA-79FC-4FB3-9301-F197D9D6B358"],"_Rotation":0,"_Scale":1,"isPressed":false,"_StyleClassNames":["toggled"],"__serializedExpressions__":["_Position","padding","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":43849},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(39.1,10.0)","padding":"lively.rect(5,0,0,0)","distanceToDragEvent":"lively.pt(85.7,-11.6)"},"43825":{"submorphs":[],"scripts":[],"id":"776232F5-5FF2-4305-8B83-32BDCDD6599D","shape":{"__isSmartRef__":true,"id":43826},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":130,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"owner":{"__isSmartRef__":true,"id":43824},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":43827}],"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":43829}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"eventHandler":{"__isSmartRef__":true,"id":43830},"_HandStyle":"default","_PointerEvents":"none","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":130,"_MinTextHeight":null,"_Align":"left","_FontFamily":"Arial","_FontSize":10,"derivationIds":[226,"03DBF3F8-8EA2-4426-BA64-C4297DDAB015","B8F87302-BEC3-48CD-9BBA-6C7DBB6287E1","4AA6AE51-338B-4E3E-814B-9F99C693A2D5","08F6CE56-AD91-4C27-9429-C3DEA313696C","D39C963C-FD24-4498-A6D8-71E5102CE58A","132C2A9E-3466-4051-AAEA-6E485A91F408","DB8BC4A1-ED41-446B-AB6C-7E73DD857B5D","567FC668-A57C-41CB-8252-8912826B3144","D0B0775F-C8E7-49EB-BBB2-C7BB7DD464BF","AABED87D-D7C0-494A-8803-26F4601E35FF","696C3A2A-C695-4D17-A044-41A73436AB8D","206A0BFD-6997-4E0E-9193-089D1F66B22A","F2F1F966-6C41-4EBA-AFCE-FAE8C79AA696","64A754E9-7083-4CAE-B5C2-7B436EFFE4BA","64737503-A352-42CC-A249-667DA2B42746","9218F1CA-E23F-4E1A-89C3-DB19DE720861","CF7EAC38-1041-4B83-B087-359885B8528B","84469C7C-C93D-4F16-ACAA-0045A4A37FCA","9D3DD447-66A0-4B4A-B378-FB864D8C1468","163D1C2B-EDE9-4F8F-B466-EF9F4CB14384","50DCF8C9-23AA-4241-AC5B-724CC11950DA","CCACCC51-0109-4F73-B122-AA60E40EC54B","285D1797-A21F-4439-81AD-932B45F54879","7354C28D-A54E-48B6-913E-4949B5F4625E","68EAB78C-AAA8-4EC3-8493-CFD23672B5B3","2AD9DBC6-BDBD-4022-AFE1-B6D94D6860BF","5D634617-10A2-45FE-A453-D3452456AB07","EE3AF0A1-F42E-4AE8-A115-3458AA56DAF3","D8A87F07-FBE8-4C1E-ADE9-3AF6EE15FCD3"],"_Scale":1,"_WordBreak":"break-all","__serializedExpressions__":["_Position","textColor","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(2.0,1.0)","textColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,0,0,0)","_Padding":"lively.rect(5,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"43826":{"borderWidth":0,"fill":null,"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(130.0,20.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"43827":{"style":{"__isSmartRef__":true,"id":43828},"chunkOwner":{"__isSmartRef__":true,"id":43825},"_id":"_11398","storedString":"all","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"43828":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"43829":{"sourceObj":{"__isSmartRef__":true,"id":43825},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":43824},"targetMethodName":"selection","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"43830":{"morph":{"__isSmartRef__":true,"id":43825},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"43831":{"_Fill":{"__isSmartRef__":true,"id":43832},"_BorderWidth":1,"_BorderRadius":5,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(130.0,20.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"43832":{"stops":[{"__isSmartRef__":true,"id":43833},{"__isSmartRef__":true,"id":43834},{"__isSmartRef__":true,"id":43835},{"__isSmartRef__":true,"id":43836}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"43833":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(230,243,253)"},"43834":{"offset":0.3,"__serializedExpressions__":["color"],"color":"Color.rgb(171,215,248)"},"43835":{"offset":0.7,"__serializedExpressions__":["color"],"color":"Color.rgb(171,215,248)"},"43836":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(157,198,229)"},"43837":{"stops":[{"__isSmartRef__":true,"id":43838},{"__isSmartRef__":true,"id":43839},{"__isSmartRef__":true,"id":43840},{"__isSmartRef__":true,"id":43841}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"43838":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"43839":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"43840":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"43841":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"43842":{"stops":[{"__isSmartRef__":true,"id":43843},{"__isSmartRef__":true,"id":43844},{"__isSmartRef__":true,"id":43845},{"__isSmartRef__":true,"id":43846}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"43843":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"43844":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"43845":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"43846":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"43847":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"partName":"ChoiceButton","comment":"Click on it and you get a list of things to choose from.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"43848":{"morph":{"__isSmartRef__":true,"id":43824},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"43849":{"createListMorph":{"__isSmartRef__":true,"id":43850},"getList":{"__isSmartRef__":true,"id":43854},"removeList":{"__isSmartRef__":true,"id":43858},"reset":{"__isSmartRef__":true,"id":43862},"onMouseUp":{"__isSmartRef__":true,"id":43866},"onBlur":{"__isSmartRef__":true,"id":43874},"setTag":{"__isSmartRef__":true,"id":43882}},"43850":{"varMapping":{"__isSmartRef__":true,"id":43851},"source":"function createListMorph() {\n var items = this.getList();\n\n var height = Math.min(this.owner.getExtent().y, items.length * 17);\n var extent = new Rectangle(0, this.getExtent().y, this.getExtent().x, height);\n\n var listMorph = new lively.morphic.List(extent);\n listMorph.setList(items);\n listMorph.setFontSize(10);\n\n listMorph.disableGrabbing();\n listMorph.disableDragging();\n \n connect(listMorph, 'selection', this, 'setTag');\n \n return listMorph;\n}","funcProperties":{"__isSmartRef__":true,"id":43852},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"43851":{"this":{"__isSmartRef__":true,"id":43824}},"43852":{"timestamp":{"__isSmartRef__":true,"id":43853},"user":"lauritz","categories":[]},"43853":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:35:59 GMT+0100 (CET)"},"43854":{"varMapping":{"__isSmartRef__":true,"id":43855},"source":"function getList() {\n if (!this.owner.target) return [''];\n\n var target = this.owner.target;\n\n var tags = Functions.own(target).collect(function (each) {\n return target[each].tags || [];\n }).flatten().uniq();\n\n var sortedTags = tags.sortBy(function(name) { \n return name.toLowerCase() \n });\n \n sortedTags.unshift('all'); \n return sortedTags;\n}","funcProperties":{"__isSmartRef__":true,"id":43856},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"43855":{"this":{"__isSmartRef__":true,"id":43824}},"43856":{"timestamp":{"__isSmartRef__":true,"id":43857},"user":"lauritz","tags":[]},"43857":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:27:25 GMT+0100 (CET)"},"43858":{"varMapping":{"__isSmartRef__":true,"id":43859},"source":"function removeList() {\n this.listMorph && this.listMorph.remove()\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":43860},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"43859":{"this":{"__isSmartRef__":true,"id":43824}},"43860":{"timestamp":{"__isSmartRef__":true,"id":43861},"user":"lauritz","categories":[]},"43861":{"isSerializedDate":true,"string":"Thu Nov 17 2011 19:06:51 GMT+0100 (CET)"},"43862":{"varMapping":{"__isSmartRef__":true,"id":43863},"source":"function reset() {\n this.list = [];\n this.setLabel('all');\n this.label.setAlign('left');\n this.removeList();\n this.applyStyle({fixedWidth: true, fixedHeight: true, borderWidth: 1, overflow: 'visible'})\n}","funcProperties":{"__isSmartRef__":true,"id":43864},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"43863":{"this":{"__isSmartRef__":true,"id":43824}},"43864":{"timestamp":{"__isSmartRef__":true,"id":43865},"user":"lauritz","tags":[]},"43865":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:27:53 GMT+0100 (CET)"},"43866":{"varMapping":{"__isSmartRef__":true,"id":43867},"source":"function onMouseUp(evt) {\n if (evt.isCommandKey() || evt.isRightMouseButtonDown()) return $super(evt);\n if (this.listMorph) {\n this.removeList();\n return true;\n } \n if (this.getList().size() < 2) return;\n var list = this.createListMorph();\n this.addMorph(list);\n this.listMorph = list;\n return true;\n}","funcProperties":{"__isSmartRef__":true,"id":43872},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"43867":{"this":{"__isSmartRef__":true,"id":43824},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":43868}},"43868":{"$super":{"__isSmartRef__":true,"id":43869}},"43869":{"varMapping":{"__isSmartRef__":true,"id":43870},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":43871},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"43870":{"obj":{"__isSmartRef__":true,"id":43824},"name":"onMouseUp"},"43871":{},"43872":{"timestamp":{"__isSmartRef__":true,"id":43873},"user":"lauritz","categories":[]},"43873":{"isSerializedDate":true,"string":"Thu Nov 17 2011 18:59:16 GMT+0100 (CET)"},"43874":{"varMapping":{"__isSmartRef__":true,"id":43875},"source":"function onBlur(evt) {\n $super(evt);\n \n // workaround - otherwise other morphs get this event\n var clickedMorph = evt && evt.world && evt.world.clickedOnMorph;\n if (clickedMorph && (clickedMorph !== this && clickedMorph !== this.listMorph)) {\n this.removeList();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":43880},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"43875":{"this":{"__isSmartRef__":true,"id":43824},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":43876}},"43876":{"$super":{"__isSmartRef__":true,"id":43877}},"43877":{"varMapping":{"__isSmartRef__":true,"id":43878},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":43879},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"43878":{"obj":{"__isSmartRef__":true,"id":43824},"name":"onBlur"},"43879":{},"43880":{"timestamp":{"__isSmartRef__":true,"id":43881},"user":"lauritz","categories":[]},"43881":{"isSerializedDate":true,"string":"Mon Nov 21 2011 23:10:03 GMT+0100 (CET)"},"43882":{"varMapping":{"__isSmartRef__":true,"id":43883},"source":"function setTag(tag) {\n this.setLabel(tag || '');\n this.label.setAlign('left');\n this.owner.setTag(tag);\n}","funcProperties":{"__isSmartRef__":true,"id":43884},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"43883":{"this":{"__isSmartRef__":true,"id":43824}},"43884":{"timestamp":{"__isSmartRef__":true,"id":43885},"user":"lauritz","categories":[]},"43885":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:36:12 GMT+0100 (CET)"},"43886":{"submorphs":[{"__isSmartRef__":true,"id":43887}],"scripts":[],"id":"EC25167E-7B30-4D9C-8566-786C298CAA52","shape":{"__isSmartRef__":true,"id":43892},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":43893},"lighterFill":{"__isSmartRef__":true,"id":43898},"label":{"__isSmartRef__":true,"id":43887},"name":"Button","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":43903},"attributeConnections":[{"__isSmartRef__":true,"id":43904}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":43927},"derivationIds":[7251,"BE69DA70-C9C3-4495-A6B5-413BD2FFA0D1","79FE3D3F-77C4-4B39-8243-D672185B416D","A4D2FEDF-2654-4381-AB43-8F89B9CA2E86","87E42FF6-3862-481D-97D6-643676E15F32","4F370A81-5A80-4821-8ECC-D52B56F31E15","1C6D1DC9-2F9B-4DC4-B453-1CA45B17C516","0E8EC0BF-934B-410B-AEC2-0ECA8C8F774D","97086CE7-CD46-4035-A371-02A41D555A66","E342B91D-F54B-4DA8-8AE7-10C59CE22B41","A838C48E-4033-4688-8DCF-20659BD824FF","E9BBC453-FFF6-4EE8-BDB0-605D5D4557AE","B6FB81D1-145B-40F9-ACF1-17276DA45EBA","09C79781-5461-4815-88DE-22FB67558136","85A5FA10-01D9-4051-8D56-29DB02CF8817","6E2F44D0-D69A-4DD7-91AD-0B0E1E871633","66FB4A47-82E6-417D-8248-4038D0CBBF5A","3CDC67E7-CAC7-4636-B7FF-50D008C6EB0D","4475CB12-8CFB-41DB-9399-EC6B68E18BA3","6175C505-1BCA-42E9-9C4C-07A4A309A245","B4FEE8FD-E680-459F-A82E-7606A48170D5","AC0B6630-E189-474B-A5E2-13726C1E0E6A","B5559DA4-1483-446C-8332-23DC886B44A5","955AF1F4-5BF5-4129-BA11-0DC54E21E510","6646015F-BD0A-4FEB-85F0-557FB8EC655A","A5682378-2307-447E-AD50-1DEC1AAC9FCB","1A04209F-A70E-4385-A6E2-D508EABC2DFC","EDA53C4F-765D-4424-9DBF-C62388440C46"],"owner":{"__isSmartRef__":true,"id":43061},"layout":{"__isSmartRef__":true,"id":43928},"_ClipMode":"visible","_Rotation":0,"_Scale":0.994014980014994,"isPressed":false,"prevScroll":[0,0],"__serializedExpressions__":["distanceToDragEvent","_Position"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","distanceToDragEvent":"lively.pt(72.0,-13.0)","_Position":"lively.pt(687.7,9.5)"},"43887":{"submorphs":[],"scripts":[],"id":"C71B51B7-D0F8-43FC-83B5-F0A9DB24DA47","shape":{"__isSmartRef__":true,"id":43888},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":97,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":43886},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":43889}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":43891},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[7252,"E0EF3EFE-3ADF-4E46-8705-7BF444E4BCED","307A3596-1175-4EA6-AA27-5BA4C9D95AB7","0EF99131-C569-4C2C-B613-E0D8423C1334","BA4EC8D2-AB29-4F9F-B5A0-715A4746A4C4","56735895-BA99-4D98-9866-AA5DBD86237E","81041CF7-31DB-4F65-BB39-FE438A4F266F","D03829B3-268E-40A0-A440-3E4BAC344F30","714637F0-714A-4833-909B-BA4AF1B4628B","DC956E73-7398-4CAF-B6F2-9A226E344396","C1F72D31-1F49-4C0C-ACF3-C3AD7E698D2F","39386C7E-9099-4159-BFE9-80AD37319211","2764FB6E-70D1-4BC5-B3CB-9979A48B8205","C55C8A7C-412C-453E-A99F-CE78C2AADB94","4BD9A8D4-2EC1-40AC-A1CE-5F1347B0152D","3450EAEB-E3D2-4FAF-98DF-354B3B8715D6","C906736E-48DF-4054-BA5A-A089610456D7","DE5C59FB-90A6-4DD4-AC39-5CC8B3912969","5830FB93-49A1-4A31-A687-69C4579D5FA7","AE9038D5-0EBD-40A0-8043-9689D163D108","13E47AE3-8FA4-4D33-B6D0-DC9AB9E63590","330AAB8C-6D17-4763-AACC-669FC5DD3A91","CA04BB7A-205C-412D-9900-C2DE7C5FAD36","37AADE55-77DE-4E93-9A3E-241BB5002F88","60EB450E-29D4-42B9-8FF7-CA138515052E","7D5C0196-98BF-4CCD-9142-3D29E68EE180","0F70CA1F-07A9-4EFA-872A-3255F9C850DC","7A2FAFFA-9A09-40FB-B04A-80B0B34C696B"],"_MinTextWidth":97,"_MinTextHeight":null,"_WordBreak":"break-all","__serializedExpressions__":["_Position","padding","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)"},"43888":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(101.0,21.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(2,2,0,0)"},"43889":{"style":{"__isSmartRef__":true,"id":43890},"chunkOwner":{"__isSmartRef__":true,"id":43887},"storedString":"run","_id":"_1369","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"43890":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"43891":{"morph":{"__isSmartRef__":true,"id":43887},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"43892":{"_BorderWidth":1.1840000000000002,"_Fill":{"__isSmartRef__":true,"id":43893},"_BorderRadius":5.2,"_ClipMode":"visible","_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(101.0,21.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"43893":{"stops":[{"__isSmartRef__":true,"id":43894},{"__isSmartRef__":true,"id":43895},{"__isSmartRef__":true,"id":43896},{"__isSmartRef__":true,"id":43897}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"43894":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"43895":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"43896":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"43897":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"43898":{"stops":[{"__isSmartRef__":true,"id":43899},{"__isSmartRef__":true,"id":43900},{"__isSmartRef__":true,"id":43901},{"__isSmartRef__":true,"id":43902}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"43899":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"43900":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"43901":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"43902":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"43903":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"43904":{"sourceObj":{"__isSmartRef__":true,"id":43886},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":43061},"targetMethodName":"runScript","visualConnector":{"__isSmartRef__":true,"id":43905},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"43905":{"submorphs":[{"__isSmartRef__":true,"id":43906}],"scripts":[],"shape":{"__isSmartRef__":true,"id":43913},"derivationIds":[null],"id":"C89B50A0-17E7-4D22-AE1D-5112520DAEE7","eventHandler":{"__isSmartRef__":true,"id":43916},"droppingEnabled":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":43917},{"__isSmartRef__":true,"id":43918}],"con":{"__isSmartRef__":true,"id":43904},"showsMorphMenu":true,"showsHalos":false,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":43919},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"43906":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":43907},"derivationIds":[null],"id":"2A71BE9E-6820-46AF-ACED-3C9BDCC918AF","eventHandler":{"__isSmartRef__":true,"id":43912},"droppingEnabled":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":43905},"_Rotation":-3.130064002485303,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(0.0,0.0)"},"43907":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":43908},{"__isSmartRef__":true,"id":43909},{"__isSmartRef__":true,"id":43910},{"__isSmartRef__":true,"id":43911}],"_ClipMode":"visible","_BorderWidth":0,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(-12.0,-6.0)","_Extent":"lively.pt(16.0,12.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)"},"43908":{"isAbsolute":true,"x":-12,"y":-6,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"43909":{"isAbsolute":true,"x":-12,"y":6,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"43910":{"isAbsolute":true,"x":4,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"43911":{"isAbsolute":true,"x":-12,"y":-6,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"43912":{"morph":{"__isSmartRef__":true,"id":43906},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"43913":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":43914},{"__isSmartRef__":true,"id":43915}],"_ClipMode":"visible","_BorderWidth":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(-1.0,-1.0)","_Extent":"lively.pt(831.0,11.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"43914":{"isAbsolute":true,"x":829.7085000406639,"y":9.565843617262885,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"43915":{"isAbsolute":true,"x":0,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"43916":{"morph":{"__isSmartRef__":true,"id":43905},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"43917":{"morph":{"__isSmartRef__":true,"id":43905},"index":0,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"43918":{"morph":{"__isSmartRef__":true,"id":43905},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":43906},"markerDirection":"prev","__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"43919":{"morphMenuItems":{"__isSmartRef__":true,"id":43920}},"43920":{"varMapping":{"__isSmartRef__":true,"id":43921},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = this.world();\n var items = [\n ['edit converter', function() {\n var source = con.converterString ||\n 'function converter(value) {\\n return value\\n}',\n editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n editor.doitContext = con;\n connect(editor, 'savedTextString', con, 'converterString', {updater:\n function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n connect(editor, 'savedTextString', world, 'alertOK', {converter:\n function() { return 'setting new converter' }})\n editor.applyStyle({syntaxHighlighting: true,\n fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n var title = con.targetObj.name && con.sourceObj.name ?\n 'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(),\n visualConnector.bounds().bottomCenter())\n }],\n ['hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['cancel', function() {}],\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":43926},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"43921":{"this":{"__isSmartRef__":true,"id":43905},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":43922}},"43922":{"$super":{"__isSmartRef__":true,"id":43923}},"43923":{"varMapping":{"__isSmartRef__":true,"id":43924},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":43925},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"43924":{"obj":{"__isSmartRef__":true,"id":43905},"name":"morphMenuItems"},"43925":{},"43926":{},"43927":{"morph":{"__isSmartRef__":true,"id":43886},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"43928":{"centeredHorizontal":false,"moveHorizontal":true},"43929":{"submorphs":[{"__isSmartRef__":true,"id":43930}],"scripts":[],"id":"A1E7AE85-2A12-4BEC-ADB7-AAA96784036C","shape":{"__isSmartRef__":true,"id":43935},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":43936},"lighterFill":{"__isSmartRef__":true,"id":43941},"label":{"__isSmartRef__":true,"id":43930},"name":"saveButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":43946},"attributeConnections":[{"__isSmartRef__":true,"id":43947}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":43970},"derivationIds":[7251,"BE69DA70-C9C3-4495-A6B5-413BD2FFA0D1","79FE3D3F-77C4-4B39-8243-D672185B416D","A4D2FEDF-2654-4381-AB43-8F89B9CA2E86","D686F0CB-027B-4CA9-8B8D-9306389B219D","F51327CB-803E-4234-BFB3-6F5252D1C936","A79280E8-6AE3-4016-AF47-CE78F71924C6","B05829EB-D452-4D81-983B-E2CE425C8260","32B117E5-52D8-4843-B80E-090B9817E099","49AC923E-5272-4E3C-8F02-4F2AED2BC4E9","85AAEA9C-5E12-4DEC-8994-9A5FE655A740","2A7FF9BF-85D3-4962-8EB4-0F7016C672EB","3BB17748-B91B-43F5-84BE-2537402A6382","8BA10BD3-43C5-4A41-B9D9-DCD8C74EA208","8BADA640-EDC1-41B2-BEF3-0F2520EA25DD","CAFB5342-EFD3-483E-AE4A-343D211653EF","C3DC8C6F-A36C-4456-AF34-B0A318C1AAD8","88093937-29BB-43FC-AD82-4A0A4BDC349F","27E1FA12-CE4A-4C1F-891F-EEEF92BD672F","A12311D6-23C1-4711-9271-5B582F89F15B","F615015A-8BAE-4FC4-B9A4-D1D1122AC0A2","77333AB0-F43F-45D7-BAEE-8B9FF7865CAF","6A0E622E-4C99-42C1-8EEE-E659BFC2996E","D0264D42-222E-4900-908B-4EA13729B6AA","CC6A8A07-5A2D-407A-B540-6BA0C73356C5","FA68B30F-8583-41B2-898D-8DAFE1A75F15","D5C01E0F-F7DF-4896-8CEF-099C9F3E6CB8","B521A25F-FA55-4F6B-BAC1-0B2544DF98C1","C567F039-E57C-4C5E-AFAA-D05B2C481A69"],"layout":{"__isSmartRef__":true,"id":43971},"owner":{"__isSmartRef__":true,"id":43061},"_ClipMode":"visible","_Rotation":0,"_Scale":0.9880657804942089,"isPressed":false,"prevScroll":[0,0],"__serializedExpressions__":["distanceToDragEvent","_Position"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","distanceToDragEvent":"lively.pt(68.8,-14.5)","_Position":"lively.pt(574.4,9.5)"},"43930":{"submorphs":[],"scripts":[],"id":"C52EA5B5-1388-4566-BAF7-4D769F13F6C2","shape":{"__isSmartRef__":true,"id":43931},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":97,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":43929},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":43932}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":43934},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[7252,"E0EF3EFE-3ADF-4E46-8705-7BF444E4BCED","307A3596-1175-4EA6-AA27-5BA4C9D95AB7","0EF99131-C569-4C2C-B613-E0D8423C1334","9AECBFB8-25A5-483F-86AD-D7CF9ABC9A25","918C6CC4-3540-4341-BAFD-B195F7807FEE","5AABB138-5EE8-40A5-AB3C-5A9625D0A353","4529D79B-4CC5-467E-91F8-661C3A5F49F8","1E5E570C-FD42-45E3-A7F6-768BB14ACD14","A13FB4E0-72F2-4E7C-A861-EDCBA1393860","B8E4C964-4FFF-4A9F-B0A9-612546B1DC8C","002A2173-D26D-4EED-8906-A489C1E158C0","63362D04-B829-41E6-9E68-5B8DB03D382F","996B60A4-8698-448F-A35F-79C768B4976B","F0727398-A1F0-47F5-92CF-BB9677FA05FA","38707063-D664-49A0-B2FB-F0666EC532D5","0402FB51-915F-4491-8FA1-553F0D8F7F35","5A35285D-C6A5-4830-97D9-0890A3F33F39","53121F0B-7DA5-4622-AC08-DD4805D53374","6C84E15D-112D-4C04-87C1-937691E296A7","4ECBD7E4-8B18-4331-8A37-07F4D8DCDCA0","3D4B43A2-AD74-4131-A939-D680216EDA6B","B22327BB-C876-4084-BEFA-4D06AE2B2849","2D34C2E9-76B8-49DC-9FCC-39B523CD0EF4","F098174A-AABC-4F95-8193-C29CA85D6188","714713CE-F5E8-4817-835F-99EA27075558","532DCEDE-C300-48C9-9DBA-58A1E02E1632","2F1C117F-2507-446D-8B43-9BD30AC726FB","74DABF7B-1E90-4D21-93D1-802BC208E9C7"],"_MinTextWidth":97,"_MinTextHeight":null,"_WordBreak":"break-all","__serializedExpressions__":["_Position","padding","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)"},"43931":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(101.0,21.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"43932":{"style":{"__isSmartRef__":true,"id":43933},"chunkOwner":{"__isSmartRef__":true,"id":43930},"storedString":"save","_id":"_1370","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"43933":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"43934":{"morph":{"__isSmartRef__":true,"id":43930},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"43935":{"_BorderWidth":1.1840000000000002,"_Fill":{"__isSmartRef__":true,"id":43936},"_BorderRadius":5.2,"_ClipMode":"visible","_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(101.0,21.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"43936":{"stops":[{"__isSmartRef__":true,"id":43937},{"__isSmartRef__":true,"id":43938},{"__isSmartRef__":true,"id":43939},{"__isSmartRef__":true,"id":43940}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"43937":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"43938":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"43939":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"43940":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"43941":{"stops":[{"__isSmartRef__":true,"id":43942},{"__isSmartRef__":true,"id":43943},{"__isSmartRef__":true,"id":43944},{"__isSmartRef__":true,"id":43945}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"43942":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"43943":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"43944":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"43945":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"43946":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"43947":{"sourceObj":{"__isSmartRef__":true,"id":43929},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":43296},"targetMethodName":"doSave","visualConnector":{"__isSmartRef__":true,"id":43948},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"43948":{"submorphs":[{"__isSmartRef__":true,"id":43949}],"scripts":[],"shape":{"__isSmartRef__":true,"id":43956},"derivationIds":[null],"id":"F46012D5-C8BE-4E52-BF98-D052FDAAE17A","eventHandler":{"__isSmartRef__":true,"id":43959},"droppingEnabled":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":43960},{"__isSmartRef__":true,"id":43961}],"con":{"__isSmartRef__":true,"id":43947},"showsMorphMenu":true,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":43962},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"43949":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":43950},"derivationIds":[null],"id":"A2A83C78-09B8-473C-829B-198206D7A9E4","eventHandler":{"__isSmartRef__":true,"id":43955},"droppingEnabled":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":43948},"_Rotation":3.077607197692381,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(201.2,40.2)"},"43950":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":43951},{"__isSmartRef__":true,"id":43952},{"__isSmartRef__":true,"id":43953},{"__isSmartRef__":true,"id":43954}],"_ClipMode":"visible","_BorderWidth":0,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(-12.0,-6.0)","_Extent":"lively.pt(16.0,12.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)"},"43951":{"isAbsolute":true,"x":-12,"y":-6,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"43952":{"isAbsolute":true,"x":-12,"y":6,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"43953":{"isAbsolute":true,"x":4,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"43954":{"isAbsolute":true,"x":-12,"y":-6,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"43955":{"morph":{"__isSmartRef__":true,"id":43949},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"43956":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":43957},{"__isSmartRef__":true,"id":43958}],"_ClipMode":"visible","_BorderWidth":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(200.0,9.0)","_Extent":"lively.pt(480.0,32.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"43957":{"isAbsolute":true,"x":679.4857209639925,"y":9.595948897894004,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"43958":{"isAbsolute":true,"x":201.20421122525056,"y":40.24084224505009,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"43959":{"morph":{"__isSmartRef__":true,"id":43948},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"43960":{"morph":{"__isSmartRef__":true,"id":43948},"index":0,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"43961":{"morph":{"__isSmartRef__":true,"id":43948},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":43949},"markerDirection":"prev","__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"43962":{"morphMenuItems":{"__isSmartRef__":true,"id":43963}},"43963":{"varMapping":{"__isSmartRef__":true,"id":43964},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = this.world();\n var items = [\n ['edit converter', function() {\n var source = con.converterString ||\n 'function converter(value) {\\n return value\\n}',\n editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n editor.doitContext = con;\n connect(editor, 'savedTextString', con, 'converterString', {updater:\n function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n connect(editor, 'savedTextString', world, 'alertOK', {converter:\n function() { return 'setting new converter' }})\n editor.applyStyle({syntaxHighlighting: true,\n fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n var title = con.targetObj.name && con.sourceObj.name ?\n 'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(),\n visualConnector.bounds().bottomCenter())\n }],\n ['hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['cancel', function() {}],\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":43969},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"43964":{"this":{"__isSmartRef__":true,"id":43948},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":43965}},"43965":{"$super":{"__isSmartRef__":true,"id":43966}},"43966":{"varMapping":{"__isSmartRef__":true,"id":43967},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":43968},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"43967":{"obj":{"__isSmartRef__":true,"id":43948},"name":"morphMenuItems"},"43968":{},"43969":{},"43970":{"morph":{"__isSmartRef__":true,"id":43929},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"43971":{"centeredHorizontal":false,"moveHorizontal":true},"43972":{"submorphs":[{"__isSmartRef__":true,"id":43973}],"scripts":[],"id":"2E01A638-5FE3-46B7-B0C0-3113308313E4","shape":{"__isSmartRef__":true,"id":43978},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":43979},"lighterFill":{"__isSmartRef__":true,"id":43984},"label":{"__isSmartRef__":true,"id":43973},"name":"openTestsButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":43989},"attributeConnections":[{"__isSmartRef__":true,"id":43990}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":43991},"derivationIds":[7251,"84054D2E-8176-440D-B413-279956A34FC2","79434046-F834-490E-B705-0CE871D9E8B3","FF38CA79-C0DF-4F2F-8FC3-407571EF6A54","B1D50332-9F4F-4F7C-AC3F-95DC6C73EAA4","5B8D7C39-987A-4849-BFFD-3F316CE03852","F7C30F5C-7270-44B1-ADFF-7473F2012DB0","5142302E-3E9A-476B-AB24-B2448DA6D3E4","FEA3C508-593D-4BC7-B645-8B5630CF2EDE","34DBC442-E1DE-42D7-8C63-BA9A1890C994","4F9067A3-5A5C-4637-A76F-7E590CEE2BDA","ADF74818-537A-4669-A455-9509BA7BD7E5","AFCD7FA7-5429-4B1A-B8B8-AB03C18ABA08","604C352D-0347-4329-A299-EAA3FF90B543","46C5ED11-DE03-428F-A758-5308B3D323B5","7C978B2A-9109-42E1-95C5-A59CC74BD31B","2D34E370-3EA6-48DD-B3A7-FE7EB1CCD78D","A0B7F880-0D72-475C-A002-2EAA7D20C004","1146967F-5295-4931-9637-CF72A6A6D724","775F3066-BB4B-4673-B529-500522EF5165","F01F4895-6DEF-4C26-9CEC-A569AEDD22E6","DDD1C856-9C9F-4CB1-A795-E083B7214E82","51E21302-B2D2-49D0-82D9-D964A6B3C54F","BC9DA8C7-933D-4140-96D3-1E7ADEEC8D69","26FA6101-FD83-4A6D-BA08-839ADCA2E33A"],"owner":{"__isSmartRef__":true,"id":43061},"_ClipMode":"visible","_Rotation":0,"_Scale":0.9940149800149939,"isPressed":false,"layout":{"__isSmartRef__":true,"id":43992},"prevScroll":[0,0],"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(468.5,9.0)","distanceToDragEvent":"lively.pt(72.1,-12.5)"},"43973":{"submorphs":[],"scripts":[],"id":"56877E41-0F88-4736-AA00-D635364A7904","shape":{"__isSmartRef__":true,"id":43974},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":97,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":43972},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":43975}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":43977},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[7252,"0A0A6CB1-BD92-4F39-A425-2EB3D2D4CBA2","CB475566-05CE-43E2-B04D-EE32BC4CB718","6BB077CE-92E6-47BE-BE88-9A48488562D1","9E359973-2FDB-417B-BB06-AB34D52BD310","58F098ED-A190-44F2-B73E-80802B2CF2F6","AEA84B35-B349-4307-92C6-8F229705DFC2","A677CADF-24FF-4177-9A3A-FE9AAE7D60FE","0F875AD9-E54C-4735-9BA9-7B89574233A1","840EBE92-3BC2-42EC-819E-3CD002576490","78C4969D-2C33-4B17-9027-89B411B9F496","C9A3D112-C2BC-43A3-A3CA-A68F41A0E4CF","78CF2F1A-6697-4D03-AB2B-CAF862B4EDD6","8B416918-CA4B-46D1-8A3C-40F8A754E44D","01510710-A85B-4054-B0ED-7F2F02434806","8ABD23FB-E90C-4EEB-BF53-DF3C6ACF2BD4","87607080-4A72-484D-A5BD-5F67D468505F","F0E39FE9-F71C-4587-B25A-C4D2C29FE579","BA2AB73A-3967-4F9E-8828-8A638E521B31","5ECC4D2F-4996-403F-AF14-BD1F4BB720F6","54B08934-6893-4B80-8625-B60ABCE9CBC6","4808CF23-17EA-43D8-AE10-DAB21C642FA8","0813DF8A-CC9E-435B-B5A1-DF68BF226F37","047C4EE2-26A1-4AA7-9CE9-E8FF9A9D863B","728334BD-34B0-44FA-A778-2696AA82FEFA"],"_MinTextWidth":97,"_MinTextHeight":null,"_WordBreak":"break-all","__serializedExpressions__":["_Position","padding","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)"},"43974":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(101.0,21.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(2,2,0,0)"},"43975":{"style":{"__isSmartRef__":true,"id":43976},"chunkOwner":{"__isSmartRef__":true,"id":43973},"storedString":"Tests","_id":"_1371","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"43976":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"43977":{"morph":{"__isSmartRef__":true,"id":43973},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"43978":{"_BorderWidth":1.1840000000000002,"_Fill":{"__isSmartRef__":true,"id":43979},"_BorderRadius":5.2,"_ClipMode":"visible","_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(101.0,21.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"43979":{"stops":[{"__isSmartRef__":true,"id":43980},{"__isSmartRef__":true,"id":43981},{"__isSmartRef__":true,"id":43982},{"__isSmartRef__":true,"id":43983}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"43980":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"43981":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"43982":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"43983":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"43984":{"stops":[{"__isSmartRef__":true,"id":43985},{"__isSmartRef__":true,"id":43986},{"__isSmartRef__":true,"id":43987},{"__isSmartRef__":true,"id":43988}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"43985":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"43986":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"43987":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"43988":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"43989":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"43990":{"sourceObj":{"__isSmartRef__":true,"id":43972},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":43061},"targetMethodName":"openPartTestRunner","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"43991":{"morph":{"__isSmartRef__":true,"id":43972},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"43992":{"moveHorizontal":true},"43993":{"submorphs":[{"__isSmartRef__":true,"id":43994},{"__isSmartRef__":true,"id":44001}],"scripts":[],"id":"F1C03FD2-1264-4615-AF98-52895441F4A3","shape":{"__isSmartRef__":true,"id":44004},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":44010},"lighterFill":{"__isSmartRef__":true,"id":44015},"label":{"__isSmartRef__":true,"id":43994},"name":"MagnifierButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":44020},"attributeConnections":[{"__isSmartRef__":true,"id":44023}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":44024},"derivationIds":[2588,"22797D34-67DE-4A06-81F0-4DF0A87ADBBC","81CB4C12-BCF0-4097-8B6D-D9419046367A","0767A57D-9BB2-48C6-9654-753D2B9D00A6","42871246-6725-4E41-A2C1-5A5BCF041097","BCE6E775-B5DF-4D6B-9F06-CDC02C1B1D0F","797EC165-A639-42D9-A059-669F6BEB92A7","FA498EFD-E50E-4CE0-9FA8-9AE2E8AE9580","4B68C371-CB37-45B4-910A-611E5FFC23DD","94E374B9-7ED4-4E39-96F1-6FD4E7AC3428","34D63515-7CC7-43FB-B7BB-87AFCA377D63","7E0B172C-0AF5-4C6E-B184-25A8FAE4FAB8","12239D52-D3D3-4713-BC3E-F0B95C488CB7","72559D92-4616-45A9-A0F2-72BA4147C0FB","E86C7328-AF24-4881-84AF-B7C7CEFEAE14","22D731CF-38F0-41CC-B125-74D2842ED847","B58A1A30-782E-4675-A276-2C01D35BEC70","ACEABA6D-071C-46C2-A325-BE30189AA45F","686443AE-DCDC-4998-8A39-48BC57D64FDC","8D660766-7C93-404C-9D92-B12CBF59A3CE"],"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":43061},"_Rotation":0,"_Scale":0.9920279440699439,"highlightRectangle":{"__isSmartRef__":true,"id":44025},"isPressed":false,"prevScroll":[0,0],"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":44099},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(424.5,8.5)","distanceToDragEvent":"lively.pt(37.9,-7.9)"},"43994":{"submorphs":[],"scripts":[],"id":"95267C2F-5304-40D7-BD36-6B94032871D7","shape":{"__isSmartRef__":true,"id":43995},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":24,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":43993},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":43996},{"__isSmartRef__":true,"id":43998}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":44000},"_HandStyle":"default","_PointerEvents":"none","derivationIds":[2589,"024C5ADE-C4CF-4E8E-BEC5-F93AD4839702","A2CC4D56-B9D8-4A48-B6FF-DDDD85ACDC2E","5AC5C4DE-00B0-43DB-B7F1-765674CE818B","750A11C6-766E-4B48-AE32-D71DE811EB4A","66A7B56E-A94E-44AE-8AED-C0C1B07554D4","CA8596D3-2D4F-453B-BE1B-DCEC8F85389B","4D7DC32F-79CB-4AF8-8B21-AB4F1809D4A8","439DE430-7651-470E-97D8-00E7F96B04DA","DAC920E6-217B-4515-AC09-2F9DCBA7375C","BD48C003-0502-451D-B6AA-7369FF3D1030","C3B8F4EA-3F44-47F4-B569-A0D5AB263BA0","BF7F0FA3-3F2A-4EEF-9687-BE2B0635DF13","3D7AEAC1-C9DD-4941-BA46-16F6783F5699","E04A78F9-3D6E-403F-BA8D-2583FCFFCE53","47E1F29B-6896-467D-8654-CA18929AE57A","509D86FF-5400-4374-BE79-90F0A7E3E90C","C7E53EE0-065A-4C59-8D13-311566722BB7","BA078BAC-7263-4B10-AFD3-3C4EA0DD8707","BCFE28D1-A115-453E-9116-EECC8FE1D50F"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":24,"_MinTextHeight":null,"_FontSize":10,"_WordBreak":"break-all","__serializedExpressions__":["_Position","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"43995":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(24.0,24.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"43996":{"style":{"__isSmartRef__":true,"id":43997},"chunkOwner":{"__isSmartRef__":true,"id":43994},"storedString":"","_id":"_1372","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"43997":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"43998":{"style":{"__isSmartRef__":true,"id":43999},"chunkOwner":{"__isSmartRef__":true,"id":43994},"storedString":"","_id":"_1373","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"43999":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"44000":{"morph":{"__isSmartRef__":true,"id":43994},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"44001":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":44002},"derivationIds":[null,"29E543E0-AE93-493A-A694-FC1C330D0544","F0366E4C-E97F-4C77-BEE4-340A0668ADD5","347F6028-5092-4F54-9A34-3EFF3FF0B815","BF7387E7-BCD7-4A5B-B9D2-C14ECF59EFCA","85BA370B-966E-41F7-8C2F-F3A926EC2AA2","1652172B-339A-43A1-9589-70E68B35A28E","705524F7-129B-4102-834E-2A1A45985BB5","5707DF70-CD77-4D53-96ED-5A0AEB227FB7","257E62CE-C668-4317-B5B7-8D394BDC3F6C","2DD4BEA5-E85A-4CD0-953E-9EB2E0735654","BB96B696-7BD4-44C4-9D60-B1551B89D6FA","FCAABC48-FBAF-4E12-8BC9-AC4ACB5A167B","EB81C4D7-5BD8-4DAC-BD70-8675E2338AAC","1DBAE3FF-B2F6-4348-8E06-81139C138D6E","49E7D450-EF74-4E94-B33B-B888D952F3BD","F0B267C4-54BA-4E6F-BFDD-4B047F4FF41A","36B8611D-B449-4F6E-8D0F-B5FD6406D45D","779DB518-01BD-4D32-AD65-BFED801E5D06"],"id":"6CCB1CE9-898A-4B8A-871A-9391500E9082","eventHandler":{"__isSmartRef__":true,"id":44003},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":43993},"name":"leftpointing_magnifying_glass.png","isBeingDragged":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(-3.0,0.0)","distanceToDragEvent":"lively.pt(39.9,-9.0)"},"44002":{"_ImageURL":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAAAABAAAAAQBPJcTWAAAALnRFWHRUaXRsZQBMRUZULVBPSU5USU5HIE1BR05JRllJTkcgR0xBU1MgKFUrMUY1MEQpw88haQAAABV0RVh0QXV0aG9yAEFuZHJldyBNYXJjdXNl5zc3gwAAAC90RVh0U29mdHdhcmUAaW5mby5maWxlZm9ybWF0LmRhdGEuVW5pY29kZVBuZ1NlcnZsZXRoAX8wAAAAQ3RFWHREZXNjcmlwdGlvbgBodHRwOi8vd3d3LmZpbGVmb3JtYXQuaW5mby9pbmZvL3VuaWNvZGUvMWY1MGQvaW5kZXguaHRtk2hNQgAAADt0RVh0Q29weXJpZ2h0AGh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL2xpY2Vuc2VzL2J5LW5jLXNhLzIuMC9siJKDAAAIDklEQVR42u1daWxVRRQeCi0tIqCAQCTIUtEIGlk0ilqEkEbiQhSKGAyCooIIggsiQuMWZNGwVMUFNIhKZBMobZClgK1FwAU3wIpSREDcUFZFEM/JOzf3vPHet9ze1/eYe77k+zNzl5nz3ZlzZntPKYFAcHojDXimmKH6cQbwZuBM4HLgx8A9wBPAU8BjwJ3ADcDFwMnArsCaYjr/0BB4DwlwjAwfL38DzgX2AdYWk3pDJnAM8E/NuN8BpwEHAq8DXgpsCswANgN2APak/BeBu7T7sQX1A9YQE8fuDwYAf2BG/JrEaefxmSjaeOAO9syNwBwxd2Q0o/7fMhr6h8Fx+oBIX346cATwF/aON6Qbc0ZH4G4y0lHgOGAdD8/Be/KAs4AFwKsdrqkHnAA8Tu8rAzYWCWz0Bh5hraKTT11fL+AH1FXlA8/SrsEu61fmW9qLFEqNAv5LRsEw9twEvKMzcAvwJ3LoHG2AW+n9B4HdgixGHhNjiccuKlbUp9aC7yoGnqflraa8A8C2QRTjMvIVaITyKI61BjnkqiILWEjvPAwcxvLqAj+nvAqH7s1oNAfupcpjeNskhnvQOQ/xYfxQCziHRVl3sjxsNfspvYSuNR4Ywn5ClT5CA7lYkUPRU0YVy4CivkVlOE7TKxa6AP+ivKlBEORe9nUO8XD/QhWay6oqmlK3dYoirTYs70FK/wd4ocli1KVIByu7XXmb9BsOPEmj76riSfZxbAM2oPQMmqLB9GUmC/I0M8AtHp9xCd3/rM8fCHISy+vH0ruaOi3Coyqv6ETPKPSpXEOZ4X9XoSl+y89sovTNJgoyklW8rw8+aKFP5apFo3SrbMNcWsnFpgmylkU19R3yY4mc0mk0j88Z62PZ5jHDV7DQugE5dkx/3CQxzlb2qt6aCF1HtJH6BHoGju4v97F8+Sp8zeRGlldCaZtMEmQAq+zICL5hpUvrwfXy19gzZvhcvj6aILNZ3ij2ETQzRZA3WWU7RrgOfQsu05YCnyLxcFS9h91fTlMgfqKdJsg6lteBpQ8wRZASVqmmUa7txvwEJ/qe8SoxGxYymK+wpnMsNGHpxviRbVShkzEatAb5iEHUSrqzQVuiUMkMf5IFGWnM/71giiAHqEL7U7iMf2gtkk/B7/M51E4qMlklvzwNymgxl+VvobQPTRCkMavkDpaelkJlbOkgyDUsv0LZu19Oe/A++BBLvyIB0ZJX9HIQhHdZBymt1BQfso9V1Jorag28PUXKN8tBkHqUV4elLTJFkM9YpVqzllOcAmXDiG6vJsZhlt+Kpc80RZBiF2eJK4fZSS5bd4fWUcTyc1n6Y6YIMpVVii+LTgFOTHLZNjoIMpTlT2fpXUwRpIcKn021gHuwcDN0ss525Cnn3fIt2DXfK3vPljGbHtK1gdcFmkNdkYTK4gz0Tgcxytg1fI6rUBkGvubA54Ta0lTFK9VYFhS/xKV18PEHX3MfYpogfPUND9DwuamFlP5oNZXlZRcxlmsDWutsCl/aNQYZWhfBnTlOceNsLq459E1wyyhwEeNvFb7ZusClrEbhNlbJoyp8Y3UejehxPWS08v/MBrbIlcr92BvfwZit7KMKOC3f3FRBcBC2mRlBnz0dpOzN17gvqrdP7+2p7PkoJz7Hrq2pCfeqMhzXasbI1/KHa/m4Y93reRFcU1mrIh8IXaLCJzpnsLyfKRozHrNZpbFF9NHyx2pGw2tWAZ8H3gW8UjmvvWdSlIQb3raq6Kdzp6vwBbOhWn5/FRCggy9lFcdN1521ax5Q0Y9B41o7nkn8Rv1/gSkS0T/crb0vV4Uv465UAUNjLerCkfAN2jUXKef19apwnYP4AynK4tfNU6m1ZlMtaK/stQZrLXu0Q6g6OIpTjoVfAK/Xnp1GDp1fhy0th1rwHLqmEbXYHkEQJYcGitwouG2onoPx0Ne8q+yDmtGIs8lPUFCgH/Q5R4XPQlt8nfKzKB9/ouNHLT/ddFEw7t+uGQbPko90GY+gOHgcoRc5+YeBj1DY3JPyGrq8qy6JdMhBDAyz8azhZLq2JRuP4HE3a6f8KhNH7k4Dt9UORqoE3qGqfiAUo7L7lX1kjfMd4H0UHGTTFMpLzH8VUAS3iN2znsQ1GugvprCvkvMYdSFouBYxPu98FdoKusblmZXUoiz0J1FuYgPUfCrXAof7S4MgimXIRVH8wwHq5vBLna9Cs8ULyEgVWrCg8zAJ79TtjGDXjSMx5kd4Fk7XB+a3uq5Sob1QfoW86JzxR2zcjjyj3/mKTafUpCAi2nPLVcB+QA379YdoGuWEBxEwars1hujIOpZQQS1jWhzvKXeIDAOBRhT+YgQ2kcYK71NLwgOauAKJ50jwpFW8J2jHKHvLKwYBuENmVxyibAiqKIlCOkVY1g8HZHkQ5SOXeTaBR9RW9vT7agp34xVlo4jiL7KoG0TjriCR4hVlk0r8EYrAtZQiZa+14wx1qzhF2Syi+C+K5VOWko8RUVJIlPc8irIhKCP6ZItSqeJbh8kSU/qHDCbKMuZT4hFlrpgxcaIUUcuJR5TdYsLEiFLIQuLMOESZJOZLnCjLyMhrabqkZRRR1qsArDQmW5SlZOxPVWhJ2E2UNRJlVQ/wi19CRv9WhXbJoCh8zb+IujVBNYqymIyPP55ZxsQoVvK78kkBrp28rXVThSJGcoE7YZ5RoTMlc8SBpw7kj2IEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgSAZ+A+0ucC4BysctgAAAABJRU5ErkJggg==","_NodeClass":["image"],"_NodeId":"29E543E0-AE93-493A-A694-FC1C330D0544","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(29.0,29.0)","_Padding":"lively.rect(0,0,0,0)"},"44003":{"morph":{"__isSmartRef__":true,"id":44001},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"44004":{"_BorderWidth":1.1840000000000002,"_Fill":{"__isSmartRef__":true,"id":44005},"_BorderRadius":5.2,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(24.0,24.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"44005":{"stops":[{"__isSmartRef__":true,"id":44006},{"__isSmartRef__":true,"id":44007},{"__isSmartRef__":true,"id":44008},{"__isSmartRef__":true,"id":44009}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"44006":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"44007":{"offset":0.3,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"44008":{"offset":0.7,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"44009":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(204,204,204)"},"44010":{"stops":[{"__isSmartRef__":true,"id":44011},{"__isSmartRef__":true,"id":44012},{"__isSmartRef__":true,"id":44013},{"__isSmartRef__":true,"id":44014}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"44011":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"44012":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"44013":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"44014":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"44015":{"stops":[{"__isSmartRef__":true,"id":44016},{"__isSmartRef__":true,"id":44017},{"__isSmartRef__":true,"id":44018},{"__isSmartRef__":true,"id":44019}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"44016":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"44017":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"44018":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"44019":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"44020":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"ScriptableButton","comment":"Has a script that is called on button press","changes":[{"__isSmartRef__":true,"id":44021}],"revisionOnLoad":154251,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"44021":{"date":{"__isSmartRef__":true,"id":44022},"author":"robertkrahn","message":"no comment","id":"0366C0A2-0C8E-4AEB-AAC3-120434134545"},"44022":{"isSerializedDate":true,"string":"Sat Apr 21 2012 14:10:10 GMT+0200 (CEST)"},"44023":{"sourceObj":{"__isSmartRef__":true,"id":43993},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":43993},"targetMethodName":"onFire","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"44024":{"morph":{"__isSmartRef__":true,"id":43993},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"44025":{"submorphs":[],"scripts":[],"id":"364FF344-E489-461B-BC8C-ED45E4823ED4","shape":{"__isSmartRef__":true,"id":44026},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"HighlightRectangle","partsBinMetaInfo":{"__isSmartRef__":true,"id":44027},"eventHandler":{"__isSmartRef__":true,"id":44068},"attributeConnections":[{"__isSmartRef__":true,"id":44069},{"__isSmartRef__":true,"id":44070},{"__isSmartRef__":true,"id":44071}],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","FE91EA31-D8AE-461B-8A49-95DA5FBAE5B4","F38439A3-2F4E-4AC2-BF73-2633C00B1393","6748F5B5-2284-4748-A6EE-F1A261CBAD0B","6FECB598-D130-4242-BF1B-E18767608129","0B23F218-078F-4912-A262-31B957885F41","C56BA290-B836-4946-B4EF-DBB6FBA2368C","61176BAF-CFE6-4F2C-9F0A-971AAD6595A1","CB4127B2-0AA5-4B50-9978-F1FF39924A82","113050BB-CF0E-4193-91C6-9C25FC857EE8","EFF939E4-317B-4662-943F-77A6E6F65BD0","AA288E7F-3972-4F0D-87DD-61E4BD9C9C97","903E8C60-1158-42D5-85D2-DF134DA6CEC1","28FD6210-A549-4A11-9178-04E77FF556C0","B3312E29-D786-469F-865E-91FD69475A52","D947A1C1-DCBE-4485-A33D-DF549F6978E0","56CE0E60-45BE-43FF-9C6C-296D8AC326B6","CC61E3F8-8C8D-4F24-A591-023D3C88DEC8"],"partTests":{"__isSmartRef__":true,"id":44073},"_ClipMode":"visible","moved":true,"isBeingDragged":false,"prevScroll":[0,0],"#startLetters":"","eventsAreDisabled":false,"_HandStyle":"default","_PointerEvents":"auto","_Rotation":0,"_Scale":1.0060210561262526,"owner":null,"magnifierButton":{"__isSmartRef__":true,"id":43993},"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":44078},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(15.0,381.0)","distanceToDragEvent":"lively.pt(44.0,-14.0)"},"44026":{"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":0.2597,"_BorderStyle":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(1143.7,530.6)","_BorderColor":"Color.rgb(204,0,0)","_Fill":"Color.rgb(58,0,255)","_Padding":"lively.rect(0,0,0,0)"},"44027":{"partsSpaceName":"PartsBin/Tools","comment":"A rectangle which highlights the object under the first hand of the world","migrationLevel":4,"partName":"HighlightRectangle","changes":[{"__isSmartRef__":true,"id":44028},{"__isSmartRef__":true,"id":44030},{"__isSmartRef__":true,"id":44032},{"__isSmartRef__":true,"id":44034},{"__isSmartRef__":true,"id":44036},{"__isSmartRef__":true,"id":44038},{"__isSmartRef__":true,"id":44040},{"__isSmartRef__":true,"id":44042},{"__isSmartRef__":true,"id":44044},{"__isSmartRef__":true,"id":44046},{"__isSmartRef__":true,"id":44048},{"__isSmartRef__":true,"id":44050},{"__isSmartRef__":true,"id":44052},{"__isSmartRef__":true,"id":44054},{"__isSmartRef__":true,"id":44056},{"__isSmartRef__":true,"id":44058},{"__isSmartRef__":true,"id":44060},{"__isSmartRef__":true,"id":44062},{"__isSmartRef__":true,"id":44064},{"__isSmartRef__":true,"id":44066}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"44028":{"date":{"__isSmartRef__":true,"id":44029},"author":"timfelgentreff","message":"no comment","id":"3DB7DB40-210A-4BED-91FD-9287005703EC"},"44029":{"isSerializedDate":true,"string":"Thu May 24 2012 17:04:54 GMT+0200 (CEST)"},"44030":{"date":{"__isSmartRef__":true,"id":44031},"author":"tessi","message":"no comment","id":"23D7AA12-66A9-4C3B-B494-131256C291AC"},"44031":{"isSerializedDate":true,"string":"Thu May 24 2012 16:57:13 GMT+0200 (CEST)"},"44032":{"date":{"__isSmartRef__":true,"id":44033},"author":"tessi","message":"no comment","id":"2C30B7CA-388F-4F51-B4CF-A2E50E381148"},"44033":{"isSerializedDate":true,"string":"Thu May 24 2012 16:23:11 GMT+0200 (CEST)"},"44034":{"date":{"__isSmartRef__":true,"id":44035},"author":"tessi","message":"diable events","id":"7C1F71A3-FDAC-470A-B9A9-E1F2C9FEF18E"},"44035":{"isSerializedDate":true,"string":"Thu May 24 2012 14:46:08 GMT+0200 (CEST)"},"44036":{"date":{"__isSmartRef__":true,"id":44037},"author":"tessi","message":"no comment","id":"01996A33-11BC-4C15-96D7-B7D219E2E961"},"44037":{"isSerializedDate":true,"string":"Thu May 24 2012 14:39:50 GMT+0200 (CEST)"},"44038":{"date":{"__isSmartRef__":true,"id":44039},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"44039":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (CEST)"},"44040":{"date":{"__isSmartRef__":true,"id":44041},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"44041":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (CEST)"},"44042":{"date":{"__isSmartRef__":true,"id":44043},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"44043":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"44044":{"date":{"__isSmartRef__":true,"id":44045},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"44045":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"44046":{"date":{"__isSmartRef__":true,"id":44047},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"44047":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"44048":{"date":{"__isSmartRef__":true,"id":44049},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"44049":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"44050":{"date":{"__isSmartRef__":true,"id":44051},"author":"tessi","message":"no comment","id":"4B982A01-25B3-455A-848D-89C2C3C471D7"},"44051":{"isSerializedDate":true,"string":"Thu May 24 2012 13:58:01 GMT+0200 (CEST)"},"44052":{"date":{"__isSmartRef__":true,"id":44053},"author":"tessi","message":"no comment","id":"2FD6CB7B-3BC7-4666-98B4-AACF1001954D"},"44053":{"isSerializedDate":true,"string":"Thu May 24 2012 14:07:32 GMT+0200 (CEST)"},"44054":{"date":{"__isSmartRef__":true,"id":44055},"author":"tessi","message":"no comment","id":"09CF5ECF-2C87-4B66-A164-39848628596F"},"44055":{"isSerializedDate":true,"string":"Thu May 24 2012 15:34:59 GMT+0200 (CEST)"},"44056":{"date":{"__isSmartRef__":true,"id":44057},"author":"tessi","message":"no comment","id":"252A3EB5-DB00-4CF9-BF38-2927DD1C5229"},"44057":{"isSerializedDate":true,"string":"Thu May 24 2012 16:34:29 GMT+0200 (CEST)"},"44058":{"date":{"__isSmartRef__":true,"id":44059},"author":"tessi","message":"no comment","id":"81534551-62C1-4FC9-96CB-A5AC6642CA1E"},"44059":{"isSerializedDate":true,"string":"Thu May 24 2012 16:45:49 GMT+0200 (CEST)"},"44060":{"date":{"__isSmartRef__":true,"id":44061},"author":"tessi","message":"no comment","id":"5125DE3A-D50E-4621-8490-F3A9D99C2C4C"},"44061":{"isSerializedDate":true,"string":"Thu May 24 2012 16:47:20 GMT+0200 (CEST)"},"44062":{"date":{"__isSmartRef__":true,"id":44063},"author":"tessi","message":"no comment","id":"C81A2FBF-CB0B-4A0B-9D63-F9AEDFCB5DA6"},"44063":{"isSerializedDate":true,"string":"Thu May 24 2012 16:51:06 GMT+0200 (CEST)"},"44064":{"date":{"__isSmartRef__":true,"id":44065},"author":"tessi","message":"no comment","id":"DC8EF5EC-7563-45B6-816D-20E2DC218525"},"44065":{"isSerializedDate":true,"string":"Thu May 24 2012 16:52:10 GMT+0200 (CEST)"},"44066":{"date":{"__isSmartRef__":true,"id":44067},"author":"timfelgentreff","message":"no comment","id":"E7515DFB-DE7D-4E1F-A2C3-85166DCE4942"},"44067":{"isSerializedDate":true,"string":"Thu May 24 2012 16:59:39 GMT+0200 (CEST)"},"44068":{"morph":{"__isSmartRef__":true,"id":44025},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"44069":{"sourceObj":{"__isSmartRef__":true,"id":44025},"sourceAttrName":"onMouseMove","targetObj":{"__isSmartRef__":true,"id":44025},"targetMethodName":"updateOnMove","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"44070":{"sourceObj":{"__isSmartRef__":true,"id":44025},"sourceAttrName":"onMouseUp","targetObj":{"__isSmartRef__":true,"id":43993},"targetMethodName":"removeHighlighting","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"44071":{"sourceObj":{"__isSmartRef__":true,"id":44025},"sourceAttrName":"onMouseUp","targetObj":{"__isSmartRef__":true,"id":43061},"targetMethodName":"setTarget","converterString":"function () {\n return this.sourceObj.morphUnderCursor();\n }","updaterString":null,"varMapping":{"__isSmartRef__":true,"id":44072},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"44072":{"source":{"__isSmartRef__":true,"id":44025},"target":{"__isSmartRef__":true,"id":43061}},"44073":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":44074}},"44074":{"test01IsMorph":{"__isSmartRef__":true,"id":44075}},"44075":{"varMapping":{"__isSmartRef__":true,"id":44076},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":44077},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"44076":{"this":{"__isSmartRef__":true,"id":44073}},"44077":{},"44078":{"update":{"__isSmartRef__":true,"id":44079},"updateOnMove":{"__isSmartRef__":true,"id":44083},"bringToFront":{"__isSmartRef__":true,"id":44087},"morphUnderCursor":{"__isSmartRef__":true,"id":44095}},"44079":{"varMapping":{"__isSmartRef__":true,"id":44080},"source":"function update(morphUnderCursor) {\n if (morphUnderCursor === this.magnifierButton ||\n this.magnifierButton.submorphs.include(morphUnderCursor)) {\n morphToHighlight = this.magnifierButton.currentTarget();\n } else {\n morphToHighlight = morphUnderCursor;\n }\n\n if (morphToHighlight && morphToHighlight.world()) {\n this.setPosition(morphToHighlight.getPositionInWorld());\n this.setExtent(morphToHighlight.getExtent());\n }\n}","funcProperties":{"__isSmartRef__":true,"id":44081},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"44080":{"this":{"__isSmartRef__":true,"id":44025}},"44081":{"timestamp":{"__isSmartRef__":true,"id":44082},"user":"lauritz","tags":[]},"44082":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:29:58 GMT+0200 (CEST)"},"44083":{"varMapping":{"__isSmartRef__":true,"id":44084},"source":"function updateOnMove() {\n this.update(this.morphUnderCursor());\n this.bringToFront();\n}","funcProperties":{"__isSmartRef__":true,"id":44085},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"44084":{"this":{"__isSmartRef__":true,"id":44025}},"44085":{"timestamp":{"__isSmartRef__":true,"id":44086},"user":"lauritz","tags":[]},"44086":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:18:33 GMT+0200 (CEST)"},"44087":{"varMapping":{"__isSmartRef__":true,"id":44088},"source":"function bringToFront() {\n this.renderContext().morphNode.style.zIndex= 1000;\n}","funcProperties":{"__isSmartRef__":true,"id":44093},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"44088":{"this":{"__isSmartRef__":true,"id":44025},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":44089}},"44089":{"$super":{"__isSmartRef__":true,"id":44090}},"44090":{"varMapping":{"__isSmartRef__":true,"id":44091},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":44092},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"44091":{"obj":{"__isSmartRef__":true,"id":44025},"name":"bringToFront"},"44092":{},"44093":{"timestamp":{"__isSmartRef__":true,"id":44094},"user":"lauritz","tags":[]},"44094":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:12:09 GMT+0200 (CEST)"},"44095":{"varMapping":{"__isSmartRef__":true,"id":44096},"source":"function morphUnderCursor() {\n var that = this,\n world = lively.morphic.World.current(); \n \n return world.morphsContainingPoint(world.firstHand().getPosition()).detect(\n function(ea) {\n return !ea.isPlaceholder &&\n !ea.isHalo &&\n (!ea.owner || !ea.owner.isHalo) &&\n !(ea === that);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":44097},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"44096":{"this":{"__isSmartRef__":true,"id":44025}},"44097":{"timestamp":{"__isSmartRef__":true,"id":44098},"user":"lauritz","tags":[]},"44098":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:18:36 GMT+0200 (CEST)"},"44099":{"onFire":{"__isSmartRef__":true,"id":44100},"removeHighlighting":{"__isSmartRef__":true,"id":44104},"onMouseMove":{"__isSmartRef__":true,"id":44108},"onMouseOut":{"__isSmartRef__":true,"id":44116},"reset":{"__isSmartRef__":true,"id":44124},"isTracking":{"__isSmartRef__":true,"id":44128},"isHighlighting":{"__isSmartRef__":true,"id":44132},"currentTarget":{"__isSmartRef__":true,"id":44136}},"44100":{"varMapping":{"__isSmartRef__":true,"id":44101},"source":"function onFire() {\n var hand = lively.morphic.World.current().firstHand(),\n highlight = this.highlightRectangle,\n that = this;\n\n if (this.isTracking()) {\n this.removeHighlighting();\n } else {\n this.world().addMorph(highlight);\n hand.highlightConnection = connect(hand, \"scrollFocusMorph\", highlight, \"update\");\n highlight.bringToFront();\n if (!this.currentTarget() || !this.currentTarget().world()) {\n highlight.setExtent(pt(0,0));\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":44102},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"44101":{"this":{"__isSmartRef__":true,"id":43993}},"44102":{"timestamp":{"__isSmartRef__":true,"id":44103},"user":"lauritz","tags":[]},"44103":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:40:51 GMT+0200 (CEST)"},"44104":{"varMapping":{"__isSmartRef__":true,"id":44105},"source":"function removeHighlighting() {\n var hand = this.world().firstHand();\n \n if (this.highlightRectangle) {\n this.highlightRectangle.remove();\n }\n \n hand.attributeConnections.removeAt(\n hand.attributeConnections.indexOf(hand.highlightConnection));\n hand.highlightConnection = null;\n}","funcProperties":{"__isSmartRef__":true,"id":44106},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"44105":{"this":{"__isSmartRef__":true,"id":43993}},"44106":{"timestamp":{"__isSmartRef__":true,"id":44107},"user":"lauritz","tags":[]},"44107":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:20:30 GMT+0200 (CEST)"},"44108":{"varMapping":{"__isSmartRef__":true,"id":44109},"source":"function onMouseMove(evt) {\n var target = this.currentTarget();\n if (target && target.world() && !this.isHighlighting()) {\n this.highlightRectangle.update(target);\n this.world().addMorph(this.highlightRectangle);\n this.highlightRectangle.bringToFront();\n this.targetHighlight = this.highlightRectangle;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":44114},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"44109":{"this":{"__isSmartRef__":true,"id":43993},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":44110}},"44110":{"$super":{"__isSmartRef__":true,"id":44111}},"44111":{"varMapping":{"__isSmartRef__":true,"id":44112},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":44113},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"44112":{"obj":{"__isSmartRef__":true,"id":43993},"name":"onMouseMove"},"44113":{},"44114":{"timestamp":{"__isSmartRef__":true,"id":44115},"user":"lauritz","tags":[]},"44115":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:25:52 GMT+0200 (CEST)"},"44116":{"varMapping":{"__isSmartRef__":true,"id":44117},"source":"function onMouseOut() {\n if (this.isHighlighting()) {\n if (!this.isTracking()) {\n this.targetHighlight.remove();\n }\n delete this.targetHighlight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":44122},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"44117":{"this":{"__isSmartRef__":true,"id":43993},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":44118}},"44118":{"$super":{"__isSmartRef__":true,"id":44119}},"44119":{"varMapping":{"__isSmartRef__":true,"id":44120},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":44121},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"44120":{"obj":{"__isSmartRef__":true,"id":43993},"name":"onMouseOut"},"44121":{},"44122":{"timestamp":{"__isSmartRef__":true,"id":44123},"user":"lauritz","tags":[]},"44123":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:21:57 GMT+0200 (CEST)"},"44124":{"varMapping":{"__isSmartRef__":true,"id":44125},"source":"function reset() {\n this.highlightRectangle.attributeConnections = [];\n \n connect(rect, \"onMouseMove\", this.highlightRectangle, \"updateOnMove\")\n connect(rect, \"onMouseUp\", this, \"removeHighlighting\")\n connect(rect, \"onMouseUp\", this.owner, \"setTarget\",\n {converter: function () {\n return this.sourceObj.morphUnderCursor();\n }\n })\n}","funcProperties":{"__isSmartRef__":true,"id":44126},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"44125":{"this":{"__isSmartRef__":true,"id":43993}},"44126":{"timestamp":{"__isSmartRef__":true,"id":44127},"user":"lauritz","tags":[]},"44127":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:20:55 GMT+0200 (CEST)"},"44128":{"varMapping":{"__isSmartRef__":true,"id":44129},"source":"function isTracking() {\n return !!this.world().firstHand().highlightConnection;\n}","funcProperties":{"__isSmartRef__":true,"id":44130},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"44129":{"this":{"__isSmartRef__":true,"id":43993}},"44130":{"timestamp":{"__isSmartRef__":true,"id":44131},"user":"lauritz","tags":[]},"44131":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:11:25 GMT+0200 (CEST)"},"44132":{"varMapping":{"__isSmartRef__":true,"id":44133},"source":"function isHighlighting() {\n return !!this.targetHighlight;\n}","funcProperties":{"__isSmartRef__":true,"id":44134},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"44133":{"this":{"__isSmartRef__":true,"id":43993}},"44134":{"timestamp":{"__isSmartRef__":true,"id":44135},"user":"lauritz","tags":[]},"44135":{"isSerializedDate":true,"string":"Fri Aug 03 2012 14:11:22 GMT+0200 (CEST)"},"44136":{"varMapping":{"__isSmartRef__":true,"id":44137},"source":"function currentTarget() {\n return this.owner.target;\n}","funcProperties":{"__isSmartRef__":true,"id":44138},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"44137":{"this":{"__isSmartRef__":true,"id":43993}},"44138":{"timestamp":{"__isSmartRef__":true,"id":44139},"user":"lauritz","tags":[]},"44139":{"isSerializedDate":true,"string":"Wed Jun 06 2012 18:26:02 GMT+0200 (CEST)"},"44140":{"target":{"__isSmartRef__":true,"id":43061},"selector":"update","args":[],"stopped":false,"tickTime":500,"suspended":false,"__LivelyClassName__":"lively.morphic.TargetScript","__SourceModuleName__":"Global.lively.morphic.Core"},"44141":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(808.0,431.8)","_BorderColor":"Color.rgb(95,94,95)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"44142":{"partsSpaceName":"PartsBin/Basic","comment":"Edit scripts and connections of a specific morph.","migrationLevel":4,"partName":"ObjectEditorPane","changes":[{"__isSmartRef__":true,"id":44143}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"44143":{"date":{"__isSmartRef__":true,"id":44144},"author":"lauritz","message":"Adapted the update behavior on ticks. Reduces the impact of HTML's autoscroll to selected list items."},"44144":{"isSerializedDate":true,"string":"Fri Oct 21 2011 00:39:30 GMT+0200 (CEST)"},"44145":{"morph":{"__isSmartRef__":true,"id":43061},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"44146":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true},"44147":{},"44148":{"displayInitialScript":{"__isSmartRef__":true,"id":44149},"displayJavaScriptSource":{"__isSmartRef__":true,"id":44153},"displaySourceForConnection":{"__isSmartRef__":true,"id":44157},"displaySourceForScript":{"__isSmartRef__":true,"id":44161},"generateSourceForConnection":{"__isSmartRef__":true,"id":44165},"generateSourceForScript":{"__isSmartRef__":true,"id":44169},"generateTargetCode":{"__isSmartRef__":true,"id":44173},"newConnection":{"__isSmartRef__":true,"id":44177},"newScript":{"__isSmartRef__":true,"id":44181},"reset":{"__isSmartRef__":true,"id":44185},"selectChangedContent":{"__isSmartRef__":true,"id":44189},"setTarget":{"__isSmartRef__":true,"id":44193},"sortedConnectionNamesOfObj":{"__isSmartRef__":true,"id":44197},"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":44201},"updateLists":{"__isSmartRef__":true,"id":44205},"onShutdown":{"__isSmartRef__":true,"id":44209},"confirmUnsavedChanges":{"__isSmartRef__":true,"id":44213},"update":{"__isSmartRef__":true,"id":44217},"ensureAnnotationLayer":{"__isSmartRef__":true,"id":44221},"copyToPartsBinWithUserRequest":{"__isSmartRef__":true,"id":44225},"printTags":{"__isSmartRef__":true,"id":44233},"setTag":{"__isSmartRef__":true,"id":44237},"runScript":{"__isSmartRef__":true,"id":44241},"openPartTestRunner":{"__isSmartRef__":true,"id":44245},"hasUnsavedChanges":{"__isSmartRef__":true,"id":44249}},"44149":{"varMapping":{"__isSmartRef__":true,"id":44150},"source":"function displayInitialScript() {\n if (this.scriptList.getList().size() > 1) {\n this.scriptList.preselectItem();\n } else if (this.connectionList.getList().size() > 1) {\n this.connectionList.preselectItem();\n } else {\n this.scriptList.selectAt(0);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":44151},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"44150":{"this":{"__isSmartRef__":true,"id":43061}},"44151":{"timestamp":{"__isSmartRef__":true,"id":44152},"user":"lauritz","tags":[]},"44152":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:13:43 GMT+0100 (CET)"},"44153":{"varMapping":{"__isSmartRef__":true,"id":44154},"source":"function displayJavaScriptSource(jsCode) {\n if (this.scriptPane.hasChanged()) {\n var that = this;\n var callback = function(confirmed) {\n if (confirmed) that.scriptPane.display(jsCode)\n };\n this.confirmUnsavedChanges(callback);\n } else {\n this.scriptPane.display(jsCode);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":44155},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"44154":{"this":{"__isSmartRef__":true,"id":43061}},"44155":{"timestamp":{"__isSmartRef__":true,"id":44156},"user":"lauritz","tags":[]},"44156":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"44157":{"varMapping":{"__isSmartRef__":true,"id":44158},"source":"function displaySourceForConnection(connection) {\n var code = \"\", that = this;\n if (connection === undefined) return;\n if (connection === null) {\n this.sortedConnectionNamesOfObj(this.target).forEach(function(each) {\n code = code.concat(that.generateSourceForConnection(each[1])).concat(\"\\n\\n\");\n });\n code = code.substring(0, code.length - \"\\n\\n\".length - 1);\n } else {\n code = this.generateSourceForConnection(connection);\n }\n this.displayJavaScriptSource(code);\n}","funcProperties":{"__isSmartRef__":true,"id":44159},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"44158":{"this":{"__isSmartRef__":true,"id":43061}},"44159":{"timestamp":{"__isSmartRef__":true,"id":44160},"user":"conradcalmez","tags":[]},"44160":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:59:30 GMT+0100 (CET)"},"44161":{"varMapping":{"__isSmartRef__":true,"id":44162},"source":"function displaySourceForScript(scriptName) {\n var code = \"\",\n that = this;\n if (scriptName === null) {\n this.sortedScriptNamesOfObj(this.target).forEach(function(each) {\n code = code.concat(that.generateSourceForScript(each)).concat(\"\\n\\n\\n\");\n });\n code = code.substring(0, code.length - \"\\n\\n\\n\".length - 1);\n } else {\n code = this.generateSourceForScript(scriptName);\n }\n if (code) this.displayJavaScriptSource(code);\n}","funcProperties":{"__isSmartRef__":true,"id":44163},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"44162":{"this":{"__isSmartRef__":true,"id":43061}},"44163":{"timestamp":{"__isSmartRef__":true,"id":44164},"user":"cschuster","tags":[]},"44164":{"isSerializedDate":true,"string":"Thu Aug 30 2012 08:14:26 GMT+0200 (CEST)"},"44165":{"varMapping":{"__isSmartRef__":true,"id":44166},"source":"function generateSourceForConnection(connection) {\n var c = connection, targetObject = this.target;\n\tif (!c.getTargetObj() || !c.getTargetObj().name || \n\t\t!c.getSourceObj() || !c.getSourceObj().name) return String(c);\n\n\tvar optConfig = []\n\tif (c.converterString)\n\t\toptConfig.push(\"converter: \\n\\t\" + c.converterString)\n\tif (c.updaterString)\n\t\toptConfig.push(\"updater: \\n\\t\" + c.updaterString)\n\treturn Strings.format('connect(%s, \"%s\", %s, \"%s\", {%s});', \n\t\t\tthis.generateTargetCode(targetObject, c.getSourceObj()),\n\t\t\tc.getSourceAttrName(),\n\t\t\tthis.generateTargetCode(targetObject, c.getTargetObj()),\n\t\t\tc.getTargetMethodName(),\n\t\t\toptConfig.join(','));\n\n}","funcProperties":{"__isSmartRef__":true,"id":44167},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"44166":{"this":{"__isSmartRef__":true,"id":43061}},"44167":{"timestamp":{"__isSmartRef__":true,"id":44168},"user":"lauritz","tags":[]},"44168":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"44169":{"varMapping":{"__isSmartRef__":true,"id":44170},"source":"function generateSourceForScript(scriptName) {\n var script = this.target[scriptName],\n annotation = '',\n scriptSource = '',\n tagScript = '';\n\n if (!script) return;\n\n if (script.timestamp && script.user) \n annotation = Strings.format('// changed at %s by %s \\n', script.timestamp, script.user);\n scriptSource = Strings.format('this.addScript(%s)', script.getOriginal());\n tagScript = Strings.format('.tag(%s);', this.printTags(script));\n\n return annotation + scriptSource + tagScript;\n}","funcProperties":{"__isSmartRef__":true,"id":44171},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"44170":{"this":{"__isSmartRef__":true,"id":43061}},"44171":{"timestamp":{"__isSmartRef__":true,"id":44172},"user":"cschuster","tags":[]},"44172":{"isSerializedDate":true,"string":"Thu Aug 30 2012 08:14:45 GMT+0200 (CEST)"},"44173":{"varMapping":{"__isSmartRef__":true,"id":44174},"source":"function generateTargetCode(baseObject, targetObject) {\n\tvar name = targetObject.name;\n\tif (baseObject === targetObject) \n\t\treturn \"this\";\n\telse if (baseObject[name] === targetObject) \n\t\treturn \"this.\" + name;\n\telse if (baseObject.testObject === targetObject) \n\t\treturn \"this.testObject\";\n\telse if (baseObject.get(name) === targetObject) \n\t\treturn 'this.get(\"' + name + '\")';\n\telse if (targetObject instanceof Morph) \n\t\treturn '$morph(\"' + name + '\")';\n\telse \n\t\treturn \"????\";\n}","funcProperties":{"__isSmartRef__":true,"id":44175},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"44174":{"this":{"__isSmartRef__":true,"id":43061}},"44175":{"timestamp":{"__isSmartRef__":true,"id":44176},"user":"lauritz","tags":[]},"44176":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"44177":{"varMapping":{"__isSmartRef__":true,"id":44178},"source":"function newConnection() {\n if (this.target) {\n var code = \"connect(SOURCE, SOURCE_PROPERTY, TARGET, TARGET_PROPERTY);\";\n this.displayJavaScriptSource(code);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":44179},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"44178":{"this":{"__isSmartRef__":true,"id":43061}},"44179":{"timestamp":{"__isSmartRef__":true,"id":44180},"user":"lauritz","tags":[]},"44180":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"44181":{"varMapping":{"__isSmartRef__":true,"id":44182},"source":"function newScript() {\n if (this.target) {\n var code = \"this.addScript(function SCRIPTNAME() {\\n \\n}).tag([]);\";\n this.displayJavaScriptSource(code);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":44183},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"44182":{"this":{"__isSmartRef__":true,"id":43061}},"44183":{"timestamp":{"__isSmartRef__":true,"id":44184},"user":"lauritz","tags":[]},"44184":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:24:25 GMT+0100 (CET)"},"44185":{"varMapping":{"__isSmartRef__":true,"id":44186},"source":"function reset() {\n this.scriptPane = this.get('ObjectEditorScriptPane')\n this.scriptList = this.get('ObjectEditorScriptList')\n this.connectionList = this.get('ObjectEditorConnectionList')\n this.morphSelector = this.get('ObjectEditorMorphSelector')\n \n this.target = null;\n this.currentTag = null;\n \n this.scriptPane.reset();\n this.scriptList.setList();\n this.scriptList.selection = null;\n this.connectionList.setList();\n this.connectionList.selection = null;\n this.morphSelector.reset();\n this.tagChooser.reset();\n \n this.stopStepping();\n}","funcProperties":{"__isSmartRef__":true,"id":44187},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"44186":{"this":{"__isSmartRef__":true,"id":43061}},"44187":{"timestamp":{"__isSmartRef__":true,"id":44188},"user":"lauritz","tags":[]},"44188":{"isSerializedDate":true,"string":"Fri Aug 03 2012 11:45:36 GMT+0200 (CEST)"},"44189":{"varMapping":{"__isSmartRef__":true,"id":44190},"source":"function selectChangedContent(source) {\n\n var addScriptRegex = /this\\.addScript\\s*\\(\\s*function\\s*([^\\(]*)/g;\n var addScriptMatches = [];\n var addScriptMatch = addScriptRegex.exec(source);\n while (addScriptMatch) {\n addScriptMatches.push(addScriptMatch[1]);\n addScriptMatch = addScriptRegex.exec(source);\n }\n \n // if scripts were added, select either a specific one or all\n if (addScriptMatches.length > 0) { \n if (addScriptMatches.length === 1) {\n return this.scriptList.selectAddedScript(addScriptMatches[0]);\n }\n return this.scriptList.selectAt(0);\n }\n\n var connectionRegex = \n /connect\\(\\s*([^,]*)\\s*,\\s*\"([^,]*)\"\\s*,\\s*([^,]*)\\s*,\\s*\"([^,]*)\"/g;\n var connectionMatches = [];\n var connectionMatch = connectionRegex.exec(source);\n while (connectionMatch) {\n connectionMatches.push(connectionMatch);\n connectionMatch = connectionRegex.exec(source);\n }\n\n // if connections were made, select either a specific one or all\n if (connectionMatches.length > 0) {\n if (connectionMatches.length === 1) {\n var match = connectionMatches[0];\n for (var i=0; i